:root {
  --brand: #e8a33d;
  --brand-2: #d17b2e;
  --accent: #3aa0ff;
  --bg: #f5f2ec;
  --bg-soft: #eceae2;
  --card: #ffffff;
  --card-2: #fbf9f4;
  --text: #2b2620;
  --text-soft: #6f675c;
  --border: #e2dccd;
  --shadow: 0 6px 24px rgba(60,45,20,.08);
  --shadow-lg: 0 16px 48px rgba(60,45,20,.14);
  --nav-bg: rgba(255,253,248,.92);
  --hero-grad-1: #3a2a18;
  --hero-grad-2: #1c1410;
  --hero-text: #f5e7cf;
  --hero-text-soft: #cbb695;
  --epic: #b36bff;
  --rare: #68d5ed;
  --common: #3f3a33;
}
html[data-theme="dark"] {
  --bg: #181510;
  --bg-soft: #201b14;
  --card: #231e17;
  --card-2: #1d1913;
  --text: #e6ddcd;
  --text-soft: #a2947e;
  --border: #3a3327;
  --shadow: 0 6px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.5);
  --nav-bg: rgba(24,21,16,.92);
  --hero-grad-1: #241a12;
  --hero-grad-2: #0d0b08;
  --hero-text: #f0e2c8;
  --hero-text-soft: #b8a47f;
  --common: #d8cfc0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 14px; font-weight: 800;
  width: 38px; height: 38px; border-radius: 10px; letter-spacing: 1px;
  box-shadow: 0 4px 14px rgba(209,123,46,.4);
}
.brand-name { font-size: 17px; color: var(--text); letter-spacing: 1px; }
.brand-name b { color: var(--brand); }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 8px 13px; border-radius: 9px; color: var(--text-soft);
  font-size: 14.5px; font-weight: 600; transition: all .18s;
}
.main-nav a:hover { color: var(--text); background: var(--bg-soft); }
.main-nav a.active { color: var(--brand); background: var(--bg-soft); }
.theme-toggle {
  background: none; border: 1px solid var(--border); cursor: pointer;
  width: 38px; height: 38px; border-radius: 10px; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .18s; background: var(--card);
}
.theme-toggle:hover { border-color: var(--brand); }
.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--hero-grad-1), var(--hero-grad-2));
  color: var(--hero-text);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(232,163,61,.18), transparent 60%),
    radial-gradient(500px 300px at 15% 80%, rgba(58,160,255,.14), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 340px 1fr; gap: 44px;
  align-items: center; padding: 64px 0 46px;
}
/* hero left / quick links */
.hero-side { }
.hero-side .side-label {
  font-size: 12.5px; letter-spacing: 2px; color: var(--hero-text-soft);
  text-transform: uppercase; margin-bottom: 14px; font-weight: 700;
}
.hero-links { display: flex; flex-direction: column; gap: 10px; }
.hero-links a {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 13px 15px; border-radius: 12px;
  color: var(--hero-text); font-weight: 700; font-size: 14.5px;
  transition: all .18s;
}
.hero-links a:hover { background: rgba(232,163,61,.16); border-color: var(--brand); transform: translateX(3px); }
.hero-links a .hl-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; background: var(--card); color: var(--brand);
}
.hero-links a .hl-tag { margin-left: auto; font-size: 11.5px; color: var(--hero-text-soft); font-weight: 600; }
/* hero right / main copy */
.hero-main .kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--brand); margin-bottom: 16px;
}
.hero-main h1 { font-size: 40px; line-height: 1.22; font-weight: 900; letter-spacing: 1px; margin-bottom: 16px; }
.hero-main h1 em { font-style: normal; color: var(--brand); }
.hero-main p.sub { font-size: 16px; color: var(--hero-text-soft); max-width: 560px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 11px; font-weight: 700; font-size: 14.5px;
  transition: all .18s; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 18px rgba(209,123,46,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(209,123,46,.5); }
.btn-ghost { background: transparent; color: var(--hero-text); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ===== Section ===== */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.section-head h2 { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.section-head h2::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--brand); border-radius: 2px; margin-right: 10px; vertical-align: 3px; }
.section-head .more { color: var(--text-soft); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.section-head .more:hover { color: var(--brand); }

/* ===== Cards / Grid ===== */
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; transition: all .2s; box-shadow: var(--shadow);
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card a.card-link::after { content: ""; position: absolute; inset: 0; }
.card .card-ico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 12px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px;
  background: linear-gradient(135deg, var(--bg-soft), var(--card-2));
}
.card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.card p { font-size: 13.5px; color: var(--text-soft); }

/* ===== Topic chips ===== */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 14px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--border); font-size: 13.5px; font-weight: 600;
  color: var(--text-soft); transition: all .18s;
}
.chip:hover { color: var(--brand); border-color: var(--brand); }

