/* ===== 广东融达光电有限公司 全局样式 — Linear Design System Enhanced ===== */
:root {
    /* Linear Dark-First Color Tokens */
    --bg-primary: #08090a;
    --bg-panel: #0f1011;
    --bg-surface: #191a1b;
    --bg-surface-hover: #28282c;
    --accent: #5e6ad2;
    --accent-hover: #707bec;
    --accent-glow: rgba(94,106,210,0.15);
    --accent-glow-strong: rgba(94,106,210,0.3);
    --text-primary: #f7f8f8;
    --text-secondary: #8e8e93;
    --text-tertiary: #636366;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(94,106,210,0.3);
    --border-accent: rgba(94,106,210,0.15);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --max-width: 1200px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.35);
    --shadow-glow: 0 0 24px rgba(94,106,210,0.15);
    --shadow-glow-hover: 0 0 32px rgba(94,106,210,0.25);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.2), 0 0 1px rgba(255,255,255,0.03) inset;

    /* Type Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.25rem;
    --text-6xl: 4rem;

    /* Spacing Scale (8px base) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv01", "ss03";
    overflow-x: hidden;
}

/* Subtle ambient glow background */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(94,106,210,0.04), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 150ms ease;
}
a:hover { color: var(--accent-hover); }

/* ===== Header / Nav ===== */
.site-header {
    background: rgba(15,16,17,0.8);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 var(--space-5); height: 60px;
}
.logo {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 2px;
}
.logo span { color: var(--accent); }
.logo span:first-child {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 8px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text-secondary); border-radius: 1px;
    transition: all 200ms ease;
}
.nav-toggle:hover span { background: var(--text-primary); }
.nav-menu { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav-menu li a {
    display: block; padding: 8px 14px;
    color: var(--text-secondary); font-size: var(--text-sm); font-weight: 500;
    border-radius: var(--radius); transition: all 200ms ease;
    letter-spacing: -0.01em;
    position: relative;
}
.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--text-primary);
    background: var(--bg-surface);
}
.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

/* ===== Language Toggle ===== */
.nav-lang-btn {
    appearance: none; -webkit-appearance: none;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: var(--text-sm);
    font-family: inherit;
    white-space: nowrap;
    outline: none;
    transition: all 150ms ease;
}
.nav-lang-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.nav-lang-btn option { background: var(--bg-surface); color: var(--text-primary); }
.logo img { height: 20px; width: auto; display: block; }

/* ===== Hero ===== */
.hero {
    background: var(--bg-panel);
    color: var(--text-primary);
    text-align: center;
    padding: 120px 20px 100px;
    position: relative; overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(1px 1px at 15% 25%, rgba(94,106,210,0.5), transparent),
        radial-gradient(1px 1px at 35% 65%, rgba(94,106,210,0.35), transparent),
        radial-gradient(1px 1px at 55% 15%, rgba(94,106,210,0.55), transparent),
        radial-gradient(1px 1px at 75% 55%, rgba(94,106,210,0.3), transparent),
        radial-gradient(1px 1px at 8% 78%, rgba(94,106,210,0.4), transparent),
        radial-gradient(1px 1px at 88% 38%, rgba(94,106,210,0.35), transparent),
        radial-gradient(2px 2px at 25% 45%, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 65% 85%, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 45% 35%, rgba(94,106,210,0.25), transparent);
    pointer-events: none;
    animation: starfield-drift 60s linear infinite;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(94,106,210,0.08), transparent 60%);
    pointer-events: none;
}
@keyframes starfield-drift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}
.hero h1 {
    font-size: var(--text-6xl);
    font-weight: 600;
    letter-spacing: -0.045em;
    margin-bottom: var(--space-5);
    position: relative; z-index: 1;
    line-height: 1.05;
    background: linear-gradient(180deg, var(--text-primary) 0%, rgba(247,248,248,0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto var(--space-8);
    position: relative; z-index: 1;
    line-height: 1.6;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block; padding: 13px 32px;
    background: var(--accent);
    color: #fff !important;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
    box-shadow: 0 0 0 0 var(--accent-glow), var(--shadow);
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1));
    opacity: 0;
    transition: opacity 200ms ease;
}
.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 32px var(--accent-glow-strong), var(--shadow-lg);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0); }

