/* ============================================================
   开心娱乐CN · /assets/site.css
   共享壳层：reset、设计变量、中文排版、页头、页脚、基础组件
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body,
h1, h2, h3, h4, h5,
p, figure, blockquote,
ul, ol, dl, dd { margin: 0; }

ul, ol { padding: 0; }
ul[class], ol[class] { list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; }

a { color: var(--clay); text-underline-offset: 3px; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色彩体系 */
  --orange: #F47A3C;
  --clay: #C94F1B;
  --peach: #FBE0C8;
  --cream: #FFF7EC;
  --sand: #F4E9D9;
  --mint: #79C7A5;
  --sky: #3E86B8;
  --coral: #F28C8C;
  --stone: #5C564E;
  --moss: #6E8B5B;
  --cocoa: #2E2924;

  /* 线条与阴影 */
  --line: rgba(46, 41, 36, 0.16);
  --line-soft: rgba(46, 41, 36, 0.08);
  --lift: 0 18px 34px -26px rgba(46, 41, 36, 0.62);

  /* 圆角 */
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-pill: 999px;

  /* 版式 */
  --font-head: "HarmonyOS Sans SC", "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;

  /* 宽度 */
  --wrap: 1120px;
  --gutter: clamp(1rem, 3vw, 2rem);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--cream);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--cocoa);
}

h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.45rem); }

strong, b { font-weight: 800; }

/* ---------- 4. 焦点与跳转 ---------- */
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--cocoa);
  color: var(--cream);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. 页头：信号条 + 报头 + 胶囊导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% 16%, rgba(244, 122, 60, 0.11), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(121, 199, 165, 0.16), transparent 40%);
  border-bottom: 1px solid var(--line);
}

.signal-strip {
  height: 5px;
  background-color: var(--peach);
  overflow: hidden;
}

.signal-strip__fill {
  display: block;
  height: 100%;
  width: 0;
  background-image: linear-gradient(90deg, var(--orange) 0%, var(--coral) 55%, var(--mint) 100%);
  transition: width 0.15s linear;
}

.masthead { position: relative; z-index: 1; }

.masthead__inner {
  width: min(100% - 1.75rem, var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0 12px;
  border-bottom: 1px dashed var(--line);
  transition: padding 0.22s ease;
}

.masthead__note {
  display: none;
  grid-column: 1;
  justify-self: start;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--stone);
}

.masthead__note::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moss);
  animation: note-pulse 2.6s ease-in-out infinite;
}

@keyframes note-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.78); }
}

/* 品牌 */
.brand {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--cocoa);
}

.brand__mark {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px var(--peach);
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px dashed rgba(201, 79, 27, 0.5);
  animation: brand-orbit 26s linear infinite;
}

@keyframes brand-orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.brand__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(255, 247, 236, 0.4);
}

.brand__text { display: grid; gap: 1px; min-width: 0; }

.brand__name {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.62rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  white-space: nowrap;
}

.brand__tagline {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--stone);
  white-space: nowrap;
}

/* 移动端抽屉按钮 */
.nav-toggle {
  grid-column: 2;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--cocoa);
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--cocoa);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-toggle:hover { background: var(--peach); }

.nav-toggle__icon { display: grid; gap: 5px; width: 15px; }

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--cocoa);
  border-color: var(--cocoa);
  color: var(--cream);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* 导航 */
.site-nav {
  display: none;
  width: min(100% - 1.75rem, var(--wrap));
  margin-inline: auto;
  padding: 8px 0 16px;
}

.site-nav[data-open] { display: block; }

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item { display: flex; }

.site-nav__link {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--cocoa);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.site-nav__link:hover { background: var(--peach); }

.site-nav__link[aria-current="page"] {
  background: var(--peach);
  color: var(--cocoa);
  font-weight: 800;
}

.site-nav__link[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: middle;
}

.site-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.site-nav__actions .btn { width: 100%; justify-content: center; }

/* 页头滚动态 */
.site-header[data-scrolled="true"] .masthead__inner { padding-top: 6px; padding-bottom: 7px; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn--solid {
  background: var(--orange);
  color: var(--cocoa);
  box-shadow: 0 3px 0 var(--clay);
}

.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--clay); }
.btn--solid:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--clay); }

.btn--ghost {
  background: transparent;
  border-color: var(--cocoa);
  color: var(--cocoa);
}

.btn--ghost:hover {
  background: var(--peach);
  border-color: var(--clay);
  color: var(--clay);
}

.btn--sky {
  background: var(--sky);
  color: var(--cream);
  box-shadow: 0 3px 0 #2b6089;
}

.btn--sky:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #2b6089; }

.btn--block { width: 100%; }

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  background-color: var(--cocoa);
  background-image:
    radial-gradient(circle at 84% 10%, rgba(244, 122, 60, 0.2), transparent 46%),
    radial-gradient(circle at 8% 92%, rgba(121, 199, 165, 0.16), transparent 44%);
  color: var(--cream);
}

.footer__stripe {
  height: 10px;
  background-image: repeating-linear-gradient(
    115deg,
    var(--orange) 0 16px,
    var(--coral) 16px 32px,
    var(--peach) 32px 48px
  );
}

