button, .menu-btn, .theme-switcher, .menu-btn-small, .action-btn {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 修复：确保body和html高度100% */
html, body {
    height: 100%;
    width: 100%;
}

body {
    background: var(--background-gradient);
    min-height: 100vh;
    color: var(--text-color);
    position: relative;
    transition: background 0.5s ease;
    /* 修复：确保背景铺满 */
    background-attachment: fixed;
    background-size: cover;
}

/* 主内容区域样式 */
.main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 80px 20px 20px;
    width: 100%;
}

.container {
    max-width: 600px;
    width: 100%;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

body.sidebar-open .container {
    transform: translateX(150px);
}

header {
    text-align: center;
    margin-bottom: 25px;
}

h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
}

.description {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 20px;
}

.current-combo {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.current-combo:hover {
    transform: translateY(-5px);
}

.combo-text {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.price {
    font-size: 20px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-container {
    margin-bottom: 25px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.progress-bar {
    height: 10px;
    background: rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    border-radius: 5px;
    transition: width 0.5s ease;
    width: 0%;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

button.action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: var(--primary-color);
    color: white;
}

.next-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.history-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

.history-item {
    padding: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 14px;
    color: var(--text-color);
}

.history-item:last-child {
    border-bottom: none;
}

.file-input {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .main-content {
        padding: 70px 15px 15px;
    }

    body.sidebar-open .container {
        transform: translateX(140px);
    }
}