:root {
    --brand: #2563eb;
    --brand-2: #06b6d4;
    --brand-dark: #0f172a;
    --accent: #8b5cf6;
    --ink: #0f172a;
    --muted: #64748b;
    --bg-soft: #f8fafc;
    --border: #e2e8f0;
    --brand-grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}

* { box-sizing: border-box; }

body {
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
    line-height: 1.7;
}

a { text-decoration: none; }

/* 按钮 */
.btn-brand {
    background: var(--brand-grad);
    color: #fff;
    border: none;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.2s;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}
.btn-brand:hover { filter: brightness(1.06); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 99, 235, 0.36); }
.btn-outline-brand {
    border: 1px solid var(--brand);
    color: var(--brand);
    background: transparent;
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s;
}
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.text-brand { color: var(--brand) !important; }

/* 头部（玻璃拟态） */
.site-header { position: sticky; top: 0; z-index: 1030; }
.top-bar { background: var(--brand-dark); color: #aeb8cc; font-size: 13px; padding: 7px 0; }
.top-bar i { color: var(--brand-2); margin-right: 4px; }
.main-nav {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}
.main-nav .logo { height: 38px; }
.brand-text { font-size: 20px; font-weight: 800; color: var(--ink); margin-left: 8px; letter-spacing: .5px; }
.main-nav .nav-link {
    font-size: 16px; font-weight: 500; color: var(--ink);
    padding: 0.6rem 1rem; position: relative;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--brand); }
.main-nav .nav-link.active::after {
    content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 2px;
    height: 3px; background: var(--brand-grad); border-radius: 2px;
}
.btn-contact {
    background: var(--brand-grad); color: #fff !important; border-radius: 8px;
    margin-left: 0.5rem; padding-left: 1.2rem !important; padding-right: 1.2rem !important;
}
.btn-contact:hover { filter: brightness(1.08); }

