:root {
  /* 地方棋牌以白色和暖色为主，营造轻松、亲切、明亮的休闲氛围 */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-strong: #f1f5f9;
  --text: #334155;
  --text-dark: #0f172a;
  --muted: #64748b;
  --muted-dark: #475569;
  --line: rgba(0, 0, 0, 0.08);
  --line-dark: rgba(0, 0, 0, 0.15);
  /* 品牌主色：棋牌常用的红色/暖橙色调，增加喜庆和热闹感 */
  --primary: #ef4444;
  --primary-strong: #dc2626;
  --primary-soft: rgba(239, 68, 68, 0.1);
  --accent: #f59e0b; /* 橙色点缀 */
  --dark: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --radius: 20px; /* 圆润的边角显得更休闲亲切 */
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image: 
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%),
    url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ef4444" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, 100%);
}

h1, h2, h3, .eyebrow, .brand, .button, .stat strong {
  font-family: "Noto Sans SC", sans-serif;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-inner,
.footer-inner,
.split,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-inner {
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--text-dark);
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.nav a.active,
.nav a:hover {
  color: var(--primary);
}

.nav a.active::after,
.nav a:hover::after {
  width: 100%;
}

/* Typography */
.eyebrow,
.section-heading span,
.side-card span,
.doc-tag,
.contact-item span,
.status-text,
.product-label,
.info-tag {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.2;
  margin-top: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.3;
  margin-top: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.hero-text,
.section-heading p,
.info-card p,
.timeline-item p,
.doc-item time,
.contact-item strong,
.site-footer p,
.admin-intro p,
.panel-header p,
.news-list-item time {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  max-width: 600px;
  margin-top: 24px;
  font-size: 18px;
  color: var(--muted-dark);
}

/* Layout */
.hero,
.page-hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before, .page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% -20%, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
              radial-gradient(circle at -20% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

.hero-grid,
.two-column,
.investor-layout,
.admin-shell,
.culture-grid,
.game-hero-grid {
  display: grid;
  gap: 40px;
}

.hero-grid, .game-hero-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.investor-layout, .two-column {
  grid-template-columns: 280px 1fr;
  align-items: start;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 99px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(239, 68, 68, 0.35);
}

.button.ghost {
  background: var(--surface);
  color: var(--text-dark);
  border: 1px solid var(--line-dark);
}

.button.ghost:hover {
  background: var(--surface-strong);
  border-color: var(--primary);
  color: var(--primary);
}

/* Cards & Panels */
.hero-card,
.info-card,
.timeline-item,
.side-card,
.content-panel,
.contact-item,
.admin-panel,
.admin-intro,
.table-card,
.tab-panel,
.doc-item,
.product-card,
.event-item,
.cta-card,
.news-list-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.side-card {
  padding: 30px;
}

.side-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.side-card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.side-card li:hover, .side-card li.active {
  color: var(--primary);
}

.side-card li:last-child {
  border-bottom: none;
}

.content-panel {
  padding: 40px;
}

.hero-card {
  padding: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.hero-media {
  padding: 30px;
  margin-bottom: 30px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(245, 158, 11, 0.05));
  border-radius: 16px;
  border: 1px solid var(--primary-soft);
  position: relative;
  overflow: hidden;
}

.hero-media span,
.info-tag,
.product-label {
  display: inline-flex;
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 99px;
  font-size: 12px;
  font-weight: bold;
}

.hero-media strong {
  display: block;
  margin-top: 20px;
  font-size: 28px;
  color: var(--text-dark);
}

.stat + .stat {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-dark);
}

.stat strong {
  display: block;
  font-size: 48px;
  line-height: 1;
  color: var(--primary);
  font-weight: 800;
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
}

.section.light,
.dark-section {
  background: var(--surface-strong);
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 40px;
  text-align: left;
}

/* Grids */
.card-grid, .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.info-card, .news-card, .product-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.info-card:hover, .news-card:hover, .product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-soft);
  box-shadow: 0 15px 35px rgba(239, 68, 68, 0.08);
}

.info-card h3, .news-card h3, .product-card h3 {
  font-size: 22px;
  margin: 20px 0 12px;
  color: var(--text-dark);
}

.product-card a {
  margin-top: auto;
  padding-top: 20px;
  color: var(--primary);
  font-weight: bold;
}

.product-card a:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.product-card-light {
  background: var(--surface);
  border: 1px solid var(--line);
}

/* Lists */
.culture-grid {
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
}

.event-list,
.news-list,
.timeline,
.doc-list,
.contact-list {
  display: grid;
  gap: 20px;
}

.event-item, .news-list-item, .doc-item, .contact-item, .timeline-item {
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
}