/* ===== Table (content pages) ===== */
.breadcrumb { padding: 20px 0 4px; font-size: 13px; color: var(--text-soft); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }
.content-page { min-height: 60vh; }
.content-head { padding: 22px 0 8px; }
.content-head h1 { font-size: 28px; font-weight: 900; letter-spacing: 1px; margin-bottom: 6px; }
.content-desc { color: var(--text-soft); font-size: 14.5px; max-width: 720px; }
.content-stats { margin-top: 10px; font-size: 13px; color: var(--text-soft); }
.content-stats b { color: var(--brand); font-size: 15px; }
.table-wrap {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  margin: 18px 0 40px; box-shadow: var(--shadow);
}
.prob-table { width: 100%; border-collapse: collapse; }
.prob-table th {
  background: var(--bg-soft); color: var(--text-soft); font-size: 13px; font-weight: 700;
  padding: 12px 16px; text-align: left; letter-spacing: 1px;
  position: sticky; top: 64px; z-index: 2;
}
.prob-table .th-icon { width: 60px; }
.prob-table .th-prob { width: 120px; }
.prob-table td { padding: 9px 16px; border-top: 1px solid var(--border); font-size: 14.5px; }
.prob-table tbody tr { transition: background .15s; }
.prob-table tbody tr:hover { background: var(--card-2); }
.td-icon { width: 60px; }
.td-icon img { width: 30px; height: 30px; object-fit: contain; }
.td-name { font-weight: 700; }
.td-prob { font-variant-numeric: tabular-nums; font-weight: 600; }
.rarity-bar { display: inline-block; width: 3px; height: 14px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 40px; }
.site-footer .container { padding-top: 26px; padding-bottom: 28px; text-align: center; }
.site-footer p { font-size: 13px; color: var(--text-soft); }
.footer-links { margin-top: 8px; }
.footer-links a { color: var(--text-soft); }
.footer-links a:hover { color: var(--brand); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 34px; }
  .hero-side .side-label { text-align: left; }
  .hero-links { flex-direction: row; flex-wrap: wrap; }
  .hero-links a { flex: 1; min-width: 200px; }
  .hero-main h1 { font-size: 30px; }
  .cols-4 { grid-template-columns: repeat(2,1fr); }
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .main-nav.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; background: var(--nav-bg); flex-direction: column; padding: 12px 20px; border-bottom: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .hero-main h1 { font-size: 25px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ===== Guide page (two-column: left menu + right content) ===== */
.guide-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; margin: 22px 0 40px; align-items: start; }
.guide-menu {
  position: sticky; top: 84px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px; box-shadow: var(--shadow);
}
.guide-menu h3 { font-size: 13px; letter-spacing: 1px; color: var(--text-soft); padding: 8px 12px 10px; font-weight: 700; }
.guide-menu a {
  display: block; padding: 9px 12px; border-radius: 9px;
  color: var(--text-soft); font-size: 14px; font-weight: 600;
  transition: all .15s; border-left: 3px solid transparent;
}
.guide-menu a:hover { color: var(--text); background: var(--bg-soft); }
.guide-menu a.active { color: var(--brand); background: var(--bg-soft); border-left-color: var(--brand); }
.guide-menu .sub { padding-left: 18px; font-size: 12.5px; }
.guide-body { min-width: 0; }
.guide-section {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 26px; margin-bottom: 20px; box-shadow: var(--shadow); scroll-margin-top: 84px;
}
.guide-section .sec-tag { font-size: 11px; letter-spacing: 2px; font-weight: 800; color: var(--brand); text-transform: uppercase; }
.guide-section h2 { font-size: 22px; font-weight: 800; margin: 4px 0 10px; }
.guide-section p { font-size: 14.5px; color: var(--text-soft); margin-bottom: 10px; }
.guide-section p b, .guide-section li b { color: var(--text); }
.guide-section ul { padding-left: 20px; margin-bottom: 10px; }
.guide-section li { font-size: 14.5px; color: var(--text-soft); margin: 6px 0; }
.guide-section h3 { font-size: 16px; font-weight: 800; margin: 18px 0 8px; color: var(--text); }
.guide-callout {
  background: linear-gradient(135deg, var(--bg-soft), var(--card-2));
  border: 1px solid var(--border); border-left: 4px solid var(--brand);
  padding: 14px 16px; border-radius: 10px; font-size: 13.5px; color: var(--text-soft);
  margin: 12px 0;
}
.npc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.npc-card {
  background: var(--card-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; transition: all .18s;
}
.npc-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 4px; color: var(--brand); }
.npc-card p { font-size: 13px; color: var(--text-soft); margin: 0; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.feature-item { background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.feature-item h4 { font-size: 15px; font-weight: 800; margin-bottom: 4px; color: var(--text); }
.feature-item h4 b { color: var(--brand); }
.feature-item p { font-size: 13px; color: var(--text-soft); margin: 0; }
.dl-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--border); margin: 8px 0; font-size: 14px; }
.dl-note .ix { color: var(--brand); font-weight: 800; flex-shrink: 0; }
.dl-note p { margin: 0; color: var(--text-soft); }
.guide-steps { counter-reset: step; }
.step { display: flex; gap: 14px; margin: 12px 0; }
.step-num { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.step-body { min-width: 0; }
.step-body h4 { font-size: 15.5px; font-weight: 800; margin-bottom: 3px; }
.step-body p { font-size: 13.5px; color: var(--text-soft); margin: 0; }
.guide-benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; margin-top: 12px; }
.benefit-card { background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.benefit-card h4 { font-size: 14.5px; font-weight: 800; color: var(--brand); margin-bottom: 4px; }
.benefit-card p { font-size: 13px; color: var(--text-soft); margin: 0; }
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-menu { position: static; }
  .guide-menu a { display: inline-block; margin: 2px; }
  .guide-menu .sub { display: none; }
  .guide-menu h3 { display: none; }
}

