/* 算力资源网 · 首页 index.css */

/* ---------- Hero 轮播 + 海报 ---------- */
.hero-banners { padding: 36px 0 0; }
.hero-banners + .index-section { padding-top: 28px; }
.hero-banners-inner { display: grid; grid-template-columns: 1fr 419px; gap: 36px; align-items: start; }

.hero-carousel {
  position: relative; overflow: hidden; border-radius: 16px;
  box-shadow: var(--c-shadow-card); background: #eef3fb;
  aspect-ratio: 16 / 9;
}
.hero-carousel .hc-track { display: flex; width: 100%; height: 100%; transition: transform .6s ease; }
.hero-carousel .hc-slide { flex: 0 0 100%; height: 100%; display: block; color: inherit; text-decoration: none; overflow: hidden; }
.hero-carousel .hc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-carousel .hc-dots {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero-carousel .hc-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.5); transition: all .25s ease;
}
.hero-carousel .hc-dots button:hover { background: rgba(255,255,255,.8); }
.hero-carousel .hc-dots button.active { background: #fff; width: 24px; border-radius: 4px; }

.hero-carousel .hc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; padding: 0; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.38); color: #fff; cursor: pointer;
  opacity: 0; transition: opacity .25s ease, background .2s ease; z-index: 4;
}
.hero-carousel .hc-arrow:hover { background: rgba(15,23,42,.62); }
.hero-carousel .hc-prev { left: 14px; }
.hero-carousel .hc-next { right: 14px; }
.hero-carousel .hc-arrow svg { width: 20px; height: 20px; display: block; }
.hero-carousel:hover .hc-arrow { opacity: 1; }

.hero-poster {
  display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 16px; box-shadow: var(--c-shadow-card);
  background: #eef3fb; transition: transform .3s ease, box-shadow .3s ease;
}
.hero-poster:hover { transform: translateY(-3px); box-shadow: var(--c-shadow-hover); }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 行情概览数据卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; position: relative; z-index: 5; }
.sec-lead { margin: -6px 0 26px; color: var(--c-text-sub); font-size: 15px; max-width: 720px; }
.stat-card {
  background: #fff; border-radius: var(--radius-card); padding: 26px 24px;
  box-shadow: var(--c-shadow-card);
}
.stat-card .s-label { font-size: 14px; color: var(--c-text-sub); display: flex; align-items: center; gap: 8px; }
.stat-card .s-label svg { width: 16px; height: 16px; color: var(--c-primary); }
.stat-card .s-value { font-size: 32px; font-weight: 800; margin-top: 12px; letter-spacing: .5px; }
.stat-card .s-value small { font-size: 15px; font-weight: 600; color: var(--c-text-sub); margin-left: 4px; }
.stat-card .s-trend { margin-top: 8px; font-size: 13px; }

/* ---------- 板块通用 ---------- */
.index-section { padding: 70px 0; }
.index-section.bg-white { background: #fff; }
.index-section.bg-soft { background: #f5f8fd; }

/* 精选大图资讯卡 */
.feat-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--c-shadow-card);
  transition: transform .25s ease, box-shadow .25s ease; margin-bottom: 18px;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--c-shadow-hover); }
.feat-thumb { overflow: hidden; border-top-left-radius: 16px; border-bottom-left-radius: 16px; }
.feat-thumb img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; display: block; }
.feat-body { padding: 22px 26px; align-self: center; border-top-right-radius: 16px; border-bottom-right-radius: 16px; }
.feat-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--c-primary); background: #eaf2ff; padding: 3px 11px; border-radius: 999px; margin-bottom: 12px; }
.feat-body h3 { font-size: 21px; line-height: 1.4; margin: 0 0 10px; }
.feat-body h3:hover { color: var(--c-primary); }
.feat-body p { color: var(--c-text-sub); font-size: 14px; line-height: 1.8; margin: 0 0 14px; }
.feat-meta { font-size: 12px; color: var(--c-text-light); }

/* 每日报价速览 */
.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: 16px 20px; text-align: left; font-size: 15px; }
.quote-board thead th { background: #f3f7fe; color: var(--c-text-sub); font-weight: 600; font-size: 13px; letter-spacing: .5px; }
.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-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; }
.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; }

