/* =============================================================
 * 站点公共样式 common.css
 * 引用页面：全站页面（index / join / news / products / solutions 等）
 * 内容：全局变量 / 基础重置 / 按钮 / 导航 / 通用版式 / 动画 / 模态框 / 页脚
 * 注意：页面专属 <style> 必须在本文件之后引入，以便覆盖公共样式
 * ============================================================= */

/* ===== 全局重置 & 变量 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2B7A9E;
    --primary-dark: #1E5A78;
    --primary-light: #E3F0F7;
    --secondary: #5BAF7A;
    --secondary-light: #E8F5EE;
    --accent: #F5A623;
    --bg-light: #F8FBF9;
    --text-dark: #1F2A3A;
    --text-muted: #4A5A6E;
    --white: #FFFFFF;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font: 'Inter', 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(43, 122, 158, 0.2);
}
.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(43, 122, 158, 0.3);
}
.btn-sm {
    padding: 9px 20px;
    font-size: 0.88rem;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(43, 122, 158, 0.2);
}
.btn-accent {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.25);
}
.btn-accent:hover {
    background: #d4911e;
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.35);
}
/* 产品官网入口按钮（仅产品详情页有官网的产品使用）：橙色渐变 + 外链图标 + 光晕，深蓝 Hero 上最高视觉优先级 */
.btn-official {
    background: linear-gradient(135deg, #F5A623 0%, #F27D22 100%);
    color: var(--white);
    font-size: 1.05rem;
    padding: 14px 36px;
    box-shadow: 0 6px 20px rgba(242, 125, 34, 0.35);
}
.btn-official:hover {
    background: linear-gradient(135deg, #E09A1F 0%, #E06D15 100%);
    box-shadow: 0 10px 28px rgba(242, 125, 34, 0.45);
    transform: translateY(-2px);
}
.btn-official i {
    margin-right: 8px;
}
.btn-light {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.btn-light:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.65);
    color: var(--white);
    box-shadow: none;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ===== 子页面 Hero 横幅（解决方案 / 产品中心等） ===== */
.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1E5A78 0%, #2B7A9E 55%, #3E9BBE 100%);
    color: var(--white);
    text-align: center;
    padding: 170px 0 90px;
}
.page-hero::before,
.page-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.page-hero::before {
    width: 420px;
    height: 420px;
    top: -140px;
    left: -120px;
}
.page-hero::after {
    width: 320px;
    height: 320px;
    bottom: -160px;
    right: -80px;
}
.page-hero .container {
    position: relative;
    z-index: 2;
}
.page-hero h1 {
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}
.page-hero .hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.86);
    margin: 0 auto 32px;
    line-height: 1.8;
}
.page-hero .hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 992px) {
    .page-hero {
        padding: 150px 0 70px;
    }
    .page-hero h1 {
        font-size: 2.2rem;
    }
}
@media (max-width: 600px) {
    .page-hero {
        padding: 130px 0 60px;
    }
    .page-hero h1 {
        font-size: 1.8rem;
    }
    .page-hero .hero-sub {
        font-size: 0.95rem;
    }
}

/* ===== 导航 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
    padding: 16px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.02);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}
.logo-img {
    height: 48px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 6px;
}
.nav-links {
    display: flex;
    gap: 34px;
    align-items: center;
    list-style: none;
}
.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 4px;
}
.nav-links a:hover {
    color: var(--primary);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}
.nav-links a.active::after {
    width: 100%;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 4px;
    transition: var(--transition);
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.05);
        transform: translateY(-120%);
        transition: var(--transition);
        opacity: 0;
        pointer-events: none;
        border-bottom: 1px solid rgba(0,0,0,0.04);
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .hamburger {
        display: flex;
    }
    .logo-img {
        height: 38px;
    }
}

/* ===== 通用标题 & 动画 ===== */
.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.section-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.15rem;
    margin: 0 auto 48px;
}
.section {
    padding: 80px 0;
}
.section-alt {
    background: var(--bg-light);
}

/* 区块底部「查看更多」按钮行 */
.section-more {
    text-align: center;
    margin-top: 44px;
}