/* ===== Job cards ===== */
.job-card { display: flex; gap: 16px; align-items: flex-start; position: relative; }
.job-card .job-ico {
  width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 26px;
  background: linear-gradient(135deg, var(--bg-soft), var(--card-2)); border: 1px solid var(--border);
}
.job-card h3 { font-size: 17px; margin-bottom: 4px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.job-tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--text-soft); }
.job-tag.hot { background: rgba(232,163,61,.15); color: var(--brand); }
.job-desc { font-size: 13.5px; color: var(--text-soft); margin-top: 4px; }

/* ===== Tool cards ===== */
.tool-card { position: relative; text-align: center; padding: 24px 18px; }
.tool-card .tool-ico {
  width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 14px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 28px;
  background: linear-gradient(135deg, var(--bg-soft), var(--card-2)); border: 1px solid var(--border);
}
.tool-card h3 { font-size: 16px; margin-bottom: 6px; }
.tool-card p { font-size: 13px; }
.tool-card .tool-badge { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--brand); }

/* ===== Download page ===== */
.dl-hero {
  background: linear-gradient(135deg, var(--hero-grad-1), var(--hero-grad-2));
  color: var(--hero-text); border: 1px solid var(--border); border-radius: 16px;
  padding: 34px; margin: 18px 0 26px; text-align: center; box-shadow: var(--shadow-lg);
}
.dl-hero h2 { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.dl-hero p { color: var(--hero-text-soft); font-size: 14.5px; margin-bottom: 22px; }
.dl-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.dl-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 34px; border-radius: 14px; font-weight: 800; font-size: 16px; transition: all .18s;
}
.dl-btn small { font-size: 11.5px; font-weight: 600; opacity: .8; }
.dl-fast { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 24px rgba(209,123,46,.4); }
.dl-fast:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(209,123,46,.55); }
.dl-normal { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.dl-normal:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand); }
.patch-list { margin: 6px 0 26px; }
.patch-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin: 8px 0; transition: all .15s;
}
.patch-item:hover { border-color: var(--brand); }
.patch-item .patch-ico { font-size: 20px; flex-shrink: 0; }
.patch-item .patch-info { flex: 1; min-width: 0; }
.patch-item .patch-info h4 { font-size: 14.5px; font-weight: 700; }
.patch-item .patch-info p { font-size: 12.5px; color: var(--text-soft); margin: 0; }
.patch-item .patch-size { font-size: 12.5px; color: var(--text-soft); white-space: nowrap; font-weight: 600; }
.patch-item .patch-dl { color: var(--brand); font-weight: 700; font-size: 13.5px; white-space: nowrap; }

/* ===== Article / guide list on play page ===== */
.article-card { position: relative; display: flex; gap: 16px; }
.article-card .art-ico {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 24px;
  background: linear-gradient(135deg, var(--bg-soft), var(--card-2)); border: 1px solid var(--border);
}
.article-card h3 { font-size: 16.5px; margin-bottom: 4px; }
.article-card .art-meta { font-size: 12px; color: var(--text-soft); margin-top: 6px; }
.article-card p { font-size: 13.5px; color: var(--text-soft); margin: 0; }

/* ===== Sub-page content (jobs/equip detail articles) ===== */
.article-body { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); scroll-margin-top: 84px; }
.article-body h2 { font-size: 22px; margin: 6px 0 12px; }
.article-body h3 { font-size: 16px; margin: 18px 0 8px; }
.article-body p, .article-body li { font-size: 14.5px; color: var(--text-soft); }
.article-body ul { padding-left: 20px; margin: 8px 0; }
.article-body li { margin: 5px 0; }
.equip-tier { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.equip-tier .tier-bar { width: 6px; height: 26px; border-radius: 3px; }
.stat-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; }
.stat-table th, .stat-table td { border: 1px solid var(--border); padding: 9px 12px; font-size: 14px; text-align: left; }
.stat-table th { background: var(--bg-soft); color: var(--text-soft); font-weight: 700; }
.stat-table td { color: var(--text-soft); }