/* ===== 米兰娱乐 全站共享样式 ===== */

/* --- CSS 变量 --- */
:root {
  --color-primary: #0A1F44;
  --color-primary-deep: #071429;
  --color-accent: #C9A227;
  --color-accent-light: #E3C766;
  --color-accent-deep: #8A701C;
  --color-alert: #D64545;
  --color-alert-dark: #B83A3A;
  --color-surface: #F5F7FA;
  --color-white: #FFFFFF;
  --color-muted: #B0BEC5;
  --color-success: #27AE60;
  --color-border: rgba(201, 162, 39, 0.2);
  --color-text: rgba(7, 20, 41, 0.86);
  --font-heading: "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --container-w: 1240px;
  --ticker-h: 36px;
  --header-h: 76px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 8px 24px rgba(7, 20, 41, 0.08);
  --shadow-lg: 0 16px 40px rgba(7, 20, 41, 0.18);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-surface);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

p { margin-bottom: 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; height: auto; }
ul[class], ol[class] { list-style: none; }
button { font-family: inherit; font-size: inherit; line-height: inherit; cursor: pointer; }
table { border-collapse: collapse; }

/* --- 焦点 --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- 工具类 --- */
.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;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--color-accent);
  color: var(--color-primary-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(7, 20, 41, 0.25);
  transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
}

/* --- 布局 --- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

.content-shell {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px 80px;
  min-height: 55vh;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.4);
}

.section {
  padding: 64px 0;
}

.content-block {
  max-width: 820px;
}

/* --- 网格 --- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- 标题与数据 --- */
.page-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-primary);
  margin: 0 0 16px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0 0 24px;
  padding-left: 16px;
  position: relative;
}
.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--color-accent);
}

.data-number {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  margin: 0;
}

/* --- 页首横幅 --- */
.page-hero {
  position: relative;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 72px 0;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(201, 162, 39, 0.3);
  transform: rotate(45deg);
  border-radius: 12px;
}
.page-hero .page-title {
  color: var(--color-white);
}

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-deep);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
}
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover {
  background: rgba(201, 162, 39, 0.12);
  color: var(--color-accent-light);
}
.btn-alert {
  background: var(--color-alert);
  color: var(--color-white);
  border-color: var(--color-alert);
}
.btn-alert:hover {
  background: var(--color-alert-dark);
  border-color: var(--color-alert-dark);
}

/* --- 卡片 --- */
.card {
  background: var(--color-white);
  border: 1px solid rgba(7, 20, 41, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.glass-card {
  background: rgba(10, 31, 68, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}
.glass-card h1,
.glass-card h2,
.glass-card h3 {
  color: var(--color-white);
}
.glass-card .data-number {
  color: var(--color-accent-light);
}

/* --- 徽标 --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
}
.badge-accent {
  background: rgba(201, 162, 39, 0.14);
  color: var(--color-accent-deep);
  border-color: rgba(201, 162, 39, 0.3);
}
.badge-alert {
  background: rgba(214, 69, 69, 0.1);
  color: var(--color-alert);
  border-color: rgba(214, 69, 69, 0.25);
}
.badge-success {
  background: rgba(39, 174, 96, 0.1);
  color: #1E8C4E;
  border-color: rgba(39, 174, 96, 0.25);
}
.badge-primary {
  background: rgba(10, 31, 68, 0.08);
  color: var(--color-primary);
  border-color: rgba(10, 31, 68, 0.15);
}

/* --- 面包屑 --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 14px;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--color-muted);
}
.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover {
  color: var(--color-accent-deep);
}
.breadcrumb [aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
}

/* --- 表格 --- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(7, 20, 41, 0.08);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}
.table-wrap table {
  width: 100%;
  min-width: 640px;
}
.table-wrap th {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: left;
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(7, 20, 41, 0.06);
  font-size: 15px;
}
.table-wrap tr:last-child td {
  border-bottom: none;
}

/* --- 图片占位容器 --- */
.image-ratio {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
}
.image-ratio::before {
  content: "";
  display: block;
}
.image-ratio-16x9::before { padding-bottom: 56.25%; }
.image-ratio-4x3::before { padding-bottom: 75%; }
.image-ratio-1x1::before { padding-bottom: 100%; }
.image-ratio-3x2::before { padding-bottom: 66.67%; }
.image-ratio img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 共享头部 ===== */
.site-header {
  position: sticky;
  top: calc(-1 * var(--ticker-h));
  z-index: 200;
  background: var(--color-primary-deep);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(7, 20, 41, 0.25);
}
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent) 82%, var(--color-alert) 82%, var(--color-alert) 100%);
  z-index: 5;
}

