/* 全局样式 */
:root {
    --primary-color: #ff6e6c;   /* Button & Highlight */
    --secondary-color: #67568c; /* Secondary */
    --accent-color: #fbdd74;    /* Tertiary */
    --background-color: #FFFFFF; /* Background */
    --card-bg-color: #FFFFFF;    /* Card Background same as BG for flat look */
    --text-color: #1f1235;       /* Headline & Main text */
    --text-muted: #1b1425;       /* Subheadline & muted text */
    --border-color: #e5e7eb;     /* Border color */
    --spacing-unit: 8px;
    --transition-speed: 0.3s;
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 calc(2 * var(--spacing-unit));
}

ul {
    list-style: none;
}

.section {
    padding: calc(12 * var(--spacing-unit)) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: calc(8 * var(--spacing-unit));
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 自定义光标 */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    pointer-events: none;
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
    z-index: 9999;
    opacity: 0.7;
    filter: blur(1px);
}

/* 导航栏 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(2 * var(--spacing-unit)) calc(4 * var(--spacing-unit));
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: padding var(--transition-speed) ease;
}

nav.scrolled {
    padding: var(--spacing-unit) calc(4 * var(--spacing-unit));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: calc(2 * var(--spacing-unit));
}

.logo img {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: calc(4 * var(--spacing-unit));
}

.nav-links li a {
    font-weight: 500;
    position: relative;
    color: var(--text-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.github-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--card-bg-color);
    padding: 8px 16px;
    border-radius: 30px;
    transition: all var(--transition-speed) ease;
    color: var(--text-color);
}

.github-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all var(--transition-speed) ease;
}

/* DeepSeek OCR landing overrides */
body.deepseek-theme {
    background: #020617;
    color: #e2e8f0;
    --primary-color: #38bdf8;
    --secondary-color: #2563eb;
    --accent-color: #c084fc;
    --text-color: #e2e8f0;
    --card-bg-color: rgba(17, 24, 39, 0.85);
    --border-color: rgba(148, 163, 184, 0.24);
}

body.deepseek-theme nav {
    display: block;
    position: sticky;
    top: 0;
    padding: 20px 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: none;
}

body.deepseek-theme .nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

body.deepseek-theme .nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

body.deepseek-theme .nav-links a {
    color: #cbd5f5;
    font-weight: 500;
}

body.deepseek-theme .nav-links a::after {
    background-color: rgba(56, 189, 248, 0.6);
}

body.deepseek-theme .github-btn {
    background: rgba(30, 41, 59, 0.6);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

body.deepseek-theme .github-btn:hover {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #0f172a;
}

body.deepseek-theme .lang-switcher {
    position: relative;
}

body.deepseek-theme .lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #cbd5f5;
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
    font: inherit;
}

body.deepseek-theme .lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 12px 0;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 40;
    pointer-events: none;
}

body.deepseek-theme .lang-dropdown.active,
body.deepseek-theme .lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

body.deepseek-theme .lang-option {
    display: block;
    padding: 10px 16px;
    color: #cbd5f5;
    transition: background 0.2s ease, color 0.2s ease;
}

body.deepseek-theme .lang-option:hover,
body.deepseek-theme .lang-option.active {
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
}

body.deepseek-theme footer {
    background: rgba(2, 6, 23, 0.92);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

/* 英雄区 */
.hero {
    position: relative;
    padding: calc(16 * var(--spacing-unit)) 0 calc(18 * var(--spacing-unit));
    min-height: auto;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(103, 86, 140, 0.12), transparent 55%),
        radial-gradient(circle at 85% 10%, rgba(251, 221, 116, 0.16), transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(250, 250, 255, 0.9) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: calc(10 * var(--spacing-unit));
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(4 * var(--spacing-unit));
    z-index: 1;
}

.hero-text {
    max-width: 560px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: calc(2 * var(--spacing-unit));
    padding: calc(1.5 * var(--spacing-unit)) calc(3 * var(--spacing-unit));
    border-radius: 999px;
    background: rgba(103, 86, 140, 0.12);
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: calc(3 * var(--spacing-unit));
}

.hero-text h1 {
    font-size: clamp(2.8rem, 4vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: calc(3 * var(--spacing-unit));
    color: var(--text-color);
}

.hero-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 600;
    margin-bottom: calc(4 * var(--spacing-unit));
    color: var(--secondary-color);
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: calc(4 * var(--spacing-unit));
    color: var(--text-muted);
}

.hero-lede {
    font-size: 1.2rem;
    color: var(--text-color);
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: calc(2.5 * var(--spacing-unit));
    margin-bottom: calc(4 * var(--spacing-unit));
}

.hero-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(1.5 * var(--spacing-unit));
    padding: calc(2 * var(--spacing-unit)) calc(3 * var(--spacing-unit));
    background: rgba(255, 110, 108, 0.08);
    border: 1px solid rgba(255, 110, 108, 0.2);
    border-radius: calc(3 * var(--spacing-unit));
    font-weight: 600;
    color: var(--text-color);
}

.hero-highlight i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.hero-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: calc(2 * var(--spacing-unit));
    margin-bottom: calc(4 * var(--spacing-unit));
    list-style: none;
    padding: 0;
}

