/* =========================================================
 * 长沙苔茵展科技 - iOS 26 暮云紫 + 香槟金深色玻璃 · 章节滚动
 * ========================================================= */

:root {
    /* 主色 - 暮云紫 + 香槟金 */
    --primary: #8B5CF6;
    --primary-light: #A78BFA;
    --primary-deep: #6D28D9;
    --primary-soft: rgba(139, 92, 246, 0.18);
    --gold: #D4A574;
    --gold-light: #F0CB7A;
    --rose: #F472B6;
    --cyan: #22D3EE;
    --emerald: #34D399;

    /* 深色基底 */
    --bg-primary: #0B0816;
    --bg-secondary: #14102A;
    --bg-tertiary: #1F1840;
    --surface: rgba(31, 24, 64, 0.6);
    --surface-strong: rgba(31, 24, 64, 0.85);
    --surface-light: rgba(255, 255, 255, 0.04);
    --surface-card: rgba(255, 255, 255, 0.03);

    --text-primary: #F5F3FF;
    --text-secondary: #C4B5FD;
    --text-tertiary: #8B7BC9;
    --text-muted: #6B5B8A;

    --border: rgba(167, 139, 250, 0.12);
    --border-strong: rgba(167, 139, 250, 0.22);
    --border-glow: rgba(139, 92, 246, 0.4);

    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 30px rgba(139, 92, 246, 0.18);
    --shadow-lg: 0 20px 50px rgba(139, 92, 246, 0.28);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.4);

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", "Monaco", "Cascadia Code", "Roboto Mono", "JetBrains Mono", Consolas, monospace;

    --t-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-base: 320ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.18), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(244, 114, 182, 0.10), transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(34, 211, 238, 0.08), transparent 50%),
        var(--bg-primary);
    background-attachment: fixed;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }
.mono { font-family: var(--font-mono); }

::selection { background: var(--primary); color: white; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* =========================================================
 * 顶部进度条
 * ========================================================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    z-index: 101;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--primary);
}

/* =========================================================
 * 导航 - 章节式
 * ========================================================= */
.nav {
    position: fixed;
    top: 2px;
    left: 0;
    right: 0;
    background: rgba(11, 8, 22, 0.7);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 17px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 800;
    font-family: var(--font-mono);
    position: relative;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.nav-logo-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--t-base);
}

.nav-logo:hover .nav-logo-icon::after { opacity: 0.6; }

.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav-menu a {
    padding: 9px 18px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--t-fast);
    font-family: var(--font-mono);
    letter-spacing: -0.01em;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-light);
    background: var(--primary-soft);
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--bg-primary) !important;
    padding: 10px 20px !important;
    border-radius: var(--r-sm);
    font-size: 13.5px;
    font-weight: 700 !important;
    font-family: var(--font-mono);
    box-shadow: 0 6px 16px rgba(212, 165, 116, 0.3);
    transition: all var(--t-fast);
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
    color: var(--bg-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(212, 165, 116, 0.45);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: var(--primary-soft);
    color: var(--primary-light);
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

@media (max-width: 900px) {
    .nav-menu { display: none; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .nav-menu.open {
        display: flex;
        position: absolute;
        top: 70px;
        left: 16px;
        right: 16px;
        background: var(--surface-strong);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 16px;
        border-radius: var(--r-md);
        gap: 8px;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border);
    }
}

/* =========================================================
 * Hero - 极客风
 * ========================================================= */
.hero {
    padding: 120px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-strong);
    padding: 8px 18px;
    border-radius: var(--r-full);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 24px;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

.hero-tag-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--emerald);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--primary-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero h1 .code {
    font-family: var(--font-mono);
    color: var(--gold);
    background: rgba(212, 165, 116, 0.1);
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    font-size: 0.85em;
    display: inline-block;
}

.hero p.lead {
    font-size: clamp(15px, 1.7vw, 18px);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--gold);
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
    line-height: 1;
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 6px;
    font-family: var(--font-mono);
}

