/* 元梦幻界 GEO 官网前台样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #004c97;
  --primary-dark: #003d7a;
  --accent: #00a1d6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --bg: #f8f9fa;
  --bg-white: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

/* ========== Header ========== */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 22px; font-weight: bold; color: var(--primary);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.logo-icon { font-size: 28px; }
.nav-links {
  display: flex; list-style: none; gap: 28px;
}
.nav-links a {
  color: var(--text); text-decoration: none; font-size: 15px;
  font-weight: 500; transition: color 0.2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--primary); transition: width 0.2s;
}
.nav-links a:hover::after { width: 100%; }

.mobile-menu-btn {
  display: none; background: none; border: none; font-size: 24px; cursor: pointer;
}

/* ========== Hero Section ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff; padding: 80px 0; text-align: center;
}
.hero h1 { font-size: 42px; margin-bottom: 16px; font-weight: 700; }
.hero p { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto 32px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  border: none; transition: all 0.2s;
}
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f0f0; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.content-body .btn-primary { color: #fff; }

/* ========== Section ========== */
.section { padding: 64px 0; }
.section-title {
  text-align: center; font-size: 28px; font-weight: 700;
  margin-bottom: 8px; color: var(--text);
}
.section-subtitle {
  text-align: center; color: var(--text-secondary); font-size: 16px;
  margin-bottom: 40px;
}

/* ========== Cards ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img {
  width: 100%; height: 180px; object-fit: cover; background: #e5e7eb;
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.card-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  padding: 3px 10px; border-radius: 20px; font-size: 12px; background: #e0f2fe;
  color: var(--primary); font-weight: 500;
}
.tag-outline {
  padding: 3px 10px; border-radius: 20px; font-size: 12px;
  border: 1px solid var(--border); color: var(--text-secondary);
}

/* ========== Info Blocks ========== */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.info-card {
  background: var(--bg-white); border-radius: var(--radius); padding: 28px;
  text-align: center; box-shadow: var(--shadow);
}
.info-icon { font-size: 36px; margin-bottom: 12px; }
.info-card h3 { font-size: 18px; margin-bottom: 8px; }
.info-card p { font-size: 14px; color: var(--text-secondary); }

/* ========== Content Page ========== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff; padding: 48px 0; text-align: center;
}
.page-hero h1 { font-size: 32px; font-weight: 700; }
.page-hero p { opacity: 0.9; margin-top: 8px; }

.content-body {
  background: var(--bg-white); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow); margin: 32px 0;
}
.content-body h2 { font-size: 24px; margin: 24px 0 12px; color: var(--text); }
.content-body h3 { font-size: 20px; margin: 20px 0 10px; color: var(--text); }
.content-body p { margin-bottom: 12px; color: var(--text-secondary); line-height: 1.8; }
.content-body ul, .content-body ol { margin: 12px 0 12px 24px; color: var(--text-secondary); }
.content-body li { margin-bottom: 6px; }
.content-body img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.content-body a { color: var(--primary); text-decoration: none; }
.content-body a:hover { text-decoration: underline; }
.content-body strong { color: var(--text); }

.meta-bar {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  font-size: 14px; color: var(--text-secondary); margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}

/* ========== FAQ ========== */
.faq-item {
  background: var(--bg-white); border-radius: var(--radius); margin-bottom: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.faq-question {
  padding: 20px 24px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s;
}
.faq-question:hover { background: #f9fafb; }
.faq-question::after { content: '+'; font-size: 20px; color: var(--primary); }
.faq-item.open .faq-question::after { content: '-'; }
.faq-answer {
  padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s;
  color: var(--text-secondary); line-height: 1.8;
}
.faq-item.open .faq-answer { padding: 0 24px 20px; max-height: 500px; }

/* ========== Contact Form ========== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 15px; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,76,151,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { background: #d1fae5; color: #065f46; padding: 16px; border-radius: 8px; margin-bottom: 16px; }
.form-error { background: #fee2e2; color: #991b1b; padding: 16px; border-radius: 8px; margin-bottom: 16px; }

/* ========== Footer ========== */
.site-footer {
  background: #1a1a1a; color: #9ca3af; padding: 48px 0 24px; font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer-grid a { color: #9ca3af; text-decoration: none; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid #333; }

/* ========== Bilibili Embed ========== */
.bilibili-embed {
  margin: 16px 0; background: #000; border-radius: 8px; overflow: hidden;
}
.bilibili-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 240px; color: #fff; gap: 12px;
}
.bilibili-placeholder button {
  padding: 10px 24px; background: #00a1d6; color: #fff;
  border: none; border-radius: 4px; cursor: pointer; font-size: 14px;
}
.bilibili-placeholder button:hover { background: #0087b3; }

/* ========== Pagination ========== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 6px; font-size: 14px; text-decoration: none;
  border: 1px solid var(--border); color: var(--text);
}
.pagination a:hover, .pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ========== Breadcrumbs ========== */
.breadcrumbs { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }

/* ========== Empty State ========== */
.empty-state { text-align: center; padding: 64px 20px; }
.empty-state h3 { font-size: 20px; color: var(--text-secondary); margin-bottom: 12px; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero h1 { font-size: 28px; }
  .hero { padding: 48px 0; }
  .section { padding: 40px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .content-body { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
