/* =========================================
   C7娱乐汇 - 全站共享样式表
   设计系统：奢华科技蓝图
   ========================================= */
:root {
  /* 色彩系统 */
  --c7-bg-deep: #0A192F;
  --c7-bg-card: #1E2A4A;
  --c7-gold: #D4AF37;
  --c7-gold-light: #F5D060;
  --c7-purple: #9B59B6;
  --c7-wine: #8E2C48;
  --c7-bg-light: #E8EAF0;
  --c7-text-light: #F5F7FA;
  --c7-text-dark: #10203A;
  --c7-gold-gradient: linear-gradient(135deg, #D4AF37, #F5D060);
  --c7-purple-gradient: linear-gradient(135deg, #0A192F, #9B59B6);

  /* 字体系统 */
  --c7-font-display: "PingFang SC", "Microsoft YaHei", sans-serif;
  --c7-font-body: "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --c7-font-mono: "Roboto Mono", "Courier New", monospace;

  /* 布局变量 */
  --c7-container-max: 1200px;
  --c7-header-h: 70px;
  --c7-header-top-h: 36px;

  /* 动效 */
  --c7-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --c7-transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--c7-font-body);
  background-color: var(--c7-bg-deep);
  color: var(--c7-text-light);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex-grow: 1;
}

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

a {
  color: var(--c7-gold);
  text-decoration: none;
  transition: color var(--c7-transition), background-color var(--c7-transition);
}

a:hover {
  color: var(--c7-gold-light);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
}

/* ===== 焦点可见性 ===== */
:focus-visible {
  outline: 2px solid var(--c7-gold);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ===== 容器和布局 ===== */
.c7-container {
  max-width: var(--c7-container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.c7-section {
  padding: clamp(60px, 10vw, 120px) 0;
  position: relative;
}

.c7-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.c7-span-3 { grid-column: span 3; }
.c7-span-4 { grid-column: span 4; }
.c7-span-5 { grid-column: span 5; }
.c7-span-6 { grid-column: span 6; }
.c7-span-7 { grid-column: span 7; }
.c7-span-8 { grid-column: span 8; }
.c7-span-12 { grid-column: span 12; }

/* ===== 蓝图网格背景 ===== */
.c7-blueprint-grid {
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
}

.c7-blueprint-grid::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: var(--c7-purple-gradient);
  opacity: 0.2;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

/* ===== Header ===== */
.c7-header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.c7-header-top {
  background-color: var(--c7-bg-card);
  border-bottom: 1px solid rgba(155, 89, 182, 0.4);
  overflow: hidden;
}

.c7-header-top-marquee {
  font-family: var(--c7-font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c7-gold);
  padding: 6px 16px;
  text-align: center;
  white-space: nowrap;
}

.c7-header-main {
  position: relative;
}

.c7-header-flex {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--c7-header-h);
}

.c7-brand {
  font-family: var(--c7-font-display);
  font-size: 28px;
  font-weight: 900;
  background: var(--c7-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: baseline;
  line-height: 1.2;
  flex-shrink: 0;
}

.c7-brand-sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--c7-purple);
  -webkit-text-fill-color: var(--c7-purple);
  margin-left: 6px;
  letter-spacing: 2px;
}

.c7-tagline {
  font-family: var(--c7-font-mono);
  font-size: 14px;
  color: var(--c7-text-light);
  opacity: 0.8;
  margin-left: auto;
  padding: 0 24px;
  border-left: 2px solid var(--c7-purple);
  letter-spacing: 0.15em;
  flex-shrink: 0;
}

.c7-nav {
  flex-shrink: 0;
}

.c7-nav-list {
  display: flex;
  gap: 8px;
  align-items: center;
}

.c7-nav-link {
  display: inline-block;
  color: var(--c7-text-light);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 4px;
  position: relative;
  transition: color var(--c7-transition), background-color var(--c7-transition);
}

.c7-nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--c7-gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--c7-transition);
}

.c7-nav-link:hover,
.c7-nav-link[aria-current="page"] {
  color: var(--c7-gold);
}

.c7-nav-link:hover::after,
.c7-nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ===== Navigation Toggle ===== */
.c7-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 4px;
  flex-shrink: 0;
  background-color: rgba(30, 42, 74, 0.6);
}

.c7-nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--c7-gold);
  transition: transform var(--c7-transition), opacity var(--c7-transition);
}

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

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

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

/* ===== Skip Link ===== */
.c7-skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--c7-gold-gradient);
  color: var(--c7-text-dark);
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 4px;
  z-index: 200;
  transition: top var(--c7-transition);
}

.c7-skip-link:focus {
  top: 16px;
}

/* ===== Footer ===== */
.c7-footer {
  background-color: var(--c7-bg-card);
  border-top: 2px solid;
  border-image: linear-gradient(90deg, var(--c7-gold), var(--c7-purple), transparent) 1;
  position: relative;
  overflow: hidden;
}

.c7-footer::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 89, 182, 0.4), transparent);
}

.c7-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 32px;
}

.c7-footer-brand .c7-brand {
  font-size: 26px;
}

.c7-footer-tagline {
  font-family: var(--c7-font-mono);
  color: var(--c7-gold);
  font-size: 13px;
  letter-spacing: 0.2em;
  margin-top: 8px;
}

.c7-footer-desc {
  font-size: 14px;
  color: var(--c7-text-light);
  opacity: 0.7;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 320px;
}

.c7-footer-title {
  font-family: var(--c7-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--c7-gold);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  letter-spacing: 0.1em;
}

