/* 行业资讯（/article）页面，由 xueshupaper.server/www_site 渲染，变量沿用 site.css */
.nav-menu a.is-active { color: var(--navy); background: var(--paper); font-weight: 700; }

/* ---------- 列表 ---------- */
.art-hero {
  background:
    radial-gradient(640px 260px at 90% -20%, rgba(240, 180, 41, 0.22), transparent 60%),
    linear-gradient(165deg, #16345f 0%, #0b1c33 60%, #081426 100%);
  color: var(--white);
  padding: 56px 0 40px;
}
.art-hero .kicker { letter-spacing: 0.28em; }
.art-hero h1 { margin: 10px 0 10px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.2; letter-spacing: -0.02em; }
.art-hero h1 span { margin-left: 12px; color: var(--amber); font-size: 0.6em; }
.art-hero .lead { margin: 0; max-width: 40em; color: rgba(255, 255, 255, 0.78); }
.art-chips { display: flex; gap: 8px; margin-top: 28px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.art-chips::-webkit-scrollbar { display: none; }
.art-chips a {
  flex: none; padding: 7px 16px; border-radius: 999px; font-size: 14px; text-decoration: none;
  color: rgba(255, 255, 255, 0.86); border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06);
  transition: all .2s;
}
.art-chips a:hover { border-color: var(--amber); color: var(--amber); }
.art-chips a.is-active { background: var(--amber); border-color: var(--amber); color: var(--navy); font-weight: 700; }

.art-main { padding: 40px 0 80px; background: var(--paper); }
.art-main-detail { padding-top: 22px; background: var(--white); }
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }

.art-section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 16px; }
.art-section-head h2 { margin: 0; font-size: 20px; }
.art-section-head span { color: var(--muted); font-size: 14px; }

