/* Shared creative refresh for zhaoyuanbao.com */
:root {
  --bg: #f7f3ea;
  --bg-warm: #eee6d8;
  --bg-earth: #d8cab4;
  --text: #172322;
  --text-mid: #52615f;
  --text-soft: #7b8580;
  --accent: #0f6c64;
  --accent-lt: #dcefeb;
  --gold: #c9892b;
  --border: rgba(23, 35, 34, 0.14);
  --font-serif: "Noto Serif SC", "Fraunces", Georgia, serif;
  --font-sans: "Noto Sans SC", Inter, ui-sans-serif, system-ui, sans-serif;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 8px;
  --shadow-soft: 0 18px 50px rgba(23, 35, 34, 0.1);
  --shadow-card: 0 14px 34px rgba(23, 35, 34, 0.08);
}

html {
  background: #111d1c;
}

body {
  background:
    linear-gradient(90deg, rgba(15, 108, 100, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(201, 137, 43, 0.05), transparent 480px),
    var(--bg) !important;
  background-size: 72px 72px, auto, auto;
  color: var(--text) !important;
  padding: 0 !important;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(15, 108, 100, 0.08) 49% 51%, transparent 51%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 38%);
  opacity: 0.45;
}

::selection {
  background: var(--accent);
  color: #fffdf7;
}

img {
  max-width: 100%;
}

nav {
  min-height: 72px !important;
  height: auto !important;
  padding: 0 5vw !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(16, 28, 27, 0.88) !important;
  color: #fffdf7;
  box-shadow: 0 12px 34px rgba(12, 20, 20, 0.16);
  backdrop-filter: blur(18px) saturate(140%) !important;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fffdf7;
  font-size: 1rem !important;
  letter-spacing: 0 !important;
}

.nav-logo::before {
  content: "银";
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #173f3d);
  color: #fffdf7;
  font-family: var(--font-serif);
  font-size: 0.86rem;
}

.nav-logo span,
.footer-brand span {
  color: #e6b769 !important;
}

.nav-links {
  gap: 0.35rem !important;
}

.nav-links a,
.nav-back {
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 253, 247, 0.74) !important;
  font-size: 0.86rem !important;
  font-weight: 500;
  padding: 7px 13px !important;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-links a:hover,
.nav-links a.active,
.nav-back:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fffdf7 !important;
}

.hero,
.page-hero,
.comic-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--border) !important;
  background:
    linear-gradient(135deg, rgba(15, 108, 100, 0.14), rgba(201, 137, 43, 0.1)),
    linear-gradient(180deg, #fbf7ee, var(--bg-warm)) !important;
}

.hero::before,
.page-hero::before,
.comic-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, transparent 0 62%, rgba(23, 35, 34, 0.08) 62% 63%, transparent 63%),
    repeating-linear-gradient(90deg, rgba(23, 35, 34, 0.045) 0 1px, transparent 1px 112px);
}

.hero {
  min-height: 86vh !important;
  padding: 7.5rem 5vw 5.5rem !important;
  gap: clamp(2rem, 5vw, 5.5rem) !important;
}

.hero-tag,
.section-tag,
.tag,
.news-issue,
.work-tag {
  display: inline-flex !important;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(15, 108, 100, 0.18);
  border-radius: 999px !important;
  background: rgba(255, 253, 247, 0.72) !important;
  color: var(--accent) !important;
  font-family: var(--font-sans);
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  padding: 4px 12px !important;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.comic-hero h1,
.section-title,
.connect-text h2 {
  color: var(--text);
  font-family: var(--font-serif);
  letter-spacing: 0 !important;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(2.8rem, 6vw, 5.6rem) !important;
  line-height: 1.03 !important;
}

.hero h1 em {
  color: var(--accent) !important;
  font-style: normal !important;
}

.hero-desc,
.page-hero p,
.comic-hero p,
.connect-text p {
  color: var(--text-mid) !important;
}

.btn-primary,
.form-submit,
.download-btn,
.comic-banner a.btn {
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: var(--radius) !important;
  background: #123f3c !important;
  color: #fffdf7 !important;
  box-shadow: 0 14px 30px rgba(18, 63, 60, 0.22);
}

.btn-primary:hover,
.form-submit:hover,
.download-btn:hover,
.comic-banner a.btn:hover {
  opacity: 1 !important;
  transform: translateY(-2px);
  background: var(--accent) !important;
}

.btn-ghost,
.back-btn {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  background: rgba(255, 253, 247, 0.66);
  color: var(--text) !important;
}

.hero-avatar-wrap {
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 8px 8px 80px 8px !important;
  background: var(--bg-earth) !important;
  box-shadow: var(--shadow-soft) !important;
}

.hero-avatar-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(23, 35, 34, 0.1);
  pointer-events: none;
}