/* Secondary / Ghost Button */
.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary) !important;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

/* ===== Container / Section ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: var(--space-12) var(--space-5); position: relative; z-index: 1; }
.section {
    background: linear-gradient(180deg, var(--bg-panel) 0%, rgba(15,16,17,0.95) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow);
    transition: border-color 300ms ease;
}
.section:hover {
    border-color: var(--border-accent);
}
.section-title {
    color: var(--text-primary);
    border-left: 3px solid var(--accent);
    padding-left: var(--space-4);
    margin-bottom: var(--space-6);
    font-size: var(--text-2xl);
    font-weight: 600;
    letter-spacing: -0.025em;
}
.section-title-no-border {
    border-left: none;
    padding-left: 0;
    text-align: center;
}

/* ===== Grids ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
}

/* ===== Cards ===== */
.card {
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(25,26,27,0.8) 100%);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
    opacity: 0;
    transition: opacity 300ms ease;
}
.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.card:hover::before { opacity: 1; }
.card h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: -0.015em;
}
.card ul { padding-left: 18px; line-height: 2; color: var(--text-secondary); font-size: var(--text-sm); }
.card ul li { margin-bottom: 6px; }
.card ul li::marker { color: var(--accent); }

/* ===== App Features ===== */
.app-section {
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(25,26,27,0.9) 100%);
    border-color: var(--border);
}
.app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}
.app-features.features-3col {
    grid-template-columns: repeat(3, 1fr);
}
.app-feature {
    background: var(--bg-surface-hover);
    padding: var(--space-5);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: var(--text-sm);
    line-height: 1.6;
    transition: all 200ms ease;
}
.app-feature:hover {
    border-color: var(--border-hover);
    background: rgba(94,106,210,0.05);
}
.app-feature strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ===== Info Box ===== */
.info-box {
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(25,26,27,0.6) 100%);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin-top: var(--space-4);
    border: 1px solid var(--border);
    font-size: var(--text-sm);
    box-shadow: var(--shadow-sm);
}
.info-box p { line-height: 2; }

/* ===== FAQ ===== */
.faq-list { margin-top: var(--space-4); }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: var(--text-base);
    letter-spacing: -0.01em;
}
.faq-a { color: var(--text-secondary); line-height: 1.8; font-size: var(--text-sm); }

/* ===== Tech Table ===== */
.tech-table-wrap { overflow-x: auto; margin-top: var(--space-4); }
.tech-table {
    width: 100%; border-collapse: collapse;
    font-size: var(--text-sm);
}
.tech-table th {
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 10px 14px; text-align: left;
    border: 1px solid var(--border);
    white-space: nowrap;
    font-weight: 600;
    font-size: var(--text-xs);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.tech-table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.tech-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.tech-table tr:hover td { background: var(--bg-surface); }

/* ===== Cases ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-5);
    margin-bottom: var(--space-6);
}
.case-card {
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(25,26,27,0.8) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-card);
}
.case-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.case-img-wrap {
    width: 100%; height: 200px;
    background: var(--bg-panel);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-tertiary); font-size: var(--text-sm);
    border-bottom: 1px solid var(--border);
}
.case-body { padding: var(--space-5); }
.case-body h3 {
    color: var(--text-primary);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
    letter-spacing: -0.01em;
}
.case-body p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ===== Stat / Effect Cards ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    text-align: center;
}
.stat-card {
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(25,26,27,0.8) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-4);
    border: 1px solid var(--border);
    transition: all 250ms ease;
    box-shadow: var(--shadow-card);
}
.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.stat-card .stat-num {
    font-size: var(--text-4xl);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    letter-spacing: -0.03em;
}
.stat-card .stat-label {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: var(--text-xs);
    letter-spacing: 0.01em;
}

.effect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}
.effect-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 14px 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: border-color 150ms ease;
}
.effect-card:hover { border-color: var(--border-hover); }
.effect-card .effect-icon { font-size: 1.5em; }
.effect-card .effect-name {
    display: block; margin-top: 6px;
    font-size: var(--text-sm); font-weight: 600;
    color: var(--text-primary);
}
.effect-card .effect-date {
    display: block; margin-top: 4px;
    color: var(--text-tertiary); font-size: var(--text-xs);
}
.effect-card .effect-desc {
    display: block; margin-top: 4px;
    color: var(--text-tertiary); font-size: var(--text-xs);
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-3);
    text-align: center;
}
.step-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: var(--space-4) var(--space-2);
    border: 1px solid var(--border);
}
.step-card .step-icon { font-size: 1.6em; }
.step-card .step-name {
    display: block; margin-top: var(--space-2);
    color: var(--accent); font-size: var(--text-sm); font-weight: 600;
}
.step-card .step-desc {
    display: block; color: var(--text-tertiary);
    font-size: var(--text-xs); margin-top: 4px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
}
.platform-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: var(--space-5);
    border: 1px solid var(--border);
    transition: border-color 150ms ease;
}
.platform-card:hover { border-color: var(--border-hover); }
.platform-card .platform-icon { font-size: 1.3em; }
.platform-card .platform-name {
    display: block; margin-top: var(--space-2);
    color: var(--accent); font-weight: 600; font-size: var(--text-sm);
}
.platform-card .platform-desc {
    margin-top: 6px;
    font-size: var(--text-xs);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Page Header ===== */
.page-header {
    background: var(--bg-panel);
    padding: 80px var(--space-5);
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(94,106,210,0.06), transparent 70%);
    pointer-events: none;
}
.page-header h1 {
    color: var(--text-primary);
    font-size: var(--text-5xl);
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-3);
    position: relative;
    background: linear-gradient(180deg, var(--text-primary) 0%, rgba(247,248,248,0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-header p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    position: relative;
}
.breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-3) var(--space-5) 0;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 var(--space-2); color: var(--text-tertiary); }

