/* ========================================
   龙之谷·启程 官方网站 - 主样式表
   深蓝奇幻主题 · 金橙强调 · 官网质感
   ======================================== */

:root {
  --primary: #2456c8;
  --primary-dark: #16387f;
  --primary-deep: #0d2352;
  --accent: #ff9d2e;
  --accent-dark: #f57c00;
  --text-primary: #1a2340;
  --text-secondary: #4a5674;
  --text-muted: #8a93ad;
  --bg-light: #f6f8fc;
  --border: #e3e8f2;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(13, 35, 82, 0.08);
  --transition: 0.25s ease;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(13, 35, 82, 0.1);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1px;
}

.navbar.scrolled .nav-logo { color: var(--primary-deep); }

.logo-mark {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(36, 86, 200, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  padding: 8px 18px;
  border-radius: 20px;
  transition: all var(--transition);
}

.navbar.scrolled .nav-links a { color: var(--text-secondary); }

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--primary);
  background: rgba(36, 86, 200, 0.08);
}

.nav-links .nav-download {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(245, 124, 0, 0.35);
}

.nav-links .nav-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(245, 124, 0, 0.45);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.navbar.scrolled .nav-toggle { color: var(--primary-deep); }

/* ===== 首屏主视觉 ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 图片加载期间的兜底底色：近似成图的天空-草原色，避免突兀蓝屏 */
  background: linear-gradient(180deg, #7cb4e4 0%, #a9cc8f 55%, #6f9e5a 100%);
  overflow: hidden;
}

/* 超清背景层：<img> 实现，加载完成后淡入，消除"蓝屏闪烁" */
.hero-bg {
  position: absolute;
  top: -3%;
  left: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
  animation: bgBreathe 22s ease-in-out infinite;
  will-change: transform;
}

.hero-bg.loaded { opacity: 1; }

@keyframes bgBreathe {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.045) translate(-0.6%, 0.5%); }
}

/* 尊重用户减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(13, 35, 82, 0.5) 0%,
    rgba(13, 35, 82, 0.28) 40%,
    rgba(13, 35, 82, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 860px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 6px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  margin-bottom: 16px;
}

.hero-slogan {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 4px;
  margin-bottom: 42px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 34px;
}

.btn-download-lg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 12px 34px;
  border-radius: 50px;
  box-shadow: 0 8px 28px rgba(245, 124, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all var(--transition);
  animation: breathe 2.6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 8px 28px rgba(245, 124, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 8px 40px rgba(245, 124, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}

.btn-download-lg:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, #ffb04f, #ff8c1a);
}

.btn-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.btn-text { text-align: left; display: flex; flex-direction: column; line-height: 1.3; }
.btn-text strong { font-size: 1.08rem; letter-spacing: 2px; }
.btn-text em { font-style: normal; font-size: 0.72rem; opacity: 0.88; }

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.hero-meta .divider { opacity: 0.4; }

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  letter-spacing: 3px;
  animation: floaty 2s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ===== 公告栏 ===== */
.notice-bar {
  background: linear-gradient(90deg, var(--primary-deep), var(--primary-dark));
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  font-size: 0.9rem;
  overflow: hidden;
}

.notice-label {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 4px;
  letter-spacing: 2px;
}

.notice-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 通用区块 ===== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 24px;
}

.section-alt {
  max-width: none;
  background: var(--bg-light);
}

.section-alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.section-head { text-align: center; margin-bottom: 54px; }

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: 2px;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 2px;
}

/* ===== 游戏特色 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(36, 86, 200, 0.3);
}

.feature-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  background: linear-gradient(135deg, rgba(36, 86, 200, 0.1), rgba(36, 86, 200, 0.05));
  border-radius: 18px;
}

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--primary-deep);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ===== 职业介绍 ===== */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}

.class-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.class-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.class-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.class-card:hover::before { opacity: 1; }

.class-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.tag-tank { background: rgba(16, 185, 129, 0.12); color: #059669; }
.tag-support { background: rgba(36, 86, 200, 0.1); color: var(--primary); }
.tag-dps { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.tag-ranged { background: rgba(245, 158, 11, 0.14); color: #d97706; }
.tag-melee { background: rgba(147, 51, 234, 0.1); color: #9333ea; }

.class-card h3 {
  font-size: 1.3rem;
  color: var(--primary-deep);
  margin-bottom: 10px;
  letter-spacing: 3px;
}

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

/* ===== 游戏攻略 ===== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.guide-mini {
  display: block;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  transition: all var(--transition);
}

.guide-mini:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.guide-mini h3 {
  font-size: 1.02rem;
  color: var(--text-primary);
  line-height: 1.55;
  margin: 10px 0 8px;
}

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

.guide-mini-all {
  background: linear-gradient(135deg, rgba(36, 86, 200, 0.06), rgba(255, 157, 46, 0.05));
  border-style: dashed;
}

.guide-mini-all h3 { color: var(--primary); }

.guide-mini-all:hover { border-style: dashed; border-color: var(--primary); }

.guide-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(36, 86, 200, 0.08);
  padding: 3px 12px;
  border-radius: 12px;
}

.guide-more {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 28px;
  letter-spacing: 1px;
}

/* ===== 下载区 ===== */
.download-section {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 55%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.download-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 157, 46, 0.16), transparent 70%);
  top: -200px;
  right: -150px;
}

.download-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.download-info { flex: 1; }

.download-info h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.4;
  margin-bottom: 18px;
}

.download-info p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  margin-bottom: 36px;
  letter-spacing: 1px;
}

.download-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 4px;
}

.btn-download-xl {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 16px 48px;
  border-radius: 50px;
  box-shadow: 0 8px 28px rgba(245, 124, 0, 0.5);
  transition: all var(--transition);
}

.btn-download-xl:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 36px rgba(245, 124, 0, 0.65);
}

.download-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.download-visual {
  flex-shrink: 0;
  width: 420px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: rotate(1.5deg);
  transition: transform var(--transition);
}

.download-visual:hover { transform: rotate(0deg) scale(1.02); }

/* ===== 页脚 ===== */
.footer {
  background: #081634;
  color: rgba(255, 255, 255, 0.65);
  padding: 50px 24px 36px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 22px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-copyright {
  font-size: 0.82rem;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .download-inner { flex-direction: column; text-align: center; }
  .download-info { margin: 0 auto; }
  .download-btns { justify-content: center; }
  .download-visual { width: 100%; max-width: 420px; }
  .download-specs { justify-content: center; }
}

@media (max-width: 720px) {
  .section { padding: 60px 18px; }

  /* 手机端：两个下载按钮缩小并排，放不下则堆叠 */
  .hero-actions { gap: 12px; flex-wrap: wrap; }
  .btn-download-lg { padding: 10px 22px; gap: 10px; }
  .btn-icon { font-size: 1.15rem; }
  .btn-text strong { font-size: 0.95rem; letter-spacing: 1px; }
  .btn-text em { font-size: 0.65rem; }

  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: 0 12px 24px rgba(13, 35, 82, 0.12);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

  .nav-links a { color: var(--text-secondary) !important; width: 100%; text-align: center; }

  .hero-content { padding: 100px 18px 70px; }
  .hero-title { letter-spacing: 3px; }
  .hero-slogan { letter-spacing: 2px; }

  .notice-bar { font-size: 0.8rem; }
}