.hero-badge,
.qr-block,
.gzh-bar,
.lv-plan,
.stat-chip,
.person-card,
.more-coming {
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  background: rgba(255, 253, 247, 0.82) !important;
  box-shadow: var(--shadow-card);
}

.stats {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #10201f !important;
  color: #fffdf7;
  padding: 0 5vw !important;
  border: 0 !important;
}

.stat-item {
  border-color: rgba(255, 255, 255, 0.1) !important;
  padding: 2.2rem 1.4rem !important;
}

.stat-num {
  color: #e6b769 !important;
  font-family: "Fraunces", var(--font-serif) !important;
  font-size: clamp(2rem, 3.2vw, 3.3rem) !important;
}

.stat-label {
  color: rgba(255, 253, 247, 0.68) !important;
}

.content-nav,
.content-section,
.about,
.universe,
.connect,
.news-section,
.interviews-section,
.main-wrap,
.timeline-wrap,
.comic-viewer {
  padding-left: 5vw !important;
  padding-right: 5vw !important;
}

.content-nav-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

.content-nav,
.universe,
.interviews-section,
.news-section,
.main-wrap,
.timeline-wrap,
.comic-viewer {
  background: transparent !important;
}

.content-section,
.connect {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.5), rgba(238, 230, 216, 0.65)),
    var(--bg-warm) !important;
}

.nav-card,
.iv-card,
.col-card,
.universe-item,
.domain-item,
.news-card,
.interview-card,
.quote-card,
.event-card,
.comic-page,
.profile-panel,
.work-item {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  background: rgba(255, 253, 247, 0.86) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease !important;
}

.nav-card:hover,
.iv-card:hover,
.col-card:hover,
.universe-item:hover,
.domain-item:hover,
.news-card:hover,
.interview-card:hover,
.quote-card:hover,
.event-card:hover,
.comic-page:hover,
.work-item:hover {
  border-color: rgba(15, 108, 100, 0.45) !important;
  background: #fffdf7 !important;
  box-shadow: var(--shadow-card) !important;
  transform: translateY(-5px) !important;
}

.nav-card::before {
  height: 100% !important;
  width: 3px !important;
  transform: scaleY(0) !important;
  transform-origin: bottom !important;
  background: var(--accent) !important;
}

.nav-card:hover::before {
  transform: scaleY(1) !important;
}

.nav-card-icon,
.col-icon,
.domain-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(15, 108, 100, 0.16);
  border-radius: 50%;
  background: var(--accent-lt) !important;
  font-size: 1.25rem !important;
}

.nav-card-title,
.iv-name,
.col-title,
.universe-content h3,
.domain-text h4,
.card-name,
.event-title,
.quote-text,
.person-name {
  color: var(--text) !important;
  font-family: var(--font-serif) !important;
  letter-spacing: 0 !important;
}

.nav-card-desc,
.iv-excerpt,
.col-desc,
.universe-content p,
.domain-text p,
.card-excerpt,
.event-desc,
.quote-context,
.person-bio,
.news-card .summary,
.news-summary {
  color: var(--text-mid) !important;
}

