:root {
  --bg: #fffaf7;
  --paper: #ffffff;
  --ink: #24212b;
  --muted: #696371;
  --line: #f0dfd8;
  --accent: #ff6a8f;
  --accent-deep: #d83f66;
  --soft: #fff0f4;
  --shadow: 0 18px 50px rgba(82, 49, 59, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7f4 0%, var(--bg) 38%, #fff 100%);
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-deep); }
img { max-width: 100%; height: auto; display: block; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,250,247,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar, .main-nav, .search-wrap, main, .site-footer { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; }
.logo img, .footer-logo img { width: 46px; height: 46px; border-radius: 14px; box-shadow: var(--shadow); }
.domain-pill { margin: 0; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.main-nav { display: flex; gap: 10px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; }
.main-nav a { white-space: nowrap; border: 1px solid var(--line); background: var(--paper); padding: 8px 13px; border-radius: 999px; font-size: 14px; }
.main-nav a:hover { background: var(--soft); }
.search-wrap { padding-top: 10px; padding-bottom: 16px; }
.search-wrap label { display: block; font-weight: 700; margin-bottom: 8px; }
.search-line { display: flex; gap: 10px; }
.search-line input { flex: 1; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 15px; background: #fff; }
.search-line button, .cta, .form-card button { border: 0; border-radius: 14px; padding: 12px 18px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
#searchHint { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
main { padding-top: 28px; padding-bottom: 50px; }
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; padding: 34px; border: 1px solid var(--line); background: linear-gradient(135deg, #fff 0%, #fff1f5 100%); border-radius: 28px; box-shadow: var(--shadow); }
.eyebrow { color: var(--accent-deep); font-weight: 800; margin: 0 0 8px; }
h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1.12; margin: 0 0 16px; letter-spacing: -.04em; }
h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.25; margin: 0 0 14px; }
h3 { line-height: 1.35; margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.cta.secondary { background: #fff; color: var(--accent-deep); border: 1px solid var(--line); }
.hero-media { position: relative; }
.hero-media figure { margin: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.hero-media figcaption { padding: 12px 14px; color: var(--muted); font-size: 14px; }
.live-card { position: absolute; left: 16px; bottom: 58px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.metrics { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.metrics span { background: #fff5f7; border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; }
.section { margin-top: 42px; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 16px; }
.section-head p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-card, .panel, .author-card, .faq-item, .comment-card, .topic-card, .json-card, .article-body { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 30px rgba(82, 49, 59, .07); overflow: hidden; }
.video-card-featured { display: grid; grid-template-columns: 1.05fr .95fr; }
.video-thumb { position: relative; display: block; overflow: hidden; background: #2a2531; }
.video-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.play-button { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.8); width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--accent-deep); opacity: 0; transition: .25s ease; box-shadow: var(--shadow); }
.video-card:hover .play-button { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-card:hover .video-thumb img { transform: scale(1.04); filter: saturate(1.08); }
.video-badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; border-radius: 999px; padding: 5px 10px; font-size: 13px; font-weight: 800; }
.video-content { padding: 18px; }
.meta { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.tag { display: inline-flex; border: 1px solid var(--line); color: var(--accent-deep); background: #fff7f9; border-radius: 999px; padding: 3px 9px; font-size: 13px; }
.news-list { display: grid; gap: 14px; }
.news-item { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.news-item strong { display: block; margin-bottom: 6px; }
.topic-card, .panel, .author-card, .faq-item, .comment-card, .json-card { padding: 20px; }
.topic-card img { border-radius: 18px; margin-bottom: 12px; }
.author-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--accent-deep); font-weight: 900; font-size: 26px; }
.faq-item summary { cursor: pointer; font-weight: 800; }
.faq-item p { color: var(--muted); margin-bottom: 0; }
.comment-card p { margin: 8px 0 0; color: var(--muted); }
.json-output { background: #211b25; color: #fffaf7; border-radius: 18px; overflow: auto; padding: 18px; font-size: 13px; line-height: 1.6; }
.article-hero { padding: 30px; border-radius: 28px; background: linear-gradient(135deg, #fff 0%, #fff0f4 100%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.article-cover { margin: 24px 0 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.article-body { padding: 26px; margin-top: 24px; }
.article-body p { color: #3d3745; }
.article-body ul { padding-left: 20px; }
.inline-note { border-left: 4px solid var(--accent); background: #fff7f9; padding: 14px 16px; border-radius: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.form-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.form-card label { display: block; font-weight: 700; margin: 12px 0 6px; }
.form-card input, .form-card textarea, .form-card select { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font: inherit; }
.form-card textarea { min-height: 130px; }
.site-footer { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 34px; color: var(--muted); }
.footer-logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--accent-deep); }
.search-highlight { outline: 3px solid rgba(255,106,143,.45); outline-offset: 3px; }
@media (max-width: 900px) {
  .hero, .video-card-featured { grid-template-columns: 1fr; }
  .grid.two, .grid.three, .related-grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .section-head { display: block; }
}
@media (max-width: 560px) {
  .search-line { flex-direction: column; }
  main { padding-top: 18px; }
  .hero, .article-hero, .article-body { padding: 20px; border-radius: 22px; }
  .live-card { position: static; margin-top: 10px; }
}
