/* ===== 中国科创好声音公益演唱会 - 主样式 ===== */

:root {
  --bg-dark: #0a0a0f;
  --bg-section: #111118;
  --bg-card: #1a1a26;
  --bg-card-hover: #222233;
  --gold: #d4a843;
  --gold-light: #f0d68a;
  --gold-dark: #b8860b;
  --accent-pink: #ff2d78;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-gold: 0 0 30px rgba(212, 168, 67, 0.15);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-cn: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-heading: 'PingFang SC', 'Microsoft YaHei', serif;
  /* 子页面兼容别名 */
  --bg: var(--bg-dark);
  --bg2: var(--bg-card);
  --text: var(--text-primary);
  --text2: var(--text-secondary);
  --text3: var(--text-muted);
  --purple: var(--accent-purple);
  --pink: var(--accent-pink);
  --red: #ef4444;
  --green: #22c55e;
  --purple2: var(--accent-purple);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-cn);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== Animated Background ===== */
.bg-animation {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-animation .light-beam {
  position: absolute;
  width: 2px;
  height: 120vh;
  top: -10vh;
  background: linear-gradient(to bottom, transparent, var(--accent-purple), var(--accent-pink), transparent);
  animation: beamSweep 8s ease-in-out infinite;
  opacity: 0.15;
  transform-origin: top center;
}

.bg-animation .light-beam:nth-child(1) { left: 15%; animation-delay: 0s; }
.bg-animation .light-beam:nth-child(2) { left: 35%; animation-delay: 2s; background: linear-gradient(to bottom, transparent, var(--accent-blue), var(--accent-cyan), transparent); }
.bg-animation .light-beam:nth-child(3) { left: 55%; animation-delay: 4s; background: linear-gradient(to bottom, transparent, var(--gold), var(--gold-light), transparent); }
.bg-animation .light-beam:nth-child(4) { left: 75%; animation-delay: 6s; background: linear-gradient(to bottom, transparent, var(--accent-pink), var(--accent-purple), transparent); }

.bg-animation .particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  animation: floatUp 6s ease-in infinite;
  opacity: 0;
}

@keyframes beamSweep {
  0%, 100% { transform: rotate(-5deg); opacity: 0.05; }
  50% { transform: rotate(5deg); opacity: 0.2; }
}

@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.2; }
  100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.nav-logo .logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--accent-pink));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Logo image (SVG / uploaded) */
.nav-logo .nav-logo-img {
  height: 44px;
  width: auto;
  max-width: 220px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-logo img {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  background: rgba(212, 168, 67, 0.1);
}

/* hover/当前页的金色下划线。
   这段原来只写在 home-v2.css 里，而 home-v2.css 只有首页引 —— 结果只有首页的导航
   有下划线动画，其它页面 hover 只是变个底色。搬到全站共用的 style.css，统一效果。
   注意用 `>` 只挂到 7 个栏目链接上：否则「登录/注册」和右上角用户下拉菜单里的条目
   （它们也是 .nav-links 的后代）会被画上一条 2px 金条。 */
.nav-links > a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.nav-links > a:hover::after,
.nav-links > a.active::after { transform: scaleX(1); }

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: #1a1a1a !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  border-radius: 25px !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.4);
  color: #1a1a1a !important;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: url('/images/hero-stage.png') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 30% 80%, rgba(212, 168, 67, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 20%, rgba(255, 45, 120, 0.1) 0%, transparent 50%),
              rgba(10, 10, 15, 0.75);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,15,0.3) 0%, transparent 40%, transparent 70%, var(--bg-dark) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid rgba(212, 168, 67, 0.4);
  border-radius: 25px;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 32px;
  letter-spacing: 0.1em;
  animation: fadeInUp 0.8s ease;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--gold-light), var(--accent-pink), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 首屏主标题分行：站点名整行不断（避免「演唱/会」被拆开），动作语单独一行且字号略小 */
