/* 燕钛云创官网主样式 - 科技感深色主题 */
:root {
    --primary: #00D2FF;
    --primary-dark: #00A8CC;
    --accent: #7C3AED;
    --accent-2: #F472B6;
    --bg: #0B0F17;
    --bg-2: #111827;
    --bg-3: #1A2235;
    --surface: #1E293B;
    --surface-light: #2A3A55;
    --text: #E2E8F0;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --border: rgba(148, 163, 184, 0.12);
    --glow: 0 0 20px rgba(0, 210, 255, 0.18);
    --glow-accent: 0 0 20px rgba(124, 58, 237, 0.18);
    --gradient-hero: linear-gradient(135deg, #00D2FF 0%, #7C3AED 50%, #F472B6 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 210, 255, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    --gradient-dark: linear-gradient(180deg, rgba(11,15,23,0) 0%, rgba(11,15,23,0.95) 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --max-width: 1280px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header .eyebrow {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.25;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
}

/* Particles */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.45;
    pointer-events: none;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: rgba(11, 15, 23, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
}

.logo img { height: 34px; width: auto; }

.main-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.2s;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.nav-cta {
    padding: 8px 18px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.25s;
}

.nav-cta:hover {
    background: var(--primary);
    color: var(--bg);
    box-shadow: var(--glow);
}

.main-nav a.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    margin-left: 6px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: all 0.25s;
}

.main-nav a.lang-switch:hover,
.main-nav a.lang-switch:focus-visible {
    background: var(--primary);
    color: var(--bg);
    box-shadow: var(--glow);
}

.mobile-nav a.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0 0;
    padding: 8px 16px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    color: var(--primary);
    font-weight: 700;
}

.mobile-nav a.lang-switch:hover {
    background: var(--primary);
    color: var(--bg);
}

.mobile-menu-btn {
    display: block;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(11, 15, 23, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    color: var(--text-muted);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 1024px) {
    .main-nav { display: flex; }
    .mobile-menu-btn { display: none; }
    .mobile-nav { display: none !important; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 20% 30%, rgba(0, 210, 255, 0.10) 0%, transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.12) 0%, transparent 40%),
                var(--bg);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 210, 255, 0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 210, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 80%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero h1 .gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.hero-stats .stat {
    border-left: 2px solid var(--primary);
    padding-left: 16px;
}

.hero-stats .stat .num {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    display: block;
}

.hero-stats .stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

/* Sections */
section { padding: 96px 0; }
section.alt { background: var(--bg-2); }

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 210, 255, 0.35);
    box-shadow: var(--glow);
}

.card:hover::before { opacity: 1; }

.card .icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(0, 210, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 18px;
    border: 1px solid rgba(0, 210, 255, 0.18);
}

.card h3 { font-size: 1.25rem; margin-bottom: 10px; position: relative; }
.card p { color: var(--text-muted); font-size: 0.95rem; position: relative; }
.card .link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
}

/* Product cards */
.product-card {
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--glow);
    border-color: rgba(0, 210, 255, 0.35);
}

.product-card .media {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.06), rgba(124, 58, 237, 0.06));
    padding: 24px;
    position: relative;
}

.product-card .media img { max-height: 100%; object-fit: contain; }

.product-card .badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(11, 15, 23, 0.8);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card .body { padding: 24px; }
.product-card .body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.product-card .body p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 14px; }
.product-card .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.product-card .tag {
    background: rgba(0, 210, 255, 0.08);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}
a.tag {
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
a.tag:hover, a.tag:focus-visible {
    background: rgba(0, 210, 255, 0.22);
    color: #fff;
    transform: translateY(-1px);
}
[id] { scroll-margin-top: 96px; }

/* Feature list */
.feature-list { display: grid; gap: 16px; }
.feature-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: var(--text-muted);
}
.feature-list li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: rgba(0, 210, 255, 0.12);
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Tech section */
.tech-visual {
    position: relative;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 32px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-center {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-align: center;
    box-shadow: var(--glow);
    position: relative;
    z-index: 2;
}

.diagram-node {
    position: absolute;
    width: 130px;
    padding: 12px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.diagram-node strong { color: var(--text); display: block; margin-bottom: 4px; }

/* Product card link (wraps whole card, keeps grid layout) */
a.card-link { display: contents; color: inherit; text-decoration: none; }

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.data-table th, .data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--surface);
    color: var(--primary);
    font-weight: 600;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* FAQ */
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
}

.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--primary);
}

.faq-item[open] summary::after { content: "−"; }

.faq-item .answer {
    padding: 0 22px 18px;
    color: var(--text-muted);
}

/* Insights */
.insight-card { display: flex; flex-direction: column; }
.insight-card .meta {
    display: flex;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}
.insight-card h3 { margin-bottom: 8px; }

/* Article */
.article-body {
    max-width: 860px;
    margin: 0 auto;
    color: var(--text);
}

.article-body h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
    color: #fff;
}

.article-body p { margin-bottom: 16px; color: var(--text-muted); }
.article-body ul { margin-left: 20px; list-style: disc; margin-bottom: 16px; color: var(--text-muted); }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: #fff; }

/* Footer */
.site-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 72px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 48px;
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 16px 0;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 18px;
    color: #fff;
}

.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a:hover { color: var(--primary); }

.friend-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.friend-links h5 { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 10px; }
.friend-links .links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.friend-links a { font-size: 0.68rem; color: var(--text-dim); }

/* Form */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.9rem; color: var(--text-muted); }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Utilities */
.text-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .split-layout { grid-template-columns: 1fr 1fr; }
}

.hero-product {
    background: radial-gradient(circle at 70% 40%, rgba(0, 210, 255, 0.10), transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.10), transparent 40%),
                var(--bg);
    padding-top: 140px;
    padding-bottom: 80px;
}

.breadcrumb {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--primary); }

.two-col { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }

.three-col { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .three-col { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .three-col { grid-template-columns: repeat(3, 1fr); } }

.glass {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 90;
}
.scroll-top.show { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); border-color: var(--primary); }

/* SVG placeholders */
.svg-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}