/* 公告条 */
.header-ticker {
  height: var(--ticker-h);
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--color-alert);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 3px;
  line-height: 1.2;
}
.ticker-viewport {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  height: var(--ticker-h);
  display: flex;
  align-items: center;
}
.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}
.ticker-item {
  display: inline-block;
  padding-right: 48px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: var(--ticker-h);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 主栏 */
.header-main {
  position: relative;
  max-width: var(--container-w);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.brand-logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-accent);
  transform: rotate(45deg);
  border-radius: 5px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.brand-logo::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--color-alert);
  border-radius: 50%;
  background: var(--color-primary-deep);
}
.brand-logo-letter {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  color: var(--color-primary-deep);
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-white);
  white-space: nowrap;
}
.brand:hover .brand-logo::before {
  background: var(--color-accent-light);
  transform: rotate(45deg) scale(1.04);
}

/* 导航 */
.site-nav {
  margin-left: auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(201, 162, 39, 0.2);
  border-right: 1px solid rgba(201, 162, 39, 0.2);
  padding: 0 8px;
}
.nav-list {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 100%;
}
.nav-item {
  display: flex;
  align-items: center;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  height: 100%;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-accent);
}
.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}
.nav-link[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 600;
}
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 6px;
  padding: 10px;
  line-height: 0;
  flex-shrink: 0;
}
.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--color-accent);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* 滚动进度条 */
.page-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-alert) 0%, var(--color-accent) 60%, var(--color-accent-light) 100%);
  z-index: 10;
  transition: width 0.1s linear;
}

/* ===== 共享页脚 ===== */
.site-footer {
  position: relative;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.82);
  border-top: 3px solid var(--color-accent);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 96px;
  height: 3px;
  background: var(--color-alert);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 48px;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 64px 32px 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.site-footer .brand-logo {
  width: 32px;
  height: 32px;
}
.site-footer .brand-logo::before {
  border-radius: 4px;
}
.site-footer .brand-logo::after {
  width: 8px;
  height: 8px;
  top: -2px;
  right: -2px;
}
.site-footer .brand-logo-letter {
  font-size: 16px;
}
.site-footer .brand-name {
  font-size: 18px;
}
.footer-brand-desc {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 16px;
  padding-bottom: 10px;
  position: relative;
}
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-contact-item {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.footer-bottom {
  background: var(--color-primary-deep);
  border-top: 1px solid rgba(201, 162, 39, 0.12);
}
.footer-bottom-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-bottom-inner p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .container,
  .header-main,
  .header-ticker,
  .footer-bottom-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
    padding: 48px 24px 40px;
  }
  .footer-bottom-inner {
    justify-content: flex-start;
  }

  /* 移动导航 */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .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: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--color-primary-deep);
    border-left: none;
    border-right: none;
    border-bottom: 2px solid var(--color-accent);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 24px 32px rgba(7, 20, 41, 0.45);
  }
  .site-nav[data-open] {
    max-height: 500px;
    visibility: visible;
    border-top: 1px solid rgba(201, 162, 39, 0.15);
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
    height: auto;
    padding: 8px 24px 20px;
  }
  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-item:last-child {
    border-bottom: none;
  }
  .nav-link {
    display: block;
    height: auto;
    padding: 14px 4px;
    font-size: 16px;
  }
  .nav-link::after {
    display: none;
  }
  .nav-link[aria-current="page"] {
    background: rgba(201, 162, 39, 0.08);
    border-radius: 6px;
  }
}

@media (max-width: 640px) {
  .page-title { font-size: 32px; }
  .section-heading { font-size: 24px; }
  .data-number { font-size: 44px; }

  .section { padding: 40px 0; }
  .container,
  .header-main,
  .header-ticker,
  .footer-bottom-inner,
  .content-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .header-main {
    height: 64px;
    gap: 12px;
  }
  .brand-name { font-size: 18px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-logo-letter { font-size: 17px; }

  .header-ticker {
    gap: 8px;
  }
  .ticker-item {
    font-size: 13px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px 32px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .btn {
    padding: 11px 20px;
    font-size: 15px;
  }

  .page-hero {
    padding: 48px 0;
  }
}

/* ===== Reduced Motion ===== */
@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;
  }

  .site-header {
    top: 0;
  }
  .ticker-track {
    animation: none;
    white-space: nowrap;
    transform: none;
  }
  .ticker-item {
    padding-right: 0;
  }
  .ticker-item:nth-child(2) {
    display: none;
  }
  .ticker-viewport {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .page-progress {
    transition: none;
  }
}
