/* 远征2-龙起征途 — 首页样式 */
:root {
  --royal-rose: #BE185D;
  --imperial-gold: #F59E0B;
  --sky-blue: #38BDF8;
  --void-black: #0f0a12;
  --void-black-2: #1a111f;
  --text-main: #f8f7f5;
  --text-muted: #a7a3ad;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --shadow-gold: 0 0 28px rgba(245, 158, 11, 0.18);
  --shadow-rose: 0 0 28px rgba(190, 24, 93, 0.22);
  --font-title: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--void-black);
  color: var(--text-main);
  line-height: 1.75;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}



.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--imperial-gold);
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  letter-spacing: 0.06em;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  margin-bottom: 2.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.title-deco-left,
.title-deco-right {
  display: inline-block;
  width: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--royal-rose));
  vertical-align: middle;
  margin: 0 0.75rem;
}

.title-deco-right {
  background: linear-gradient(90deg, var(--royal-rose), transparent);
}

/* ===== 导航栏 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 10, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--imperial-gold);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--imperial-gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--imperial-gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--royal-rose);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--imperial-gold);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero 区域 ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--void-black) 0%, rgba(15, 10, 18, 0.7) 50%, rgba(15, 10, 18, 0.3) 100%);
}

.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.dragon-pattern {
  position: absolute;
  right: -10%;
  top: -10%;
  width: 60vw;
  height: 60vw;
  border: 1px solid rgba(245, 158, 11, 0.08);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 24, 93, 0.1) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--imperial-gold);
  color: var(--imperial-gold);
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  background: rgba(245, 158, 11, 0.08);
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.hero-title .rose {
  color: var(--royal-rose);
}

.hero-title .gold {
  color: var(--imperial-gold);
}

.hero-desc {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 按钮变体 A：帝国金渐变实心 */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1a111f;
  background: linear-gradient(135deg, #fbbf24, var(--imperial-gold));
  border-radius: 8px;
  box-shadow: var(--shadow-gold);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 36px rgba(245, 158, 11, 0.3);
}

/* 按钮变体 B：玫红描边透明 */
.btn-rose-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--royal-rose);
  background: transparent;
  border: 1.5px solid var(--royal-rose);
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-rose-outline:hover {
  background: rgba(190, 24, 93, 0.12);
  box-shadow: var(--shadow-rose);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-frame {
  position: relative;
  width: min(420px, 90%);
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 24px;
  background: rgba(15, 10, 18, 0.45);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
}

.hero-logo-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(135deg, var(--imperial-gold), var(--royal-rose), var(--sky-blue));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
}

.hero-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(190, 24, 93, 0.35));
}

.ding-decor {
  position: absolute;
  width: 64px;
  height: 64px;
  border: 2px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--imperial-gold);
  font-size: 1.75rem;
  background: rgba(15, 10, 18, 0.6);
}

.ding-decor:nth-child(2) { top: -20px; left: -20px; }
.ding-decor:nth-child(3) { bottom: -20px; right: -20px; color: var(--sky-blue); border-color: rgba(56, 189, 248, 0.25); }

/* ===== 特色介绍区（蜂窝布局） ===== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-intro {
  background: linear-gradient(180deg, var(--void-black) 0%, var(--void-black-2) 100%);
}

.honeycomb {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.hex-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
  transition: transform 0.3s, border-color 0.3s;
}

.hex-card:nth-child(even) {
  clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 100%, 10% 100%, 0 90%);
}

.hex-card:hover {
  transform: translateY(-6px);
  border-color: var(--imperial-gold);
}

.hex-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hex-body {
  padding: 1.25rem;
}

.hex-body h3 {
  font-family: var(--font-title);
  color: var(--imperial-gold);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.hex-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== 下载区（二维码卡片矩阵） ===== */
.section-download {
  background: var(--void-black-2);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.qr-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.qr-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-rose);
  border-color: var(--royal-rose);
}

.qr-card img {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--imperial-gold);
}

.qr-card h4 {
  font-family: var(--font-title);
  color: var(--imperial-gold);
  margin-bottom: 0.35rem;
}

.qr-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== 联系区：悬浮聊天气泡 ===== */
.floating-contact {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 999;
}

.chat-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-rose), #9d174d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-rose);
  cursor: pointer;
  transition: transform 0.3s;
}

.chat-bubble:hover {
  transform: scale(1.08);
}

.contact-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 260px;
  max-height: 70vh;
  overflow-y: auto;
  background: rgba(26, 17, 31, 0.98);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.floating-contact.active .contact-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-panel h4 {
  font-family: var(--font-title);
  color: var(--imperial-gold);
  margin-bottom: 1rem;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-item i {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(190, 24, 93, 0.15);
  color: var(--royal-rose);
  font-size: 0.85rem;
}

.contact-item img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--card-border);
}

/* ===== 页脚 ===== */
.footer {
  background: #080508;
  border-top: 1px solid var(--card-border);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-title);
  color: var(--imperial-gold);
  font-size: 1.2rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--sky-blue);
}

/* ===== 响应式 md 768px ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 10, 18, 0.98);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .hamburger {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-logo-frame {
    width: 280px;
  }

  .honeycomb {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .ding-decor {
    display: none;
  }

  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .honeycomb {
    grid-template-columns: 1fr;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }
}

/* Position-specific image sizing */

.navbar img { height: 2.5rem; width: auto; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-logo-frame img { width: min(320px, 70vw); height: auto; }
.hex-card img { width: 100%; height: 180px; object-fit: cover; }
.qr-card img { width: 100%; max-width: 160px; height: auto; margin: 0 auto; }
.article-body img { width: 100%; max-height: 320px; object-fit: cover; }
footer img { width: 100%; max-width: 120px; height: auto; }

/* Friendly links block */

.friendly-links.yz2 { padding: 3rem 1rem; background: #0f0a12; border-top: 1px solid rgba(190,24,93,.3); }
.friendly-links.yz2 .friendly-links-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.friendly-links.yz2 h2 { font-family: 'Noto Serif SC', serif; font-size: clamp(1.6rem, 4vw, 2.4rem); color: #fff; margin-bottom: .25rem; }
.friendly-links.yz2 h2 i { color: #F59E0B; margin-right: .5rem; }
.friendly-links.yz2 p { color: rgba(255,255,255,.55); margin-bottom: 1.5rem; }
.friendly-links.yz2 ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0; }
.friendly-links.yz2 li a { display: block; padding: .6rem .8rem; border-radius: .5rem; background: rgba(190,24,93,.12); border: 1px solid rgba(190,24,93,.35); color: #E2E8F0; font-size: .9rem; transition: .2s; }
.friendly-links.yz2 li a:hover { background: rgba(245,158,11,.15); border-color: #F59E0B; color: #F59E0B; transform: translateY(-2px); }
@media (max-width: 375px) { .friendly-links.yz2 ul { grid-template-columns: repeat(2, 1fr); } }

