/* ============================================================
   冠军娱乐 / assets/site.css
   全站共享核心层
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
  --bg-primary: #0A0E17;
  --bg-secondary: #0F1A2E;
  --bg-card: #1A2634;
  --border-color: #3D4A5D;
  --accent: #C9A227;
  --accent-bright: #F5D76E;
  --accent-purple: #8A2BE2;
  --text-primary: #E0E6ED;
  --text-muted: #6C7A89;
  --font-main: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-height: 64px;
  --side-width: 240px;
  --container-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* ---------- 重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-primary);
  background:
    radial-gradient(1100px 700px at 90% -10%, rgba(138, 43, 226, 0.07), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(201, 162, 39, 0.05), transparent 55%),
    var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-bright);
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-primary);
}

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

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 2px;
}

/* ---------- 可访问性工具 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 3000;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 800;
  border-radius: var(--radius-sm);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--bg-primary);
}

/* ---------- 页头框架 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: rgba(10, 14, 23, 0.94);
  border-bottom: 1px solid var(--border-color);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-height);
  padding: 0 16px;
}

/* 品牌 */
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 2px;
  font-style: italic;
  line-height: 1;
  white-space: nowrap;
}

.header-brand:hover {
  color: var(--accent-bright);
}

.header-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: var(--bg-primary);
  font-size: 16px;
  font-weight: 900;
  font-style: italic;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}

/* 客服入口 */
.header-contact {
  flex: 0 0 auto;
  margin-left: auto;
}

/* ---------- 按钮系统 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  color: var(--text-primary);
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: var(--bg-primary);
  font-weight: 900;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--accent-bright);
  color: var(--bg-primary);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: rgba(201, 162, 39, 0.1);
  color: var(--accent-bright);
  border-color: var(--accent-bright);
}

/* 移动端导航切换 */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--accent);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 导航抽屉（移动端） */
.site-nav {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(320px, 86vw);
  padding: 28px 20px;
  background: var(--bg-secondary);
  border-left: 2px solid var(--accent);
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
  visibility: hidden;
  overflow-y: auto;
}

.site-nav[data-open] {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s var(--ease), visibility 0s;
}

.site-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 17px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.site-nav-link::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--accent);
  transform: rotate(45deg);
  opacity: 0.5;
}

.site-nav-link:hover {
  color: var(--accent-bright);
  background: rgba(201, 162, 39, 0.08);
  padding-left: 18px;
}

.site-nav-link[aria-current="page"] {
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  color: var(--bg-primary);
  font-weight: 900;
}

.site-nav-link[aria-current="page"]::before {
  background: var(--bg-primary);
  opacity: 1;
}

.header-note {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* 滚动进度条 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright) 60%, var(--accent-purple) 100%);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
  z-index: 3;
}

/* ---------- 页脚框架 ---------- */
.site-footer {
  position: relative;
  background: var(--bg-secondary);
  border-top: 2px solid var(--accent);
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-purple), transparent 40%, var(--accent-bright));
  opacity: 0.3;
}

.footer-top {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 20px 24px;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

.footer-brand-name {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 4px;
  color: var(--accent);
}

.footer-slogan {
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.footer-address {
  margin-top: 16px;
  padding-left: 10px;
  border-left: 2px solid var(--accent);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-columns {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.footer-col-title {
  padding-bottom: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--accent);
}

.footer-col-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-col-list a {
  display: inline-block;
  color: var(--text-primary);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col-list a:hover {
  color: var(--accent-bright);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(61, 74, 93, 0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- 内容容器 ---------- */
#main-content {
  display: block;
  min-height: 60vh;
}

.container {
  width: min(100% - 32px, var(--container-width));
  margin-inline: auto;
}

.section {
  padding-block: 48px;
}

.page-hero {
  position: relative;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-color);
  background:
    linear-gradient(90deg, rgba(201, 162, 39, 0.06), transparent 40%),
    var(--bg-primary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(201, 162, 39, 0.08);
  border-left: 3px solid var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
}

.page-title {
  margin: 16px 0 12px;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.page-summary {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 16px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
}

.section-title::before {
  content: "";
  display: block;
  width: 24px;
  height: 4px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transform: skewX(-20deg);
}

.text-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
}

.text-body p {
  margin-bottom: 16px;
}

.text-muted {
  color: var(--text-muted);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 24px;
  padding: 12px 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--border-color);
}

.breadcrumb a {
  color: var(--accent);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent-bright);
}

.breadcrumb [aria-current="page"] {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  background: var(--bg-card);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  white-space: nowrap;
}

.tag-gold {
  background: rgba(201, 162, 39, 0.15);
  border-color: rgba(201, 162, 39, 0.4);
  color: var(--accent-bright);
}

.tag-purple {
  background: rgba(138, 43, 226, 0.18);
  border-color: rgba(138, 43, 226, 0.4);
  color: #D1A8F7;
}

/* ---------- 索引网格 ---------- */
.index-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  padding: 10px 14px;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 900;
  letter-spacing: 0.5px;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(15, 26, 46, 0.4);
}

.data-table tbody tr:hover {
  background: rgba(201, 162, 39, 0.06);
}

/* ---------- 图片框架 ---------- */
.img-frame,
.img-frame-16x9,
.img-frame-square,
.img-frame-portrait {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.img-frame,
.img-frame-16x9 {
  aspect-ratio: 16 / 9;
}

.img-frame-square {
  aspect-ratio: 1 / 1;
}

.img-frame-portrait {
  aspect-ratio: 3 / 4;
}

.img-frame img,
.img-frame-16x9 img,
.img-frame-square img,
.img-frame-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame::after,
.img-frame-16x9::after,
.img-frame-square::after,
.img-frame-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 18px,
    rgba(201, 162, 39, 0.04) 18px 20px,
    transparent 20px 38px
  );
}

/* ---------- 列表与分隔 ---------- */
.list-dash {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.list-dash li {
  position: relative;
  padding-left: 1.4em;
}

.list-dash li::before {
  content: "—";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent);
}

.divider-gold {
  height: 3px;
  margin: 24px 0;
  border: none;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

.note-vertical {
  writing-mode: vertical-rl;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* ---------- 响应式增强 ---------- */
@media (min-width: 640px) {
  .index-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }

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

@media (min-width: 1024px) {
  body {
    padding-left: var(--side-width);
  }

  .index-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .index-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  /* 页头变为左侧竖向边框 */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--side-width);
    height: 100vh;
    padding: 28px 18px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    border-bottom: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    justify-content: space-between;
  }

  .header-inner {
    height: auto;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
  }

  .header-brand {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 12px 0 18px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
  }

  .header-brand-mark {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .header-brand-name {
    font-size: 18px;
  }

  .header-contact {
    width: 100%;
    margin-left: 0;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    flex: 1;
    width: 100%;
    height: auto;
    padding: 0;
    background: transparent;
    border-left: none;
    box-shadow: none;
    transform: none;
    visibility: visible;
    overflow-y: auto;
    gap: 16px;
  }

  .site-nav-list {
    gap: 2px;
  }

  .site-nav-link {
    padding: 10px 12px;
    font-size: 15px;
  }

  .header-note {
    margin-top: 16px;
    text-align: center;
  }
}

/* ---------- 减弱动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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