/* 全众智联 - 品牌设计系统 */
:root {
    /* 主色板 — 企业官网沉稳风格 */
    --primary: #0D2B52;
    --primary-dark: #071A33;
    --primary-light: #1A56A8;
    --secondary: #1A56A8;
    --secondary-dark: #134078;
    --accent: #D4542C;
    --accent-dark: #B84520;
    --accent-light: #E0704A;
    /* 背景 */
    --bg: #FFFFFF;
    --bg-alt: #F5F7FA;
    --bg-dark: #0D2B52;
    /* 文字 */
    --text-dark: #1A1F36;
    --text-body: #4A5568;
    --text-light: #6B7280;
    --text-on-dark: #FFFFFF;
    --text-on-dark-muted: #9BB0CC;
    /* 渐变 */
    --gradient: linear-gradient(135deg, #1A56A8 0%, #0D2B52 100%);
    --gradient-accent: linear-gradient(135deg, #D4542C 0%, #B84520 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(26,86,168,0.04) 0%, rgba(13,43,82,0.02) 100%);
    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(13,43,82,0.04);
    --shadow: 0 4px 8px rgba(13,43,82,0.06);
    --shadow-md: 0 8px 20px rgba(13,43,82,0.08);
    --shadow-lg: 0 14px 32px rgba(13,43,82,0.1);
    --shadow-xl: 0 20px 48px rgba(13,43,82,0.12);
    --shadow-glow: 0 0 28px rgba(26,86,168,0.1);
    /* 圆角 */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 50px;
    /* 过渡 */
    --transition-fast: all .2s cubic-bezier(.4,0,.2,1);
    --transition: all .35s cubic-bezier(.4,0,.2,1);
    --transition-slow: all .6s cubic-bezier(.16,1,.3,1);
}

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

::selection { background: rgba(30,95,191,.18); color: var(--primary-dark); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: rgba(10,46,92,.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(10,46,92,.25); }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    color: var(--text-body);
    background: var(--bg);
    line-height: 1.75;
    overflow-x: hidden;
}

/* ── 导航栏 ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(10,46,92,.06);
    padding: 0 2rem;
    transition: all .4s cubic-bezier(.4,0,.2,1);
}
.navbar.scrolled {
    background: rgba(255,255,255,.98);
    box-shadow: 0 4px 30px rgba(10,46,92,.1);
    border-bottom-color: rgba(10,46,92,.1);
}
.nav-container {
    max-width: 1300px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
}

/* Logo */
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; flex-shrink: 0;
}
.nav-logo-text {
    display: flex; flex-direction: column;
    line-height: 1.2;
}
.nav-logo-text strong {
    font-size: 1.05rem; font-weight: 700;
    color: var(--primary); letter-spacing: 1px;
}
.nav-logo-text small {
    font-size: .65rem; color: var(--text-light);
    letter-spacing: .5px; text-align: center;
}

/* 汉堡菜单 */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 8px; z-index: 1001;
    background: none; border: none;
}
.nav-toggle span {
    display: block; width: 26px; height: 2.5px;
    background: var(--primary); border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5.5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5.5px); }

/* 导航菜单 */
.nav-links {
    display: flex; list-style: none; gap: .25rem; align-items: center;
}
.nav-links a {
    color: var(--text-body); text-decoration: none;
    padding: .5rem .95rem; border-radius: var(--radius-sm);
    font-size: .9rem; font-weight: 500;
    transition: var(--transition-fast); position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 2px; left: 50%;
    transform: translateX(-50%); width: 0; height: 2px;
    background: var(--primary-light); border-radius: 2px;
    transition: width .3s ease;
}
.nav-links a:hover { color: var(--primary-light); background: rgba(30,95,191,.05); }
.nav-links a:hover::after { width: 50%; }
.nav-links a.active { color: var(--primary-light); background: rgba(30,95,191,.08); font-weight: 600; }
.nav-links a.active::after { width: 50%; }

