* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.app-container {
    max-width: 500px;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.status-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 24px 12px;
    color: white;
}

.status-bar h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.status-bar p {
    font-size: 14px;
    opacity: 0.9;
}

.content {
    padding: 24px;
}

.hidden {
    display: none !important;
}

/* 统计卡片 */
.stats-card {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    border-radius: 24px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: white;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.stats-reset-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.stats-reset-btn:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

.stats-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    display: block;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
}

/* 确保所有弹框都在最顶层 */
.lock-overlay,
.custom-dialog-overlay {
    z-index: 999999 !important;
}

/* 禁用页面滚动 */
body.lock-active {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}


/* 状态栏 - 改为 flex 布局 */
.status-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 24px 12px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.status-bar-left h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.status-bar-left p {
    font-size: 14px;
    opacity: 0.9;
}

.status-bar-right {
    padding-top: 4px;
}

/* 下载链接样式 */
.download-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 40px;
    text-decoration: none;
    color: white;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.download-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

.download-link:active {
    transform: scale(0.98);
}

.download-link .download-icon {
    font-size: 14px;
}

.download-link .download-text {
    font-size: 13px;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .status-bar {
        padding: 16px 20px 10px;
    }
    
    .status-bar-left h1 {
        font-size: 22px;
    }
    
    .status-bar-left p {
        font-size: 11px;
    }
    
    .download-link {
        padding: 4px 10px;
    }
    
    .download-link .download-text {
        font-size: 11px;
    }
    
    .download-link .download-icon {
        font-size: 12px;
    }
}