/* Hero 终端风格代码框 */
.hero-terminal {
    background: rgba(11, 8, 22, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    position: relative;
}

.hero-terminal::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--primary), var(--gold), var(--rose));
    border-radius: inherit;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.terminal-header {
    background: rgba(31, 24, 64, 0.6);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.r { background: #FF5F56; }
.terminal-dot.y { background: #FFBD2E; }
.terminal-dot.g { background: #27C93F; }

.terminal-title {
    margin-left: 12px;
    font-size: 12px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.85;
}

.terminal-line { display: block; margin-bottom: 4px; }
.t-prompt { color: var(--emerald); user-select: none; }
.t-command { color: var(--text-primary); }
.t-comment { color: var(--text-tertiary); }
.t-string { color: var(--gold-light); }
.t-keyword { color: var(--rose); }
.t-result { color: var(--cyan); }
.t-cursor { color: var(--primary-light); animation: cursor 1s infinite; }
@keyframes cursor { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* =========================================================
 * 章节标题
 * ========================================================= */
.section {
    padding: 90px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 14px;
    display: inline-block;
}

.section-num::before, .section-num::after {
    content: '—';
    margin: 0 12px;
    color: var(--text-tertiary);
}

.section-header h2 {
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.section-header h2 .accent {
    background: linear-gradient(135deg, var(--primary-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =========================================================
 * 按钮
 * ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 14.5px;
    transition: all var(--t-fast);
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-mono);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: white;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.55);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--bg-primary);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.35);
}

.btn-gold:hover {
    transform: translateY(-2px);
    color: var(--bg-primary);
    box-shadow: 0 12px 32px rgba(212, 165, 116, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-outline:hover {
    background: var(--surface-light);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

/* =========================================================
 * 课程卡片 - 暗色玻璃
 * ========================================================= */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all var(--t-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-soft), transparent 60%);
    opacity: 0;
    transition: opacity var(--t-base);
    pointer-events: none;
}

.course-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-glow);
}

.course-card:hover::before { opacity: 1; }

.course-card-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.course-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(11, 8, 22, 0.9));
}

.course-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
    filter: brightness(0.9);
}

.course-card:hover .course-card-img img {
    transform: scale(1.08);
    filter: brightness(1);
}

.course-card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(11, 8, 22, 0.7);
    backdrop-filter: blur(10px);
    color: var(--gold);
    padding: 5px 12px;
    border-radius: var(--r-xs);
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    border: 1px solid rgba(212, 165, 116, 0.3);
    z-index: 2;
}

.course-card-level {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(139, 92, 246, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 4px 10px;
    border-radius: var(--r-xs);
    font-size: 10.5px;
    font-weight: 700;
    font-family: var(--font-mono);
    z-index: 2;
}

.course-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.course-card-cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.course-card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-primary);
}

.course-card-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.course-card-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--gold);
    font-family: var(--font-mono);
}

.course-card-price small {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

.course-card-info {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

/* =========================================================
 * Offer 喜报墙
 * ========================================================= */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.offer-card {
    background: linear-gradient(135deg, var(--surface), var(--surface-card));
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 20px;
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at top right, var(--primary-soft), transparent 70%);
    pointer-events: none;
}

.offer-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(212, 165, 116, 0.18);
}

.offer-company {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 10px;
    background: rgba(212, 165, 116, 0.12);
    border-radius: var(--r-xs);
    font-family: var(--font-mono);
}

.offer-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.offer-pos {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.offer-meta {
    display: flex;
    gap: 14px;
    font-size: 11.5px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.offer-meta strong {
    color: var(--emerald);
}

/* =========================================================
 * 学习路径
 * ========================================================= */
.path-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.path-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--gold), transparent);
    z-index: 0;
}

.path-item {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 24px 20px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.path-item-num {
    width: 50px;
    height: 50px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-family: var(--font-mono);
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    border: 4px solid var(--bg-primary);
}

.path-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.path-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .path-grid { grid-template-columns: repeat(2, 1fr); }
    .path-grid::before { display: none; }
}

/* =========================================================
 * 评价
 * ========================================================= */
.review-item {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 24px;
    margin-bottom: 14px;
    transition: all var(--t-fast);
    position: relative;
}

.review-item::before {
    content: '"';
    position: absolute;
    top: 14px;
    right: 22px;
    font-size: 56px;
    line-height: 1;
    color: var(--primary);
    opacity: 0.2;
    font-weight: 800;
}