.hero-checklist li {
    display: flex;
    align-items: flex-start;
    gap: calc(1.5 * var(--spacing-unit));
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hero-checklist li i {
    color: var(--primary-color);
    margin-top: calc(0.5 * var(--spacing-unit));
    font-size: 1rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: calc(2.5 * var(--spacing-unit));
    margin-bottom: calc(5 * var(--spacing-unit));
}

.hero-metric {
    padding: calc(3 * var(--spacing-unit)) calc(3.5 * var(--spacing-unit));
    border-radius: calc(3 * var(--spacing-unit));
    background: rgba(31, 18, 53, 0.04);
    border: 1px solid rgba(31, 18, 53, 0.08);
    text-align: left;
}

.hero-metric-value {
    display: block;
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.1;
}

.hero-metric-label {
    display: block;
    margin-top: var(--spacing-unit);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: calc(2.5 * var(--spacing-unit));
    margin-top: calc(4 * var(--spacing-unit));
    align-items: center;
}

.hero-buttons .btn {
    min-width: 180px;
    padding: 14px 28px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn.primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn.secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 故障文字效果 */
.glitch {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.glitch::before,
.glitch::after {
    content: none;
}

.hero-media {
    display: flex;
    justify-content: center;
}

.hero-media-card {
    position: relative;
    padding: calc(3 * var(--spacing-unit));
    border-radius: calc(4 * var(--spacing-unit));
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 208, 214, 0.6));
    box-shadow: 0 40px 80px rgba(31, 18, 53, 0.16);
    overflow: hidden;
}

.hero-media-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 110, 108, 0.18);
    opacity: 0.9;
    pointer-events: none;
}

.hero-media-card img {
    position: relative;
    display: block;
    width: min(520px, 100%);
    border-radius: calc(3 * var(--spacing-unit));
    border: 1px solid rgba(255, 110, 108, 0.18);
    box-shadow: 0 16px 32px rgba(31, 18, 53, 0.12);
}

.video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background-color: var(--card-bg-color);
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.9), rgba(30, 41, 59, 0.1));
    z-index: 1;
    pointer-events: none;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 概述部分 */
.section-overview {
    position: relative;
    overflow: hidden;
}

.section-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at right bottom, rgba(99, 102, 241, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
}

.overview-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(8 * var(--spacing-unit));
}

.overview-text {
    flex: 1;
}

.overview-text p {
    margin-bottom: calc(4 * var(--spacing-unit));
    font-size: 1.1rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: calc(2 * var(--spacing-unit));
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: calc(2 * var(--spacing-unit));
    font-size: 1.1rem;
}

.feature-list li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.overview-image {
    width: 50%;
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
}

.overview-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.overview-image video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 特性部分 */
.section-features {
    position: relative;
    background-color: var(--card-bg-color);
    padding: calc(16 * var(--spacing-unit)) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(3 * var(--spacing-unit));
}

.feature-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
    border-radius: var(--border-radius);
    padding: calc(4 * var(--spacing-unit));
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0));
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

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

.feature-icon {
    margin-bottom: calc(2 * var(--spacing-unit));
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: calc(1 * var(--spacing-unit));
    color: #ffffff;
}