.hero h1 .hero-brand {
  display: block;
  white-space: nowrap;
  font-size: 0.94em;
}
.hero h1 .hero-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.62em;
  letter-spacing: 0.06em;
  font-weight: 800;
}
@media (max-width: 520px) {
  .hero h1 .hero-brand { font-size: 0.86em; }
  .hero h1 .hero-sub { font-size: 0.58em; }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.4s both;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  /* 文字一律水平居中：全宽按钮（如登录、提交报名）不再贴左边缘 */
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-cn);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a1a1a;
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(212, 168, 67, 0.5);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: rgba(212, 168, 67, 0.05);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ===== Section Common ===== */
.section {
  position: relative;
  padding: 100px 24px;
  z-index: 1;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-badge {
  display: inline-block;
  padding: 4px 16px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--accent-purple);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
}

.about-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(212, 168, 67, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.about-card .icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.icon-gold { background: rgba(212, 168, 67, 0.15); color: var(--gold-light); }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.icon-pink { background: rgba(255, 45, 120, 0.15); color: var(--accent-pink); }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }

.about-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-purple), var(--accent-pink), var(--gold));
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
  padding-left: 0;
  padding-right: calc(50% + 40px);
  text-align: right;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px rgba(212, 168, 67, 0.5);
  z-index: 2;
}

.timeline-item:nth-child(2) .timeline-dot { background: var(--accent-purple); box-shadow: 0 0 20px rgba(139,92,246,0.5); }
.timeline-item:nth-child(3) .timeline-dot { background: var(--accent-pink); box-shadow: 0 0 20px rgba(255,45,120,0.5); }
.timeline-item:nth-child(4) .timeline-dot { background: var(--accent-blue); box-shadow: 0 0 20px rgba(59,130,246,0.5); }
.timeline-item:nth-child(5) .timeline-dot { background: var(--accent-cyan); box-shadow: 0 0 20px rgba(6,182,212,0.5); }

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
}

.timeline-content .time-label {
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== Sponsor Cards ===== */
.sponsor-tiers {
  display: grid;
  gap: 32px;
}

.tier-section h3 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 24px;
  padding: 10px 24px;
  display: inline-block;
  border-radius: 8px;
  background: rgba(212, 168, 67, 0.1);
  color: var(--gold-light);
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.tier-section {
  text-align: center;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.sponsor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.sponsor-card:hover {
  border-color: rgba(212, 168, 67, 0.3);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.sponsor-card.crown {
  border-color: rgba(212, 168, 67, 0.4);
  background: linear-gradient(180deg, rgba(212,168,67,0.1), var(--bg-card));
}

.sponsor-card .sponsor-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.sponsor-card h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.sponsor-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Media Partners ===== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}

.media-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
  transform: translateY(-3px);
}

.media-card .media-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
}

.media-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.media-card p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== Countdown ===== */
.countdown-section {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(180deg, rgba(139,92,246,0.05), transparent, rgba(212,168,67,0.05));
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.countdown-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 28px;
  min-width: 100px;
}

.countdown-item .number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-item .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Registration Form ===== */
.register-section {
  background: linear-gradient(180deg, transparent, rgba(139,92,246,0.03), transparent);
}

.form-container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-notice {
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 0.85rem;
  color: var(--gold-light);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-notice .notice-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group label .required {
  color: var(--accent-pink);
  margin-left: 2px;
}

/* 协议/条款勾选行
   坑：.form-group input { width:100% } 会把 checkbox 拉满整行，
   导致文字被挤成「一字一行」贴在右边。这里用更高优先级把复选框固定成 18px，文字自适应换行。
   注：页面内联 <style> 里的 .form-group label{display:block} 与 .form-group input{width:100%}
   与我们同权重且更靠后，故必须带上 .form-group 前缀提高优先级。 */
label.check-row,
.form-group label.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  cursor: pointer;
}

label.check-row > input[type="checkbox"],
.form-group label.check-row > input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 0;      /* 移动端 .form-group input{min-height:48px} 会把复选框拉成竖长条 */
  max-height: 18px;
  flex: 0 0 18px;
  margin: 3px 0 0;
  padding: 0;
  box-sizing: border-box;
  accent-color: var(--gold);
}

label.check-row > span,
.form-group label.check-row > span {
  flex: 1 1 auto;
  min-width: 0;
}

