/* =============================================================
   777老虎游 · 共享 Site Kit
   暗夜蓝底 / 虎纹橙金 / 街机霓虹
   ============================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 150px;
  background-color: #0B1220;
}

body {
  margin: 0;
  min-height: 100%;
}

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

ul, ol { margin: 0; padding: 0; }

img, svg, video { max-width: 100%; height: auto; }

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

/* 2. 设计变量 ------------------------------------------------ */
:root {
  /* 色彩 */
  --night: #0B1220;
  --night-deep: #070C15;
  --jungle: #102A24;
  --tiger: #F08A24;
  --amber: #FFC247;
  --neon: #F4FF5E;
  --violet: #A855F7;
  --slate: #3A4350;
  --moss: #6F8F5E;
  --clay: #B9684A;
  --cream: #F4E9D8;

  /* 派生 */
  --cream-80: rgba(244, 233, 216, 0.80);
  --cream-64: rgba(244, 233, 216, 0.64);
  --cream-42: rgba(244, 233, 216, 0.42);
  --line-soft: rgba(244, 233, 216, 0.10);
  --line-tiger: rgba(240, 138, 36, 0.32);
  --panel: rgba(16, 42, 36, 0.55);

  /* 版式 */
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Courier New", monospace;

  /* 尺寸 */
  --frame-max: 1280px;
  --gutter: clamp(18px, 3vw, 40px);
  --gap: clamp(16px, 2.2vw, 30px);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 26px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.75, 0.30, 1);
  --dur: 190ms;
}

/* 3. 基础排版 ------------------------------------------------ */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--cream);
  background-color: var(--night);
  background-image:
    radial-gradient(1100px 620px at 88% -12%, rgba(240, 138, 36, 0.10), transparent 62%),
    radial-gradient(900px 560px at -8% 16%, rgba(168, 85, 247, 0.075), transparent 60%),
    repeating-linear-gradient(114deg, rgba(240, 138, 36, 0.030) 0 3px, transparent 3px 28px);
  background-attachment: scroll;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.015em;
  color: var(--cream);
}

h1 { font-size: clamp(30px, 5.2vw, 56px); }
h2 { font-size: clamp(24px, 3.2vw, 32px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--amber); text-decoration: none; }

strong, b { font-weight: 800; color: var(--amber); }

code, kbd, samp, time, var {
  font-family: var(--font-mono);
  font-size: 0.94em;
  letter-spacing: 0.02em;
}

hr {
  border: 0;
  height: 1px;
  background: var(--line-soft);
  margin: 2em 0;
}

::selection {
  background: var(--tiger);
  color: var(--night);
}

/* 4. 焦点 --------------------------------------------------- */
:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(11, 18, 32, 0.9);
  border-radius: 4px;
}

/* 5. 跳转链接 ------------------------------------------------ */
.skip-link {
  position: absolute;
  left: 16px;
  top: -76px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: 0 0 14px 14px;
  background: var(--neon);
  color: var(--night);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  color: var(--night);
  outline-offset: -4px;
}

/* 6. 布局容器 ------------------------------------------------ */
.wrap {
  width: min(100% - var(--gutter) * 2, var(--frame-max));
  margin-inline: auto;
}

.wrap--narrow { --frame-max: 860px; }

.prose {
  max-width: 44em;
  color: var(--cream-80);
}

.prose p,
.prose li {
  font-size: 17px;
  line-height: 1.8;
}

.prose h2,
.prose h3 { margin-top: 1.8em; }

