/**
 * 杭州无限飞网络科技有限公司 — 内页样式（服务页 / 洞察页）
 * 依赖 css/style.css 的 :root 变量、.hero-nav、.section、.site-footer、.reveal
 * 设计延续：深色 ink 底 + 暖金点缀，中文行高 1.85-1.9，克制动效
 */

/* ═══════════════════════════════════════════
   页头导航 — 实色变体（复用 .hero-nav 结构）
   ═══════════════════════════════════════════ */
.page-shell {
    position: relative;
    z-index: 40;
    background: hsl(var(--ink-850));
    border-bottom: 1px solid hsl(var(--foreground) / 0.08);
}

.page-shell .hero-nav {
    max-width: 78rem;
    margin: 0 auto;
}

/* 当前所在栏目高亮 */
.nav-item.is-current {
    color: hsl(var(--gold-soft));
}

.nav-dropdown-item.is-current {
    background: hsl(var(--gold) / 0.08);
    color: hsl(var(--gold-soft));
}

/* ═══════════════════════════════════════════
   面包屑
   ═══════════════════════════════════════════ */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: hsl(var(--foreground) / 0.45);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: hsl(var(--foreground) / 0.55);
    transition: color 0.25s ease;
}

.breadcrumb a:hover {
    color: hsl(var(--gold-soft));
}

.breadcrumb-sep {
    color: hsl(var(--foreground) / 0.25);
}

.breadcrumb-current {
    color: hsl(var(--foreground) / 0.7);
}

/* ═══════════════════════════════════════════
   内页首屏
   ═══════════════════════════════════════════ */
.page-hero {
    position: relative;
    padding: 5.5rem 2rem 4rem;
    overflow: hidden;
    border-bottom: 1px solid hsl(var(--foreground) / 0.06);
}

.page-hero::before {
    content: "";
    position: absolute;
    top: -18rem;
    left: 50%;
    width: 62rem;
    height: 34rem;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, hsl(var(--gold) / 0.13), transparent 68%);
    pointer-events: none;
}

.page-hero .container {
    max-width: 62rem;
}

.page-h1 {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 5.2vw, 3.1rem);
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -0.015em;
    color: hsl(var(--foreground));
    margin-bottom: 1.35rem;
}

.page-lead {
    font-size: 1.06rem;
    line-height: 1.9;
    color: hsl(var(--hero-sub));
    max-width: 44rem;
}

/* 首屏要点条（交付方式 / 周期 / 起点） */
.page-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2.5rem;
    margin-top: 2.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid hsl(var(--foreground) / 0.08);
}

.page-hero-fact {
    padding: 0.5rem 0;
}

.page-hero-fact dt {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: hsl(var(--gold) / 0.75);
    margin-bottom: 0.4rem;
}

.page-hero-fact dd {
    font-size: 0.95rem;
    color: hsl(var(--foreground) / 0.82);
    line-height: 1.65;
}

/* 首屏按钮组 */
.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.5rem;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    padding: 0.9rem 1.6rem;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.28s ease;
}

.btn-primary {
    background: hsl(var(--gold) / 0.14);
    border: 1px solid hsl(var(--gold) / 0.42);
    color: hsl(var(--gold-soft));
}

.btn-primary:hover {
    background: hsl(var(--gold) / 0.24);
    border-color: hsl(var(--gold) / 0.6);
    transform: translateY(-2px);
}

.btn-ghost {
    background: hsl(var(--foreground) / 0.05);
    border: 1px solid hsl(var(--foreground) / 0.14);
    color: hsl(var(--foreground) / 0.85);
}

.btn-ghost:hover {
    background: hsl(var(--foreground) / 0.11);
    border-color: hsl(var(--foreground) / 0.28);
}

/* ═══════════════════════════════════════════
   正文排版（.prose）
   ═══════════════════════════════════════════ */
.prose {
    max-width: 46rem;
}

.prose-narrow {
    max-width: 40rem;
}

.prose h2 {
    font-family: var(--font-headline);
    font-size: clamp(1.45rem, 3vw, 1.95rem);
    font-weight: 500;
    line-height: 1.35;
    color: hsl(var(--foreground));
    margin: 0 0 1.1rem;
    letter-spacing: -0.01em;
}