.nav-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-phone {
    color: var(--primary); font-size: .88rem; font-weight: 600;
    text-decoration: none; white-space: nowrap;
    transition: color .2s;
}
.nav-phone:hover { color: var(--accent); }
.nav-cta {
    background: var(--gradient-accent) !important;
    color: #fff !important;
    padding: .55rem 1.4rem !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(255,107,53,.35);
    letter-spacing: .5px;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255,107,53,.5) !important;
}
.nav-admin {
    color: var(--text-light) !important;
    font-size: .78rem !important;
    padding: .35rem .75rem !important;
    opacity: .6;
}
.nav-admin:hover { opacity: 1; }

/* ── 页面头部 ── */
.page-header {
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    padding: 150px 2rem 80px; text-align: center;
    position: relative; overflow: hidden; isolation: isolate;
}
.page-header::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(30,95,191,.07) 0%, transparent 60%),
                radial-gradient(ellipse 60% 60% at 80% 70%, rgba(255,107,53,.04) 0%, transparent 50%);
}
.page-header-bg {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(10,46,92,.025) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(10,46,92,.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.page-header h1 {
    position: relative; z-index: 1;
    font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 900;
    color: var(--primary); margin-bottom: .6rem;
    letter-spacing: -.5px; animation: fadeInUp .6s ease;
}
.page-header .breadcrumb {
    position: relative; z-index: 1;
    font-size: .9rem; color: var(--text-light);
    animation: fadeInUp .6s ease .15s both;
}
.page-header .breadcrumb a {
    color: var(--primary-light); text-decoration: none; transition: color .2s;
}
.page-header .breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.page-header .breadcrumb span { color: var(--text-body); }

/* ── 内容区域 ── */
.content-section {
    max-width: 920px; margin: 0 auto;
    padding: 60px 2rem 80px; background: var(--bg);
}
.content-section h2 {
    font-size: 1.5rem; font-weight: 700; color: var(--text-dark);
    margin: 3rem 0 1rem; padding-bottom: .6rem;
    border-bottom: 2px solid rgba(10,46,92,.08); position: relative;
}
.content-section h2::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 60px; height: 2px; background: var(--gradient); border-radius: 1px;
}
.content-section h2:first-of-type { margin-top: 0; }
.content-section h3 { font-size: 1.15rem; font-weight: 600; margin: 1.8rem 0 .8rem; color: var(--text-dark); }
.content-section p, .content-section li { font-size: .96rem; color: var(--text-body); line-height: 1.9; }
.content-section p { margin-bottom: 1rem; }
.content-section ul, .content-section ol { margin-bottom: 1.2rem; padding-left: 1.8rem; color: var(--text-body); }
.content-section li { margin-bottom: .5rem; padding-left: .2rem; }
.content-section li::marker { color: var(--primary-light); }
.content-section strong { color: var(--text-dark); font-weight: 600; }
.content-section a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 2px; transition: var(--transition-fast); }
.content-section a:hover { color: var(--primary); }

/* ── 页脚 ── */
.footer {
    background: var(--bg-dark); color: var(--text-on-dark-muted);
    padding: 60px 2rem 28px; position: relative;
}
.footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,107,53,.4), rgba(30,95,191,.4), transparent);
}
.footer-container { max-width: 1300px; margin: 0 auto; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem; margin-bottom: 2.5rem;
}
.footer-brand .nav-logo-text { margin-bottom: .8rem; }
.footer-brand p { font-size: .86rem; line-height: 1.75; color: var(--text-on-dark-muted); margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: .8rem; }
.footer-social a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.08); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700; text-decoration: none;
    transition: var(--transition); color: var(--text-on-dark-muted);
    border: 1px solid rgba(255,255,255,.1);
    position: relative;
}
.footer-social a::before {
    content: ''; display: block;
    width: 16px; height: 16px;
    background: currentColor;
    transition: inherit;
}
/* 微信: 聊天气泡 */
.footer-social .social-wechat::before {
    width: 16px; height: 14px;
    border-radius: 6px 6px 6px 2px;
    background: currentColor;
    position: relative;
}
/* 微博: 眼睛形状(圆+三角) */
.footer-social .social-weibo::before {
    width: 16px; height: 12px;
    border-radius: 50%;
    border: 2px solid currentColor;
    background: transparent;
    clip-path: circle(40%);
}
/* 抖音: 音符 */
.footer-social .social-douyin::before {
    width: 0; height: 0;
    background: transparent;
    border-left: 5px solid currentColor;
    border-right: 5px solid currentColor;
    border-bottom: 12px solid currentColor;
    border-top: none;
    border-radius: 2px 2px 0 0;
}
/* LinkedIn */
.footer-social .social-linkedin::before {
    content: 'in';
    font-size: .7rem; font-weight: 800;
    background: transparent;
    color: currentColor;
    width: auto; height: auto;
    line-height: 1;
}
.footer-social a:hover {
    background: var(--accent); color: #fff;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(212,84,44,.3);
}
.footer-col h4 {
    font-size: .95rem; font-weight: 700; color: #fff;
    margin-bottom: 1.2rem; letter-spacing: .5px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .65rem; }