/* 7. 按钮 --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.btn--primary {
  background-image: linear-gradient(118deg, var(--tiger) 0%, var(--amber) 88%);
  color: var(--night);
  box-shadow: 0 12px 28px -16px rgba(240, 138, 36, 0.95);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -16px rgba(255, 194, 71, 0.9);
}

.btn--ghost {
  background-color: transparent;
  border-color: rgba(244, 233, 216, 0.28);
  color: var(--cream);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--tiger);
  color: var(--amber);
  box-shadow: 0 0 0 1px rgba(240, 138, 36, 0.4) inset;
}

/* 8. 标签 --------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid rgba(244, 233, 216, 0.14);
  border-radius: 6px;
  background-color: rgba(58, 67, 80, 0.45);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--cream-80);
  white-space: nowrap;
}

.tag--amber { border-color: rgba(255, 194, 71, 0.42); color: var(--amber); }
.tag--neon  { border-color: rgba(244, 255, 94, 0.42); color: var(--neon); }
.tag--moss  { border-color: rgba(111, 143, 94, 0.55); color: #A6C293; }

/* 9. 面包屑 ------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--cream-42);
}

.breadcrumb li { display: inline-flex; align-items: center; }

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  color: var(--slate);
}

.breadcrumb a {
  color: var(--cream-64);
  text-decoration: none;
  border-bottom: 1px dotted rgba(244, 233, 216, 0.35);
}

.breadcrumb a:hover { color: var(--amber); border-bottom-color: var(--amber); }

/* 10. 图片容器基础 ------------------------------------------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background-image: linear-gradient(150deg, var(--jungle), var(--night-deep));
}

.media--wide { aspect-ratio: 21 / 9; }

.media--cut {
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
}

.media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
  transition: transform 520ms var(--ease);
}

.media:hover .media__img { transform: scale(1.05); }

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 16px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cream-80);
  background-image: linear-gradient(180deg, transparent, rgba(7, 12, 21, 0.88));
}

/* 11. 页头 -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(9, 14, 26, 0.95);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  border-bottom: 1px solid var(--line-tiger);
}

.header-rail {
  padding-block: clamp(12px, 1.8vw, 20px);
  border-bottom: 1px solid var(--line-soft);
}

.header-frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.6vw, 40px);
  width: min(100% - var(--gutter) * 2, var(--frame-max));
  margin-inline: auto;
}

.strip-frame {
  padding-block: 9px;
  gap: 18px;
}

/* 品牌 */
.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--cream);
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  background-image:
    repeating-linear-gradient(112deg,
      transparent 0 5px,
      rgba(11, 18, 32, 0.92) 5px 9px),
    linear-gradient(135deg, var(--tiger) 0%, var(--amber) 100%);
  clip-path: polygon(0 0, 100% 10%, 88% 100%, 8% 90%);
  box-shadow: 0 0 18px -6px rgba(240, 138, 36, 0.85);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-body);
  font-size: clamp(19px, 2.1vw, 23px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--amber);
  background-image: linear-gradient(100deg, var(--amber) 0%, var(--tiger) 58%, #FFDE9C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-name { color: var(--amber); -webkit-text-fill-color: currentColor; }
}

.brand-badge {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  color: rgba(255, 194, 71, 0.78);
  white-space: nowrap;
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.7vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px 11px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--cream-80);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--tiger);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--neon); }

.nav-link[aria-current="page"]::after {
  background-color: var(--neon);
  transform: scaleX(1);
  box-shadow: 0 0 10px rgba(244, 255, 94, 0.65);
}

/* 菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid rgba(240, 138, 36, 0.5);
  border-radius: 999px;
  background-color: rgba(240, 138, 36, 0.12);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.nav-toggle:hover { border-color: var(--amber); background-color: rgba(240, 138, 36, 0.2); }

.nav-toggle[aria-expanded="true"] {
  color: var(--neon);
  border-color: var(--neon);
  background-color: rgba(244, 255, 94, 0.10);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transform-origin: center;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle-label { line-height: 1; }

/* 第二栏：认证条 + 快捷胶囊 */
.header-strip {
  background-image: linear-gradient(90deg, rgba(16, 42, 36, 0.85), rgba(11, 18, 32, 0.55) 60%, rgba(11, 18, 32, 0.9));
  border-bottom: 1px solid rgba(58, 67, 80, 0.5);
}

.cert-strip {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--cream-42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-capsule {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.capsule-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(240, 138, 36, 0.45);
  border-radius: 999px;
  background-image: linear-gradient(180deg, rgba(240, 138, 36, 0.20), rgba(240, 138, 36, 0.06));
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.capsule-link:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 8px 22px -12px rgba(255, 194, 71, 0.9);
}

.capsule-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--neon);
  box-shadow: 0 0 9px rgba(244, 255, 94, 0.9);
}

.capsule-link:nth-child(2) .capsule-dot {
  background-color: var(--violet);
  box-shadow: 0 0 9px rgba(168, 85, 247, 0.9);
}