/* ===== Contact Form ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}
.contact-info h3 {
    color: var(--text-primary);
    margin-bottom: 14px;
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.contact-info p { line-height: 2.2; font-size: var(--text-sm); color: var(--text-secondary); }
.contact-form label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-size: var(--text-sm);
    font-weight: 500;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-family: inherit;
    transition: border-color 150ms ease;
    outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    background: var(--bg-surface-hover);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { border: none; cursor: pointer; width: 100%; text-align: center; }

/* ===== CTA Section ===== */
.cta-section {
    text-align: center;
    background: var(--bg-surface);
    border-color: var(--border);
}
.cta-section .section-title { border-left: none; padding-left: 0; text-align: center; }

/* ===== Inline Card (for star-ceiling info cards) ===== */
.inline-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: var(--space-4);
    border: 1px solid var(--border);
    font-size: var(--text-sm);
}
.inline-card strong {
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}
.inline-card p { margin-top: 6px; color: var(--text-secondary); font-size: var(--text-xs); }

/* ===== Form Note ===== */
.form-note {
    margin-top: var(--space-3);
    color: var(--text-tertiary);
    font-size: var(--text-xs);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-panel);
    color: var(--text-secondary);
    text-align: center;
    padding: var(--space-12) var(--space-5);
    margin-top: var(--space-12);
    font-size: var(--text-sm);
    border-top: 1px solid var(--border);
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin-bottom: var(--space-2); }
.footer-links {
    margin: 14px 0;
    display: flex; justify-content: center; gap: var(--space-5); flex-wrap: wrap;
}

/* ===== Intro Text ===== */
.intro-text {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.8;
    font-size: var(--text-base);
}