label.check-row a,
.form-group label.check-row a {
  color: var(--gold);
  text-decoration: underline;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-cn);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--accent-pink);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.radio-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 400;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.radio-group input[type="radio"] {
  width: auto;
  accent-color: var(--gold);
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 32px 0;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
}

.privacy-check input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.privacy-check label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  cursor: pointer;
}

.privacy-check a {
  color: var(--gold-light);
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  margin-top: 8px;
}

.form-error {
  color: var(--accent-pink);
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

.form-error.show { display: block; }

.form-success {
  text-align: center;
  padding: 60px 20px;
}

.form-success .success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #22c55e;
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.form-success p {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.contact-item .contact-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(212, 168, 67, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 36px;
}

/* ===== Footer ===== */
.footer {
  background: rgba(10,10,15,0.8);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1;
  min-width: 250px;
}

.footer-left h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.footer-left p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

.footer-right {
  text-align: center;
  flex-shrink: 0;
}

.footer-qrcode {
  margin-bottom: 16px;
}

.footer-qrcode p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-brand h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 页脚品牌标识：与顶部导航同源（后台「网站Logo」设置一次，两处同步）
   —— 所以这里放的是图片，不是文字。
   注意：上传的 logo 是**透明底** PNG，不要加圆角/投影 —— 阴影会沿透明区域外框画出一个
   黑方块，在深色页脚上看着像一块脏污。保持图片原样贴合即可。 */
.footer-brand .footer-brand-title {
  margin-bottom: 12px;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  line-height: 0;
}
.footer-brand .footer-logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
}
@media (max-width: 768px) {
  .footer-brand .footer-logo-img { height: 44px; }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom p {
  margin: 4px 0;
  line-height: 1.6;
}

.footer-bottom p:first-child {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ===== News Cards ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.news-card:hover {
  border-color: rgba(212, 168, 67, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.news-card .news-img {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.news-card .news-body {
  padding: 20px;
}

.news-card .news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.news-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ===== Rules Page ===== */
.rules-list {
  max-width: 800px;
  margin: 0 auto;
  counter-reset: rule-counter;
}

.rule-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 80px;
  transition: var(--transition);
}

.rule-item:hover {
  border-color: rgba(212, 168, 67, 0.2);
}

.rule-item::before {
  counter-increment: rule-counter;
  content: counter(rule-counter, decimal-leading-zero);
  position: absolute;
  left: 24px;
  top: 28px;
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rule-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.rule-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ===== Privacy Page ===== */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 48px;
}

.privacy-content h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  text-align: center;
}

.privacy-content h3 {
  font-size: 1.2rem;
  color: var(--gold-light);
  margin: 32px 0 12px;
}

.privacy-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 12px;
}

.privacy-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.privacy-content li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.9;
}

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal h2 { margin-bottom: 24px; }

.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 3000;
  padding: 16px 24px;
  border-radius: 10px;
  color: white;
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.toast.success { background: #166534; border: 1px solid #22c55e; }
.toast.error { background: #7f1d1d; border: 1px solid #ef4444; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== Responsive (Mobile-First Enhancements) ===== */

/* ---------- max-width: 1024px (Tablets / Small Desktops) ---------- */
@media (max-width: 1024px) {
  .nav-container { padding: 0 16px; }
  .nav-logo .nav-logo-img { max-width: 180px; height: 38px; }
  .nav-links a { font-size: 0.85rem; padding: 6px 12px; }

  .about-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
  .news-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

  .footer-container {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- max-width: 768px (Tablets / Large Phones) ---------- */
@media (max-width: 768px) {
  /* --- Navigation --- */
  .menu-toggle { display: block; }
  .nav-container { height: 60px; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 24px 40px;
    gap: 6px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border-subtle);
    overflow-y: auto;
    z-index: 1000;
  }
  .nav-links.active { right: 0; }
  .nav-links a {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav-links #navUserArea { margin-left: 0 !important; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-subtle); width: 100%; }
  .nav-links #navUserArea a { padding: 14px 16px; width: auto; }

  /* --- Typography --- */
  .hero { min-height: auto; padding: 100px 20px 60px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .section-header h2 { font-size: 1.6rem; }
  .section-header p { font-size: 0.9rem; }

  /* --- Layout --- */
  .section { padding: 60px 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-card { padding: 24px; }

  /* --- Forms --- */
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .form-container { padding: 28px 20px; border-radius: 16px; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 1rem;
    min-height: 48px;
  }
  .form-group label { font-size: 0.88rem; }
  .privacy-check { margin: 24px 0; padding: 14px; }
  .form-submit { padding: 16px; font-size: 1rem; min-height: 52px; }

  /* --- Buttons --- */
  .btn { padding: 12px 24px; font-size: 0.95rem; min-height: 48px; }
  .btn-sm { padding: 8px 18px; font-size: 0.85rem; min-height: 40px; }

  /* --- Contact --- */
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-form { padding: 28px 20px; }
  .contact-item { padding: 14px; }

  /* --- Footer --- */
  .footer { padding: 40px 16px 24px; }
  .footer-container {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .footer-brand h3 { font-size: 1.15rem; }
  .footer-col h4 { font-size: 0.9rem; margin-bottom: 12px; }
  .footer-col a { padding: 6px 0; min-height: 40px; display: flex; align-items: center; font-size: 0.85rem; }
  .footer-bottom { margin-top: 28px; padding-top: 20px; }

  /* --- Timeline --- */
  .timeline::before { left: 20px; }
  .timeline-item { padding-left: 56px !important; padding-right: 0 !important; text-align: left !important; }
  .timeline-dot { left: 20px !important; }
  .timeline-content { padding: 18px; }

  /* --- Cards & Grids --- */
  .news-grid { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: 1fr 1fr; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .sponsor-card { padding: 24px 16px; }
  .media-card { padding: 20px 14px; }

  /* --- Rules --- */
  .rule-item { padding: 20px; }
  .rule-item::before { position: static; display: block; margin-bottom: 8px; }
  .rule-item h3 { font-size: 1rem; }

  /* --- Privacy --- */
  .privacy-content { padding: 28px 20px; border-radius: 12px; }
  .privacy-content h2 { font-size: 1.4rem; }
  .privacy-content h3 { font-size: 1rem; }

  /* --- Modal --- */
  .modal { padding: 28px 20px; border-radius: 12px; margin: 16px; }
  .modal h2 { font-size: 1.2rem; }

  /* --- Toast --- */
  .toast { top: 76px; right: 12px; left: 12px; padding: 14px 18px; font-size: 0.85rem; }

  /* --- Countdown --- */
  .countdown-section { padding: 50px 16px; }
  .countdown-grid { gap: 12px; }

  /* --- Menu toggle icon --- */
  .menu-toggle { padding: 10px; }
  .menu-toggle span { width: 22px; margin: 4px 0; }

  /* --- Login / Signup pages --- */
  .auth-container { margin: 100px auto 40px; padding: 0 16px; }
  .auth-card { padding: 28px 20px; }
  .auth-card h2 { font-size: 1.3rem; }
  .user-type-selector { flex-direction: column; gap: 10px; }
  .user-type-option { padding: 14px 12px; }
  .auth-tabs { gap: 4px; padding: 3px; }
  .auth-tab { padding: 10px 8px; font-size: 0.82rem; }

  /* --- Admin Login --- */
  .login-box { padding: 32px 24px; }
  .login-box h2 { font-size: 1.3rem; }
}

/* ---------- max-width: 480px (Phones) ---------- */
@media (max-width: 480px) {
  /* --- Navigation --- */
  .nav-container { padding: 0 12px; height: 56px; }
  .nav-logo .nav-logo-img { max-width: 150px; height: 32px; }
  .nav-links { width: 100%; }

  /* --- Hero --- */
  .hero { padding: 80px 16px 50px; }
  .hero h1 { font-size: 1.5rem; }
  .hero-badge { font-size: 0.75rem; padding: 4px 16px; margin-bottom: 20px; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 12px; }
  .hero-buttons .btn { width: 100%; max-width: 300px; justify-content: center; }

  /* --- Section --- */
  .section { padding: 48px 12px; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 1.4rem; }

  /* --- Forms --- */
  .form-container { padding: 20px 14px; border-radius: 12px; }
  .form-group { margin-bottom: 14px; }
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 12px 14px; font-size: 0.95rem; min-height: 46px; }
  .radio-group { flex-direction: column; gap: 10px; }
  .privacy-check { flex-direction: column; gap: 8px; }
  .privacy-check input[type="checkbox"] { margin-top: 0; }

  /* --- Cards --- */
  .about-card { padding: 20px; }
  .sponsor-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .sponsor-card { padding: 20px 14px; }
  .media-card { padding: 16px 12px; }

  /* --- Countdown --- */
  .countdown-item { min-width: 68px; padding: 14px 10px; }
  .countdown-item .number { font-size: 1.6rem; }
  .countdown-item .label { font-size: 0.7rem; }

  /* --- Footer --- */
  .footer { padding: 32px 12px 20px; }
  .footer-container { gap: 24px !important; }
  .footer-col a { font-size: 0.82rem; min-height: 38px; }
  .footer-bottom { font-size: 0.72rem; }

  /* --- Timeline --- */
  .timeline-item { padding-left: 44px !important; }
  .timeline-dot { width: 12px; height: 12px; }
  .timeline-content { padding: 14px; }

  /* --- Rules --- */
  .rule-item { padding: 16px; margin-bottom: 14px; }
  .rule-item::before { font-size: 1.2rem; }

  /* --- Privacy --- */
  .privacy-content { padding: 20px 14px; }
  .privacy-content h2 { font-size: 1.2rem; }
  .privacy-content p { font-size: 0.85rem; }

  /* --- News --- */
  .news-card .news-img { height: 160px; }
  .news-card .news-body { padding: 16px; }

  /* --- Contact --- */
  .contact-item { flex-direction: column; gap: 10px; }
  .contact-form { padding: 20px 14px; }

  /* --- Modal --- */
  .modal { padding: 20px 16px; max-width: 100%; width: calc(100% - 24px); max-height: 85vh; }

  /* --- Toast --- */
  .toast { top: 66px; left: 10px; right: 10px; padding: 12px 16px; }

  /* --- Login / Signup --- */
  .auth-container { margin: 80px auto 30px; padding: 0 12px; }
  .auth-card { padding: 22px 16px; border-radius: 12px; }
  .auth-card h2 { font-size: 1.2rem; }
  .auth-card .subtitle { font-size: 0.82rem; margin-bottom: 20px; }
  .auth-tab { padding: 8px 6px; font-size: 0.8rem; }
  .auth-submit { padding: 14px; font-size: 0.95rem; }
  .auth-switch { font-size: 0.8rem; }

  /* --- Admin Login --- */
  .login-box { padding: 24px 16px; border-radius: 14px; }
  .login-box h2 { font-size: 1.15rem; }
  .login-box .subtitle { font-size: 0.78rem; margin-bottom: 24px; }

  /* --- Misc --- */
  .form-success { padding: 40px 16px; }
  .form-success .success-icon { width: 60px; height: 60px; font-size: 2rem; }
  .form-success h3 { font-size: 1.2rem; }
  .form-header h2 { font-size: 1.4rem; }
  .news-detail-overlay { padding: 12px; }
}

/* ---------- max-width: 360px (Very Small Phones) ---------- */
@media (max-width: 360px) {
  .nav-logo .nav-logo-img { max-width: 120px; height: 28px; }

  .hero h1 { font-size: 1.3rem; }
  .hero-subtitle { font-size: 0.85rem; }

  .section-header h2 { font-size: 1.2rem; }
  .section { padding: 40px 10px; }

  .form-container { padding: 16px 10px; }
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 10px 12px; font-size: 0.9rem; min-height: 44px; }

  .countdown-item { min-width: 56px; padding: 10px 6px; }
  .countdown-item .number { font-size: 1.3rem; }

  .media-grid { grid-template-columns: 1fr; }

  .auth-card { padding: 18px 12px; }
  .login-box { padding: 20px 12px; }

  .about-card { padding: 16px; }
  .sponsor-card { padding: 16px 10px; }
  .media-card { padding: 14px 10px; }
  .contact-item { padding: 12px; }
}

/* ===== Loading Spinner ===== */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Footer Grid Helper ===== */
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-grid { gap: 24px; }
}
img, video, iframe, table { max-width: 100%; height: auto; }
pre, code { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
