/* 由页面样式外提生成：内容为站点模板/页面局部样式，文件名取内容哈希，可长期强缓存 */
:root {
      --ink:#0c3a33; --ink-2:#0f4d44; --teal:#12665a; --teal-2:#1f7a6a; --teal-soft:#e8f1ee;
      --gold:#b0842c; --gold-2:#d3ac5a; --gold-soft:#f3e9d4;
      --paper:#f4f3ee; --card:#fff; --text:#22332f; --muted:#6c7a76; --line:#e7e4d9;
      --serif: "Noto Serif SC","Source Han Serif SC","Songti SC","STSong","SimSun",Georgia,serif;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.65; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
    a { color: inherit; text-decoration: none; }
    .container { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
    /* 头部 */
    .p-header { background: #fff; border-bottom: 1px solid var(--line); }
    .p-header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
    .p-logo { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 1.5em; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
    .p-logo::before { content: ""; width: 11px; height: 26px; border-radius: 3px; background: linear-gradient(180deg,var(--gold-2),var(--gold)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
    .p-logo em { font-style: normal; color: var(--gold); }
    .p-slogan { color: var(--muted); font-size: .9em; letter-spacing: .3px; }
    /* 头部搜索框（提交到 /search 静态搜索页） */
    .p-search { display: flex; align-items: center; gap: 8px; }
    .p-search input { width: 220px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 20px; font-size: .9em; outline: none; transition: border-color .2s, box-shadow .2s; }
    .p-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
    .p-search button { height: 38px; padding: 0 20px; border: none; border-radius: 20px; background: var(--ink-2); color: #fff; font-size: .9em; cursor: pointer; transition: background .2s; }
    .p-search button:hover { background: var(--teal); }
    /* 吸顶分类导航 */
    .portal-nav { background: linear-gradient(90deg,var(--ink),var(--ink-2)); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(12,58,51,.18); }
    .portal-nav .container { display: flex; gap: 4px; flex-wrap: wrap; }
    .portal-nav a { color: rgba(255,255,255,.92); padding: 13px 18px; font-size: .95em; white-space: nowrap; transition: background .2s, color .2s; }
    .portal-nav a:hover { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 -3px 0 var(--gold-2); }
    .portal-nav .nav-drop { position: relative; }
    .portal-nav .nav-drop > .nav-drop-toggle { display: inline-block; }
    .portal-nav .nav-drop-panel { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: 0 0 10px 10px; box-shadow: 0 12px 28px rgba(12,58,51,.22); padding: 10px; display: none; z-index: 130; }
    .portal-nav .nav-drop:hover > .nav-drop-panel, .portal-nav .nav-drop:focus-within > .nav-drop-panel { display: block; }
    .portal-nav .nav-drop-panel a { color: var(--text); display: block; padding: 8px 12px; border-radius: 6px; white-space: nowrap; box-shadow: none; }
    .portal-nav .nav-drop-panel a:hover { background: var(--teal-soft); color: var(--teal); }
    .portal-nav .nav-sub { position: relative; }
    .portal-nav .nav-fly { position: absolute; top: -8px; left: 100%; min-width: 160px; background: #fff; border-radius: 10px; box-shadow: 0 12px 28px rgba(12,58,51,.22); padding: 8px; display: none; z-index: 140; }
    .portal-nav .nav-sub:hover > .nav-fly, .portal-nav .nav-sub:focus-within > .nav-fly { display: block; }
    @media (max-width: 768px) { .portal-nav .nav-drop-panel { position: static; display: block; box-shadow: none; background: rgba(255,255,255,.06); } .portal-nav .nav-drop-panel a { color: #fff; } .portal-nav .nav-drop-panel a:hover { background: rgba(255,255,255,.15); color: #fff; } .portal-nav .nav-fly { position: static; display: block; box-shadow: none; background: transparent; padding: 0 0 0 12px; } }
    /* Hero 门户简介区：居中构图 = eyebrow + 行线大标题 + 金色分隔线 + 可被 AI 引用的介绍 + 大搜索框 + 快捷入口 + 数据带 + 权威信任条 */
    .p-hero { position: relative; overflow: hidden; background: linear-gradient(160deg,#07251f 0%,#0d3f38 52%,#12665a 100%); color: #fff; padding: clamp(46px, 6.5vw, 78px) 0 clamp(38px, 5vw, 58px); text-align: center; }
    .p-hero::before, .p-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
    .p-hero::before { width: 520px; height: 520px; right: -160px; top: -220px; background: radial-gradient(closest-side, rgba(211,172,90,0.28), transparent); }
    .p-hero::after { width: 560px; height: 560px; left: -180px; bottom: -260px; background: radial-gradient(closest-side, rgba(31,122,106,0.55), transparent); }
    .p-hero .container { position: relative; z-index: 1; }
    .p-hero-eyebrow { display: inline-block; font-size: .82em; letter-spacing: 3px; color: var(--gold-2); font-weight: 600; margin-bottom: 14px; }
    .p-hero h1 { font-family: var(--serif); font-size: clamp(1.6em, 3.4vw, 2.4em); line-height: 1.32; margin-bottom: 0; letter-spacing: .5px; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,0.22); }
    .hero-rule { width: 60px; height: 3px; margin: 16px auto; border-radius: 2px; background: linear-gradient(90deg,var(--gold),var(--gold-2)); }
    .p-hero-intro { color: rgba(255,255,255,0.88); font-size: 1.02em; line-height: 1.9; max-width: 780px; margin: 0 auto; }
    /* Hero 大搜索框（与头部小搜索框同提交到 /search） */
    .p-hero-search { display: flex; max-width: 560px; margin: 26px auto 0; background: #fff; border-radius: 999px; padding: 5px; box-shadow: 0 12px 34px rgba(3,26,22,0.36); }
    .p-hero-search input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border: none; outline: none; border-radius: 999px; font-size: .96em; color: var(--text); background: transparent; }
    .p-hero-search button { height: 46px; padding: 0 30px; border: none; border-radius: 999px; background: linear-gradient(135deg,#c99a3f,#a9781f); color: #fff; font-size: .96em; font-weight: 600; cursor: pointer; transition: filter 0.2s; }
    .p-hero-search button:hover { filter: brightness(1.08); }
    /* 快捷入口胶囊（进入商城主按钮 + 栏目标签） */
    .p-hero-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
    .p-hero-quick a { font-size: .82em; color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); padding: 5px 15px; border-radius: 999px; transition: all 0.2s; }
    .p-hero-quick a:hover { background: rgba(255,255,255,0.18); color: #fff; }
    .p-hero-quick a.q-main { background: #fff; color: var(--ink); border-color: #fff; font-weight: 700; }
    .p-hero-quick a.q-main:hover { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-soft); }
    /* 数据速览带：竖线分隔的居中统计 */
    .p-stats { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
    .p-stat { position: relative; padding: 4px clamp(16px, 3.5vw, 36px); }
    .p-stat + .p-stat::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 62%; background: rgba(255,255,255,0.18); }
    .p-stat b { display: block; font-family: var(--serif); font-size: clamp(1.5em, 2.6vw, 1.95em); line-height: 1.25; font-weight: 800; color: var(--gold-2); }
    .p-stat span { font-size: .8em; color: rgba(255,255,255,0.72); letter-spacing: .5px; }
    /* 权威信任条（取品牌事实库真实数据） */
    .p-trust { list-style: none; margin-top: 26px; }
    .p-trust li { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; }
    .tk-item { display: inline-flex; align-items: center; gap: 8px; font-size: .84em; color: rgba(255,255,255,.82); }
    .tk-item .tk { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(211,172,90,.22); color: var(--gold-2); font-size: 11px; }
    .tk-item b { color: #fff; font-weight: 600; }
    .tk-item em { font-style: normal; color: rgba(255,255,255,.6); }
    /* Hero 入场淡入（尊重系统减弱动效偏好） */
    @media (prefers-reduced-motion: no-preference) {
      .p-hero .container > * { animation: pHeroIn 0.5s ease both; }
      .p-hero .container > *:nth-child(2) { animation-delay: 0.05s; }
      .p-hero .container > *:nth-child(3) { animation-delay: 0.1s; }
      .p-hero .container > *:nth-child(4) { animation-delay: 0.15s; }
      .p-hero .container > *:nth-child(5) { animation-delay: 0.2s; }
      .p-hero .container > *:nth-child(6) { animation-delay: 0.25s; }
      .p-hero .container > *:nth-child(7) { animation-delay: 0.3s; }
      .p-hero .container > *:nth-child(8) { animation-delay: 0.35s; }
    }
    @keyframes pHeroIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
    /* 最新播报 */
    .p-latest ul { list-style: none; }
    .p-latest li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .9em; }
    .p-latest li:last-child { border-bottom: none; }
    .p-latest time { flex-shrink: 0; color: var(--muted); font-size: .85em; font-variant-numeric: tabular-nums; }
    .p-latest a { flex: 1; min-width: 0; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .p-latest a:hover { color: var(--teal); }
    .p-latest .p-badge { position: static; flex-shrink: 0; }
    /* 主体两栏 */
    .p-main { display: flex; gap: 24px; padding: 28px 0; align-items: flex-start; }
    .p-content { flex: 1; min-width: 0; }
    .p-side { width: 322px; flex-shrink: 0; position: sticky; top: 76px; }
    /* 版块 */
    .p-section { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 22px; box-shadow: 0 1px 2px rgba(12,58,51,.04), 0 10px 26px rgba(12,58,51,.05); }
    .p-sec-head { display: flex; align-items: baseline; gap: 12px; border-left: 4px solid var(--gold); padding-left: 12px; margin-bottom: 18px; }
    .p-sec-head h2 { font-family: var(--serif); font-size: 1.3em; color: var(--ink); letter-spacing: .3px; }
    .p-sec-count { color: var(--muted); font-size: .85em; }
    .p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .p-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
    .p-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(12,58,51,.14); border-color: var(--gold-2); }
    .p-cover { position: relative; aspect-ratio: 16/10; background: #e6e4d9; overflow: hidden; }
    .p-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .p-cover-ph { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 2.7em; font-weight: 800; letter-spacing: 2px; color: rgba(255,255,255,.96); text-shadow: 0 2px 8px rgba(0,0,0,.18); }
    .p-cover-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(0,0,0,.16)); }
    .p-badge { position: absolute; left: 8px; top: 8px; font-size: .72em; padding: 2px 9px; border-radius: 5px; color: #fff; letter-spacing: .5px; z-index: 1; }
    .p-badge.art { background: rgba(18,102,90,.92); }
    .p-badge.prod { background: rgba(176,132,44,.96); }
    .p-badge.pin { background: rgba(146,60,20,.95); left: auto; right: 8px; }
    .p-recommend .p-sec-head { border-left-color: var(--teal); }
    .p-body { padding: 13px 14px 14px; display: flex; flex-direction: column; flex: 1; }
    .p-body h3 { font-size: .96em; color: var(--text); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
    .p-card:hover h3 { color: var(--teal); }
    .p-body p { color: var(--muted); font-size: .8em; margin-top: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .p-meta { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; align-items: center; font-size: .75em; color: var(--muted); flex-wrap: wrap; }
    .p-src { color: var(--teal); background: var(--teal-soft); padding: 1px 7px; border-radius: 4px; }
    .p-price { color: #a4670f; font-weight: 700; }
    .p-empty { text-align: center; color: var(--muted); padding: 30px; }
    .p-empty-big { background: var(--card); border-radius: 14px; padding: 60px; }
    /* 门户改版：GEO 知识库全分类展开（子分类目录入口 + 各分类内容版块 + 实战案例） */
    .p-section[id] { scroll-margin-top: 76px; }
    .p-sec-head h2 a { color: var(--ink); }
    .p-sec-head h2 a:hover { color: var(--teal); }
    .p-group { background: linear-gradient(180deg,#fff,#f7f5ee); }
    .p-group .p-sec-head { border-left-color: var(--teal); }
    .p-group-desc { color: var(--muted); font-size: .9em; margin: -6px 0 14px; }
    .p-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .p-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .86em; color: var(--teal); background: var(--teal-soft); border: 1px solid #d7e6e0; padding: 5px 12px; border-radius: 999px; transition: all .2s; }
    .p-chip em { font-style: normal; color: var(--muted); font-size: .85em; }
    .p-chip:hover { background: var(--teal); color: #fff; }
    .p-chip:hover em { color: rgba(255,255,255,.82); }
    .p-sub { margin-left: clamp(0px, 2.2vw, 26px); border-left: 3px solid var(--gold-soft); }
    .p-more { display: inline-block; margin-top: 14px; color: var(--teal); font-size: .9em; font-weight: 600; }
    .p-more:hover { color: var(--gold); }
    @media (max-width: 1000px) { .p-sub { margin-left: 0; } }
    /* 侧栏 */
    .p-side-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 22px; box-shadow: 0 1px 2px rgba(12,58,51,.04), 0 10px 26px rgba(12,58,51,.05); }
    .p-side-box h2 { font-family: var(--serif); font-size: 1.12em; color: var(--ink); margin-bottom: 14px; border-left: 4px solid var(--gold); padding-left: 9px; letter-spacing: .3px; }
    .p-side-box.sites h2 { border-left-color: var(--teal); }
    .hot-item { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--line); }
    .hot-item:last-child { border-bottom: none; }
    .hot-rank { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; background: var(--teal-soft); color: var(--teal); font-size: .78em; font-weight: 700; display: flex; align-items: center; justify-content: center; }
    .hot-rank.top { background: linear-gradient(135deg,var(--gold-2),var(--gold)); color: #fff; }
    .hot-title { font-size: .89em; color: var(--text); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .hot-item:hover .hot-title { color: var(--teal); }
    .psite { display: block; padding: 11px 0; border-bottom: 1px dashed var(--line); }
    .psite:last-child { border-bottom: none; }
    .psite strong { display: block; color: var(--ink); font-size: .95em; }
    .psite:hover strong { color: var(--teal); }
    .psite span { color: var(--muted); font-size: .8em; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
    .psite-more summary { cursor: pointer; color: var(--teal); font-size: .9em; padding: 10px 0 4px; user-select: none; }
    .psite-all { display: block; color: var(--teal); font-size: .9em; font-weight: 600; padding: 10px 0 4px; }
    .psite-all:hover { color: var(--gold); }
    /* GEO 内容区：关于本站 + 常见问答 */
    .p-geo-intro { color: #47564f; font-size: .96em; margin-bottom: 14px; }
    .p-geo h3 { font-family: var(--serif); font-size: 1.08em; color: var(--ink); margin: 6px 0 10px; }
    .p-faq { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fbfaf6; }
    .p-faq summary { cursor: pointer; padding: 11px 14px; font-size: .92em; color: var(--text); font-weight: 600; user-select: none; }
    .p-faq summary:hover { color: var(--teal); }
    .p-faq p { padding: 0 14px 12px; color: var(--muted); font-size: .88em; }
    footer { padding: 34px 0; text-align: center; color: var(--muted); font-size: .9em; background: #fff; border-top: 3px solid var(--gold); }
    footer a { color: var(--teal); }
    footer a:hover { color: var(--gold); }
    .f-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
    @media (max-width: 1000px) {
      .p-main { flex-direction: column; }
      .p-side { width: 100%; position: static; }
      .p-grid { grid-template-columns: repeat(2, 1fr); }
      .p-search input { width: 150px; }
      .p-slogan { display: none; }
    }
    @media (max-width: 560px) {
      .p-grid { grid-template-columns: 1fr; }
      .p-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
      .p-stat + .p-stat::before { display: none; }
      .p-stat { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 10px 8px; }
      .p-hero-search { margin-top: 18px; }
      .p-hero-search input { padding: 0 14px; }
      .p-hero-search button { padding: 0 18px; }
      .tk-item em { display: none; }
    }