.prose h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: hsl(var(--gold-soft));
    margin: 2.4rem 0 0.75rem;
}

.prose h2 + h3 {
    margin-top: 1.2rem;
}

.prose p {
    font-size: 1rem;
    line-height: 1.9;
    color: hsl(var(--foreground) / 0.74);
    margin-bottom: 1.15rem;
}

.prose h2:not(:first-child) {
    margin-top: 3rem;
}

.prose a {
    color: hsl(var(--gold-soft));
    border-bottom: 1px solid hsl(var(--gold) / 0.3);
    transition: border-color 0.25s ease, color 0.25s ease;
}

.prose a:hover {
    color: hsl(var(--foreground));
    border-bottom-color: hsl(var(--foreground) / 0.5);
}

.prose strong {
    color: hsl(var(--foreground) / 0.95);
    font-weight: 600;
}

.prose ul,
.prose ol {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4rem;
}

.prose li {
    position: relative;
    padding-left: 1.55rem;
    font-size: 0.98rem;
    line-height: 1.85;
    color: hsl(var(--foreground) / 0.72);
    margin-bottom: 0.7rem;
}

.prose ul > li::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.82rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: hsl(var(--gold) / 0.7);
}

/* 有序列表用计数序号，适合"步骤/清单"型内容 */
.prose ol.steps {
    counter-reset: step;
}

.prose ol.steps > li {
    counter-increment: step;
    padding-left: 2.6rem;
}

.prose ol.steps > li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.35rem;
    font-family: var(--font-headline);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: hsl(var(--gold) / 0.8);
}

.prose li > ul {
    margin: 0.7rem 0 0;
}

.prose li > ul > li {
    font-size: 0.94rem;
    color: hsl(var(--foreground) / 0.62);
}

/* 引言块 */
.prose blockquote {
    margin: 2.2rem 0;
    padding: 0.3rem 0 0.3rem 1.6rem;
    border-left: 2px solid hsl(var(--gold) / 0.55);
}

.prose blockquote p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: hsl(var(--foreground) / 0.86);
    margin: 0;
}

/* 提示框 */
.callout {
    margin: 2rem 0;
    padding: 1.15rem 1.35rem;
    border-radius: 14px;
    border: 1px solid hsl(var(--gold) / 0.22);
    background: hsl(var(--gold) / 0.05);
}

.callout-title {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: hsl(var(--gold-soft));
    margin-bottom: 0.5rem;
}

.callout p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: hsl(var(--foreground) / 0.72);
    margin: 0;
}

/* ═══════════════════════════════════════════
   规格说明表（适用对象 / 交付物 / 周期）
   ═══════════════════════════════════════════ */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0 2rem;
    font-size: 0.95rem;
}

.spec-table caption {
    text-align: left;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: hsl(var(--foreground) / 0.4);
    padding-bottom: 0.8rem;
}

.spec-table th,
.spec-table td {
    text-align: left;
    padding: 0.95rem 1rem 0.95rem 0;
    border-bottom: 1px solid hsl(var(--foreground) / 0.08);
    vertical-align: top;
    line-height: 1.75;
}

.spec-table th[scope="row"] {
    width: 30%;
    font-weight: 600;
    color: hsl(var(--foreground) / 0.9);
    white-space: nowrap;
}

.spec-table td {
    color: hsl(var(--foreground) / 0.68);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════
   服务对照（两栏，非卡片网格）
   ═══════════════════════════════════════════ */
.split-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 3.5rem;
    margin-top: 2.5rem;
}

.split-col-title {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: hsl(var(--gold-soft));
    padding-bottom: 0.85rem;
    border-bottom: 1px solid hsl(var(--foreground) / 0.1);
    margin-bottom: 1.1rem;
}

.split-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.split-col li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: hsl(var(--foreground) / 0.7);
    margin-bottom: 0.85rem;
}

.split-col li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 1px;
    background: hsl(var(--gold) / 0.8);
}

/* ═══════════════════════════════════════════
   FAQ（原生 details，无 JS 也能展开，爬虫可读）
   ═══════════════════════════════════════════ */
.faq-list {
    max-width: 46rem;
    border-top: 1px solid hsl(var(--foreground) / 0.1);
}