/* ===== Category Title (inside sections) ===== */
.cat-title {
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    color: var(--accent);
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ===== Image Placeholder ===== */
.img-placeholder {
    background: var(--bg-panel);
    border-radius: var(--radius);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    border: 1px solid var(--border);
}
.img-placeholder-tall { height: 360px; }
.img-placeholder-short { height: 200px; }

/* ===== Rich Text Helper ===== */
.rich-text { line-height: 2; font-size: var(--text-base); color: var(--text-secondary); }
.rich-text strong { color: var(--text-primary); }

/* ===== Section sub-text ===== */
.section-sub {
    margin-bottom: var(--space-5);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ===== Table Footnote ===== */
.table-note {
    margin-top: var(--space-3);
    color: var(--text-tertiary);
    font-size: var(--text-xs);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .container { padding: var(--space-10) var(--space-5); }
    .section { padding: var(--space-8); }
    .hero { padding: 80px 20px 70px; }
    .hero h1 { font-size: var(--text-5xl); }
    .page-header { padding: 60px var(--space-5); }
    .page-header h1 { font-size: var(--text-4xl); }
    .gallery-grid.dense { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none; flex-direction: column;
        position: absolute; top: 60px; left: 0; right: 0;
        background: rgba(15,16,17,0.95); padding: var(--space-3) var(--space-5);
        border-bottom: 1px solid var(--border);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    .nav-menu.open { display: flex; }
    .nav-menu li a { padding: 12px 14px; width: 100%; }
    .nav-menu li a.active::after { display: none; }
    .hero h1 { font-size: var(--text-4xl); }
    .hero p { font-size: var(--text-base); }
    .hero { padding: 60px var(--space-5) 50px; }
    .contact-grid { grid-template-columns: 1fr; }
    .section { padding: var(--space-6); border-radius: var(--radius-lg); }
    .section-title { font-size: var(--text-xl); }
    .cases-grid { grid-template-columns: 1fr; }
    .page-header { padding: var(--space-10) var(--space-5); }
    .page-header h1 { font-size: var(--text-2xl); }
    .nav-lang-btn { padding: 10px 12px; width: 100%; border-radius: var(--radius); }
    .gallery-grid.dense { grid-template-columns: repeat(2, 1fr); }
    .product-hero { grid-template-columns: 1fr; }
    .split-showcase { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: var(--text-2xl); }
    .hero { padding: 40px var(--space-4) 40px; }
    .grid-3 { grid-template-columns: 1fr; }
    .app-features { grid-template-columns: 1fr; }
    .footer-links { flex-direction: column; gap: var(--space-2); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .effect-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid.dense { grid-template-columns: 1fr; }
    .section { padding: var(--space-5); }
    .btn { padding: 12px 24px; }
}

/* ==========================================================================
   Media Showcase Components — Linear Design System
   ========================================================================== */

/* ----- Hero Banner Image ----- */
.hero-img-bg {
    position: relative;
    overflow: hidden;
}
.hero-img-bg .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,9,10,0.3) 0%, rgba(8,9,10,0.75) 100%);
    z-index: 0;
}
.hero-img-bg .hero-content {
    position: relative;
    z-index: 1;
}

/* ----- Image Placeholder (SVG-based professional placeholder) ----- */
.img-ph {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-ph::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 40%, rgba(94,106,210,0.06) 100%),
        radial-gradient(ellipse at 30% 20%, rgba(94,106,210,0.08), transparent 60%);
}
.img-ph-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-tertiary);
    font-size: var(--text-sm);
}
.img-ph-content .ph-icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 8px;
    opacity: 0.5;
}
.img-ph-content .ph-label {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.img-ph-16x9 { aspect-ratio: 16 / 9; }
.img-ph-4x3  { aspect-ratio: 4 / 3; }
.img-ph-1x1  { aspect-ratio: 1 / 1; }
.img-ph-21x9 { aspect-ratio: 21 / 9; }

/* ----- Image Gallery Grid ----- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
}
.gallery-grid.dense {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
}
.gallery-grid.team-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}
.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-card);
}
.gallery-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.gallery-item .gallery-img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 400ms ease;
}
.gallery-item:hover .gallery-img {
    transform: scale(1.03);
}
.gallery-item .gallery-caption {
    padding: 10px 14px;
    background: var(--bg-surface);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

/* ----- Featured Hero Image (full-width, large) ----- */
.featured-hero-img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: var(--space-6);
}
.featured-hero-img img,
.featured-hero-img .img-ph {
    width: 100%;
    display: block;
}
.featured-hero-img .img-ph {
    aspect-ratio: 21 / 9;
    min-height: 300px;
}