.feature-card p {
    color: #f0f0f0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 演示部分 */
.section-demos {
    padding: calc(16 * var(--spacing-unit)) 0;
    position: relative;
    overflow: hidden;
}

.section-demos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at left bottom, rgba(99, 102, 241, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
}

.demos-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.demo-tabs {
    display: flex;
    justify-content: center;
    gap: calc(2 * var(--spacing-unit));
    margin-bottom: calc(6 * var(--spacing-unit));
}

.demo-tab {
    padding: 12px 24px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.demo-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.demo-tab.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.demo-content {
    position: relative;
}

.demo-panel {
    display: none;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.demo-panel.active {
    display: block;
    opacity: 1;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: calc(6 * var(--spacing-unit));
}

.demo-item {
    border-radius: var(--border-radius);
    overflow: visible;
    background-color: var(--card-bg-color);
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}

.demo-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.demo-video {
    width: 100%;
}

.demo-video video {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.demo-info {
    padding: calc(3 * var(--spacing-unit));
}

.demo-info h3 {
    margin-bottom: var(--spacing-unit);
    font-size: 1.3rem;
}

.demo-info p {
    color: var(--text-muted);
}

/* Demo Note Styles */
.demo-note {
    font-size: 0.9em;
    color: #4b5563; /* Consider using a CSS variable */
    margin-top: calc(4 * var(--spacing-unit)); /* Adjusted from negative margin */
    margin-bottom: calc(4 * var(--spacing-unit));
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 安装部分 */
.section-installation {
    background-color: var(--card-bg-color);
    padding: calc(16 * var(--spacing-unit)) 0;
}

.installation-content {
    max-width: 800px;
    margin: 0 auto;
}

.installation-tabs {
    display: flex;
    justify-content: center;
    gap: calc(2 * var(--spacing-unit));
    margin-bottom: calc(4 * var(--spacing-unit));
}

.installation-tab {
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.installation-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.installation-tab.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.installation-panel {
    display: none;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.installation-panel.active {
    display: block;
    opacity: 1;
}

.code-block {
    background-color: #0f172a;
    border-radius: var(--border-radius);
    padding: calc(4 * var(--spacing-unit));
    margin-top: calc(2 * var(--spacing-unit));
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.code-block pre {
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-block code {
    font-family: 'Source Code Pro', monospace;
    color: var(--text-color);
    line-height: 1.8;
}

/* 论文部分 */
.section-paper {
    padding: calc(16 * var(--spacing-unit)) 0;
    position: relative;
    overflow: hidden;
}

.section-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at right center, rgba(99, 102, 241, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
}

.paper-content {
    display: flex;
    align-items: center;
    gap: calc(8 * var(--spacing-unit));
}

.paper-image {
    flex: 1;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    transform: perspective(1000px) rotateY(5deg);
}

.paper-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.paper-info {
    flex: 1;
}

.paper-info h3 {
    font-size: 1.8rem;
    margin-bottom: calc(3 * var(--spacing-unit));
}

.paper-info p {
    color: var(--text-muted);
    margin-bottom: calc(4 * var(--spacing-unit));
}

.paper-links {
    display: flex;
    gap: calc(2 * var(--spacing-unit));
}

/* 页脚 */
.footer {
    background-color: var(--card-bg-color);
    padding: calc(8 * var(--spacing-unit)) 0 calc(4 * var(--spacing-unit));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: calc(6 * var(--spacing-unit));
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: calc(2 * var(--spacing-unit));
}

.footer-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    gap: calc(8 * var(--spacing-unit));
}

.footer-column h3 {
    margin-bottom: calc(3 * var(--spacing-unit));
    font-size: 1.2rem;
    color: var(--text-color);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: calc(2 * var(--spacing-unit));
}

.footer-column ul li a {
    color: var(--text-muted);
    transition: color var(--transition-speed) ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: calc(4 * var(--spacing-unit));
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer-legal-links {
    margin-top: calc(2 * var(--spacing-unit));
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: calc(2 * var(--spacing-unit));
}

.footer-legal-links a {
    color: inherit;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

.footer-legal-links a:hover {
    color: var(--primary-color);
}

/* 语言切换器 */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-left: calc(2 * var(--spacing-unit));
    position: relative;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background-color: var(--card-bg-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
    color: var(--text-color);
    border: none;
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.lang-switcher-btn:hover {
    background-color: rgba(30, 41, 59, 0.8);
}

.lang-switcher-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.lang-switcher-icon {
    font-size: 1rem;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    min-width: 120px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed) ease;
    z-index: 1001;
    pointer-events: none;
}

.lang-dropdown.active,
.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    padding: 8px 16px;
    display: block;
    text-align: left;
    transition: all var(--transition-speed) ease;
}

.lang-option:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

.lang-option.active {
    background-color: rgba(99, 102, 241, 0.2);
}

/* 404页面 */
.error-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 10rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.error-message {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.home-button {
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero {
        padding: calc(14 * var(--spacing-unit)) 0 calc(16 * var(--spacing-unit));
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        row-gap: calc(8 * var(--spacing-unit));
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-highlights {
        justify-items: center;
    }

    .hero-highlight {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-media-card {
        margin: 0 auto;
    }

    .hero-metrics {
        justify-items: center;
    }

    .hero-metric {
        text-align: center;
    }

    .hero-checklist {
        justify-items: center;
    }

    .hero-checklist li {
        max-width: 360px;
        text-align: left;
    }

    .paper-content {
        flex-direction: column;
    }

    .paper-info {
        order: 2;
    }

    .paper-image {
        order: 1;
        margin-bottom: calc(6 * var(--spacing-unit));
    }

    .paper-image {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero {
        padding: calc(12 * var(--spacing-unit)) 0 calc(14 * var(--spacing-unit));
    }

    .hero-content {
        padding: 0 calc(3 * var(--spacing-unit));
        text-align: center;
    }

    .hero-eyebrow {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text h2 {
        font-size: 1.4rem;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .hero-highlight {
        justify-content: center;
    }

    .hero-metrics {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        justify-items: center;
        gap: calc(2 * var(--spacing-unit));
    }

    .hero-metric {
        text-align: center;
        padding: calc(2.5 * var(--spacing-unit));
    }

    .hero-checklist {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .hero-checklist li {
        text-align: left;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn {
        flex: 1 1 100%;
        min-width: 0;
    }

    .hero-media-card {
        padding: calc(2 * var(--spacing-unit));
    }

    .hero-media-card img {
        width: 100%;
    }

    .demo-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: calc(6 * var(--spacing-unit));
    }

    .footer-logo {
        align-items: center;
        margin-bottom: calc(4 * var(--spacing-unit));
    }

    .footer-links {
        justify-content: center;
    }
}

.hero-gif {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

@media (max-width: 600px) {
    .hero-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: calc(4 * var(--spacing-unit));
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: calc(3 * var(--spacing-unit));
    }
}

.how-it-works-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: calc(4 * var(--spacing-unit));
}