.footer__inner {
  width: min(100% - 1.75rem, var(--wrap));
  margin-inline: auto;
  padding: clamp(36px, 5vw, 62px) 0 24px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(26px, 3.5vw, 40px);
  border-bottom: 1px solid rgba(255, 247, 236, 0.16);
}

.footer__brand-col { min-width: 0; }

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream);
}

.footer__mark {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px rgba(244, 122, 60, 0.22);
}

.footer__mark::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cocoa);
}

.footer__wordmark {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.footer__summary {
  margin: 14px 0 18px;
  max-width: 32ch;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 247, 236, 0.74);
}

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.footer__col { min-width: 0; }

.footer__col-title {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange);
}

.footer__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__link {
  color: rgba(255, 247, 236, 0.82);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer__link--strong { color: var(--cream); font-weight: 700; }

.footer__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(16px, 2.4vw, 30px);
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid rgba(255, 247, 236, 0.16);
}

.footer__contact-item { display: grid; gap: 4px; min-width: 0; }

.footer__contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 247, 236, 0.55);
}

.footer__contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  word-break: break-word;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-top: 20px;
  font-size: 0.84rem;
  color: rgba(255, 247, 236, 0.62);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0;
}

.footer__icp {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.footer__note {
  flex: 1 1 240px;
  margin: 0;
  color: rgba(255, 247, 236, 0.55);
}

/* ---------- 8. 通用布局与组件 ---------- */
.wrap {
  width: min(100% - var(--gutter), var(--wrap));
  margin-inline: auto;
}

.band {
  padding: clamp(42px, 6vw, 84px) 0;
  background-color: var(--cream);
}

.band--peach { background-color: var(--peach); }
.band--sand { background-color: var(--sand); }

.section-head {
  display: grid;
  gap: 12px;
  max-width: 56ch;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--clay);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
}

.display {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 1.6rem + 4.4vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 60ch;
  font-size: clamp(1rem, 0.96rem + 0.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--stone);
}

.prose {
  max-width: 68ch;
  font-size: 1.02rem;
  color: var(--stone);
}

.prose p { margin-bottom: 1.05em; }
.prose h2,
.prose h3 { margin: 1.6em 0 0.5em; color: var(--cocoa); }
.prose ul,
.prose ol { margin: 0 0 1.05em; padding-left: 1.25em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--sky); }
.prose strong { color: var(--cocoa); }

.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 28px);
}

.grid--split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--thirds { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* 档案资料卡：非对称切角 */
.slip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m) var(--radius-m) var(--radius-m) 4px;
  box-shadow: 0 1px 0 rgba(46, 41, 36, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.slip:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 122, 60, 0.55);
  box-shadow: var(--lift);
}

.slip__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.slip__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--stone);
}

.slip__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.8rem;
  color: var(--stone);
}

/* 分类胶囊 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  background: var(--peach);
  color: var(--cocoa);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag--mint { background: var(--mint); color: var(--cocoa); }
.tag--sky { background: #D7E9F4; color: #1E4E6E; }
.tag--coral { background: #FBD9D9; color: #8C2F2F; }
.tag--moss { background: #E6EEDA; color: #3F5230; }

/* 图片容器基础规则 */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-l);
  background-color: var(--peach);
  background-image: linear-gradient(140deg, var(--peach) 0%, var(--sand) 55%, rgba(121, 199, 165, 0.38) 100%);
}

.media img,
.media picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media__caption {
  margin-top: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--stone);
}

/* 面包屑 */
.crumbs {
  padding-top: 18px;
  font-size: 0.84rem;
  color: var(--stone);
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.crumbs__item:not(:last-child)::after {
  content: "›";
  color: rgba(92, 86, 78, 0.55);
}

.crumbs__link {
  color: var(--sky);
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 134, 184, 0.32);
}

.crumbs__link:hover { border-bottom-color: var(--sky); }

/* 滚动显现 */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 9. 断点 ---------- */
@media (min-width: 600px) {
  .masthead__inner { gap: 16px; }
  .brand__tagline { font-size: 0.7rem; }
}

@media (min-width: 900px) {
  html { scroll-padding-top: 168px; }

  .masthead__inner {
    grid-template-columns: 1fr auto 1fr;
    padding: 15px 0;
  }

  .masthead__note {
    display: inline-flex;
    grid-column: 1;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    gap: 14px;
  }

  .brand__mark { width: 48px; height: 48px; }
  .brand__dot { width: 12px; height: 12px; }

  .nav-toggle { display: none; }

  .site-nav,
  .site-nav[data-open] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0 14px;
  }

  .site-nav__list {
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .site-nav__item { display: inline-flex; }

  .site-nav__link {
    width: auto;
    padding: 9px 15px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
  }

  .site-nav__actions {
    flex: 0 0 auto;
    flex-direction: row;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .site-nav__actions .btn { width: auto; }

  .footer__top { grid-template-columns: 1.05fr 1.55fr; }
}

@media (min-width: 1100px) {
  .footer__contact { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 380px) {
  .brand__tagline { display: none; }
  .brand__name { font-size: 1.15rem; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 9px 12px; }
}

/* ---------- 10. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .slip:hover { transform: none; }
  .btn--solid:hover,
  .btn--sky:hover { transform: none; }
}