/* ----- Video Section ----- */
.video-section-wrapper {
    margin-bottom: var(--space-6);
}
.video-embed {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}
.video-embed .video-poster {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at center, rgba(94,106,210,0.12), transparent 70%),
        var(--bg-surface);
    transition: background 300ms ease;
}
.video-embed:hover .video-poster {
    background:
        radial-gradient(ellipse at center, rgba(94,106,210,0.2), transparent 70%),
        var(--bg-surface-hover);
}
.video-embed .play-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 200ms ease, background 200ms ease;
    position: relative;
    z-index: 2;
}
.video-embed:hover .play-btn {
    transform: scale(1.08);
    background: var(--accent-hover);
}
.video-embed .play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}
.video-embed .video-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 16px;
    background: linear-gradient(transparent, rgba(8,9,10,0.85));
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: -0.01em;
}
.video-embed .video-duration {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ----- Video Grid (multiple videos) ----- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

/* ----- Before / After Comparison ----- */
.compare-wrap {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
}
.compare-wrap .compare-after {
    position: absolute;
    inset: 0;
    overflow: hidden;
    width: 50%;
}
.compare-wrap .compare-after .compare-img {
    position: absolute;
    inset: 0;
    width: auto;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}
.compare-wrap .compare-before {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.compare-wrap .compare-before .compare-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.compare-wrap .compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--accent);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 2;
}
.compare-wrap .compare-handle::after {
    content: '◀ ▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    padding: 8px 12px;
    border-radius: var(--radius);
    white-space: nowrap;
    letter-spacing: 0.04em;
}
.compare-label {
    position: absolute;
    bottom: 12px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 3px;
    z-index: 3;
    pointer-events: none;
}
.compare-label.label-before { left: 12px; }
.compare-label.label-after { right: 12px; }

/* ----- Product Hero (large product image with info overlay) ----- */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
    margin-bottom: var(--space-6);
}
.product-hero .product-hero-img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}
.product-hero .product-hero-img .img-ph {
    aspect-ratio: 4 / 3;
}
.product-hero .product-hero-info h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-4);
}
.product-hero .product-hero-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: var(--text-sm);
}

/* ----- Media Card (image + text card hybrid) ----- */
.media-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 200ms ease, transform 200ms ease;
}
.media-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.media-card .media-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    display: block;
}
.media-card .media-card-body {
    padding: var(--space-5);
}
.media-card .media-card-body h4 {
    color: var(--text-primary);
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.media-card .media-card-body p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}
.media-card .media-card-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(94,106,210,0.12);
    color: var(--accent);
    font-size: 11px;
    font-weight: 500;
    border-radius: 3px;
    margin-bottom: 8px;
}

/* ----- Full-width Banner Image Section ----- */
.banner-img-section {
    margin-bottom: var(--space-6);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}
.banner-img-section .img-ph {
    border: none;
    border-radius: 0;
}
.banner-img-section .banner-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 24px 24px;
    background: linear-gradient(transparent, rgba(8,9,10,0.9));
    color: var(--text-primary);
}
.banner-img-section .banner-overlay-text h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    letter-spacing: -0.02em;
}
.banner-img-section .banner-overlay-text p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ----- Split Showcase (image + text side by side) ----- */
.split-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: center;
    margin-bottom: var(--space-6);
}
.split-showcase.reverse { direction: rtl; }
.split-showcase.reverse > * { direction: ltr; }
.split-showcase .split-img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}
.split-showcase .split-img .img-ph { aspect-ratio: 16 / 9; }
.split-showcase .split-text h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
}
.split-showcase .split-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: var(--text-sm);
}

/* ----- Effect Demo Cards (for star ceiling effects) ----- */
.effect-demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}
.effect-demo-card {
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(25,26,27,0.8) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-card);
}
.effect-demo-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.effect-demo-card .demo-visual {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    position: relative;
    overflow: hidden;
    transition: transform 300ms ease;
}
.effect-demo-card:hover .demo-visual {
    transform: scale(1.08);
}
.effect-demo-card .demo-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(94,106,210,0.1), transparent);
    pointer-events: none;
}
.effect-demo-card .demo-label {
    padding: 10px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-primary);
    border-top: 1px solid var(--border);
    letter-spacing: -0.01em;
}