.footer-col ul li a {
    color: var(--text-on-dark-muted); text-decoration: none;
    font-size: .85rem; transition: var(--transition-fast);
    display: inline-block;
}
.footer-col ul li a:hover { color: var(--accent); transform: translateX(4px); }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
    font-size: .82rem; color: rgba(255,255,255,.45);
    padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08);
}
.footer-bottom-links { display: flex; gap: 1.5rem; align-items: center; }
.footer-bottom-links a {
    color: rgba(255,255,255,.45); text-decoration: none;
    transition: color .2s; font-size: .82rem;
}
.footer-bottom-links a:hover { color: var(--accent); }
.footer-bottom-links .beian-text { color: rgba(255,255,255,.45); font-size: inherit; }

/* ── 按钮系统 ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: .8rem 2rem; border-radius: var(--radius-full);
    font-size: .95rem; font-weight: 600; cursor: pointer;
    border: none; font-family: inherit;
    transition: var(--transition); text-decoration: none;
    position: relative; overflow: hidden;
}
.btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
    opacity: 0; transition: opacity .3s;
}
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--gradient); color: #fff;
    box-shadow: 0 4px 20px rgba(30,95,191,.35);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(30,95,191,.5); }

.btn-accent {
    background: var(--gradient-accent); color: #fff;
    box-shadow: 0 4px 20px rgba(255,107,53,.35);
}
.btn-accent:hover { box-shadow: 0 8px 30px rgba(255,107,53,.5); }

.btn-outline {
    background: transparent; color: var(--primary);
    border: 1.5px solid rgba(10,46,92,.2);
}
.btn-outline:hover {
    background: rgba(10,46,92,.04); border-color: var(--primary-light);
}

.btn-white {
    background: #fff; color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.btn-white:hover { box-shadow: 0 8px 30px rgba(0,0,0,.15); }

.btn-row {
    display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap;
}

/* ── 返回顶部 ── */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    background: var(--gradient); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer; border: none;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(26,86,168,.2);
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: all .4s cubic-bezier(.4,0,.2,1);
    z-index: 999;
    font-size: 0;
}
.back-to-top::before {
    content: ''; display: block;
    width: 12px; height: 12px;
    border-right: 2.5px solid #fff;
    border-top: 2.5px solid #fff;
    transform: rotate(-45deg) translateY(2px);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-6px) scale(1.1); box-shadow: var(--shadow-xl), 0 0 30px rgba(26,86,168,.4); }

/* ── 动画 ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* ── 滚动动画 ── */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-delay-5 { transition-delay: .40s; }

/* ── 消息提示 ── */
.msg {
    padding: .8rem 1.2rem; border-radius: var(--radius-sm);
    margin-top: 1rem; font-size: .88rem; font-weight: 500;
    display: none; align-items: center; gap: .5rem;
}
.msg.success {
    background: rgba(16,185,129,.1); color: #34d399;
    border: 1px solid rgba(16,185,129,.2); display: flex;
}
.msg.error {
    background: rgba(239,68,68,.1); color: #f87171;
    border: 1px solid rgba(239,68,68,.2); display: flex;
}

/* ── 加载占位 ── */
.loading-placeholder {
    padding: 3rem 2rem; text-align: center; color: var(--text-light);
    font-size: .92rem; display: flex; align-items: center;
    justify-content: center; gap: .5rem; grid-column: 1 / -1;
}
.loading-placeholder::before {
    content: ''; width: 20px; height: 20px;
    border: 2px solid rgba(10,46,92,.08);
    border-top: 2px solid var(--primary-light);
    border-radius: 50%; animation: spin .7s linear infinite;
}