/* 阅读进度光带 */
.scroll-meter {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background-image: linear-gradient(90deg, var(--tiger) 0%, var(--amber) 55%, var(--neon) 100%);
  box-shadow: 0 0 14px rgba(244, 255, 94, 0.55);
  pointer-events: none;
}

/* 12. 页脚 -------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  border-top: 1px solid rgba(240, 138, 36, 0.35);
  background-image:
    radial-gradient(760px 400px at 14% 0%, rgba(16, 42, 36, 0.95), transparent 66%),
    radial-gradient(620px 340px at 92% 16%, rgba(240, 138, 36, 0.09), transparent 64%),
    linear-gradient(180deg, #0B1220 0%, #0A1018 46%, #070C15 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background-image: repeating-linear-gradient(104deg,
    var(--tiger) 0 22px,
    rgba(240, 138, 36, 0) 22px 54px);
  opacity: 0.6;
  pointer-events: none;
}

.site-footer > * { position: relative; z-index: 1; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: clamp(28px, 4.5vw, 72px);
  padding-block: clamp(42px, 6vw, 76px) clamp(26px, 3.4vw, 40px);
}

.footer-brand { max-width: 34em; }

.footer-mark {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  background-image:
    repeating-linear-gradient(112deg,
      transparent 0 4px,
      rgba(11, 18, 32, 0.92) 4px 7px),
    linear-gradient(135deg, var(--tiger) 0%, var(--amber) 100%);
  clip-path: polygon(0 0, 100% 10%, 88% 100%, 8% 90%);
}

.footer-brand-name {
  font-family: var(--font-body);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.05em;
  color: var(--amber);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 15px;
  line-height: 1.7;
  color: var(--cream-80);
  margin-bottom: 12px;
}

.footer-update {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--cream-42);
  margin: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.footer-group { min-width: 0; }

.footer-title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(240, 138, 36, 0.28);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.18em;
  color: var(--amber);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link {
  display: inline-block;
  border-bottom: 1px solid transparent;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cream-80);
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-link:hover {
  color: var(--amber);
  border-bottom-color: rgba(255, 194, 71, 0.7);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px clamp(20px, 3vw, 40px);
  padding-block: clamp(22px, 3vw, 34px) 0;
  border-top: 1px dashed rgba(244, 233, 216, 0.16);
}

.contact-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  min-width: 0;
}

.contact-key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--moss);
}

.contact-key::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  vertical-align: middle;
  background-color: var(--tiger);
  transform: rotate(45deg);
}

.contact-value {
  color: var(--cream-80);
  word-break: break-word;
}

.footer-note {
  margin: clamp(14px, 2vw, 20px) 0 0;
  max-width: 62em;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--cream-42);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(24px, 3.4vw, 40px);
  padding-block: 18px clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--line-soft);
}

.footer-legal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: rgba(244, 233, 216, 0.5);
}

/* 13. 平板 / 移动 -------------------------------------------- */
@media (max-width: 999px) {
  html { scroll-padding-top: 130px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: block;
    max-height: 0;
    overflow: hidden;
    background-color: rgba(8, 13, 24, 0.98);
    border-bottom: 1px solid rgba(240, 138, 36, 0.35);
    box-shadow: 0 26px 44px -26px rgba(0, 0, 0, 0.95);
    transition: max-height 240ms var(--ease);
  }

  .site-nav[data-open="true"] {
    max-height: 460px;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }

  .nav-link {
    display: block;
    padding: 13px 4px;
    font-size: 15.5px;
    border-bottom: 1px solid rgba(58, 67, 80, 0.55);
  }

  .nav-link::after {
    left: 4px;
    right: auto;
    bottom: 0;
    width: 38px;
    height: 2px;
  }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 780px) {
  .cert-strip { display: none; }

  .strip-frame {
    justify-content: flex-end;
    gap: 8px;
  }

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

@media (max-width: 560px) {
  body { font-size: 16px; }

  .brand-mark { width: 30px; height: 30px; }

  .brand-badge { font-size: 9.5px; letter-spacing: 0.12em; }

  .capsule-link { padding: 6px 11px; font-size: 12px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* 14. 尊重减少动效 ------------------------------------------- */
@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;
    scroll-behavior: auto !important;
  }

  .nav-link:hover,
  .capsule-link:hover,
  .btn:hover,
  .media:hover .media__img {
    transform: none;
  }
}
