/* 算力资源网 · 内页通用 inner.css（子页面复用组件） */

/* ---------- 每日报价速览（与首页同款组件） ---------- */
.quote-board { background: #fff; border-radius: var(--radius-card); box-shadow: var(--c-shadow-card); overflow: hidden; }
.quote-board table { width: 100%; border-collapse: collapse; }
.quote-board th, .quote-board td { padding: 15px 18px; text-align: left; font-size: 15px; }
.quote-board thead th { background: #2b7fff; color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .5px; white-space: nowrap; }
.quote-board tbody tr { border-top: 1px solid var(--c-border); transition: background .2s; }
.quote-board tbody tr:hover { background: #f8fbff; }
.quote-board .q-model { font-weight: 700; color: var(--c-text-main); }
.quote-board .q-model small { display: block; font-weight: 400; color: var(--c-text-light); font-size: 12px; margin-top: 2px; }
.quote-board .q-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.quote-board .q-chg { font-weight: 700; font-variant-numeric: tabular-nums; }
.quote-board .q-region { color: var(--c-text-sub); }
.quote-board .q-trend svg { width: 16px; height: 16px; vertical-align: middle; }
.quote-board .q-cta { text-align: right; }
.quote-board .q-cta a { color: var(--c-primary); font-weight: 600; }
.quote-block { margin-bottom: 36px; }
.quote-block:last-of-type { margin-bottom: 0; }
.qcat { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qcat-ico { width: 38px; height: 38px; border-radius: 10px; background: #eaf2ff; color: #2b7fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qcat-ico svg { width: 20px !important; height: 20px !important; display: block; }
.qcat h3 { font-size: 20px; margin: 0; }
.qcat-update { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--c-text-sub); white-space: nowrap; }
.qcat-update svg { width: 14px; height: 14px; color: var(--c-primary); }
.qcat-more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--c-primary); text-decoration: none; white-space: nowrap; }
.qcat-more:hover { color: #1a5fdb; }

/* 配置列：查看 / 展开 / 收起 */
.quote-board thead th:last-child { text-align: center; }
.quote-board .q-cfg { text-align: center; white-space: nowrap; }
.qcfg-toggle { color: #2b7fff; background: transparent; border: 0; padding: 4px 8px; cursor: pointer; font-size: 14px; font-family: inherit; }
.qcfg-toggle:hover { color: #1a5fdb; text-decoration: underline; }
.qcfg-row { background: #f5f8fd; }
.qcfg-row:hover { background: #f5f8fd; }
.qcfg-row > td { padding: 18px 20px 14px; }
.qcfg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qcfg-item { background: #fff; border-radius: 10px; padding: 12px 14px; box-shadow: var(--c-shadow-card); }
.qcfg-label { font-size: 12px; color: var(--c-text-sub); margin-bottom: 4px; }
.qcfg-value { font-size: 13px; color: var(--c-text); line-height: 1.6; word-break: break-word; }
.qcfg-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.qcfg-collapse { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; background: #fff; border: 0; border-radius: 999px; cursor: pointer; font-size: 13px; color: var(--c-text); box-shadow: var(--c-shadow-card); font-family: inherit; }
.qcfg-collapse:hover { color: #2b7fff; }
.qcfg-collapse svg { transition: transform .2s; }
/* 配置展开 / 收起过渡（table 行无法直接过渡高度，这里对单元格内容做淡入淡出 + 轻微位移） */
@keyframes qcfgIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes qcfgOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}
.qcfg-row > td > * { animation: qcfgIn .3s cubic-bezier(.4, 0, .2, 1) both; }
.qcfg-row.qcfg-closing > td > * { animation: qcfgOut .25s ease-in both; }
@media (prefers-reduced-motion: reduce) {
  .qcfg-row > td > *,
  .qcfg-row.qcfg-closing > td > * { animation: none; }
}
@media (max-width: 720px) {
  .qcfg-grid { grid-template-columns: 1fr; }
}
.qcat-empty { background: #fff; border-radius: var(--radius-card); box-shadow: var(--c-shadow-card); padding: 30px; text-align: center; color: var(--c-text-sub); font-size: 14px; }
.quote-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--c-text-light); }
.quote-foot .legend { display: flex; gap: 16px; flex-wrap: wrap; }
.quote-foot .legend span { display: inline-flex; align-items: center; gap: 6px; }
.quote-foot .legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* 筛选条 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.filter-bar .fb-label { font-size: 14px; color: var(--c-text-sub); margin-right: 4px; }
.filter-bar .chip {
  padding: 8px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--c-border);
  font-size: 14px; color: var(--c-text-main); cursor: pointer; transition: all .2s ease;
}
.filter-bar .chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-bar .chip.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.filter-bar .fb-date { margin-left: auto; font-size: 14px; color: var(--c-text-sub); display: inline-flex; align-items: center; gap: 8px; }
.filter-bar .fb-date svg { width: 16px; height: 16px; color: var(--c-primary); }

/* 报价说明卡 */
.note-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.note-card .nc { background: #fff; border-radius: 14px; padding: 22px 24px; box-shadow: var(--c-shadow-card); }
.note-card .nc .nc-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--c-primary-light); color: var(--c-primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.note-card .nc .nc-ico svg { width: 20px; height: 20px; }
.note-card .nc h4 { font-size: 16px; }
.note-card .nc p { font-size: 14px; color: var(--c-text-sub); margin-top: 8px; line-height: 1.7; }

/* 编辑式行情速览（文章化） */
.report-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 14px; color: var(--c-text-sub); }
.report-meta .rm-date { display: inline-flex; align-items: center; gap: 6px; }
.report-meta .rm-date svg { width: 15px; height: 15px; color: var(--c-primary); }
.report-meta .rm-sub { margin-left: auto; color: var(--c-primary); font-weight: 600; }
.report-lead { background: #fff; border-radius: var(--radius-card); box-shadow: var(--c-shadow-card); padding: 24px 26px; margin-bottom: 28px; }
.report-lead p { font-size: 15px; line-height: 1.9; color: var(--c-text-main); }
.report-lead b { color: var(--c-primary); }
.report-note { background: #fff; border-radius: var(--radius-card); box-shadow: var(--c-shadow-card); padding: 26px; margin-top: 36px; }
.report-note h3 { font-size: 18px; margin-bottom: 10px; }
.report-note p { font-size: 14px; line-height: 1.9; color: var(--c-text-sub); }
.report-note .muted { font-size: 12px; color: var(--c-text-light); margin-top: 10px; }

/* 历史走势占位 */
.trend-card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--c-shadow-card); padding: 28px; margin-top: 40px; }
.trend-card h3 { font-size: 18px; margin-bottom: 6px; }
.trend-card .tc-sub { font-size: 13px; color: var(--c-text-light); margin-bottom: 18px; }
.trend-chart { width: 100%; height: 220px; display: block; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--c-border); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: var(--c-text-main); transition: all .2s; }
.pagination a:hover, .pagination a.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ---------- 特性栅格（通用） ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--c-shadow-card); padding: 30px 26px; transition: transform .3s ease, box-shadow .3s ease; }
.feat-card:hover { transform: translateY(-6px); box-shadow: var(--c-shadow-hover); }
.feat-card .fc-ico { width: 50px; height: 50px; border-radius: 14px; background: var(--c-primary-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(43,127,255,.3); }
.feat-card .fc-ico.cyan { background: var(--c-accent-grad); box-shadow: 0 6px 14px rgba(6,182,212,.3); }
.feat-card .fc-ico svg { width: 24px; height: 24px; }
.feat-card h3 { font-size: 19px; margin-top: 18px; }
.feat-card p { font-size: 14px; color: var(--c-text-sub); margin-top: 10px; line-height: 1.8; }

/* 两栏 split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .split-text h2 { font-size: 30px; font-weight: 700; }
.split .split-text p { margin-top: 16px; color: var(--c-text-sub); line-height: 1.9; }
.split .split-text ul { margin-top: 18px; display: grid; gap: 12px; }
.split .split-text li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.split .split-text li svg { width: 20px; height: 20px; color: var(--c-primary); flex-shrink: 0; margin-top: 3px; }
.split .split-visual { border-radius: var(--radius-card); min-height: 320px; background: linear-gradient(135deg, #0b2a4a 0%, #0f3d63 100%); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.split .split-visual .sv-inner { color: #fff; text-align: center; padding: 30px; position: relative; z-index: 2; }
.split .split-visual .sv-inner b { font-size: 40px; display: block; }
.split .split-visual .sv-inner span { opacity: .82; font-size: 14px; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius-card); box-shadow: var(--c-shadow-card); padding: 26px 22px; position: relative; }
.step .step-no { width: 38px; height: 38px; border-radius: 10px; background: var(--c-primary-light); color: var(--c-primary); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.step h4 { font-size: 17px; margin-top: 14px; }
.step p { font-size: 14px; color: var(--c-text-sub); margin-top: 8px; line-height: 1.7; }

/* 对比表 */
.compare { background: #fff; border-radius: var(--radius-card); box-shadow: var(--c-shadow-card); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 20px; font-size: 15px; text-align: left; }
.compare thead th { background: #0f3d63; color: #fff; font-weight: 600; }
.compare tbody tr { border-top: 1px solid var(--c-border); }
.compare tbody th { font-weight: 600; background: #f7faff; color: var(--c-text-main); width: 200px; }
.compare .yes { color: var(--c-down); font-weight: 700; }
.compare .no { color: var(--c-text-light); }

/* 数据卡（内页统计） */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-row .sr { background: #fff; border-radius: var(--radius-card); padding: 24px; box-shadow: var(--c-shadow-card); text-align: center; }
.stat-row .sr b { font-size: 30px; font-weight: 800; }
.stat-row .sr span { display: block; font-size: 14px; color: var(--c-text-sub); margin-top: 8px; }

/* CTA band 通用 */
.cta-band { background: var(--c-primary-grad); border-radius: var(--radius-card); padding: 40px 48px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h3 { font-size: 24px; font-weight: 700; }
.cta-band p { margin-top: 8px; opacity: .9; }
.cta-band .btn-ghost { background: rgba(255,255,255,.18); }

/* 列表卡片（栏目复用） */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.listing-card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--c-shadow-card); padding: 24px; display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.listing-card:hover { transform: translateY(-6px); box-shadow: var(--c-shadow-hover); }
.listing-card .lc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.listing-card .lc-type { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.lc-type.rent { background: var(--c-up-bg); color: var(--c-up); }
.lc-type.lease { background: var(--c-down-bg); color: var(--c-down); }
.lc-type.net { background: rgba(6,182,212,.12); color: #0891b2; }
.listing-card .lc-title { font-size: 18px; font-weight: 700; }
.listing-card .lc-spec { margin-top: 10px; font-size: 14px; color: var(--c-text-sub); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.listing-card .lc-spec span { display: inline-flex; align-items: center; gap: 5px; }
.listing-card .lc-spec svg { width: 14px; height: 14px; color: var(--c-text-light); }
.listing-card .lc-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--c-border); display: flex; align-items: center; justify-content: space-between; }
.listing-card .lc-price { font-size: 20px; font-weight: 800; color: var(--c-primary); }
.listing-card .lc-price small { font-size: 12px; color: var(--c-text-light); font-weight: 500; }
.listing-card .lc-meta { font-size: 12px; color: var(--c-text-light); text-align: right; }

/* 资讯列表（内页） */
.news-list { display: grid; gap: 14px; }
.news-item { display: flex; gap: 16px; align-items: stretch; background: #fff; border-radius: 14px; padding: 14px 18px 14px 14px; box-shadow: var(--c-shadow-card); transition: transform .25s ease, box-shadow .25s ease; }
.news-item:hover { transform: translateY(-3px); box-shadow: var(--c-shadow-hover); }
.news-item .ni-thumb { position: relative; flex-shrink: 0; width: 200px; align-self: stretch; border-radius: 12px; overflow: hidden; background: #eaf2ff; }
.news-item .ni-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.news-item:hover .ni-thumb-img { transform: scale(1.06); }
.news-item .ni-thumb-tag { position: absolute; left: 10px; bottom: 10px; z-index: 2; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: #1d4ed8; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.news-item .ni-body { display: block; min-width: 0; flex: 1; }
.news-item .ni-title { display: block; font-size: 17px; font-weight: 600; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-item .ni-title:hover { color: var(--c-primary); }
.news-item .ni-meta { display: block; font-size: 12px; color: var(--c-text-light); margin-top: 8px; }
.news-item .ni-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--c-text-sub); margin-top: 8px; line-height: 1.7; min-height: 44px; }
.news-item .ni-more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--c-primary); }
.news-item .ni-more:hover { text-decoration: underline; }

/* 侧栏（资讯页） */
.side-card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--c-shadow-card); padding: 24px; }
.side-card h4 { font-size: 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.side-card h4 svg { width: 18px; height: 18px; color: var(--c-primary); }

/* 侧栏广告位（复用首页 hero-poster 视觉） */
.side-poster { display: block; overflow: hidden; border-radius: var(--radius-card); box-shadow: var(--c-shadow-card); background: #eef3fb; transition: transform .25s ease, box-shadow .25s ease; margin-bottom: 24px; }
.side-poster:hover { transform: translateY(-3px); box-shadow: var(--c-shadow-hover); }
.side-poster img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.hot-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--c-border); }
.hot-list li:last-child { border-bottom: none; }
.hot-list .rank { width: 22px; height: 22px; border-radius: 6px; background: var(--c-primary-light); color: var(--c-primary); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hot-list li:nth-child(1) .rank, .hot-list li:nth-child(2) .rank, .hot-list li:nth-child(3) .rank { background: var(--c-primary); color: #fff; }
.hot-list a { font-size: 14px; line-height: 1.5; }
.hot-list a:hover { color: var(--c-primary); }
.news-layout { display: grid; grid-template-columns: 1fr 419px; gap: 36px; align-items: start; }

/* 文档/文库卡片 */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.doc-card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--c-shadow-card); padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.doc-card .dc-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--c-primary-light); color: var(--c-primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-card .dc-ico svg { width: 22px; height: 22px; }
.doc-card h4 { font-size: 16px; }
.doc-card p { font-size: 13px; color: var(--c-text-sub); margin-top: 6px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .feat-grid, .listing-grid, .doc-grid, .note-card, .stat-row { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .news-layout { grid-template-columns: 1fr; }
  .side-poster { display: none; }
}
@media (max-width: 768px) {
  .feat-grid, .listing-grid, .doc-grid, .note-card, .stat-row, .steps { grid-template-columns: 1fr; }
  .quote-board { overflow-x: auto; }
  .quote-board table { min-width: 640px; }
  .cta-band { padding: 28px 22px; }
  .compare { overflow-x: auto; }
  .compare table { min-width: 560px; }
  .news-item { flex-direction: column; align-items: stretch; padding: 14px; }
  .news-item .ni-thumb { width: 100%; height: 150px; }
}

/* ---------- 文章详情页 article.html ---------- */
.article-wrap { background: #fff; border-radius: var(--radius-card); box-shadow: var(--c-shadow-card); padding: 38px 42px; }
.article-head { border-bottom: 1px solid var(--c-border); padding-bottom: 22px; margin-bottom: 24px; }
.article-head .a-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--c-primary-light); color: var(--c-primary); font-size: 13px; font-weight: 600; }
.article-head h1 { font-size: 30px; font-weight: 800; line-height: 1.32; margin-top: 14px; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; color: var(--c-text-sub); font-size: 14px; align-items: center; }
.article-meta .am-item { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 15px; height: 15px; color: var(--c-primary); }
.article-body { font-size: 16px; line-height: 1.95; }
.article-body h2 { font-size: 21px; font-weight: 700; margin: 30px 0 12px; }
.article-body p { margin: 14px 0; color: var(--c-text-sub); }
.article-body p strong { color: var(--c-text-main); }
.article-body ul { margin: 14px 0; display: grid; gap: 10px; }
.article-body li { display: flex; gap: 10px; color: var(--c-text-sub); }
.article-body li svg { width: 18px; height: 18px; color: var(--c-primary); flex-shrink: 0; margin-top: 3px; }
.article-body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 20px 0; font-size: 15px; background: #fff; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; }
.article-body th, .article-body td { padding: 12px 16px; text-align: left; }
.article-body th { background: #f3f7fe; color: var(--c-text-sub); font-weight: 600; white-space: nowrap; }
.article-body td { color: var(--c-text-sub); border-top: 1px solid var(--c-border); }
.article-body tbody tr:first-child td { border-top: 0; }
.article-body tbody tr:hover { background: #f8fbff; }
.article-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--c-border); }
.article-share { display: flex; gap: 10px; margin-top: 18px; align-items: center; }
.article-share .as-label { font-size: 14px; color: var(--c-text-sub); margin-right: 4px; }
.article-share a { width: 40px; height: 40px; border-radius: 10px; background: var(--c-primary-light); color: var(--c-primary); display: inline-flex; align-items: center; justify-content: center; transition: all .2s; }
.article-share a:hover { background: var(--c-primary); color: #fff; }
.article-share a svg { width: 18px; height: 18px; }
.related { margin-top: 40px; }
.related .news-list { margin-top: 16px; }

/* 文章详情布局：主文 + 右侧栏 */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.article-lead-img { margin: 0 0 26px; }
.article-lead-img img { width: 100%; height: auto; border-radius: 12px; display: block; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--c-border); }
.article-nav a { font-size: 14px; color: var(--c-text-sub); display: inline-flex; align-items: center; gap: 6px; max-width: 48%; line-height: 1.4; }
.article-nav a:hover { color: var(--c-primary); }
.article-nav .an-next { text-align: right; justify-content: flex-end; }
.article-nav svg { width: 14px; height: 14px; color: var(--c-primary); flex-shrink: 0; }
.article-side { position: sticky; top: 92px; }

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
}

@media (max-width: 768px) {
  .article-wrap { padding: 24px 18px; }
  .article-head h1 { font-size: 24px; }
}