/* ── 通用 ── */
img, video, canvas, svg { max-width: 100%; height: auto; display: block; }
img { image-rendering: auto; }

/* ── 页面加载动画 ── */
.page-loader {
    position: fixed; inset: 0; background: var(--bg);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.loader-spinner {
    width: 48px; height: 48px;
    border: 3px solid rgba(10,46,92,.08);
    border-top: 3px solid var(--primary-light);
    border-radius: 50%; animation: spin .8s linear infinite;
    margin: 0 auto 1.2rem;
}
.loader-text { color: var(--text-light); font-size: .88rem; letter-spacing: 3px; font-weight: 500; }

/* ── 响应式 ── */
@media (max-width: 1024px) {
    .navbar { padding: 0 1.5rem; }
    .page-header { padding: 140px 1.5rem 70px; }
    .content-section { padding: 50px 1.5rem 70px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 1rem; }
    .nav-container { height: 64px; }
    .nav-toggle { display: flex; }
    .nav-logo-text small { display: none; }
    .nav-right { display: none; }
    .nav-links {
        position: fixed; inset: 0;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column; justify-content: center;
        gap: .6rem;
        opacity: 0; visibility: hidden;
        transition: var(--transition); z-index: 1000;
    }
    .nav-links.active { opacity: 1; visibility: visible; }
    .nav-links a { font-size: 1.1rem; padding: .8rem 2rem; text-align: center; }
    .nav-links .nav-admin { display: inline-flex; justify-content: center; }
    .page-header { padding: 120px 1.2rem 60px; }
    .page-header h1 { font-size: 1.8rem; }
    .content-section { padding: 40px 1.2rem 60px; }
    .content-section h2 { font-size: 1.3rem; }
    .content-section p, .content-section li { font-size: .92rem; }
    .footer { padding: 40px 1.2rem 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: .8rem; }
    .footer-bottom-links { justify-content: center; flex-wrap: wrap; gap: 1rem; }
    .back-to-top { right: 16px; bottom: 20px; width: 42px; height: 42px; }
    .btn { font-size: .9rem; padding: .7rem 1.8rem; }
    .btn-row { justify-content: center; }
}

@media (max-width: 576px) {
    .navbar { padding: 0 .8rem; }
    .nav-container { height: 60px; }
    .nav-logo-text strong { font-size: .9rem; }
    .page-header { padding: 110px 1rem 50px; }
    .page-header h1 { font-size: 1.55rem; }
    .content-section { padding: 32px 1rem 50px; }
    .content-section h2 { font-size: 1.2rem; }
    .content-section p, .content-section li { font-size: .9rem; }
    .footer { padding: 36px 1rem 20px; }
    .btn { font-size: .85rem; padding: .65rem 1.5rem; }
    .back-to-top { right: 12px; bottom: 16px; width: 38px; height: 38px; }
}

@media (max-width: 380px) {
    .page-header { padding: 100px .8rem 40px; }
    .page-header h1 { font-size: 1.35rem; }
    .content-section { padding: 28px .8rem 40px; }
    .content-section h2 { font-size: 1.1rem; }
    .btn { font-size: .82rem; padding: .6rem 1.2rem; width: 100%; justify-content: center; }
}

@media (hover: none) and (pointer: coarse) {
    .btn::before { display: none; }
    .btn:active { transform: scale(.96); }
}

@media (min-width: 1600px) {
    .nav-container, .footer-container, .section-container { max-width: 1400px; }
    .hero-content { max-width: 1100px; }
}

@media print {
    .navbar, .footer, .float-cta, .back-to-top, .page-subnav, .page-loader { display: none !important; }
    body { background: #fff; color: #000; }
    .page-header { background: #fff; padding: 20px 0; text-align: left; }
    .page-header h1 { color: #000; font-size: 1.8rem; }
    .content-section { max-width: 100%; padding: 0; background: #fff; }
    a { color: #000; text-decoration: underline; }
}
