/* ===== 博澳娱乐中国 · Site Kit 共享样式 ===== */

/* 基础变量 */
:root {
  --royal-blue: #0A1F44;
  --deep-navy: #06132B;
  --warm-paper: #F5EFE6;
  --antique-gold: #D4AF37;
  --pale-gold: #E8C874;
  --plum-red: #8B2252;
  --orchid: #A63268;
  --mist-white: #E6E9F0;
  --ink-blue: #1E2A4A;
  --card-bg: #FDFBF6;
  --font-serif: "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  --font-sans: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "JetBrains Mono", monospace;
  --rail-width: 280px;
  --content-max: 1120px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  background: var(--deep-navy);
  color: var(--mist-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  border-radius: 0;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px dashed var(--antique-gold);
  outline-offset: 4px;
}

/* 中文排版基础 */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.35;
  color: inherit;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.15rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* 主内容区 */
.main-content {
  margin-left: var(--rail-width);
  min-height: 100vh;
  background: var(--warm-paper);
  color: var(--ink-blue);
}

@media (max-width: 991px) {
  .main-content {
    margin-left: 0;
    padding-top: 72px;
  }
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* 头部组件 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-width);
  background: linear-gradient(180deg, var(--royal-blue), var(--deep-navy));
  border-right: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  flex-direction: column;
  z-index: 1200;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.14), transparent 55%),
    linear-gradient(rgba(212, 175, 55, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px, 22px 22px;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--antique-gold);
  color: var(--deep-navy);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  z-index: 1250;
}

.brand {
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-emblem {
  width: 48px;
  height: 48px;
  border: 1px solid var(--antique-gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--antique-gold);
  position: relative;
  flex-shrink: 0;
}

.brand-emblem::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(212, 175, 55, 0.5);
  border-radius: 50%;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--mist-white);
  line-height: 1.15;
  letter-spacing: 0.08em;
}

.brand-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--antique-gold);
  letter-spacing: 0.36em;
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  position: relative;
  z-index: 1300;
}

.toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--antique-gold);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

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

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

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

.site-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.nav-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 2rem 1.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  color: rgba(230, 233, 240, 0.75);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  transition: color 0.25s ease, padding-left 0.25s ease;
  position: relative;
  border-radius: 4px;
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(212, 175, 55, 0.6);
  letter-spacing: 0.1em;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: var(--antique-gold);
  padding-left: 1.1rem;
}

.nav-link:hover .nav-index {
  color: var(--pale-gold);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  bottom: 0.25rem;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--antique-gold), transparent);
  transition: width 0.35s var(--ease);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: calc(100% - 1.5rem);
}

.nav-link[aria-current="page"] {
  color: var(--antique-gold);
  font-weight: 600;
}

.nav-bottom {
  padding: 1.5rem 1.25rem 1.75rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.nav-motto {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: rgba(212, 175, 55, 0.45);
  margin-top: 1rem;
  text-align: center;
}

/* 页脚组件 */
.site-footer {
  margin-left: var(--rail-width);
  background: linear-gradient(180deg, var(--royal-blue), var(--deep-navy));
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--mist-white);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 85% 0%, rgba(212, 175, 55, 0.08), transparent 50%),
    linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: calc(var(--content-max) + 2rem);
  margin-inline: auto;
  padding: 4rem clamp(1.5rem, 4vw, 3rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.footer-brand-col {
  max-width: 38ch;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.footer-emblem {
  width: 46px;
  height: 46px;
  border: 1px solid var(--antique-gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--antique-gold);
  position: relative;
  flex-shrink: 0;
}

.footer-emblem::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 50%;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--antique-gold);
  letter-spacing: 0.08em;
}

.footer-about {
  color: rgba(230, 233, 240, 0.7);
  font-size: 0.88rem;
  line-height: 1.8;
  max-width: 34ch;
  margin-bottom: 1rem;
}

.footer-trust {
  color: rgba(212, 175, 55, 0.55);
  font-size: 0.75rem;
  line-height: 1.7;
  max-width: 34ch;
  border-left: 2px solid rgba(212, 175, 55, 0.35);
  padding-left: 0.85rem;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--antique-gold);
  letter-spacing: 0.18em;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  margin-bottom: 1.25rem;
}

.footer-list li + li {
  margin-top: 0.55rem;
}

