* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "STKaiti", "KaiTi", serif;
  color: #f2e9dc;
  background: #1a1030;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 粒子背景 */
.particles {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(800px 500px at 80% 10%, rgba(255, 180, 80, 0.18), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(140, 80, 255, 0.2), transparent 60%),
    linear-gradient(160deg, #1a1030, #0e0a1e);
}

.particles::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 220, 160, 0.9), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(255, 200, 120, 0.7), transparent),
    radial-gradient(2px 2px at 60% 20%, rgba(255, 220, 160, 0.8), transparent),
    radial-gradient(2px 2px at 80% 60%, rgba(255, 180, 100, 0.7), transparent),
    radial-gradient(2px 2px at 10% 80%, rgba(255, 220, 160, 0.6), transparent),
    radial-gradient(2px 2px at 90% 30%, rgba(255, 200, 120, 0.8), transparent),
    radial-gradient(3px 3px at 50% 50%, rgba(255, 220, 160, 0.5), transparent),
    radial-gradient(2px 2px at 30% 10%, rgba(255, 220, 160, 0.7), transparent);
  background-size: 100% 100%;
  animation: twinkle 5s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6%;
  background: rgba(26, 16, 48, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 180, 80, 0.18);
}

.logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffd9a0;
}

.logo span {
  color: #ffa640;
}

.nav-links a {
  margin: 0 14px;
  font-size: 15px;
  color: #c9b89a;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffb35c;
  text-shadow: 0 0 12px rgba(255, 179, 92, 0.6);
}

.btn-main {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffb35c, #e07b2a);
  color: #2a1608;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(255, 179, 92, 0.4);
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 179, 92, 0.6);
  filter: brightness(1.08);
}

.btn-main.big {
  padding: 15px 36px;
  font-size: 16px;
}

/* 首屏 */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 70px 6%;
  min-height: 88vh;
}

.hero-content {
  max-width: 620px;
  z-index: 2;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 4px;
  color: #ffb35c;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 22px;
  color: #fff;
}

.hero h1 span {
  color: #ffa640;
  text-shadow: 0 0 24px rgba(255, 166, 64, 0.7);
}

.sub {
  font-size: 16px;
  color: #c9b89a;
  margin-bottom: 34px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-bottom: 34px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-outline {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 179, 92, 0.5);
  color: #ffb35c;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.25s;
}

.btn-outline:hover {
  background: rgba(255, 179, 92, 0.12);
  box-shadow: 0 0 20px rgba(255, 179, 92, 0.35);
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-meta span {
  font-size: 13px;
  color: #c9b89a;
}

/* 徽章 */
.hero-emblem {
  position: relative;
  width: 400px;
  height: 400px;
  z-index: 1;
}

.sword {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  filter: drop-shadow(0 0 30px rgba(255, 166, 64, 0.8));
  animation: swordFloat 3.5s ease-in-out infinite;
}

.emblem-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 179, 92, 0.4);
  transform: translate(-50%, -50%);
}

.er1 { width: 360px; height: 360px; animation: spin 18s linear infinite; }
.er2 { width: 280px; height: 280px; border-style: dashed; animation: spin 12s linear infinite reverse; }

.emblem-rune {
  position: absolute;
  font-size: 26px;
  color: #ffd9a0;
  text-shadow: 0 0 14px rgba(255, 166, 64, 0.8);
  animation: runeGlow 2.5s ease-in-out infinite;
}

.rune-1 { top: 6%; left: 50%; }
.rune-2 { bottom: 6%; left: 50%; animation-delay: 0.8s; }
.rune-3 { top: 50%; left: 6%; animation-delay: 1.6s; }

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes swordFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, -58%); }
}

@keyframes runeGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* 通用 section */
.section {
  padding: 100px 6%;
}

.section.alt {
  background: rgba(20, 12, 38, 0.5);
  border-top: 1px solid rgba(255, 179, 92, 0.12);
  border-bottom: 1px solid rgba(255, 179, 92, 0.12);
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #fff;
}

/* 特色卡片 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  padding: 34px 28px;
  border-radius: 12px;
  background: rgba(20, 12, 38, 0.6);
  border: 1px solid rgba(255, 179, 92, 0.18);
  transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  border-color: #ffb35c;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

.card-icon {
  font-size: 42px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 19px;
  color: #ffd9a0;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.card p {
  font-size: 14px;
  color: #c9b89a;
}

/* 职业 */
.class-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.class-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  background: rgba(20, 12, 38, 0.6);
  border: 1px solid rgba(255, 179, 92, 0.18);
  transition: transform 0.3s, box-shadow 0.3s;
}

.class-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

.class-icon {
  font-size: 48px;
  margin-bottom: 14px;
}

.class-card h3 {
  font-size: 20px;
  color: #ffd9a0;
  margin-bottom: 4px;
}

.class-card .role {
  font-size: 12px;
  color: #ffb35c;
  margin-bottom: 10px;
}

.class-card p:last-child {
  font-size: 13px;
  color: #c9b89a;
}

/* 世界观 */
.world-story {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.world-story p {
  font-size: 16px;
  color: #c9b89a;
  margin-bottom: 44px;
}

.world-stats {
  display: flex;
  justify-content: center;
  gap: 70px;
}

.world-stats div {
  text-align: center;
}

.world-stats strong {
  display: block;
  font-size: 38px;
  color: #ffb35c;
  font-weight: 900;
}

.world-stats span {
  font-size: 14px;
  color: #c9b89a;
}

/* 资讯 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  padding: 28px;
  border-radius: 12px;
  background: rgba(20, 12, 38, 0.6);
  border: 1px solid rgba(255, 179, 92, 0.18);
  transition: transform 0.3s, border 0.3s;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: #ffb35c;
}

.news-date {
  font-size: 12px;
  color: #ffb35c;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.news-card h3 {
  font-size: 17px;
  color: #ffd9a0;
  margin-bottom: 10px;
}

.news-card p {
  font-size: 14px;
  color: #c9b89a;
}

/* CTA */
.cta-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 30px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 179, 92, 0.14), rgba(140, 80, 255, 0.14));
  border: 1px solid rgba(255, 179, 92, 0.3);
}

.cta-box h2 {
  font-size: 32px;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 3px;
}

.cta-box p {
  color: #c9b89a;
  margin-bottom: 28px;
}

.dl-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer {
  text-align: center;
  padding: 28px;
  font-size: 13px;
  color: #8a7a60;
  border-top: 1px solid rgba(255, 179, 92, 0.12);
}

/* 响应式 */
@media (max-width: 1000px) {
  .hero { flex-direction: column; text-align: center; padding-top: 40px; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-emblem { width: 300px; height: 300px; }
  .er1 { width: 300px; height: 300px; }
  .er2 { width: 230px; height: 230px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 38px; }
  .grid-3, .class-grid { grid-template-columns: 1fr; }
  .world-stats { gap: 30px; }
}