.nav-card-count,
.nav-card-arrow,
.see-all,
.col-link,
.card-link,
.read-link,
.quote-source-link,
.news-link {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

.iv-thumb,
.card-thumb,
.person-card-header {
  background:
    linear-gradient(135deg, rgba(15, 108, 100, 0.18), rgba(201, 137, 43, 0.16)),
    linear-gradient(180deg, #f8f1e4, #d8cab4) !important;
}

.iv-ep,
.card-thumb .ep-badge,
.badge-upcoming,
.tl-dot.upcoming {
  background: var(--accent) !important;
  color: #fffdf7 !important;
}

.badge-done,
.tl-dot.done {
  background: #8d6a2e !important;
  color: #fffdf7 !important;
}

.news-tag,
.lv-tag,
.quote-tag-topic,
.person-tag,
.badge-type {
  border: 1px solid rgba(15, 108, 100, 0.16);
  border-radius: 999px !important;
  background: var(--accent-lt) !important;
  color: var(--accent) !important;
  font-weight: 700;
}

.comic-banner {
  border-radius: var(--radius) !important;
  background:
    linear-gradient(135deg, rgba(15, 108, 100, 0.12), rgba(201, 137, 43, 0.16)),
    #fffdf7 !important;
}

.gzh-bar img,
.qr-item img {
  border-radius: var(--radius) !important;
  box-shadow: 0 8px 24px rgba(23, 35, 34, 0.08);
}

.timeline-list::before,
.timeline::before,
.month-label::after {
  background: rgba(15, 108, 100, 0.2) !important;
}

.tl-row::before,
.quote-group-label .dot,
.quote-speaker-dot {
  background: var(--accent) !important;
}

.universe-num {
  color: var(--accent) !important;
  opacity: 0.42 !important;
}

.connect {
  border-top: 1px solid var(--border);
}

.form-group input,
.form-group textarea,
.form-group select {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  background: rgba(255, 253, 247, 0.9) !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(15, 108, 100, 0.1);
}

footer,
.comic-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, #101c1b, #172322 70%, #2a2418) !important;
  color: rgba(255, 253, 247, 0.68) !important;
}

.footer-brand {
  color: #fffdf7 !important;
}

/* News article pages */
.container {
  max-width: 980px !important;
  margin: clamp(24px, 5vw, 56px) auto !important;
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  background: rgba(255, 253, 247, 0.92) !important;
  box-shadow: var(--shadow-soft) !important;
}

.header {
  background:
    linear-gradient(135deg, rgba(15, 108, 100, 0.96), rgba(23, 35, 34, 0.96)),
    var(--text) !important;
  color: #fffdf7 !important;
  text-align: left !important;
}

.header h1 {
  max-width: 760px;
  font-family: var(--font-serif);
  line-height: 1.15;
  letter-spacing: 0 !important;
}

.content {
  background: transparent !important;
}

.section-title {
  border-bottom-color: rgba(15, 108, 100, 0.26) !important;
  color: var(--accent) !important;
}

.news-item {
  border: 1px solid var(--border) !important;
  border-left: 4px solid var(--accent) !important;
  border-radius: var(--radius) !important;
  background: #fffdf7 !important;
}

.comment-box,
.summary-section {
  border: 1px solid rgba(201, 137, 43, 0.26) !important;
  border-left: 4px solid var(--gold) !important;
  border-radius: var(--radius) !important;
  background: linear-gradient(135deg, rgba(201, 137, 43, 0.12), rgba(255, 253, 247, 0.76)) !important;
}

.comment-label,
.summary-title {
  color: #8d5e16 !important;
}

@media (max-width: 900px) {
  nav {
    min-height: 64px !important;
  }

  .hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .stat-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 640px) {
  body {
    background-size: 48px 48px, auto, auto;
  }

  nav {
    padding: 0 16px !important;
  }

  .nav-logo::before {
    width: 30px;
    height: 30px;
  }

  .nav-hamburger {
    display: flex !important;
  }

  .nav-links.open {
    right: 0 !important;
    display: flex !important;
  }
  .nav-overlay {
    display: none;
  }
  .nav-overlay.open {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .page-hero,
  .comic-hero {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .hero h1,
  .page-hero h1,
  .comic-hero h1 {
    font-size: 2.45rem !important;
  }

  .stats {
    grid-template-columns: 1fr !important;
  }

  .content-nav,
  .content-section,
  .about,
  .universe,
  .connect,
  .news-section,
  .interviews-section,
  .main-wrap,
  .timeline-wrap,
  .comic-viewer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .news-card,
  .interview-card,
  .quote-card,
  .event-card,
  .nav-card,
  .col-card,
  .universe-item {
    padding: 1.25rem !important;
  }
}

/* ===== MOBILE HAMBURGER ===== */
.nav-hamburger {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255, 253, 247, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255, 253, 247, 0.85);
  border-radius: 2px;
  transition: transform 200ms, opacity 200ms;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.4);
}
.nav-overlay.open {
  display: block;
}