/* ----- Horizontal Scroll Gallery ----- */
.hscroll-gallery {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-4);
}
.hscroll-gallery::-webkit-scrollbar {
    height: 4px;
}
.hscroll-gallery::-webkit-scrollbar-track {
    background: var(--bg-surface);
    border-radius: 2px;
}
.hscroll-gallery::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
    border-radius: 2px;
}
.hscroll-item {
    flex: 0 0 300px;
    scroll-snap-align: start;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 200ms ease;
}
.hscroll-item:hover { border-color: var(--border-hover); }
.hscroll-item .hscroll-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}
.hscroll-item .hscroll-caption {
    padding: 10px 14px;
    background: var(--bg-surface);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

/* ----- Timeline visual ----- */
.timeline {
    position: relative;
    padding-left: 28px;
    margin-top: var(--space-4);
}
.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    margin-bottom: var(--space-6);
    padding-left: var(--space-4);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-primary);
}
.timeline-item .tl-year {
    font-size: var(--text-xs);
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}
.timeline-item h4 {
    color: var(--text-primary);
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.timeline-item p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ----- Stats Row with Icons ----- */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    margin-top: var(--space-4);
}
.stats-row .stat-item {
    text-align: center;
    min-width: 100px;
}
.stats-row .stat-icon {
    font-size: 2em;
    margin-bottom: 4px;
}
.stats-row .stat-value {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.stats-row .stat-desc {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* ----- Pulse animation for live/play indicators ----- */
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    position: relative;
    margin-right: 6px;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: pulse-ring 1.5s ease-out infinite;
}

/* ----- Badge / Tag ----- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.badge-accent {
    background: rgba(94,106,210,0.12);
    color: var(--accent);
    border: 1px solid rgba(94,106,210,0.2);
}
.badge-new {
    background: rgba(94,106,210,0.15);
    color: var(--accent-hover);
    border: 1px solid rgba(94,106,210,0.25);
}

/* ===== Responsive: Media ===== */
@media (max-width: 768px) {
    .video-grid { grid-template-columns: 1fr; }
    .product-hero { grid-template-columns: 1fr; gap: var(--space-4); }
    .product-hero .product-hero-info { text-align: center; }
    .split-showcase { grid-template-columns: 1fr; }
    .split-showcase.reverse { direction: ltr; }
    .hscroll-item { flex: 0 0 240px; }
    .gallery-grid.dense { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid.team-gallery { grid-template-columns: repeat(2, 1fr); }
    .app-features.features-3col { grid-template-columns: repeat(2, 1fr); }
    .effect-demo-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { gap: var(--space-3); }
    .featured-hero-img .img-ph { aspect-ratio: 16 / 9; min-height: 200px; }
    .compare-wrap { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-grid.dense { grid-template-columns: repeat(2, 1fr); }
    .app-features.features-3col { grid-template-columns: repeat(2, 1fr); }
    .effect-demo-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Floating Customer Service Button — Linear Design System
   ========================================================================== */
.floating-cs {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}
.floating-cs-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(94,106,210,0.35);
    transition: all 200ms ease;
    position: relative;
    z-index: 2;
}
.floating-cs-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.06);
    box-shadow: 0 6px 28px rgba(94,106,210,0.45);
}
.floating-cs-btn:active {
    transform: scale(0.96);
}
.floating-cs-panel {
    position: absolute;
    bottom: 66px;
    right: 0;
    width: 260px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: 0 16px 48px rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}
.floating-cs-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.floating-cs-close {
    position: absolute;
    top: 6px;
    right: 10px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 18px;
    border-radius: var(--radius-sm);
    transition: all 150ms ease;
    line-height: 1;
}
.floating-cs-close:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
}
.floating-cs-title {
    text-align: center;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.01em;
}
.floating-cs-qr {
    width: 160px;
    margin: 0 auto var(--space-3);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.floating-cs-qr img {
    display: block;
    width: 100%;
    height: auto;
}
.floating-cs-qr-placeholder {
    color: var(--text-tertiary);
    font-size: var(--text-xs);
    text-align: center;
    line-height: 1.5;
}
.floating-cs-qr-label {
    text-align: center;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-3);
}
.floating-cs-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.floating-cs-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 150ms ease;
    letter-spacing: -0.01em;
}
.floating-cs-link.primary {
    background: var(--accent);
    color: #fff !important;
}
.floating-cs-link.primary:hover {
    background: var(--accent-hover);
    color: #fff !important;
}
.floating-cs-link.secondary {
    background: var(--bg-surface);
    color: var(--text-primary) !important;
    border: 1px solid var(--border);
}
.floating-cs-link.secondary:hover {
    border-color: var(--border-hover);
}
@media (max-width: 480px) {
    .floating-cs {
        bottom: 16px;
        right: 16px;
    }
    .floating-cs-panel {
        width: 240px;
        right: -8px;
    }
}