/* 滚动淡入动画 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 微信客服浮标 ===== */
.float-widget {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 10px;
    border-radius: 16px;
    background: linear-gradient(135deg, #07C160 0%, #06AD56 100%);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.35);
    z-index: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.float-widget:hover {
    transform: translateY(calc(-50% - 3px));
    box-shadow: 0 10px 28px rgba(7, 193, 96, 0.45);
}
.float-widget svg {
    width: 28px;
    height: 28px;
    display: block;
    transform-origin: center;
    animation: fwBlink 1.4s ease-in-out infinite;
}
@keyframes fwBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.86); }
}
.float-widget .fw-label {
    color: #fff;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .float-widget {
        right: 16px;
        top: auto;
        bottom: 20px;
        transform: none;
        padding: 10px 8px;
        gap: 3px;
    }
    .float-widget:hover { transform: translateY(-3px); }
    .float-widget svg { width: 24px; height: 24px; }
    .float-widget .fw-label { font-size: 10px; }
}

/* ===== 模态框 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 700px;
    width: 100%;
    padding: 48px 40px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
    animation: modalIn 0.35s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: #f0f0f0;
    color: var(--text-dark);
    transform: rotate(90deg);
}

/* 模态框内容（标题 / 正文 / 列表） */
.modal-box h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--primary);
}
.modal-box .modal-body {
    color: var(--text-muted);
    line-height: 1.8;
}
.modal-box .modal-body ul {
    list-style: none;
    margin-top: 16px;
}
.modal-box .modal-body ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f7f6;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.modal-box .modal-body ul li i {
    color: var(--secondary);
    margin-top: 4px;
    width: 20px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .modal-box {
        padding: 32px 20px;
    }
}

/* ===== 页脚 ===== */
.footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.7);
    padding: 40px 0 24px;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer .footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer .footer-logo-wrapper .logo-img {
    height: 34px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    filter: brightness(0) invert(1) opacity(0.9);
}
.footer a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}
.footer a:hover {
    color: var(--white);
}
.footer .footer-legal {
    font-size: 0.85rem;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.footer .footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.footer .footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    transition: var(--transition);
}
.footer .footer-links a:hover {
    color: var(--white);
}
.footer .footer-links .sep {
    color: rgba(255,255,255,0.2);
}

@media (max-width: 600px) {
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
    .footer .footer-legal {
        justify-content: center;
    }
}

/* ===== 标签（详情页概述区） ===== */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    font-size: 0.8rem; color: var(--text-muted);
    background: #F0F2F5; border: 1px solid #E2E6EB;
    padding: 4px 11px; border-radius: 7px;
}

/* ===== 详情页 Hero ===== */
.detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1E5A78 0%, #2B7A9E 55%, #3E9BBE 100%);
    color: var(--white);
    padding: 160px 0 70px;
}
.detail-hero::before,
.detail-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.detail-hero::before { width: 380px; height: 380px; top: -120px; right: -100px; }
.detail-hero::after { width: 260px; height: 260px; bottom: -130px; left: -80px; }
.detail-hero .container { position: relative; z-index: 2; }
.crumb { font-size: 0.9rem; color: rgba(255,255,255,0.82); margin-bottom: 18px; }
.crumb a { color: rgba(255,255,255,0.95); }
.crumb a:hover { text-decoration: underline; }
.detail-hero h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.25; margin-bottom: 12px; }
.detail-hero .d-slogan { font-size: 1.05rem; color: rgba(255,255,255,0.88); line-height: 1.8; }
.detail-hero .d-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* ===== 详情页区块卡片 ===== */
.d-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 30px;
    margin-top: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
}
.d-sec-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 11px;
}
.d-sec-title::before {
    content: '';
    width: 5px;
    height: 22px;
    border-radius: 3px;
    background: var(--cat-accent, var(--primary));
    flex: none;
}
.d-sec-desc { color: var(--text-muted); margin-bottom: 18px; }

