/* ═══════════════════════════════════════════════
   瑞英车服 — 共享样式（导航 + 页脚 + CSS变量）
   所有子页面统一引用此文件
   ═══════════════════════════════════════════════ */

/* ===== 首页暗色科技风 CSS 变量 ===== */
:root {
    --bg: #0A0E1A;
    --bg-card: rgba(255,255,255,.04);
    --bg-light: rgba(255,255,255,.02);
    --primary: #00D4FF;
    --primary-dim: rgba(0,212,255,.08);
    --accent: #7B2CBF;
    --text: #E8ECF1;
    --text-dim: #8892b0;
    --text-muted: #5a6378;
    --radius: 16px;
    --radius-full: 999px;
    --max-w: 1200px;
    --gradient: linear-gradient(135deg, #00D4FF, #7B2CBF);
}
*, *::before, *::after { box-sizing: border-box; }
body {
    margin:0; padding:0;
    background:var(--bg); color:var(--text);
    font-family: 'Noto Sans SC','PingFang SC','-apple-system',BlinkMacSystemFont,sans-serif;
    -webkit-font-smoothing:antialiased;
}

/* --- 导航栏 --- */
.sub-navbar {
    position:fixed; top:0; left:0; right:0; z-index:1000;
    background:rgba(10,14,26,.92); backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(255,255,255,.06);
    transition:all .3s;
}
.sub-navbar .nav-inner {
    max-width:1400px; margin:0 auto; padding:0 40px;
    height:72px; display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.sub-navbar .nav-brand img { height:44px; width:auto; border-radius:4px; }
.sub-navbar .nav-links { display:flex; gap:4px; list-style:none; align-items:center; margin:0; padding:0; }
.sub-navbar .nav-links a {
    padding:10px 18px; color:#8892b0; font-weight:500; font-size:15px;
    border-radius:8px; transition:all .25s ease; text-decoration:none;
}
.sub-navbar .nav-links a:hover { color:#00D4FF; background:rgba(0,212,255,.08); }
.sub-navbar .nav-links a.active { color:#00D4FF; background:rgba(0,212,255,.08); }
.sub-navbar .nav-cta {
    background:linear-gradient(135deg,#00D4FF,#7B2CBF); color:#0A0E1A !important;
    box-shadow:0 4px 15px rgba(0,212,255,.3); font-weight:600; text-decoration:none;
    padding:10px 24px; border-radius:10px; font-size:14px;
}
.sub-navbar .nav-cta:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,212,255,.4); }
.sub-navbar .menu-btn {
    display:none; flex-direction:column; gap:5px;
    background:none; border:none; cursor:pointer; padding:8px;
}
.sub-navbar .menu-btn span {
    display:block; width:24px; height:2px;
    background:#E8ECF1; border-radius:2px; transition:all .3s;
}
.sub-navbar .menu-btn.active span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.sub-navbar .menu-btn.active span:nth-child(2) { opacity:0; }
.sub-navbar .menu-btn.active span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

@media (max-width:768px) {
    .sub-navbar .nav-links, .sub-navbar .nav-cta { display:none; }
    .sub-navbar .menu-btn { display:flex; }
    .sub-navbar .nav-links {
        display:flex; flex-direction:column; position:absolute;
        top:72px; left:0; right:0; z-index:999;
        background:rgba(15,18,30,.96);
        backdrop-filter:blur(20px);
        border-bottom:1px solid rgba(255,255,255,.06);
        padding:12px 0; gap:0;
        transform:translateY(-10px); opacity:0; pointer-events:none;
        transition:all .3s ease;
    }
    .sub-navbar .nav-links.open {
        transform:translateY(0); opacity:1; pointer-events:auto;
    }
    .sub-navbar .nav-links li { width:100%; }
    .sub-navbar .nav-links li a {
        display:block; padding:14px 24px; font-size:15px;
        border-bottom:1px solid rgba(255,255,255,.04);
    }
    .sub-navbar .nav-inner { padding:0 18px; }
}

/* --- 页脚 --- */
.sub-footer {
    background:#020C1B; border-top:1px solid rgba(255,255,255,.08);
    padding:60px 24px 0; margin-top:60px;
}
.sub-footer-inner { max-width:1200px; margin:0 auto; }
.sub-footer-grid {
    display:grid; grid-template-columns:2fr 1fr 1fr 1fr;
    gap:40px; margin-bottom:50px;
}
.sub-footer a { color:#8892b0; text-decoration:none; }
.sub-footer a:hover { color:#00D4FF; }
.sub-footer h4 { color:#E8ECF1; font-size:1rem; margin-bottom:20px; }
.sub-footer ul { list-style:none; padding:0; margin:0; }
.sub-footer li { margin-bottom:12px; }
.sub-footer-desc { max-width:320px; margin-top:16px; color:#8892b0; line-height:1.7; font-size:14px; }
.sub-footer-contact { list-style:none; margin-top:18px; padding:0; }
.sub-footer-contact li { font-size:14px; color:#8892b0; margin-bottom:10px; }
.sub-footer-bottom {
    border-top:1px solid rgba(255,255,255,.08);
    padding:24px 0; display:flex; justify-content:space-between;
    align-items:center; flex-wrap:wrap; gap:16px;
    color:#8892b0; font-size:13px;
}
.sub-footer-copy { max-width:1200px; margin:0 auto; padding:16px 0 24px; font-size:11px; color:#5a6378; line-height:1.6; }

@media (max-width:768px) {
    .sub-footer-grid { grid-template-columns:1fr 1fr; gap:30px; }
    .sub-footer-bottom { flex-direction:column; text-align:center; }
}
@media (max-width:480px) {
    .sub-footer-grid { grid-template-columns:1fr; }
}

/* ===== renderNavbar 组件样式 ===== */
.navbar {
    position:fixed; top:0; left:0; right:0;
    background:rgba(10,14,26,.92);
    backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
    z-index:1000;
    border-bottom:1px solid rgba(255,255,255,.06);
    transition:all .3s;
}
.navbar.scrolled {
    background:rgba(10,14,26,.97);
    box-shadow:0 4px 20px rgba(0,0,0,.3);
}
.nav-brand {
    display:flex; align-items:center; gap:14px;
    font-size:20px; font-weight:700; color:#E8ECF1;
    text-decoration:none;
}
.nav-brand img { height:44px; width:auto; border-radius:4px; }
.nav-inner {
    max-width:1400px; margin:0 auto; padding:0 40px;
    height:72px; display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.nav-inner .logo img { height:44px; width:auto; border-radius:4px; }
.nav-inner .logo { display:flex; align-items:center; text-decoration:none; }
.nav-links { display:flex; gap:4px; list-style:none; align-items:center; margin:0; padding:0; }
.nav-links a {
    padding:10px 18px; color:#8892b0; font-weight:500; font-size:15px;
    border-radius:8px; transition:all .25s ease; text-decoration:none;
}
.nav-links a:hover { color:#00D4FF; background:rgba(0,212,255,.08); }
.nav-links a.active { color:#00D4FF; background:rgba(0,212,255,.08); }

/* --- Navigation Dropdown --- */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-arrow { font-size: 10px; margin-left: 2px; opacity: 0.6; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0F1219;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    z-index: 1000;
    list-style: none;
    margin: 4px 0 0 0;
}
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #8892b0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0;
    transition: all .2s;
}
.dropdown-menu li a:hover {
    color: #00D4FF;
    background: rgba(0,212,255,.08);
}
.nav-dropdown:hover .dropdown-menu {
    display: block;
}
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        background: rgba(255,255,255,.03);
        border: none;
        box-shadow: none;
        border-radius: 8px;
        margin: 4px 0 4px 16px;
        padding: 4px 0;
    }
    .nav-dropdown:hover .dropdown-menu { display: none; }
    .nav-dropdown.open .dropdown-menu { display: block; }
    .dropdown-menu li a { padding: 8px 16px; }
}
.nav-cta {
    background:linear-gradient(135deg,#00D4FF,#7B2CBF); color:#0A0E1A !important;
    box-shadow:0 4px 15px rgba(0,212,255,.3); font-weight:600; text-decoration:none;
    padding:10px 24px; border-radius:10px; font-size:14px;
}
.nav-cta:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,212,255,.4); }
.menu-btn {
    display:none; flex-direction:column; gap:5px;
    background:none; border:none; cursor:pointer; padding:8px;
}
.menu-btn span {
    display:block; width:24px; height:2px;
    background:#E8ECF1; border-radius:2px; transition:all .3s;
}

@media (max-width:768px) {
    .nav-links, .nav-cta { display:none; }
    .menu-btn { display:flex; }
    .nav-links.open {
        display:flex; flex-direction:column; position:absolute;
        top:72px; left:0; right:0; z-index:999;
        background:rgba(15,18,30,.96);
        backdrop-filter:blur(20px);
        border-bottom:1px solid rgba(255,255,255,.06);
        padding:12px 0; gap:0;
    }
    .nav-links.open li { width:100%; }
    .nav-links.open li a {
        display:block; padding:14px 24px; font-size:15px;
        border-bottom:1px solid rgba(255,255,255,.04);
    }
    .nav-inner { padding:0 18px; }
}

/* ===== renderFooter 组件样式 ===== */
.footer {
    background:#020C1B; border-top:1px solid rgba(255,255,255,.08);
    padding:60px 24px 0; margin-top:60px;
}
.footer .container { max-width:1200px; margin:0 auto; }
.footer-grid {
    display:grid; grid-template-columns:2fr 1fr 1fr 1fr;
    gap:40px; margin-bottom:50px;
}
.footer a { color:#8892b0; text-decoration:none; }
.footer a:hover { color:#00D4FF; }
.footer h4 { color:#E8ECF1; font-size:1rem; margin-bottom:20px; }
.footer ul { list-style:none; padding:0; margin:0; }
.footer li { margin-bottom:12px; }
.footer-brand p { max-width:320px; margin-top:16px; color:#8892b0; line-height:1.7; font-size:14px; }
.footer-contact { list-style:none; margin-top:18px; padding:0; }
.footer-contact li { font-size:14px; color:#8892b0; margin-bottom:10px; }
.footer-bottom {
    border-top:1px solid rgba(255,255,255,.08);
    padding:24px 0; display:flex; justify-content:space-between;
    align-items:center; flex-wrap:wrap; gap:16px;
    color:#8892b0; font-size:13px;
}

/* ===== renderAIFloat 组件样式 ===== */
.ai-float {
    position:fixed; right:24px; bottom:100px;
    width:56px; height:56px; border-radius:50%;
    background:linear-gradient(135deg,#00D4FF,#7B2CBF);
    display:flex; align-items:center; justify-content:center;
    font-size:24px; text-decoration:none;
    box-shadow:0 8px 24px rgba(0,212,255,.3);
    z-index:999; transition:all .3s;
    animation:ai-pulse 2s infinite;
}
.ai-float:hover { transform:scale(1.1); box-shadow:0 12px 32px rgba(0,212,255,.5); }
@keyframes ai-pulse {
    0%,100% { box-shadow:0 8px 24px rgba(0,212,255,.3); }
    50% { box-shadow:0 8px 24px rgba(0,212,255,.6); }
}

@media (max-width:768px) {
    .footer-grid { grid-template-columns:1fr 1fr; gap:30px; }
    .footer-bottom { flex-direction:column; text-align:center; }
}
@media (max-width:480px) {
    .footer-grid { grid-template-columns:1fr; }
}


/* ===== 通用页面布局 ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width:768px) {
    .container { padding: 0 20px; }
}

/* --- Hero 区域 --- */
.page-hero {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 16px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.page-hero p {
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}
.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb span { margin: 0 6px; }

/* --- 内容区块 --- */
.content-section {
    .content-section { padding: 48px 0; }
    position: relative; z-index: 1;
}
    position: relative; z-index: 1;

/* --- 区块标题 --- */
.section-header {
    text-align: center;
    margin-bottom: 36px;
}
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--primary-dim);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
}
.section-header p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}
@media (max-width:768px) {
    .section-header h2 { font-size: 22px; }
    .section-header { margin-bottom: 32px; }
}

/* --- 动画 --- */
.fade-in-up {
    opacity: 1;
    transform: none;
    transition: all .6s cubic-bezier(.22,1,.36,1);
}
.fade-in-up.visible { opacity:1; transform:translateY(0); }
.delay-1 { transition-delay:.15s; }
.delay-2 { transition-delay:.3s; }
.delay-3 { transition-delay:.45s; }

.reveal {
    opacity: 1;
    transform: none;
    transition: all .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity:1; transform:translateY(0); }

/* --- CTA区块 --- */
.solution-cta {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(0,212,255,.08), rgba(123,44,191,.08));
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.06);
}
.solution-cta h2 { font-size: 22px; margin-bottom: 10px; }
.solution-cta p { color: var(--text-dim); font-size: 15px; margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.solution-cta .btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #0A0E1A;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all .3s;
}
.solution-cta .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,212,255,.3); }
/* === 文章页面内容居中 === */
body > *:not(.navbar):not(.footer):not(script):not(.sub-navbar):not(.sub-footer):not(.back-to-top):not(.ai-float):not(#particles-canvas) {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}
.footer {
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

/* === 星空粒子背景 === */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}