.footer-list a {
  display: inline-block;
  font-size: 0.9rem;
  color: rgba(230, 233, 240, 0.65);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-list a:hover {
  color: var(--antique-gold);
  padding-left: 0.35rem;
}

.footer-contact .contact-item {
  font-size: 0.9rem;
  color: rgba(230, 233, 240, 0.75);
  line-height: 1.6;
}

.footer-contact .contact-item + .contact-item {
  margin-top: 1rem;
}

.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(212, 175, 55, 0.7);
  letter-spacing: 0.12em;
  margin-bottom: 0.1rem;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
  margin: 2.5rem 0 1.25rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.8rem;
  color: rgba(230, 233, 240, 0.5);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--pale-gold), var(--antique-gold));
  color: var(--deep-navy);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.btn-gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  transition: left 0.45s ease;
}

.btn-gold:hover {
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.btn-gold:hover::after {
  left: 125%;
}

.btn-outline {
  background: transparent;
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--antique-gold);
}

.btn-outline:hover {
  border-color: var(--antique-gold);
  background: rgba(212, 175, 55, 0.08);
}

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

/* 网格与布局 */
.l-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.l-col-3 {
  grid-column: span 3;
}

.l-col-4 {
  grid-column: span 4;
}

.l-col-5 {
  grid-column: span 5;
}

.l-col-6 {
  grid-column: span 6;
}

.l-col-7 {
  grid-column: span 7;
}

.l-col-8 {
  grid-column: span 8;
}

.l-col-9 {
  grid-column: span 9;
}

.l-col-12 {
  grid-column: span 12;
}

/* 标题与段落 */
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.page-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(30, 42, 74, 0.72);
  max-width: 60ch;
  margin-top: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--antique-gold);
  flex-shrink: 0;
}

/* 卡片 */
.card {
  background: var(--card-bg);
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(6, 19, 43, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(6, 19, 43, 0.12);
  border-color: rgba(212, 175, 55, 0.45);
}

.card + .card {
  margin-top: 1.5rem;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  background: var(--plum-red);
  color: var(--mist-white);
  border: 1px solid transparent;
}

.tag-gold {
  background: rgba(212, 175, 55, 0.12);
  color: #8a6d2a;
  border-color: rgba(212, 175, 55, 0.45);
}

.tag-outline {
  background: transparent;
  border-color: rgba(10, 31, 68, 0.3);
  color: var(--ink-blue);
}

/* 分隔线 */
.divider-gold {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--antique-gold), transparent);
  margin: 2rem 0;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(30, 42, 74, 0.65);
  margin-bottom: 2rem;
}

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

.breadcrumb a:hover {
  color: var(--plum-red);
}

.breadcrumb-sep {
  color: rgba(30, 42, 74, 0.3);
}

.breadcrumb [aria-current="page"] {
  font-weight: 600;
}

/* 图片容器基础规则 */
.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background:
    radial-gradient(circle at 70% 25%, rgba(212, 175, 55, 0.12), transparent 42%),
    linear-gradient(135deg, var(--royal-blue), var(--deep-navy));
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.frame-label {
  position: relative;
  z-index: 1;
  color: var(--pale-gold);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: rgba(6, 19, 43, 0.55);
  text-align: center;
}

/* 滚动显现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* 响应式调整 */
@media (max-width: 991px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    background: linear-gradient(90deg, var(--royal-blue), var(--deep-navy));
  }

  .site-header::before {
    display: none;
  }

  .header-bar {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    border-bottom: 0;
    height: 72px;
  }

  .brand-emblem {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1150;
    width: 280px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(10, 31, 68, 0.98), var(--deep-navy));
    padding: 5.25rem 0 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1), visibility 0.35s linear;
  }

  .site-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.14), transparent 55%),
      linear-gradient(rgba(212, 175, 55, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(212, 175, 55, 0.035) 1px, transparent 1px);
    background-size: 100% 100%, 22px 22px, 22px 22px;
    pointer-events: none;
  }

  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    flex: none;
    justify-content: flex-start;
    gap: 0.1rem;
  }

  .nav-bottom {
    margin-top: auto;
  }

  .site-footer {
    margin-left: 0;
  }

  .l-grid {
    gap: 1.5rem;
  }

  .l-col-3,
  .l-col-4,
  .l-col-5 {
    grid-column: span 6;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-inner {
    padding-top: 2.5rem;
  }

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

  .l-col-3,
  .l-col-4,
  .l-col-5,
  .l-col-6,
  .l-col-7,
  .l-col-8,
  .l-col-9 {
    grid-column: 1 / -1;
  }

  .card {
    padding: 1.5rem;
  }
}

/* 降级动效偏好 */
@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;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