/* 算力专网 entry */
.pn-entry { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: #fff; border-radius: var(--radius-card); box-shadow: var(--c-shadow-card); overflow: hidden; }
.pn-entry .pn-info { padding: 46px 44px; }
.pn-entry .pn-info h3 { font-size: 26px; font-weight: 700; }
.pn-entry .pn-info p { margin-top: 14px; color: var(--c-text-sub); }
.pn-feats { margin-top: 26px; display: grid; gap: 16px; }
.pn-feats li { display: flex; gap: 12px; align-items: flex-start; }
.pn-feats .pf-ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(6,182,212,.12); color: #0891b2; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pn-feats .pf-ico svg { width: 19px; height: 19px; }
.pn-feats .pf-t { font-weight: 600; }
.pn-feats .pf-d { font-size: 14px; color: var(--c-text-sub); }
.pn-entry .pn-visual {
  background:
    radial-gradient(420px 280px at 70% 20%, rgba(6,182,212,.25), transparent 60%),
    linear-gradient(135deg, #0b2a4a 0%, #0f3d63 100%);
  position: relative; display: flex; align-items: center; justify-content: center; padding: 30px;
}
.pn-entry .pn-visual .pn-orb {
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(34,211,238,.5), rgba(43,127,255,.15));
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; flex-direction: column; color: #fff; text-align: center;
}
.pn-entry .pn-visual .pn-orb b { font-size: 30px; }
.pn-entry .pn-visual .pn-orb span { font-size: 13px; opacity: .8; margin-top: 4px; }
.pn-entry .pn-visual .pn-node {
  position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34,211,238,.25);
}

/* 栏目 listing 卡片 */
.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-layout { display: grid; grid-template-columns: 1fr 419px; gap: 36px; align-items: start; }
.news-list { display: grid; gap: 14px; }
.news-item { display: flex; gap: 16px; background: #fff; border-radius: 14px; padding: 18px 20px; 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-tag { align-self: flex-start; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--c-primary-light); color: var(--c-primary); flex-shrink: 0; }
.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; }
.news-item .ni-body { flex: 1; min-width: 0; }
.news-item .ni-title { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-item .ni-title:hover { color: var(--c-primary); }
.news-item .ni-desc { font-size: 13px; color: var(--c-text-sub); margin-top: 6px; line-height: 1.7; min-height: 44px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.news-item .ni-meta { font-size: 12px; color: var(--c-text-light); margin-top: 8px; }
.news-item .ni-more { display: inline-block; margin-top: 8px; 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); }
.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); }

/* 数据工具 / 文库 CTA band */
.tool-band {
  background: linear-gradient(135deg, #0f3d63 0%, #0b2a4a 100%);
  border-radius: var(--radius-card); padding: 44px 48px; color: #fff;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 36px; align-items: center;
  position: relative; overflow: hidden;
}
.tool-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; background: rgba(34,211,238,.18); }
.tool-band h3 { font-size: 26px; font-weight: 700; position: relative; }
.tool-band p { margin-top: 10px; color: rgba(255,255,255,.75); position: relative; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.tool-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 20px; transition: all .25s ease; }
.tool-card:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }
.tool-card .tc-ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(34,211,238,.2); color: #22d3ee; display: inline-flex; align-items: center; justify-content: center; }
.tool-card .tc-ico svg { width: 22px; height: 22px; }
.tool-card h5 { margin-top: 14px; font-size: 16px; font-weight: 600; }
.tool-card p { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 6px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-banners-inner { grid-template-columns: 1fr; row-gap: 18px; }
  .hero-banners-inner > * { width: 100%; max-width: 100%; }
  .hero-carousel { min-height: 200px; }
  .feat-card { grid-template-columns: 1fr; }
  .feat-thumb img { height: 180px; min-height: 0; }
}
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .news-layout { grid-template-columns: 1fr; }
  .hero-poster { display: none; }
  .pn-entry { grid-template-columns: 1fr; }
  .pn-entry .pn-visual { min-height: 240px; }
  .tool-band { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
  .index-section { padding: 48px 0; }
  .listing-grid { grid-template-columns: 1fr; }
  .quote-board { overflow-x: auto; }
  .quote-board table { min-width: 640px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-band { padding: 32px 24px; }
}