.faq-item {
    border-bottom: 1px solid hsl(var(--foreground) / 0.08);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem 0;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.65;
    color: hsl(var(--foreground) / 0.9);
    transition: color 0.25s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: hsl(var(--gold-soft));
}

.faq-mark {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.3rem;
    position: relative;
}

.faq-mark::before,
.faq-mark::after {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    height: 1px;
    background: hsl(var(--gold) / 0.85);
}

.faq-mark::after {
    inset: 0 auto 50%;
    width: 1px;
    height: 100%;
    left: 50%;
    transition: opacity 0.25s ease;
}

.faq-item[open] .faq-mark::after {
    opacity: 0;
}

.faq-answer {
    padding: 0 0 1.5rem;
    max-width: 42rem;
}

.faq-answer p {
    font-size: 0.96rem;
    line-height: 1.9;
    color: hsl(var(--foreground) / 0.66);
    margin-bottom: 0.8rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   文章作者 / 更新时间
   ═══════════════════════════════════════════ */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.1rem;
    font-size: 0.82rem;
    color: hsl(var(--foreground) / 0.42);
    margin-bottom: 2.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid hsl(var(--foreground) / 0.08);
}

.article-meta time {
    color: hsl(var(--foreground) / 0.55);
}

/* 目录 */
.toc {
    margin: 0 0 2.75rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid hsl(var(--foreground) / 0.1);
    border-radius: 14px;
    background: hsl(var(--foreground) / 0.02);
}

.toc-title {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: hsl(var(--foreground) / 0.45);
    margin-bottom: 0.8rem;
}

.toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}

.toc li {
    counter-increment: toc;
    margin-bottom: 0.45rem;
}

.toc a {
    font-size: 0.93rem;
    line-height: 1.7;
    color: hsl(var(--foreground) / 0.66);
    border-bottom: none;
    display: inline-block;
}

.toc a::before {
    content: counter(toc, decimal-leading-zero) " ";
    color: hsl(var(--gold) / 0.7);
    font-family: var(--font-headline);
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.toc a:hover {
    color: hsl(var(--gold-soft));
    border-bottom: none;
}

/* ═══════════════════════════════════════════
   文章列表 / 内链卡片
   ═══════════════════════════════════════════ */
.index-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid hsl(var(--foreground) / 0.08);
    max-width: 52rem;
}

.index-item {
    border-bottom: 1px solid hsl(var(--foreground) / 0.08);
}

.index-link {
    display: block;
    padding: 1.9rem 0;
    transition: background 0.28s ease, padding 0.28s ease;
}

.index-link:hover {
    background: hsl(var(--foreground) / 0.025);
    padding-left: 1rem;
}

.index-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: hsl(var(--gold) / 0.8);
    margin-bottom: 0.55rem;
}

.index-title {
    font-family: var(--font-headline);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.45;
    color: hsl(var(--foreground) / 0.95);
    margin-bottom: 0.6rem;
}

.index-desc {
    font-size: 0.95rem;
    line-height: 1.85;
    color: hsl(var(--foreground) / 0.58);
    max-width: 40rem;
}

.index-more {
    display: inline-block;
    margin-top: 0.85rem;
    font-size: 0.85rem;
    color: hsl(var(--gold-soft));
}

/* 页面底部互链 */
.related-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1px;
    background: hsl(var(--foreground) / 0.08);
    border: 1px solid hsl(var(--foreground) / 0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 2.5rem;
}

.related-cell {
    background: hsl(var(--ink-850));
    padding: 1.4rem 1.5rem;
    transition: background 0.28s ease;
}

.related-cell:hover {
    background: hsl(var(--ink-700));
}

.related-cell h3 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground) / 0.9);
    margin-bottom: 0.45rem;
}

.related-cell p {
    font-size: 0.88rem;
    line-height: 1.75;
    color: hsl(var(--foreground) / 0.5);
}

/* ═══════════════════════════════════════════
   内页 CTA 条
   ═══════════════════════════════════════════ */
.page-cta {
    padding: 4.5rem 2rem;
    border-top: 1px solid hsl(var(--foreground) / 0.06);
    background: hsl(var(--ink-850));
}

.page-cta-inner {
    max-width: 46rem;
    margin: 0 auto;
}

