:root {
  --bg: #fffaf2;
  --paper: #ffffff;
  --paper-soft: #fff4df;
  --ink: #20242c;
  --muted: #687386;
  --brand: #ff7a1a;
  --brand-dark: #b44700;
  --line: #eadfce;
  --green: #2f8f71;
  --blue: #315f8f;
  --shadow: 0 22px 60px rgba(41, 35, 24, .10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 26, .12), transparent 32rem),
    linear-gradient(180deg, #fffaf2 0%, #fff 48%, #fffaf2 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

img, video {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 242, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(234, 223, 206, .85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), #ffbf69);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 122, 26, .26);
}

.logo small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
  margin-top: -4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #394150;
  font-weight: 700;
  font-size: 15px;
}

.main-nav a[aria-current="page"],
.main-nav a:hover {
  background: var(--paper);
  color: var(--brand-dark);
  box-shadow: 0 8px 20px rgba(41, 35, 24, .08);
}

.search-band {
  padding: 16px 0 18px;
  border-top: 1px solid rgba(234, 223, 206, .65);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 10px 32px rgba(41, 35, 24, .06);
}

.search-form input {
  border: 0;
  outline: 0;
  padding: 12px 14px;
  font-size: 16px;
  background: transparent;
  color: var(--ink);
}

.btn,
.search-form button {
  border: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 12px 18px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 122, 26, .25);
}

.btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.search-tip {
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
  margin: 8px 8px 0;
}

.hero {
  padding: 46px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 24px;
  align-items: stretch;
}

.hero-card,
.panel,
.card {
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
}

.hero-media {
  position: relative;
  min-height: 330px;
  background: #fff2d9;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.video-badge,
.tag,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff4e7;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(255, 122, 26, .20);
}

.video-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  background: rgba(255,255,255,.92);
}

.play-float,
.play-hover {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 26, .92);
  color: #fff;
  box-shadow: 0 18px 42px rgba(255, 122, 26, .35);
}

.play-float {
  position: absolute;
  right: 22px;
  bottom: 22px;
}

.play-float::before,
.play-hover::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 19px solid #fff;
  margin-left: 5px;
}

.hero-content {
  padding: 26px;
}

.eyebrow {
  color: var(--brand-dark);
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 13px;
  text-transform: uppercase;
}

h1,
.h1 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.12;
  margin: 10px 0 18px;
  letter-spacing: -.04em;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  margin: 0 0 14px;
  letter-spacing: -.025em;
}

h3 {
  line-height: 1.35;
  margin: 0 0 8px;
}

.lede {
  color: #4d5667;
  font-size: 18px;
  margin: 0 0 18px;
}

.meta-row,
.stats,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.stats strong {
  color: var(--ink);
}

.side-stack {
  display: grid;
  gap: 18px;
}

.panel {
  padding: 22px;
}

.update-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.update-list li {
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.update-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 18px;
  overflow: hidden;
}

.card-media {
  border-radius: 18px;
  overflow: hidden;
  margin: -6px -6px 16px;
  background: #fff2d9;
  position: relative;
}

.card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1);
  transition: transform .25s ease;
}

.card:hover .card-media img {
  transform: scale(1.035);
}

.video-card {
  position: relative;
}

.video-card video,
.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #fff3df;
}

.play-hover {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) scale(.82);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}

.video-card:hover .play-hover,
.video-card:focus-within .play-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.topic-card {
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(255,122,26,.12), rgba(49,95,143,.10)),
    #fff;
}

.author {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff7a1a, #315f8f);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}

.faq-list summary {
  font-weight: 900;
  cursor: pointer;
}

.comment {
  display: grid;
  gap: 8px;
}

.comment small {
  color: var(--muted);
}

.cta {
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.45), transparent 22rem),
    linear-gradient(135deg, #ff7a1a, #315f8f);
  color: #fff;
}

.cta p {
  color: rgba(255,255,255,.86);
  max-width: 760px;
}

.cta .btn.secondary {
  color: var(--ink);
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin: 24px 0 8px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  padding: 34px 0;
}

.article-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.article-body p {
  color: #3f4755;
}

.article-body h2 {
  margin-top: 34px;
}

.article-body ul {
  padding-left: 1.3em;
}

.article-cover {
  margin: 24px 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-cover figcaption,
.card figcaption {
  color: var(--muted);
  font-size: 13px;
  padding-top: 8px;
}

.sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-like {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.table-like th,
.table-like td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.table-like th {
  background: #fff5e7;
}

.site-footer {
  margin-top: 42px;
  padding: 36px 0;
  background: #20242c;
  color: rgba(255,255,255,.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 22px;
}

.site-footer a {
  color: rgba(255,255,255,.88);
}

.footer-logo {
  color: #fff;
}

.notice {
  color: var(--muted);
  font-size: 13px;
}

.json-block {
  white-space: pre-wrap;
  overflow-x: auto;
  background: #151922;
  color: #f7f0e7;
  border-radius: 18px;
  padding: 18px;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .header-inner,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero-grid,
  .article-layout,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, 1160px);
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 26px;
  }

  .panel,
  .card,
  .hero-content,
  .article-body {
    padding: 18px;
  }

  .main-nav a {
    font-size: 14px;
    padding: 8px 10px;
  }
}