.c7-footer-links ul,
.c7-footer-contact p {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.c7-footer-links a {
  color: var(--c7-text-light);
  font-size: 14px;
  opacity: 0.85;
  transition: padding-left var(--c7-transition), color var(--c7-transition);
}

.c7-footer-links a:hover {
  color: var(--c7-gold);
  padding-left: 6px;
}

.c7-footer-contact p {
  font-size: 14px;
  color: var(--c7-text-light);
  opacity: 0.85;
}

.c7-footer-bottom {
  border-top: 1px solid rgba(155, 89, 182, 0.3);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.c7-footer-bottom p {
  font-size: 13px;
  opacity: 0.7;
  color: var(--c7-text-light);
}

.c7-footer-bottom a {
  color: var(--c7-gold);
}

/* ===== 通用组件 ===== */
.c7-card {
  background-color: var(--c7-bg-card);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  padding: 24px;
  transition: transform var(--c7-transition), border-color var(--c7-transition), box-shadow var(--c7-transition);
  position: relative;
  overflow: hidden;
}

.c7-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.1);
}

.c7-card-index {
  font-family: var(--c7-font-mono);
  font-size: 12px;
  color: var(--c7-gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
  opacity: 0.8;
}

.c7-card-title {
  font-family: var(--c7-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--c7-text-light);
  margin-bottom: 8px;
}

.c7-card-text {
  font-size: 14px;
  color: var(--c7-text-light);
  opacity: 0.75;
  line-height: 1.7;
}

.c7-badge {
  display: inline-block;
  font-family: var(--c7-font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--c7-gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(155, 89, 182, 0.1));
  border-left: 2px solid var(--c7-gold);
  padding: 4px 12px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  transform: skewX(-12deg);
}

.c7-badge > span {
  display: inline-block;
  transform: skewX(12deg);
}

.c7-section-title {
  font-family: var(--c7-font-display);
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c7-text-light);
  margin-bottom: 32px;
  position: relative;
}

.c7-section-title small {
  display: block;
  font-size: 14px;
  font-family: var(--c7-font-mono);
  color: var(--c7-gold);
  letter-spacing: 0.3em;
  font-weight: 400;
  margin-bottom: 8px;
}

/* ===== Button ===== */
.c7-btn {
  display: inline-block;
  font-family: var(--c7-font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition: transform var(--c7-transition), box-shadow var(--c7-transition), background-color var(--c7-transition);
}

.c7-btn-primary {
  background: var(--c7-gold-gradient);
  color: var(--c7-text-dark);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.c7-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
  color: var(--c7-text-dark);
}

.c7-btn-outline {
  border: 1px solid var(--c7-gold);
  color: var(--c7-gold);
}

.c7-btn-outline:hover {
  background-color: rgba(212, 175, 55, 0.1);
  translate: initial;
  transform: translateY(-2px);
}

/* ===== Tabs ===== */
.c7-tabs {
  width: 100%;
}

.c7-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0;
  margin-bottom: 24px;
}

.c7-tab-button {
  font-family: var(--c7-font-mono);
  font-size: 14px;
  color: var(--c7-text-light);
  opacity: 0.6;
  padding: 10px 24px;
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: opacity var(--c7-transition), background-color var(--c7-transition), color var(--c7-transition);
}

.c7-tab-button::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--c7-gold-gradient);
  transform: scaleX(0);
  transition: transform var(--c7-transition);
}

.c7-tab-button[aria-selected="true"] {
  opacity: 1;
  color: var(--c7-gold);
  background: rgba(212, 175, 55, 0.05);
}

.c7-tab-button[aria-selected="true"]::after {
  transform: scaleX(1);
}

.c7-tab-panel {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--c7-transition-slow), transform var(--c7-transition-slow);
}

.c7-tab-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 滚动显现 ===== */
.c7-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.c7-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 滚动进度条 ===== */
.c7-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(212, 175, 55, 0.15);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 300;
  pointer-events: none;
}

.c7-progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--c7-gold), var(--c7-purple));
}

/* ===== 返回顶部 ===== */
.c7-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--c7-bg-card);
  border: 1px solid var(--c7-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--c7-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--c7-transition), transform var(--c7-transition), visibility var(--c7-transition);
  z-index: 90;
}

.c7-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.c7-back-to-top:hover {
  background-color: var(--c7-gold);
  color: var(--c7-text-dark);
}

.c7-back-to-top-icon {
  line-height: 1;
}

/* ===== 图片容器基础规则 ===== */
.c7-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--c7-bg-card);
  border: 1px solid rgba(212, 175, 55, 0.15);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c7-text-light);
  opacity: 0.8;
  font-family: var(--c7-font-mono);
  font-size: 12px;
}

.c7-media[data-label]::before {
  content: attr(data-label);
  position: absolute;
  bottom: 8px;
  right: 12px;
  background: rgba(10, 25, 47, 0.8);
  padding: 4px 8px;
  border-radius: 4px;
}

.c7-media-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--c7-bg-card);
}

/* ===== 图片占位渐变 ===== */
.c7-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c7-purple-gradient);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
  .c7-header-flex {
    flex-wrap: wrap;
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .c7-tagline {
    display: none;
  }

  .c7-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .c7-span-4,
  .c7-span-5,
  .c7-span-6,
  .c7-span-7,
  .c7-span-8 {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .c7-header-main {
    position: relative;
  }

  .c7-nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .c7-header-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .c7-nav {
    display: none;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 12px;
  }

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

  .c7-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .c7-nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: 4px;
  }

  .c7-nav-link::after {
    display: none;
  }

  .c7-nav-link[aria-current="page"] {
    background-color: rgba(212, 175, 55, 0.1);
  }

  .c7-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
  }

  .c7-section {
    padding: 48px 0;
  }

  .c7-skip-link {
    display: none;
  }

  .c7-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .c7-reveal {
    opacity: 1;
    transform: none;
  }
}