.news-list-item {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.event-item:hover, .news-list-item:hover, .timeline-item:hover, .doc-item:hover {
  background: var(--surface-strong);
}

.event-item h3, .news-list-item h3, .doc-item h3 {
  margin-top: 8px;
  font-size: 20px;
  color: var(--text-dark);
}

.doc-item .doc-link {
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

.doc-item .doc-link:hover {
  color: var(--primary-dark, #1a56db);
  text-decoration: underline;
}

.doc-url-edit {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.doc-url-input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--primary);
  border: 1px dashed #d1d5db;
  border-radius: 4px;
  background: transparent;
  outline: none;
  word-break: break-all;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

.doc-url-input:focus {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.04);
}

.doc-url-input::placeholder {
  color: #9ca3af;
}

.timeline-item strong {
  font-size: 28px;
  color: var(--primary);
  display: block;
  margin-bottom: 10px;
}

.pill-list {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.pill {
  padding: 14px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-dark);
  font-weight: bold;
  border-radius: 99px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

/* CTA */
.cta-section {
  padding-top: 40px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 50px;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  border: none;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  z-index: 0;
}

.cta-card > * {
  z-index: 1;
}

.cta-card h2, .cta-card span, .cta-card p {
  color: #fff;
}

.cta-card span {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: 99px;
}

.cta-card .button.primary {
  background: #fff;
  color: var(--primary);
}

/* Footer */
.site-footer {
  padding: 60px 0 40px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  align-items: flex-start;
}

.site-footer strong {
  font-size: 20px;
  color: var(--text-dark);
  font-weight: 800;
}

.site-footer p {
  margin-top: 16px;
  max-width: 400px;
}

.footer-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  font-weight: 600;
  color: var(--muted-dark);
}

.footer-links a:hover {
  color: var(--primary);
}

/* Admin / Forms */
.admin-body {
  background-color: var(--bg);
  background-image: none;
}

.admin-shell {
  grid-template-columns: 320px 1fr;
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 60px 0;
  align-items: start;
}

.admin-intro {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 40px;
}

.admin-intro h1 {
  color: var(--text-dark);
  font-size: 32px;
}

.admin-intro p {
  color: var(--muted);
}

.admin-tips span {
  padding: 8px 16px;
  background: var(--primary-soft);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--primary);
  font-size: 12px;
  font-weight: bold;
  border-radius: 99px;
}

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 40px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  font: inherit;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.tabs {
  display: flex;
  gap: 10px;
  margin: 30px 0 25px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}

.tab {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 12px 20px;
  font-weight: bold;
  font-size: 16px;
  position: relative;
  cursor: pointer;
  margin-bottom: -1px;
}

.tab.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  font-weight: bold;
  color: var(--muted-dark);
  background: var(--surface-strong);
}

/* Status Text */
.status-text {
  text-align: center;
  font-size: 0.875rem;
  margin-top: 1.5rem;
  min-height: 1.2rem;
}

/* Captcha */
.captcha-group {
  position: relative;
}
.captcha-input-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}
.captcha-input-wrap input {
  flex: 1;
}
.captcha-input-wrap img {
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--line-dark);
  transition: opacity 0.2s;
}
.captcha-input-wrap img:hover {
  opacity: 0.8;
}
/* Language switcher */
.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: 10px;
  padding-left: 16px;
  border-left: 1px solid var(--line-dark);
}

.lang-btn {
  padding: 6px 14px;
  border: 1px solid var(--line-dark);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Investor table sections */
.investor-table {
  width: 100%;
  border-collapse: collapse;
}

.investor-table tr:hover td {
  background: var(--surface-strong);
}

.investor-table .table-section-header td {
  padding: 14px 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--surface-strong);
  border-bottom: 1px solid var(--line);
  letter-spacing: 1px;
}

.investor-table .table-section-header:hover td {
  background: var(--surface-strong);
}

.investor-table .table-label {
  width: 200px;
  padding: 14px 20px;
  font-weight: 600;
  color: var(--muted-dark);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  white-space: nowrap;
}

.investor-table .table-value {
  padding: 14px 20px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  line-height: 1.8;
}

.investor-table .table-value a {
  color: var(--primary);
  text-decoration: none;
}

.investor-table .table-value a:hover {
  color: var(--primary-dark, #1a56db);
}

.investor-table tr:last-child .table-label,
.investor-table tr:last-child .table-value {
  border-bottom: none;
}

.doc-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

@media (max-width: 1024px) {
  .hero-grid, .game-hero-grid, .two-column, .investor-layout, .admin-shell, .culture-grid {
    grid-template-columns: 1fr;
  }
  
  .split-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }
}

@media (max-width: 640px) {
  .header-inner, .footer-inner, .doc-item, .split {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav {
    margin-top: 15px;
    gap: 15px;
  }
  
  h1 {
    font-size: 32px;
  }
}