/* Hero */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0b1220 0%, #142a52 55%, #0c5e6e 100%);
    color: #fff; padding: 5rem 0 4rem;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(circle at 50% 38%, #000, transparent 78%);
    mask-image: radial-gradient(circle at 50% 38%, #000, transparent 78%);
}
.hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(420px 320px at 18% 22%, rgba(37, 99, 235, 0.45), transparent 70%),
        radial-gradient(380px 300px at 84% 30%, rgba(6, 182, 212, 0.38), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
    display: inline-block; padding: 0.35rem 1rem; border-radius: 999px;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 13px; margin-bottom: 1.2rem; backdrop-filter: blur(4px);
}
.hero-badge i { color: var(--brand-2); }
.hero-title { font-size: clamp(30px, 5.5vw, 56px); font-weight: 900; letter-spacing: 1px; }
.hero-subtitle { font-size: clamp(17px, 2.6vw, 24px); margin: 0.8rem 0 0.6rem; font-weight: 600;
    background: linear-gradient(90deg, #fff, #bae6fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: #cbd5e1; max-width: 720px; margin: 0.6rem auto 1.6rem; }
.hero-actions .btn { margin: 0 .4rem; padding: .8rem 2rem; font-weight: 600; }
.hero-metrics {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 2.2rem; margin-top: 2.6rem;
}
.hero-metrics div { display: flex; flex-direction: column; align-items: center; }
.hero-metrics strong { font-size: 30px; font-weight: 800; color: #fff; }
.hero-metrics span { color: #94a3b8; font-size: 13px; }

/* 区块通用 */
.section-light { background: var(--bg-soft); }
.section-head { margin-bottom: 2.6rem; }
.section-title { font-size: 30px; font-weight: 800; color: var(--brand); position: relative; display: inline-block; }
.section-title::after {
    content: ""; display: block; width: 56px; height: 4px; background: var(--brand-grad);
    margin: .6rem auto 0; border-radius: 2px;
}
.section-desc { color: var(--muted); margin-top: .6rem; }
.text-light { color: #fff !important; }
.text-light-soft { color: #cbd5e1 !important; }

/* 数据 */
.stat-item .stat-num { font-size: 38px; font-weight: 800; color: var(--brand); }
.stat-item .stat-label { color: var(--muted); }

/* 技术服务卡 */
.service-card {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 1.8rem 1.5rem; height: 100%; transition: .25s;
}
.service-card:hover {
    transform: translateY(-6px); box-shadow: 0 18px 38px rgba(37, 99, 235, 0.14);
    border-color: transparent;
}
.service-icon, .feature-icon {
    width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center;
    justify-content: center; background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.12));
    color: var(--brand); font-size: 28px; margin-bottom: 1rem;
}
.service-name { font-weight: 700; color: var(--ink); font-size: 19px; }
.service-desc { color: var(--muted); margin-top: .5rem; }
.service-more { display: inline-block; margin-top: .8rem; color: var(--brand); font-weight: 600; font-size: 14px; }
.service-more:hover { color: #1d4ed8; }
.service-more i { transition: .2s; }
.service-more:hover i { transform: translateX(4px); }

/* 技术栈 */
.tech-stack-section { background: linear-gradient(135deg, #0b1220 0%, #142a52 100%); }
.tech-stack-section .section-title.text-light::after { background: linear-gradient(90deg, #06b6d4, #2563eb); }
.tech-chips { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.tech-chip {
    padding: .5rem 1.1rem; border-radius: 999px; font-size: 14px; font-weight: 600;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); color: #e2e8f0;
    transition: .2s;
}
.tech-chip:hover { background: rgba(6, 182, 212, 0.18); border-color: var(--brand-2); color: #fff; transform: translateY(-2px); }

/* 服务流程 */
.process-row { counter-reset: step; }
.process-card {
    position: relative; background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 1.8rem 1.5rem 1.5rem; height: 100%; transition: .25s;
}
.process-card:hover { box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1); transform: translateY(-4px); }
.process-no {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; color: #fff; background: var(--brand-grad); margin-bottom: 1rem;
}
.process-card h5 { font-weight: 700; }
.process-card p { color: var(--muted); margin: 0; }

/* 发展历程时间线 */
.timeline { position: relative; max-width: 960px; margin: 0 auto; padding: 1rem 0; }
.timeline::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
    background: linear-gradient(180deg, var(--brand), var(--brand-2)); transform: translateX(-50%);
}
.timeline-item { position: relative; width: 50%; padding: 0 2.4rem 2.2rem 0; }
.timeline-item:nth-child(even) { margin-left: 50%; padding: 0 0 2.2rem 2.4rem; }
.timeline-dot {
    position: absolute; top: 6px; right: -8px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--brand-grad); border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18); z-index: 1;
}
.timeline-item:nth-child(even) .timeline-dot { right: auto; left: -8px; }
.timeline-card {
    position: relative; background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 1.4rem 1.5rem; transition: .25s;
}
.timeline-card:hover { box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1); transform: translateY(-4px); }
.timeline-year {
    display: inline-block; font-size: 14px; font-weight: 800; color: #fff; background: var(--brand-grad);
    padding: 2px 12px; border-radius: 999px; margin-bottom: .6rem;
}
.timeline-card h5 { font-weight: 700; margin-bottom: .4rem; }
.timeline-card p { color: var(--muted); margin: 0; }
@media (max-width: 767.98px) {
    .timeline::before { left: 8px; }
    .timeline-item, .timeline-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 1.8rem 2.4rem; }
    .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: 0; right: auto; }
}

/* 合作伙伴 */
.partner-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.partner-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem;
    background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.6rem 1rem;
    transition: .25s;
}
.partner-item:hover { box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1); transform: translateY(-4px); border-color: var(--brand-2); }
.partner-item img { height: 46px; width: auto; max-width: 80%; object-fit: contain; }
.partner-item span { font-size: 14px; font-weight: 600; color: var(--muted); }
@media (max-width: 767.98px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }

/* 优势 */
.feature-card {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 1.8rem 1.4rem; height: 100%; text-align: center; transition: .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(37, 99, 235, 0.12); border-color: transparent; }
.feature-icon { margin: 0 auto 1rem; background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(37, 99, 235, 0.12)); color: var(--accent); }
.feature-card h5 { font-weight: 700; margin-bottom: .5rem; }
.feature-card p { color: var(--muted); margin: 0; }

