/**
 * AiDrumScore - AI驱动的鼓谱转录工具
 * Copyright (c) 2026 苏州市常熟市制谱修修信息技术服务有限责任公司. All rights reserved.
 */

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

:root {
    --bg: #121216;
    --bg-card: #1e1e24;
    --bg-input: #2a2a32;
    --white: #f8f8f6;
    --gray: #78787d;
    --light-gray: #505055;
    --accent: #00c8b4;
    --accent-hover: #00e0cc;
    --accent-bg: rgba(0, 200, 180, 0.15);
    --border: #28282f;
    --nav-bg: #0c0c10;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--nav-bg);
    display: flex;
    align-items: center;
    padding: 0 40px;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-logo-icon::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.nav-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 36px;
    margin-left: 60px;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--accent); }

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-lang {
    padding: 6px 16px;
    border-radius: 12px;
    background: #32323a;
    color: var(--gray);
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-lang:hover { background: #3a3a44; color: var(--white); }

/* ===== HERO SECTION ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 60px 60px;
    gap: 80px;
}

.hero-left { flex: 1; max-width: 640px; text-align: center; }
.hero-right { width: 420px; flex-shrink: 0; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 20px;
    background: var(--accent-bg);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 32px;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.hero-title span { color: var(--accent); }

.hero-subtitle {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 48px;
}

.hero-subtitle strong { color: #999; font-weight: 400; }

.hero-highlight {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

.hero-buttons { display: flex; gap: 16px; margin-bottom: 56px; justify-content: center; }

.btn {
    padding: 14px 40px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid var(--white);
}

.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-sm { padding: 8px 24px; font-size: 14px; }
.btn-ghost { background: transparent; border: 1px solid var(--light-gray); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.nav-user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.nav-username { color: var(--white); font-size: 14px; font-weight: 500; }
#nav-user { display: none; align-items: center; gap: 10px; }
#nav-login { display: none; align-items: center; gap: 10px; }

.hero-stats {
    display: flex;
    gap: 60px;
}

.stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--light-gray);
}

/* ===== LOGIN CARD ===== */
.login-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border);
}

.login-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.login-tab {
    flex: 1;
    padding: 10px 0;
    border-radius: 18px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.login-tab.active {
    background: var(--white);
    color: var(--bg);
}

.login-tab:not(.active) {
    background: #32323a;
    color: var(--gray);
}

.login-tab:not(.active):hover { background: #3a3a44; }

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--white);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-input::placeholder { color: var(--light-gray); }
.form-input:focus { border-color: var(--accent); }

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.form-link {
    color: var(--accent);
    font-size: 13px;
    text-decoration: none;
}

.form-link:hover { text-decoration: underline; }

.btn-login {
    width: 100%;
    padding: 14px;
    border-radius: 25px;
    background: var(--white);
    color: var(--bg);
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-login:hover { background: #e8e8e6; }

.btn-wechat-login {
    width: 100%;
    padding: 13px;
    border-radius: 25px;
    background: #07c160;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}
.btn-wechat-login:hover { background: #06ad56; }

.login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 16px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--light-gray);
}

.login-divider span {
    color: var(--gray);
    font-size: 13px;
}

.login-social {
    text-align: center;
    color: var(--light-gray);
    font-size: 13px;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 40px;
    color: #3c3c44;
    font-size: 13px;
    border-top: 1px solid var(--border);
    margin: 0 60px;
}

/* ===== PRIVACY CHECKBOX ===== */
.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--gray);
}
.privacy-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
}
.privacy-checkbox a {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}
.privacy-checkbox a:hover {
    text-decoration: underline;
}

/* ===== PRIVACY MODAL ===== */
.privacy-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.privacy-modal-overlay.active {
    display: flex;
}
.privacy-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.privacy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.privacy-modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
}
.privacy-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #32323a;
    color: var(--gray);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.privacy-modal-close:hover {
    background: #3a3a44;
    color: var(--white);
}
.privacy-modal-body {
    padding: 24px;
    overflow-y: auto;
    color: #c8c8cc;
    font-size: 14px;
    line-height: 1.8;
}
.privacy-modal-body h3 {
    color: var(--accent);
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px;
}
.privacy-modal-body h3:first-child {
    margin-top: 0;
}
.privacy-modal-body p {
    margin-bottom: 10px;
}
.privacy-modal-body ul {
    padding-left: 20px;
    margin-bottom: 10px;
}
.privacy-modal-body li {
    margin-bottom: 6px;
}
.privacy-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    text-align: right;
    flex-shrink: 0;
}
.privacy-modal-footer button {
    padding: 10px 28px;
    border-radius: 20px;
    border: none;
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.privacy-modal-footer button:hover {
    background: var(--accent-hover);
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0;
    margin-left: auto;
    margin-right: 12px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile dropdown menu */
.nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 40px;
    gap: 12px;
    z-index: 99;
    margin-left: 0;
}

.nav-links.active a {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
}

.nav-links.active a:last-child {
    border-bottom: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        padding: 100px 24px 40px;
        gap: 40px;
    }
    .hero-left { max-width: 100%; text-align: center; }
    .hero-right { width: 100%; max-width: 420px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav { padding: 0 16px; }
}

/* 768px breakpoint */
@media (max-width: 768px) {
    .hero { gap: 32px; }
    .hero-subtitle { font-size: 16px; }
    .hero-highlight { font-size: 16px; }
    .login-card { padding: 28px 20px; }
    .hero-badge { font-size: 13px; }
    .footer { margin: 0 16px; padding: 24px 16px; }
    .footer p { font-size: 12px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 36px; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    .nav-logo-text { font-size: 16px; }
    .nav-links.active { padding: 12px 20px; }
}