.review-item:hover {
    border-color: var(--primary-light);
    transform: translateX(4px);
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--primary), var(--gold));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 16px;
    font-family: var(--font-mono);
}

.review-name { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.review-job { font-size: 12px; color: var(--gold); font-family: var(--font-mono); margin-top: 2px; }
.review-stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; margin-left: auto; }
.review-time { font-size: 11.5px; color: var(--text-tertiary); margin-left: 8px; font-family: var(--font-mono); }

.review-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =========================================================
 * 表单
 * ========================================================= */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface-light);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: all var(--t-fast);
    font-family: var(--font);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(139, 92, 246, 0.08);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-select { cursor: pointer; }
.form-select option { background: var(--bg-secondary); color: var(--text-primary); }

.form-textarea { min-height: 110px; resize: vertical; font-family: var(--font); }

/* =========================================================
 * 联系卡 / 案例 / 时间线 复用样式
 * ========================================================= */
.feature-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 28px;
    transition: all var(--t-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-soft), rgba(212, 165, 116, 0.12));
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =========================================================
 * 页脚
 * ========================================================= */
.footer {
    background: linear-gradient(180deg, transparent, rgba(31, 24, 64, 0.6));
    border-top: 1px solid var(--border);
    padding: 70px 0 30px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-weight: 800;
    font-size: 18px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 340px;
    margin-bottom: 18px;
}

.footer-tag {
    font-size: 11px;
    color: var(--gold);
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
}

.footer h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-tertiary);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--font-mono);
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 13.5px; color: var(--text-secondary); }
.footer ul a:hover { color: var(--gold); }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.footer-bottom a { color: var(--text-tertiary); }
.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: 1 / -1; }
}

/* =========================================================
 * 返回顶部 - 终端风格
 * ========================================================= */
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 110px;
    width: 48px;
    height: 48px;
    background: var(--surface-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 18px;
    font-family: var(--font-mono);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--t-base);
    box-shadow: var(--shadow-md);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gold);
    color: var(--bg-primary);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(212, 165, 116, 0.4);
}

/* =========================================================
 * AI 客服 - 紫色雷电闪光
 * ========================================================= */
.ai-chat-btn {
    position: fixed;
    right: 28px;
    bottom: 32px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    transition: all var(--t-base);
    z-index: 99;
    transform: rotate(-3deg);
}

.ai-chat-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--rose), var(--gold));
    border-radius: inherit;
    z-index: -1;
    opacity: 0.6;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { opacity: 0.4; filter: blur(8px); }
    50% { opacity: 0.8; filter: blur(14px); }
}

.ai-chat-btn:hover {
    transform: rotate(0) scale(1.06);
    color: white;
}

.ai-chat-panel {
    position: fixed;
    right: 28px;
    bottom: 100px;
    width: 360px;
    max-width: calc(100vw - 56px);
    height: 480px;
    background: rgba(20, 16, 42, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(139, 92, 246, 0.3);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all var(--t-base);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-chat-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-header-avatar {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ai-chat-header-info { flex: 1; }
.ai-chat-header-info h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; font-family: var(--font-mono); }
.ai-chat-header-info p { font-size: 12px; opacity: 0.85; font-family: var(--font-mono); }

.ai-chat-body {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: var(--r-md);
    font-size: 14px;
    line-height: 1.5;
}

.ai-chat-msg.bot {
    background: var(--surface-light);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
}

.ai-chat-msg.user {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-chat-input {
    padding: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    background: rgba(11, 8, 22, 0.5);
}

.ai-chat-input input {
    flex: 1;
    padding: 10px 14px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 14px;
    outline: none;
    color: var(--text-primary);
}

.ai-chat-input input::placeholder { color: var(--text-muted); }
.ai-chat-input input:focus { border-color: var(--primary-light); }

.ai-chat-input button {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--bg-primary);
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .hero { padding: 100px 0 50px; }
    .section { padding: 56px 0; }
    .ai-chat-panel { right: 12px; bottom: 88px; width: calc(100% - 24px); height: 60vh; }
    .ai-chat-btn { right: 16px; bottom: 16px; }
    .back-to-top { right: 16px; bottom: 90px; }
}