/* ==========================================================================
   Floating Customer Service — In-page Chat Bubble (WeCom Live Chat)
   ========================================================================== */
.floating-cs-chat {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: var(--space-6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, visibility 200ms ease;
    pointer-events: none;
}
.floating-cs-chat.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.floating-cs-chat-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.floating-cs-chat-box {
    position: relative;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 48px);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(12px) scale(0.98);
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-cs-chat.open .floating-cs-chat-box {
    transform: translateY(0) scale(1);
}
.floating-cs-chat-head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
}
.floating-cs-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.floating-cs-chat-head-text {
    flex: 1;
    min-width: 0;
}
.floating-cs-chat-name {
    margin: 0;
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.2;
}
.floating-cs-chat-status {
    margin: 2px 0 0;
    font-size: 11px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
}
.floating-cs-chat-status .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}
.floating-cs-chat-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    font-size: 20px;
    border-radius: var(--radius-sm);
    transition: all 150ms ease;
    line-height: 1;
    flex-shrink: 0;
}
.floating-cs-chat-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.floating-cs-chat-body {
    padding: var(--space-5);
    overflow-y: auto;
    background: var(--bg-primary);
}
.floating-cs-chat-msg {
    display: flex;
    margin-bottom: var(--space-4);
}
.floating-cs-chat-msg.incoming {
    justify-content: flex-start;
}
.floating-cs-chat-msg .bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    line-height: 1.55;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-bottom-left-radius: 2px;
}
.floating-cs-chat-qr {
    width: 180px;
    margin: 0 auto;
    padding: var(--space-3);
    background: #fff;
    border-radius: var(--radius);
}
.floating-cs-chat-qr img {
    display: block;
    width: 100%;
    height: auto;
}
.floating-cs-chat-qr-label {
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.4;
    margin-top: var(--space-2);
}
.floating-cs-chat-foot {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border);
    background: var(--bg-panel);
}
.floating-cs-chat-open {
    display: block;
    text-align: center;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    color: #fff !important;
    background: var(--accent);
    transition: all 150ms ease;
}
.floating-cs-chat-open:hover {
    background: var(--accent-hover);
}
@media (max-width: 480px) {
    .floating-cs-chat {
        padding: var(--space-4);
    }
    .floating-cs-chat-box {
        width: 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   Form Validation — Linear Design System
   ========================================================================== */
.form-field {
    position: relative;
}
.form-field .error-msg {
    display: none;
    color: #ff6b6b;
    font-size: var(--text-xs);
    margin-top: 3px;
    margin-bottom: 0;
    line-height: 1.5;
}
.form-field.error input,
.form-field.error textarea {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 1px rgba(255,107,107,0.15);
}
.form-field.error .error-msg {
    display: block;
}
.form-field.success input,
.form-field.success textarea {
    border-color: #2ecc71 !important;
    box-shadow: 0 0 0 1px rgba(46,204,113,0.12);
}
.form-submit-feedback {
    display: none;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    margin-top: var(--space-3);
    line-height: 1.5;
}
.form-submit-feedback.success {
    display: block;
    background: rgba(46,204,113,0.1);
    color: #2ecc71;
    border: 1px solid rgba(46,204,113,0.2);
}
.form-submit-feedback.error {
    display: block;
    background: rgba(255,107,107,0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255,107,107,0.18);
}

/* ==========================================================================
   Scroll Reveal Animations — Enhanced Linear Design System
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }
.reveal-delay-6 { transition-delay: 480ms; }

.card.reveal.revealed:hover,
.step.reveal.revealed:hover {
    transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .hero::before { animation: none !important; }
}

/* ===== Enhanced Section Subtitle ===== */
.section-sub {
    margin-bottom: var(--space-5);
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.7;
}

/* ===== Platform Card Enhanced ===== */
.platform-card {
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(25,26,27,0.8) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--border);
    transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-card);
}
.platform-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ===== Split Showcase Enhanced ===== */
.split-showcase .split-text h2 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-bottom: var(--space-4);
}
.split-showcase .split-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: var(--text-base);
}

/* ===== Video Embed Enhanced ===== */
.video-embed {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 250ms ease;
}
.video-embed:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}