.art-cover {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: radial-gradient(260px 160px at 100% 0, rgba(240, 180, 41, 0.35), transparent 70%), linear-gradient(150deg, #16345f, #0b1c33);
}
.art-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.art-cover-text {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px;
  color: var(--white); font-size: 24px; font-weight: 800; line-height: 1.35;
}
.art-cover-text b { margin-bottom: 6px; color: var(--amber); font-size: 12px; letter-spacing: 0.2em; }
.art-featured:hover .art-cover img, .art-card:hover .art-cover img { transform: scale(1.04); }

.art-eyebrow { display: inline-flex; align-items: center; color: var(--amber-deep); font-size: 13px; font-weight: 700; text-decoration: none; }
.art-badge { padding: 3px 10px; border-radius: 999px; background: #fff6df; color: #9a6b08; }
.art-badge + .art-badge { margin-left: 8px; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; color: #8593a6; font-size: 13px; }
.art-meta > * + *::before { content: "·"; margin: 0 10px; color: #b4bfcd; }

.art-featured {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center;
  margin-bottom: 36px; padding: 18px; border-radius: 22px; background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.art-featured-body { padding-right: 12px; }
.art-featured h2 { margin: 12px 0 12px; font-size: 26px; line-height: 1.4; letter-spacing: -0.01em; }
.art-featured p {
  margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.85;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.art-featured h2 a, .art-card h3 a {
  color: var(--ink); text-decoration: none;
  background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 2px no-repeat; transition: background-size .3s;
}
.art-featured h2 a:hover, .art-card h3 a:hover { background-size: 100% 2px; }

.art-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.art-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.art-card { display: flex; flex-direction: column; min-width: 0; }
.art-card-body { display: flex; flex: 1; flex-direction: column; padding: 14px 2px 0; }
.art-card h3 {
  margin: 8px 0 8px; font-size: 18px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-grid-3 .art-card h3 { font-size: 16px; }
.art-card p {
  margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-card .art-meta { margin-top: auto; font-size: 12px; }

.art-empty { padding: 80px 24px; text-align: center; color: var(--muted); border: 1px dashed #cfd9e6; border-radius: var(--radius); background: var(--white); }
.art-empty h1 { margin: 0 0 20px; color: var(--ink); font-size: 24px; }
.art-empty .btn { margin: 4px; }

.art-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.art-pager a, .art-pager span {
  min-width: 40px; height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px; line-height: 38px; text-align: center;
  text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); transition: all .2s;
}
.art-pager span { background: transparent; border-color: transparent; color: var(--muted); }
.art-pager a:hover { border-color: var(--amber); color: var(--amber-deep); }
.art-pager a.is-active { background: var(--navy); border-color: var(--navy); color: var(--amber); font-weight: 700; }

/* ---------- 侧栏 ---------- */
.art-aside { display: grid; gap: 18px; position: sticky; top: calc(var(--nav-h) + 20px); }
.art-cta {
  border-radius: var(--radius); padding: 24px; color: var(--white);
  background: radial-gradient(260px 160px at 100% 0, rgba(240, 180, 41, 0.25), transparent 70%), var(--navy);
}
.art-cta h2 { margin: 8px 0 8px; font-size: 20px; line-height: 1.4; }
.art-cta p:not(.kicker) { margin: 0 0 18px; color: rgba(255, 255, 255, 0.74); font-size: 14px; }
.art-cta .btn { width: 100%; }
.art-cta-link { display: block; margin-top: 12px; text-align: center; color: rgba(255, 255, 255, 0.8); font-size: 14px; text-decoration: none; }
.art-cta-link:hover { color: var(--amber); }
.art-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.art-box h2 { margin: 0 0 12px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.art-box h2::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--amber); }
.art-hot { margin: 0; padding: 0; list-style: none; counter-reset: hot; }
.art-hot li { counter-increment: hot; display: flex; gap: 12px; padding: 9px 0; font-size: 14px; line-height: 1.55; }
.art-hot li + li { border-top: 1px solid var(--line); }
.art-hot li::before { content: counter(hot, decimal-leading-zero); flex: 0 0 22px; color: #b4bfcd; font-size: 15px; font-weight: 800; font-style: italic; }
.art-hot li:nth-child(-n + 3)::before { color: var(--amber-deep); }
.art-hot a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-hot a:hover { color: var(--navy-2); }
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.art-tags a {
  padding: 4px 12px; border-radius: 999px; font-size: 13px; text-decoration: none;
  background: var(--paper); color: #31445f; border: 1px solid var(--line);
}
.art-tags a:hover, .art-tags a.is-active { background: var(--navy); border-color: var(--navy); color: var(--amber); }

/* ---------- 详情 ---------- */
.art-progress {
  position: fixed; top: 0; left: 0; z-index: 200; width: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), #ffd36b); box-shadow: 0 0 8px rgba(240, 180, 41, 0.6);
}
.art-crumb { display: flex; flex-wrap: wrap; gap: 8px; color: #8593a6; font-size: 14px; }
.art-crumb a { text-decoration: none; color: var(--muted); }
.art-crumb a:hover { color: var(--navy); }
.art-crumb em { font-style: normal; color: var(--ink); }

.art-detail { display: grid; grid-template-columns: minmax(0, 720px) 260px; gap: 56px; justify-content: center; align-items: start; margin-top: 28px; }
.art-head { margin-bottom: 28px; }
.art-head h1 { margin: 14px 0 14px; font-size: clamp(28px, 3vw, 38px); line-height: 1.32; letter-spacing: -0.02em; }
.art-dek { margin: 0 0 20px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.art-head .art-meta { padding-top: 16px; border-top: 1px solid var(--line); }
.art-hero-cover { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.art-hero-cover img { display: block; width: 100%; max-height: 460px; object-fit: cover; }

.art-toc-mobile { display: none; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.art-toc-mobile summary { padding: 12px 16px; font-size: 14px; font-weight: 700; cursor: pointer; }
.art-toc-mobile .art-toc { padding: 0 16px 12px; }
.art-toc { margin: 0; padding: 0; list-style: none; }
.art-toc a {
  display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); color: var(--muted);
  font-size: 13px; line-height: 1.5; text-decoration: none; transition: all .2s;
}
.art-toc li.l3 a { padding-left: 28px; font-size: 12.5px; }
.art-toc a:hover { color: var(--ink); }
.art-toc a.is-active { border-left-color: var(--amber); color: var(--navy); font-weight: 700; }
.art-rail {
  position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 20px;
  max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; scrollbar-width: none;
}
.art-rail-title { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.18em; color: var(--ink); }
.art-rail .art-cta { padding: 20px; }
.art-rail .art-cta h2 { font-size: 17px; }

.art-content { font-size: 17px; line-height: 1.95; overflow-wrap: anywhere; color: #263247; }
.art-content p, .art-content ul, .art-content ol { color: inherit; }
.art-content > :first-child { margin-top: 0; }
.art-content p { margin: 0 0 1.25em; }
.art-content h2, .art-content h3, .art-content h4 { scroll-margin-top: calc(var(--nav-h) + 24px); color: var(--ink); }
.art-content h2 { margin: 2em 0 .8em; font-size: 25px; line-height: 1.4; }
.art-content h2::before { content: ""; display: block; width: 28px; height: 4px; margin-bottom: 14px; border-radius: 2px; background: var(--amber); }
.art-content h3 { margin: 1.6em 0 .6em; font-size: 20px; color: var(--navy-2); }
.art-content h4 { margin: 1.3em 0 .5em; font-size: 17px; }
.art-content a { color: var(--navy-2); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.art-content strong { color: var(--ink); }
.art-content img { display: block; max-width: 100%; height: auto; margin: 1.6em auto; border-radius: 12px; }
.art-content ul, .art-content ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.art-content li + li { margin-top: .35em; }
.art-content li::marker { color: var(--amber-deep); }
.art-content blockquote { margin: 1.6em 0; padding: 16px 22px; background: var(--paper); border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; color: #3d4d64; }
.art-content blockquote p:last-child { margin-bottom: 0; }
.art-content pre { margin: 1.4em 0; padding: 16px; overflow: auto; border-radius: 12px; background: var(--navy); color: #e6edf7; font-size: 14px; line-height: 1.6; }
.art-content code { font-family: Consolas, Menlo, monospace; font-size: .9em; }
.art-content :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--paper); color: #9a3412; }
.art-content table { margin: 1.4em 0; display: block; overflow-x: auto; font-size: 15px; border-collapse: collapse; }
.art-content th, .art-content td { border: 1px solid var(--line); padding: 10px 12px; }
.art-content th { background: var(--paper); color: var(--ink); }
.art-content tr:last-child td { font-weight: 400; border-bottom: 1px solid var(--line); }
.art-content hr { margin: 2.4em auto; width: 80px; border: 0; border-top: 2px solid var(--line); }

.art-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 36px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.art-share {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; transition: all .2s;
}
.art-share:hover, .art-share.is-done { border-color: var(--amber); color: var(--amber-deep); }

.art-join {
  position: relative; overflow: hidden;
  margin-top: 36px; padding: 28px 30px; border-radius: 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: radial-gradient(360px 200px at 100% 0, rgba(240, 180, 41, 0.28), transparent 70%), linear-gradient(120deg, #0b1c33 0%, #14325c 100%);
  color: var(--white);
}
.art-join h2 { margin: 0 0 6px; font-size: 21px; }
.art-join p { margin: 0; max-width: 30em; color: rgba(255, 255, 255, 0.74); font-size: 14px; }
.art-join-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.art-join-link { color: rgba(255, 255, 255, 0.8); font-size: 13px; text-decoration: none; }
.art-join-link:hover { color: var(--amber); }

.art-near { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.art-near-item {
  display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px; border-radius: 16px;
  background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
a.art-near-item:hover { border-color: var(--amber); box-shadow: var(--shadow); }
.art-near-item.next { flex-direction: row-reverse; text-align: right; }
.art-near-thumb {
  flex: none; width: 92px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden;
  background: radial-gradient(80px 60px at 100% 0, rgba(240, 180, 41, 0.4), transparent 70%), linear-gradient(150deg, #16345f, #0b1c33);
}
.art-near-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-near-text { min-width: 0; }
.art-near-text small { display: block; margin-bottom: 4px; color: #8593a6; font-size: 12px; }
.art-near-text span { font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-near-item.is-empty span { color: #8593a6; font-weight: 400; }

.art-related { margin-top: 64px; }

@media (max-width: 1100px) {
  .art-detail { grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; }
}
@media (max-width: 900px) {
  .art-layout, .art-detail { grid-template-columns: minmax(0, 1fr); }
  .art-aside { position: static; }
  .art-detail .art-rail { display: none; }
  .art-toc-mobile { display: block; }
  .art-featured { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .art-featured-body { padding: 0 4px 4px; }
  .art-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .art-hero { padding: 40px 0 28px; }
  .art-featured { padding: 12px; }
  .art-featured h2 { font-size: 20px; }
  .art-grid, .art-grid-3 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .art-dek { font-size: 15px; }
  .art-content { font-size: 16px; }
  .art-content h2 { font-size: 21px; }
  .art-join { padding: 22px 20px; }
  .art-join-actions { width: 100%; }
  .art-join-actions .btn { width: 100%; }
  .art-near { grid-template-columns: 1fr; }
}