/* 服务详情卡（services 页） */
.service-detail-card {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 1.8rem 1.4rem; height: 100%; transition: .25s;
}
.service-detail-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(37, 99, 235, 0.14); border-color: transparent; }
.service-detail-card h4 { font-weight: 700; color: var(--brand); }
.service-detail-card p { color: var(--muted); margin-top: .5rem; }
.service-points { list-style: none; padding: 0; margin-top: 1rem; }
.service-points li { color: var(--ink); padding: .15rem 0; }
.service-points li i { color: var(--brand-2); font-size: 22px; vertical-align: middle; }

/* 新闻分类筛选 chips */
.news-filter { display: flex; flex-wrap: wrap; gap: .6rem; }
.filter-item {
    display: inline-flex; align-items: center; padding: .45rem 1.1rem;
    border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted);
    background: var(--bg-soft); border: 1px solid var(--border); transition: .2s;
}
.filter-item:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
.filter-item.active { color: #fff; background: var(--brand-grad); border-color: transparent; box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28); }

/* 新闻卡 */
.news-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; height: 100%; transition: .25s; display: flex; flex-direction: column; }
.news-card:hover { box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12); transform: translateY(-4px); border-color: transparent; }
.news-cover { width: 100%; height: 190px; object-fit: cover; display: block; transition: transform .4s ease; }
.news-card:hover .news-cover { transform: scale(1.06); }
.news-cover-placeholder { height: 190px; background: var(--brand-grad); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 48px; }
.news-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.news-tag { display: inline-block; align-self: flex-start; background: rgba(6, 182, 212, 0.14); color: #0e7490; font-size: 12px; padding: 3px 11px; border-radius: 20px; font-weight: 600; }
.news-title { font-size: 17px; font-weight: 700; margin: .7rem 0 .45rem; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-title a { color: var(--ink); transition: color .2s; }
.news-title a:hover { color: var(--brand); }
.news-summary { color: var(--muted); font-size: 14px; margin-bottom: .9rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { color: #94a3b8; font-size: 13px; margin-top: auto; display: flex; align-items: center; gap: .9rem; padding-top: .7rem; border-top: 1px dashed var(--border); }
.news-meta i { color: var(--brand-2); }

/* 新闻详情 */
.news-article { background: #fff; }
.article-head { text-align: center; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.article-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.35; margin: .8rem 0; color: var(--ink); }
.article-meta { color: var(--muted); font-size: 14px; }
.article-meta i { color: var(--brand-2); margin-right: .25rem; }
.article-cover { width: 100%; border-radius: 14px; margin-bottom: 1.8rem; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14); }
.article-content { font-size: 16px; line-height: 1.95; color: #334155; }
.article-content p { margin-bottom: 1.1rem; }
.article-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 1rem 0; }
.article-content h1, .article-content h2, .article-content h3, .article-content h4 { font-weight: 700; color: var(--ink); margin: 1.8rem 0 .9rem; line-height: 1.4; }
.article-content h2 { font-size: 22px; padding-left: .7rem; border-left: 4px solid var(--brand); }
.article-content h3 { font-size: 19px; }
.article-content a { color: var(--brand); text-decoration: underline; }
.article-content pre { background: var(--brand-dark); color: #e2e8f0; padding: 1rem 1.2rem; border-radius: 10px; overflow-x: auto; font-size: 14px; }
.article-content code { background: rgba(37, 99, 235, 0.08); color: #1e3a8a; padding: 2px 6px; border-radius: 5px; font-size: .92em; }
.article-content pre code { background: transparent; color: inherit; padding: 0; }
.article-content blockquote { border-left: 4px solid var(--brand-2); background: var(--bg-soft); margin: 1.2rem 0; padding: .8rem 1.2rem; color: var(--muted); border-radius: 0 10px 10px 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 14px; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: .6rem .9rem; text-align: left; }
.article-content thead th { background: var(--bg-soft); font-weight: 700; }

/* 上一篇 / 下一篇 */
.article-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.article-nav-prev, .article-nav-next { flex: 1 1 45%; min-width: 220px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1.2rem; transition: .2s; display: block; }
.article-nav-prev:hover, .article-nav-next:hover { border-color: var(--brand); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08); transform: translateY(-2px); }
.article-nav span { display: block; font-size: 12px; color: var(--muted); margin-bottom: .3rem; }
.article-nav strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.article-nav a:hover strong { color: var(--brand); }

/* 相关内容 */
.related-news { border-top: 1px solid var(--border); padding-top: 1.6rem; }
.related-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
.related-title i { color: var(--brand-2); }
.related-list { list-style: none; padding: 0; margin: 0; }
.related-item { border-bottom: 1px dashed var(--border); }
.related-item:last-child { border-bottom: 0; }
.related-item a {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .8rem .4rem; color: var(--ink); transition: .2s;
}
.related-item a:hover { color: var(--brand); padding-left: .8rem; }
.related-item-title {
    position: relative; padding-left: 1rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.related-item-title::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2);
}
.related-item-date { flex: none; font-size: 13px; color: var(--muted); }

/* 分页 */
.pagination { gap: .4rem; }
.pagination .page-link { border: 1px solid var(--border); color: var(--ink); border-radius: 10px; padding: .5rem .9rem; transition: .2s; }
.pagination .page-link:hover { color: var(--brand); border-color: var(--brand); background: var(--bg-soft); }
.pagination .page-item.active .page-link { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28); }
.pagination .page-item.disabled .page-link { color: #cbd5e1; border-color: var(--border); }

/* 页头 banner */
.page-banner { background: var(--brand-grad); color: #fff; padding: 3rem 0; }
.page-banner h1 { font-size: 34px; font-weight: 800; }
.page-banner .breadcrumb { background: transparent; padding: 0; margin: 0; }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: #dbeafe; }
.page-banner .breadcrumb-item.active { color: #fff; }

/* 关于 */
.about-visual svg { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18); }
.about-list { list-style: none; padding: 0; margin-top: 1rem; }
.about-list li { padding: .4rem 0; color: var(--ink); }
.about-list li i { color: var(--brand); margin-right: .5rem; }

/* CTA */
.cta-section { background: linear-gradient(135deg, #eff6ff, #ecfeff); }
.cta-section h2 { color: var(--brand); font-weight: 800; }

/* 404 */
.notfound { padding: 5rem 0; }
.notfound-code {
    font-size: clamp(72px, 16vw, 160px); font-weight: 900; line-height: 1;
    background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 页脚 */
.site-footer { background: #0b1220; color: #aeb8cc; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-size: 18px; font-weight: 800; color: #fff; margin-bottom: .8rem; }
.footer-logo { height: 32px; }
.footer-about { color: #94a3b8; }
.footer-title { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 1rem; position: relative; padding-left: 12px; }
.footer-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--brand-grad); border-radius: 2px; }
.footer-info { list-style: none; padding: 0; }
.footer-info li { display: flex; align-items: flex-start; gap: .5rem; padding: .35rem 0; }
.footer-info i { color: var(--brand-2); margin-top: 4px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { padding: .25rem 0; }
.footer-links a { color: #aeb8cc; }
.footer-links a:hover { color: #fff; }
.footer-qr { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.footer-qr img, .footer-qr-placeholder {
    width: 118px; height: 118px; border-radius: 12px; background: #fff; padding: 6px; object-fit: contain;
}
.footer-qr-placeholder {
    display: flex; align-items: center; justify-content: center; font-size: 44px; color: #cbd5e1;
    background: #182338; border: 1px dashed #2c3a58;
}
.footer-qr p { margin: 0; font-size: 13px; color: #aeb8cc; }
.footer-bottom { border-top: 1px solid #1d2942; margin-top: 2rem; padding-top: 1.2rem; text-align: center; font-size: 13px; color: #7d88a0; }
.footer-bottom a { color: #7d88a0; }
.footer-bottom a:hover { color: #cbd5e1; }

@media (max-width: 768px) {
    .hero { padding: 3.5rem 0 3rem; }
    .hero-metrics { gap: 1.4rem; }
    .hero-metrics strong { font-size: 24px; }
}