.page-cta h2 {
    font-family: var(--font-headline);
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.page-cta p {
    font-size: 1rem;
    line-height: 1.9;
    color: hsl(var(--foreground) / 0.6);
    margin-bottom: 1.9rem;
}

/* ═══════════════════════════════════════════
   页脚扩展（内链 + 关键词落地文字）
   ═══════════════════════════════════════════ */
.site-footer.is-extended {
    padding: 3.5rem 2rem 1.5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr repeat(2, 1fr);
    gap: 2.5rem 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid hsl(var(--foreground) / 0.08);
}

.footer-brand-desc {
    font-size: 0.88rem;
    line-height: 1.85;
    color: hsl(var(--foreground) / 0.45);
    max-width: 22rem;
    margin-top: 1rem;
}

.footer-col-title {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: hsl(var(--foreground) / 0.4);
    margin-bottom: 1rem;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.6rem;
}

.footer-nav a {
    font-size: 0.88rem;
    color: hsl(var(--foreground) / 0.6);
    transition: color 0.25s ease;
}

.footer-nav a:hover {
    color: hsl(var(--gold-soft));
}

.site-footer .footer-inner {
    padding-top: 1.5rem;
}

/* ═══════════════════════════════════════════
   响应式
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .page-hero {
        padding: 3.25rem 1.25rem 2.75rem;
    }

    .page-hero-facts {
        gap: 0 1.5rem;
        margin-top: 2rem;
        padding-top: 1.25rem;
    }

    .page-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-ghost {
        justify-content: center;
    }

    .prose h2:not(:first-child) {
        margin-top: 2.4rem;
    }

    .split-list {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .spec-table th[scope="row"] {
        width: 40%;
    }

    .index-link {
        padding: 1.5rem 0;
    }

    .index-link:hover {
        padding-left: 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .page-cta {
        padding: 3.25rem 1.25rem;
    }
}

/* ═══════════════════════════════════════════
   正文小节容器（page_shell 统一包进同一个 .section，
   使极淡网格纹理在整页连续，不被逐块重排）
   ═══════════════════════════════════════════ */
.page-main .section {
    padding: 4.5rem 2rem 5rem;
}

.prose-block {
    padding-top: 3.5rem;
    scroll-margin-top: 1.5rem;
}

.prose-block:first-child {
    padding-top: 0;
}

/* 内链卡片与按钮不应继承正文链接的下划线 */
.prose .related-cell,
.prose .index-link,
.prose .btn-primary,
.prose .btn-ghost,
.prose .faq-item summary,
.prose .callout-title {
    border-bottom: none;
}

.prose .index-title,
.prose .related-cell h3 {
    color: hsl(var(--foreground) / 0.95);
    font-size: 1.25rem;
    margin: 0 0 0.6rem;
}

.prose .related-cell h3 {
    font-size: 1rem;
    margin-bottom: 0.45rem;
}

.prose .index-desc,
.prose .related-cell p {
    font-size: 0.94rem;
    line-height: 1.8;
    color: hsl(var(--foreground) / 0.55);
    margin: 0;
}

.prose .split-col-title {
    color: hsl(var(--gold-soft));
    margin: 0 0 1.1rem;
}

.prose .spec-table caption {
    padding-bottom: 0.8rem;
}

/* 文章目录在首屏内不需要正文链接样式 */
.toc a,
.article-meta a {
    border-bottom: none;
}

/* ═══════════════════════════════════════════
   正文内的"了解详情"内链（首页服务列表 / 流程卡片共用）
   ═══════════════════════════════════════════ */
.services-link {
    display: inline-block;
    margin-top: 0.85rem;
    font-size: 0.86rem;
    color: hsl(var(--gold-soft));
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.services-link:hover {
    color: hsl(var(--foreground));
    border-bottom-color: hsl(var(--foreground) / 0.4);
}

.section-faq .faq-list {
    margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════
   扩展页脚：.footer-inner 默认是 flex 横排，多栏时改为纵向流
   ═══════════════════════════════════════════ */
.site-footer.is-extended .footer-inner {
    display: block;
    max-width: 72rem;
}

.site-footer.is-extended .footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem 3rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid hsl(var(--foreground) / 0.08);
}

.site-footer.is-extended .footer-copyright {
    margin-top: 1.5rem;
}

.site-footer.is-extended .footer-beian {
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .site-footer.is-extended .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