/* 核心功能 / 方案价值 网格 */
.feat-grid, .val-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat-card { border: 1px solid #EDF1F4; border-radius: 12px; padding: 16px; background: #FBFDFC; }
.feat-num { font-size: 0.8rem; font-weight: 800; color: var(--cat-accent, var(--primary)); letter-spacing: .05em; margin-bottom: 6px; }
.feat-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.feat-desc, .val-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.val-card { background: #F5F8FC; border: 1px solid #E7EEF4; border-radius: 12px; padding: 18px; }
.val-num { font-size: 0.85rem; font-weight: 800; color: var(--cat-accent, var(--primary)); margin-bottom: 6px; letter-spacing: .05em; }
.val-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }

/* 应用场景 / 核心归类 */
.scene-list { list-style: none; }
.scene-list li {
    font-size: 0.95rem; color: var(--text-dark);
    padding: 12px 16px; border: 1px dashed #DCE3E8;
    border-radius: 10px; margin-bottom: 9px; background: #FBFCFD; line-height: 1.6;
}

/* 相关产品 / 相关方案 卡片 */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.rel-card {
    display: flex; align-items: center; gap: 12px;
    border: 1px solid #E7EEF4; border-radius: 10px; padding: 12px 14px;
    transition: var(--transition); background: #fff; text-align: left; width: 100%;
    color: inherit;
}
.rel-card:hover { border-color: var(--cat-accent, var(--primary)); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.rel-ico {
    width: 38px; height: 38px; border-radius: 9px; flex: none;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem;
}
.rel-card .r-name { font-size: 0.95rem; font-weight: 700; }
.rel-card .r-sub { font-size: 0.8rem; color: #9AA4B0; }

.back-row { margin-top: 28px; }

/* 应用场景 */
.sc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sc-card, .ind-card, .tl-body { transition: var(--transition); }
.sc-card {
    display: flex; flex-direction: column; gap: 12px;
    border: 1px solid #E7EEF4; border-radius: 12px; padding: 22px;
    background: var(--white); box-shadow: var(--shadow-sm);
}
.sc-card:hover, .tl-body:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sc-head { display: flex; align-items: center; gap: 12px; }
.sc-icon {
    width: 44px; height: 44px; border-radius: 11px; flex: none;
    display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
    background: color-mix(in srgb, var(--cat-accent, var(--primary)) 12%, #fff);
    color: var(--cat-accent, var(--primary));
}
.sc-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); }
.sc-pain { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.sc-list { list-style: none; display: flex; flex-direction: column; gap: 7px; margin: 0; }
.sc-list li {
    font-size: 0.9rem; color: var(--text-dark); line-height: 1.6;
    padding-left: 22px; position: relative;
}
.sc-list li::before {
    content: ''; position: absolute; left: 4px; top: 8px;
    width: 7px; height: 7px; border-radius: 2px;
    background: var(--cat-accent, var(--primary)); opacity: .75;
}
.sc-value {
    margin-top: auto; font-size: 0.85rem; line-height: 1.6;
    background: color-mix(in srgb, var(--cat-accent, var(--primary)) 9%, #fff);
    color: var(--text-dark); border-radius: 9px; padding: 10px 12px;
}
.sc-value b { color: var(--cat-accent, var(--primary)); font-weight: 700; margin-right: 4px; }

.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.ind-card { border: 1px solid #E7EEF4; border-radius: 12px; padding: 16px 18px; background: #FBFDFC; }
.ind-card h4 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.ind-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* 落地四步法（时间轴） */
.tl-list { display: grid; gap: 14px; }
.tl-row { display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: stretch; }
.tl-time {
    font-size: 0.85rem; font-weight: 700; color: var(--cat-accent, var(--primary));
    display: flex; align-items: center; justify-content: flex-end; text-align: right;
    padding-bottom: 4px;
}
.tl-body {
    position: relative; border: 1px solid #E7EEF4; border-left: 4px solid var(--cat-accent, var(--primary));
    border-radius: 12px; padding: 16px 18px; background: var(--white); box-shadow: var(--shadow-sm);
}
.tl-body .tl-step {
    display: inline-block; font-size: 0.75rem; font-weight: 700; color: #fff;
    background: var(--cat-accent, var(--primary)); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px;
}
.tl-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.tl-body p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* 方案定位 */
.d-pos-h { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.d-pos-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.85; margin-bottom: 18px; }
.pos-list { list-style: none; display: grid; gap: 10px; margin: 0; }
.pos-list li {
    font-size: 0.92rem; color: var(--text-dark); line-height: 1.7;
    padding-left: 30px; position: relative;
}
.pos-list li::before {
    content: ''; position: absolute; left: 0; top: 3px;
    width: 20px; height: 20px; border-radius: 50%;
    background: color-mix(in srgb, var(--cat-accent, var(--primary)) 12%, #fff);
}
.pos-list li::after {
    content: '✓'; position: absolute; left: 0; top: 3px;
    width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: var(--cat-accent, var(--primary));
}

@media (max-width: 992px) {
    .feat-grid, .val-grid { grid-template-columns: repeat(2, 1fr); }
    .sc-grid, .ind-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .detail-hero { padding: 130px 0 56px; }
    .detail-hero h1 { font-size: 1.9rem; }
    .feat-grid, .val-grid { grid-template-columns: 1fr; }
    .d-card { padding: 24px 18px; }
    .btn-official { font-size: 1rem; padding: 12px 28px; }
    .tl-row { grid-template-columns: 1fr; gap: 6px; }
    .tl-time { justify-content: flex-start; text-align: left; padding-bottom: 0; }
}
