/*
Design philosophy for 海角:
- 新国潮赛博剧场：深色影院基底、胶片金与绛红点亮、强调数字片场与动漫内容更新感。
- Use asymmetrical layout, cinematic shadows, and film-strip accents.
- Ask for every change: does it reinforce the digital studio identity of 海角?
*/
:root {
  --bg: #0d0b12;
  --panel: #16131d;
  --panel-2: #1f1a27;
  --text: #f5efe4;
  --muted: #bcb2bc;
  --gold: #e5b979;
  --red: #b13a42;
  --blue: #8bc9ff;
  --line: rgba(255,255,255,0.12);
  --shadow: 0 24px 70px rgba(0,0,0,0.42);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans SC', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(177,58,66,0.18), transparent 30%),
    radial-gradient(circle at 80% 0, rgba(139,201,255,0.18), transparent 24%),
    linear-gradient(180deg, #0c0910 0%, #110e16 60%, #0d0b12 100%);
  color: var(--text);
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border: 0; }
button, input { font: inherit; }
.page-shell { max-width: 1480px; margin: 0 auto; padding: 24px 18px 60px; }
.site-header {
  position: sticky; top: 0; z-index: 40; backdrop-filter: blur(16px);
  background: rgba(10,8,14,0.85); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow); padding: 18px 22px; margin-bottom: 26px;
}
.brand-strip { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: center; }
.brand-copy h2 { margin: 2px 0 0; font-family: 'Noto Serif SC', serif; font-size: clamp(1.25rem, 2vw, 2rem); }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: .82rem; margin: 0 0 8px; }
.main-nav { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); transition: .3s ease;
}
.nav-link:hover, .nav-link.is-active { background: linear-gradient(135deg, rgba(177,58,66,0.32), rgba(139,201,255,0.18)); border-color: rgba(229,185,121,0.45); transform: translateY(-1px); }
.search-shell { margin-top: 18px; background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--line); border-radius: 22px; padding: 16px; }
.search-label { display: block; margin-bottom: 10px; font-weight: 700; }
.search-box { display: grid; grid-template-columns: 1fr 150px; gap: 10px; }
.search-box input, .mcp-demo input {
  border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(12,8,18,.8); color: var(--text);
  padding: 14px 16px;
}
.search-box button, .hero-actions .button, .share-actions button, .mcp-demo button {
  border: 0; border-radius: 16px; padding: 13px 18px; color: #120f18; background: var(--gold); font-weight: 800;
  cursor: pointer; box-shadow: 0 10px 30px rgba(229,185,121,.25); transition: .3s ease;
}
.search-box button:hover, .hero-actions .button:hover, .share-actions button:hover, .mcp-demo button:hover { transform: translateY(-2px); }
.breadcrumb { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.breadcrumb a { color: var(--blue); }
.page-main { display: grid; gap: 28px; }
.hero {
  display: grid; gap: 24px; align-items: center; background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line); border-radius: 36px; padding: 32px; box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(177,58,66,0.10), transparent 35%, rgba(139,201,255,0.08) 90%); pointer-events: none;
}
.hero-home { grid-template-columns: 1.1fr .95fr; }
.hero-sub { grid-template-columns: 1fr .8fr; }
.hero h1 { position: relative; margin: 0 0 16px; font-family: 'Noto Serif SC', serif; font-size: clamp(2.2rem, 4.6vw, 4.8rem); line-height: 1.15; }
.lead { position: relative; font-size: 1.05rem; color: #ddd3d9; }
.hero-art img, .visual-card img { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.hero-art.small { max-width: 620px; margin-left: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.button-secondary { background: transparent !important; color: var(--text) !important; border: 1px solid rgba(229,185,121,.45) !important; box-shadow: none !important; }
.keyword-ribbon, .data-chip-row, .plain-list, .bullet-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 20px 0 0; list-style: none; }
.keyword-ribbon li, .data-chip-row span, .brand-wall span {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
}
.stats-grid, .three-col-grid, .timeline-grid, .review-grid, .mini-feature-grid, .footer-grid {
  display: grid; gap: 18px;
}
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid article, .three-col-grid article, .timeline-grid article, .review-card, .mini-feature, .json-section, .section-block, .site-footer {
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
}
.stats-grid article { padding: 24px; }
.stats-grid span { display: block; margin: 8px 0; font: 800 2rem/1 'Noto Serif SC', serif; color: var(--gold); }
.section-block, .json-section, .site-footer { padding: 28px; }
.section-heading { max-width: 880px; margin: 0 auto 22px; text-align: center; }
.section-heading.left { text-align: left; margin-left: 0; }
.section-heading h2 { margin: 0; font-family: 'Noto Serif SC', serif; font-size: clamp(1.7rem, 3vw, 3rem); }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.video-card { overflow: hidden; border-radius: 24px; background: #15111a; border: 1px solid rgba(255,255,255,.08); }
.video-poster {
  position: relative; min-height: 260px; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 18px; isolation: isolate;
}
.video-poster::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,14,0.04), rgba(10,8,14,0.88)); z-index: -1;
}
.video-tag { position: absolute; top: 16px; left: 16px; background: rgba(17,14,22,.88); color: var(--gold); border: 1px solid rgba(229,185,121,.32); border-radius: 999px; padding: 6px 12px; }
.play-pill {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%) scale(.86); width: 82px; height: 82px; border-radius: 50%;
  border: 0; background: rgba(229,185,121,.92); font-size: 2rem; opacity: 0; transition: .32s ease; box-shadow: 0 22px 40px rgba(0,0,0,.32);
}
.video-hover {
  width: 100%; padding: 14px; border-radius: 18px; background: rgba(16,14,24,.76); border: 1px solid rgba(255,255,255,.1); transform: translateY(16px); opacity: 0; transition: .32s ease;
}
.video-card:hover .play-pill, .video-card.is-hover .play-pill { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-card:hover .video-hover, .video-card.is-hover .video-hover { opacity: 1; transform: translateY(0); }
.video-body { padding: 18px; }
.video-body h3 { margin: 0 0 10px; font-size: 1.08rem; }
.video-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--gold); font-size: .92rem; }
.feature-split { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; align-items: center; }
.feature-split.reverse { grid-template-columns: 1fr 1fr; }
.feature-split.reverse > :first-child { order: 1; }
.feature-split.reverse > :last-child { order: 2; }
.brand-wall { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.mini-feature-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
.mini-feature { padding: 18px; }
.json-block {
  margin: 0; padding: 22px; overflow-x: auto; overflow-y: visible; white-space: pre-wrap; word-break: break-word; border-radius: 22px; background: #0c0a12; border: 1px solid rgba(255,255,255,.08);
  color: #d7ecff; font: 500 .93rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.json-block.compact { max-height: none; }
.expert-home .feature-split { grid-template-columns: .9fr 1.1fr; }
.faq-review-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 20px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid rgba(255,255,255,.08); border-radius: 20px; background: rgba(255,255,255,.03); padding: 16px 18px; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--gold); }
.review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.review-card { padding: 18px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.three-col-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.three-col-grid article, .timeline-grid article { padding: 22px; }
.timeline-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.timeline-grid span { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(177,58,66,.18); color: var(--gold); font-weight: 800; margin-bottom: 10px; }
.site-footer { margin-top: 8px; }
.footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
.qr-wrap { display: flex; gap: 12px; flex-wrap: wrap; }
.update-text { color: var(--gold); font-weight: 700; }
.mcp-note, .search-shell small { color: var(--muted); }
.toast {
  position: fixed; right: 18px; bottom: 18px; max-width: 360px; padding: 14px 16px; border-radius: 18px; background: #17131f; border: 1px solid rgba(229,185,121,.28);
  box-shadow: var(--shadow); transform: translateY(16px); opacity: 0; pointer-events: none; transition: .25s ease; z-index: 100;
}
.toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 1180px) {
  .hero-home, .hero-sub, .feature-split, .faq-review-grid, .footer-grid, .stats-grid, .video-grid, .review-grid, .three-col-grid, .timeline-grid, .mini-feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
  .page-shell { padding: 14px 12px 40px; }
  .brand-strip, .search-box, .hero-home, .hero-sub, .feature-split, .faq-review-grid, .footer-grid, .stats-grid, .video-grid, .review-grid, .three-col-grid, .timeline-grid, .mini-feature-grid { grid-template-columns: 1fr; }
  .site-header { position: static; }
  .hero, .section-block, .json-section, .site-footer { padding: 20px; border-radius: 24px; }
  .hero h1 { font-size: 2.2rem; }
}
