/* 梦想石器世界官网 · 白色简约主题
   暖白底 + 深色文字 + 石器金/红点缀；系统字体，无外部依赖。 */

:root {
  --bg: #fbfaf7;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f8f5ef;
  --panel-3: #f1ece3;
  --line: #e7e1d7;
  --line-strong: #d6cec1;
  --text: #1d1a17;
  --muted: #6b645b;
  --dim: #7d746a;
  --gold: #9a682b;
  --gold-2: #7f5422;
  --gold-3: #c9a36a;
  --red: #a53a30;
  --green: #3f8a4a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 34px rgba(29, 26, 23, 0.07);
  --shadow-sm: 0 4px 16px rgba(29, 26, 23, 0.05);
  --font: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1000px 560px at 50% -12%, rgba(176, 122, 53, 0.06), transparent 62%),
    radial-gradient(760px 420px at 96% 2%, rgba(165, 58, 48, 0.04), transparent 58%),
    var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

main, .site-header, .top-strip, .site-footer { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--red); }
button { font: inherit; }
code { font-family: "Cascadia Code", "Consolas", "Courier New", monospace; color: var(--gold-2); }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.22; font-weight: 800; letter-spacing: 0.01em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.25rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
::selection { background: #f1dfc2; color: var(--text); }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.center { text-align: center; }
.break { overflow-wrap: anywhere; }

.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 30px; height: 30px; }
.icon-xl { width: 44px; height: 44px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; }

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

/* 顶部条 */
.top-strip {
  background: #f5f1e9;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.top-strip-inner { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.top-strip-item { display: inline-flex; align-items: center; gap: 6px; }
.top-strip-item strong { color: var(--gold-2); }
.top-strip-qq { white-space: nowrap; }

/* 导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-logo { height: 50px; width: auto; object-fit: contain; }
.brand-sub { color: var(--dim); font-size: 0.66rem; letter-spacing: 0.16em; font-weight: 700; white-space: nowrap; }
.brand-footer .brand-logo { height: 60px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 11px; border-radius: 8px;
  color: #4d463e; font-size: 0.9rem; font-weight: 600;
  white-space: nowrap; transition: background 0.18s, color 0.18s;
}
.nav-link:hover { background: var(--panel-2); color: var(--text); }
.nav-link.is-active { color: var(--text); background: var(--panel-3); }
.nav-shop { color: var(--gold-2); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.qq-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--muted); cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 7px 9px; font-size: 0.8rem;
}
.qq-chip:hover { color: var(--gold-2); border-color: var(--gold-3); }
.menu-toggle { display: none; width: 42px; height: 40px; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; padding: 9px 10px; }
.menu-toggle span { display: block; height: 2px; background: #4d463e; margin: 4px 0; border-radius: 2px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 9px;
  padding: 11px 20px; font-weight: 800; font-size: 0.94rem;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  color: #fff; background: #1f1b18; border-color: #1f1b18;
  box-shadow: 0 4px 14px rgba(29, 26, 23, 0.16);
}
.btn-primary:hover { color: #fff; background: #37302a; border-color: #37302a; box-shadow: 0 7px 20px rgba(29, 26, 23, 0.2); }

.btn-gold {
  color: #fff; background: var(--gold); border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(176, 122, 53, 0.2);
}
.btn-gold:hover { color: #fff; background: #7f5422; border-color: #7f5422; box-shadow: 0 7px 20px rgba(127, 84, 34, 0.24); }

.btn-ghost {
  color: #3d3731; background: #fff; border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { color: var(--text); border-color: #b9ae9f; background: #fdfcf9; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 7px;
  color: var(--muted); background: #fff; border: 1px solid var(--line);
  cursor: pointer;
}
.icon-btn:hover { color: var(--gold-2); border-color: var(--gold-3); }
.text-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--gold-2); font-weight: 700; font-size: 0.9rem;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.text-link:hover { color: var(--red); }

/* 首页大横幅：左宣传语，右 logo1，中间渐变过渡 */
.hero { padding: 0; }
.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fbfaf7;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  min-height: 580px;
  align-items: center;
}
.hero-copy {
  max-width: 720px;
  text-align: left;
  padding: 64px 48px 64px clamp(24px, 7vw, 120px);
}
.hero-copy h1 { margin: 0 0 0.3em; font-size: clamp(2.7rem, 5.2vw, 4.5rem); letter-spacing: 0.02em; }
.hero-copy h1 em { font-style: normal; color: var(--red); }
.hero-lead { color: var(--muted); font-size: 1.06rem; max-width: 33em; margin: 0 0 1.6em; }
.hero-actions { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 1.5em; }
.hero-points { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: 0.84rem; }
.hero-points span { display: inline-flex; align-items: center; gap: 5px; }
.hero-points svg { color: var(--gold); }
.hero-art { position: relative; align-self: stretch; min-height: 580px; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, #fbfaf7 0%, rgba(251, 250, 247, 0.96) 10%, rgba(251, 250, 247, 0.68) 26%, rgba(251, 250, 247, 0) 52%);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, #fbfaf7 0%, rgba(251, 250, 247, 0) 9%, rgba(251, 250, 247, 0) 91%, #fbfaf7 100%);
}

/* 数据带 */
.stat-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 22px 18px; border-right: 1px solid var(--line); text-align: center; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 1.85rem; color: var(--text); letter-spacing: 0.02em; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; }

/* 通用区块 */
.section { padding: 64px 0; }
.section-alt { background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 30px; }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 32em; font-size: 0.94rem; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-grid.three { grid-template-columns: repeat(3, 1fr); }
.feature-card {
  padding: 24px 22px;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { border-color: var(--gold-3); transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; margin-bottom: 16px;
  color: var(--gold-2); border: 1px solid #eadcc6; border-radius: 12px;
  background: #faf3e6;
}
.feature-icon.center { margin-left: auto; margin-right: auto; }
.feature-card h3 { color: var(--text); }
.feature-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card {
  position: relative; padding: 26px 22px 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step-num { display: block; color: #d8c5a5; font-size: 2rem; font-weight: 900; line-height: 1; margin-bottom: 12px; }
.step-card h3 { font-size: 1.05rem; }
.step-card p { color: var(--muted); font-size: 0.88rem; min-height: 3.4em; }
.step-card .text-link { font-size: 0.82rem; }

/* 资料卡 */
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guide-card {
  display: flex; flex-direction: column;
  padding: 24px 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.guide-card:hover { color: var(--text); border-color: var(--gold-3); transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-tag {
  display: inline-block; align-self: flex-start;
  color: var(--gold-2); border: 1px solid #e6d4b8;
  border-radius: 999px; padding: 2px 9px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em;
  margin-bottom: 14px; background: #fbf5e9;
}
.guide-card h3 { color: var(--text); font-size: 1.14rem; margin-bottom: 8px; }
.guide-card p { color: var(--muted); font-size: 0.88rem; flex: 1; }
.guide-meta { display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: 0.76rem; padding-top: 14px; border-top: 1px dashed var(--line); }
.guide-meta .arrow { color: var(--gold); }
.guide-card-lg { padding: 28px 26px; }
.guide-card-lg h3 { font-size: 1.3rem; }

/* 宠物 */
.pet-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pet-card {
  display: block; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.pet-card:hover { color: var(--text); border-color: var(--gold-3); transform: translateY(-3px); box-shadow: var(--shadow); }
.pet-figure {
  display: flex; align-items: center; justify-content: center;
  min-height: 150px; padding: 12px;
  background: radial-gradient(circle at 50% 36%, #fffdf8, #f7f0e3 64%, #efe4d1);
  border-bottom: 1px solid var(--line);
}
.pet-figure img { width: 100%; max-width: 188px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(90, 55, 25, 0.1)); }
.pet-body { padding: 14px 14px 16px; }
.pet-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pet-title h3 { margin: 0; font-size: 1.02rem; }
.element {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; padding: 1px 7px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; border: 1px solid currentColor;
}
.element.light { color: #96701d; background: #fbf3da; }
.element.wind { color: #2f7a50; background: #eaf6ee; }
.element.water { color: #286a8a; background: #e8f3f9; }
.element.fire { color: #b24a2c; background: #fbede7; }
.element.wood { color: #4f7b35; background: #eef6e8; }
.element.earth { color: #7d5a2f; background: #f7efe2; }
.pet-egg { color: var(--muted); font-size: 0.76rem; margin: 0 0 5px; }
.pet-recipe { color: #5e564d; font-size: 0.78rem; margin: 0; line-height: 1.55; }
.pet-card-lg { display: block; }
.pet-card-lg .pet-figure { min-height: 210px; }
.pet-card-lg .pet-body { padding: 20px; }
.pet-desc { color: var(--muted); font-size: 0.9rem; margin: 8px 0 14px; }
.pet-stats { margin: 0; }
.pet-stats div { display: grid; grid-template-columns: 54px 1fr; gap: 8px; padding: 7px 0; border-top: 1px dashed var(--line); }
.pet-stats dt { color: var(--dim); font-size: 0.76rem; }
.pet-stats dd { margin: 0; color: #4f4840; font-size: 0.82rem; }
.pet-grid-lg { grid-template-columns: repeat(5, 1fr); gap: 14px; }

/* 2009 完整幻米图鉴 */
.archive-count { color: var(--gold-2); font-weight: 800; font-size: 0.84rem; white-space: nowrap; }
.pet-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.pet-filter-btn {
  appearance: none; cursor: pointer; font: inherit;
  padding: 7px 13px; border-radius: 999px;
  background: #fff; color: var(--muted); border: 1px solid var(--line);
  font-size: 0.8rem; font-weight: 700; transition: 0.2s ease;
}
.pet-filter-btn span { color: var(--dim); font-size: 0.72rem; margin-left: 3px; }
.pet-filter-btn:hover { border-color: var(--gold-3); color: var(--text); }
.pet-filter-btn.is-active { background: var(--gold); border-color: var(--gold); color: #fff; }
.pet-filter-btn.is-active span { color: rgba(255, 255, 255, 0.75); }
.pet-archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pet-archive-card {
  overflow: hidden; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.pet-archive-card:hover { transform: translateY(-3px); border-color: var(--gold-3); box-shadow: var(--shadow); }
.pet-archive-card.is-hidden { display: none; }
.pet-archive-art {
  display: flex; align-items: center; justify-content: center;
  min-height: 150px; padding: 12px; background: #fffdf9; border-bottom: 1px solid var(--line);
}
.pet-archive-art img { width: 100%; max-width: 188px; max-height: 145px; object-fit: contain; }
.pet-archive-body { padding: 13px 14px 15px; }
.pet-archive-body .pet-title { margin-bottom: 5px; }
.pet-archive-body .pet-title h3 { font-size: 0.98rem; }
.pet-archive-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; color: var(--dim); font-size: 0.72rem; margin: 0 0 7px; }
.pet-type {
  display: inline-flex; padding: 1px 7px; border-radius: 999px;
  background: #f6f1e7; color: var(--gold-2); font-weight: 800; font-size: 0.68rem;
}
.pet-archive-note {
  margin: 0; color: var(--muted); font-size: 0.76rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pet-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; margin-top: 4px; }
.pet-meta .element { font-size: 0.62rem; min-width: 22px; padding: 0 5px; }

/* 幻米孵化入门 */
.hatch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hatch-card {
  position: relative; padding: 24px 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.hatch-index {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%;
  background: #faf3e6; color: var(--gold-2); border: 1px solid #eadcc6;
  font-weight: 800; font-size: 0.78rem;
}
.hatch-card h3 { margin: 0 0 7px; font-size: 1.02rem; }
.hatch-card p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.7; }

/* 地图 */
.map-feature { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.map-feature-art { position: relative; }
.map-button {
  position: relative; display: block; width: 100%; padding: 0;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 12px;
  overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow);
}
.map-button img { width: 100%; transition: transform 0.4s ease; }
.map-button:hover img { transform: scale(1.025); }
.map-zoom {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line-strong);
  color: #4d463e; font-size: 0.76rem; white-space: nowrap;
  backdrop-filter: blur(6px);
}
.map-feature-copy p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; color: #4f4840; font-size: 0.92rem; }
.check-list li svg { color: var(--gold); flex: 0 0 auto; margin-top: 5px; }
.check-list.small li { font-size: 0.84rem; padding: 4px 0; }

/* 下载横幅 */
.download-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, #f7efe2, #fbf7ef 58%, #f4ead9);
}
.download-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 44px 0; }
.download-band h2 { margin-bottom: 6px; }
.download-band p { margin: 0; color: var(--muted); }
.download-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 48px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 17px 4px; cursor: pointer; font-weight: 700; color: #3d3731;
  list-style: none; font-size: 0.96rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--gold); font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item p { padding: 0 4px 18px; margin: 0; color: var(--muted); font-size: 0.9rem; }

/* 页面头 */
.page-hero { padding: 66px 0 36px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f8f4ec, #fbfaf7); }
.page-hero.compact { padding: 52px 0 28px; }
.page-hero h1 { margin-bottom: 0.25em; }
.page-hero p { color: var(--muted); max-width: 46em; margin: 0; }

/* 表单/面板 */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.panel.center { text-align: center; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 1.3rem; }
.panel-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-2); border: 1px solid #e6d4b8; border-radius: 999px; padding: 3px 9px; font-size: 0.7rem; white-space: nowrap; background: #fbf5e9; }

.form { display: block; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; color: #3d3731; font-size: 0.88rem; font-weight: 700; }
.field input, .field select, .field textarea {
  display: block; width: 100%;
  padding: 12px 13px;
  background: #fff; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px;
  font: inherit; font-size: 0.94rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 122, 53, 0.12);
}
.field input::placeholder, .field textarea::placeholder { color: #b3a99c; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field-hint { color: var(--dim); font-size: 0.76rem; margin: 6px 0 0; }
.field-error { display: none; color: #b23d32; font-size: 0.78rem; margin: 5px 0 0; }
.field-error.is-visible { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--dim); font-size: 0.76rem; margin: 14px 0 0; text-align: center; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 62px; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--muted); background: transparent; border: 0; cursor: pointer;
  padding: 5px 8px; font-size: 0.76rem;
}
.password-toggle:hover { color: var(--gold-2); }

.alert { border-radius: 9px; padding: 12px 14px; margin-bottom: 18px; font-size: 0.86rem; border: 1px solid; }
.alert-error { color: #8e2f27; background: #fcefec; border-color: #ecc8c2; }
.alert-warn { color: #7a551d; background: #fdf5e5; border-color: #ecd7ac; }
.alert-success { color: #2f6b3a; background: #eef8ef; border-color: #c9e5cc; }

.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.auth-side { display: grid; gap: 16px; }
.side-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.side-card h3 { font-size: 1rem; margin-bottom: 6px; }
.side-card p { color: var(--muted); font-size: 0.85rem; }
.side-card-icon { color: var(--gold); margin-bottom: 10px; }
.qq-card { border-color: #e6d4b8; background: linear-gradient(160deg, #fdf8ee, #fff); }
.qq-big { color: var(--gold-2); font-size: 1.9rem; font-weight: 900; letter-spacing: 0.05em; margin: 4px 0 14px; }

.success-card { text-align: center; padding: 40px 30px; background: var(--panel); border: 1px solid #c9e5cc; border-radius: var(--radius); box-shadow: var(--shadow); }
.success-icon { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; color: #2f6b3a; background: #eef8ef; border: 1px solid #c9e5cc; margin-bottom: 16px; }
.success-card h2 { margin-bottom: 8px; }
.success-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }

/* 下载页 */
.download-grid { display: grid; grid-template-columns: 1.18fr 0.82fr; gap: 26px; align-items: start; }
.download-card { padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.download-card-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.download-icon { display: inline-flex; align-items: center; justify-content: center; width: 78px; height: 78px; border-radius: 16px; color: var(--gold-2); background: #faf3e6; border: 1px solid #eadcc6; flex: 0 0 auto; }
.download-card h2 { margin: 0 0 4px; }
.download-card-head p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.download-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.client-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 4px; background: var(--line); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.client-meta div { background: #fdfbf7; padding: 10px 12px; }
.client-meta span { display: block; color: var(--dim); font-size: 0.7rem; margin-bottom: 2px; }
.client-meta strong { font-size: 0.84rem; color: #3d3731; }
.download-note { color: var(--dim); font-size: 0.78rem; margin: 14px 0 0; }
.download-steps { padding: 26px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); }
.download-preview-section { border-top: 1px solid var(--line); }
.download-preview { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 42px; align-items: center; }
.download-preview-art { padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.download-preview-art img { width: 100%; border-radius: 6px; }
.download-preview h2 { margin-bottom: 8px; }
.download-preview p { color: var(--muted); }
.number-list { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: step; }
.number-list li { position: relative; padding: 0 0 16px 42px; counter-increment: step; }
.number-list li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 1px; color: var(--gold-2); font-weight: 900; font-size: 0.8rem; border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 6px; background: #fff; }
.number-list strong { display: block; font-size: 0.92rem; }
.number-list span { display: block; color: var(--muted); font-size: 0.83rem; }

/* 文章 */
.article-hero { padding: 54px 0 30px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f8f4ec, #fbfaf7); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--dim); font-size: 0.76rem; margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-2); }
.article-hero h1 { margin: 8px 0 6px; }
.article-hero p { color: var(--muted); max-width: 52em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--dim); font-size: 0.78rem; margin-top: 14px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.article-body { min-width: 0; }
.article-body .lead { color: #4f4840; font-size: 1.02rem; }
.article-body h2 { margin-top: 2em; padding-top: 0.4em; font-size: 1.42rem; border-top: 1px solid var(--line); }
.article-body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.article-body h3 { margin-top: 1.6em; color: var(--red); font-size: 1.08rem; }
.article-body p, .article-body li { color: #4f4840; }
.article-body strong { color: var(--text); }
.article-body .list li { margin-bottom: 8px; }
.article-source { margin-top: 34px; padding: 14px 16px; border-left: 3px solid var(--gold-3); background: #faf4e9; color: var(--muted); font-size: 0.8rem; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-nav-link { display: flex; flex-direction: column; gap: 3px; max-width: 46%; }
.article-nav-link span { color: var(--dim); font-size: 0.72rem; }
.article-nav-link strong { color: #3d3731; font-size: 0.88rem; }
.article-nav-link:hover strong { color: var(--gold-2); }
.article-nav-link.next { text-align: right; margin-left: auto; }
.article-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.side-link { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--line); color: #4f4840; font-size: 0.86rem; }
.side-link:last-child { border-bottom: 0; }
.side-link span { color: var(--gold-2); font-size: 0.68rem; border: 1px solid #e6d4b8; border-radius: 999px; padding: 1px 6px; background: #fbf5e9; }
.side-link:hover { color: var(--red); }

/* 数据表 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 0.86rem; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: #f8f4ec; color: #4d463e; font-size: 0.78rem; letter-spacing: 0.04em; font-weight: 800; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #fdfbf7; }
.data-table.compact { min-width: 360px; }
.dust { color: var(--gold-2); }

/* 排行榜 */
.ranking-tabs {
  display: flex; gap: 8px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.ranking-tab {
  padding: 12px 20px; color: var(--muted); font-weight: 700; font-size: 0.9rem;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.ranking-tab:hover { color: var(--text); }
.ranking-tab.is-active { color: var(--red); border-bottom-color: var(--red); background: #fff; }
.ranking-panel {
  overflow: hidden; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.ranking-summary {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  background: #fdfbf7; color: var(--muted); font-size: 0.78rem;
}
.rank-sort { display: inline-flex; align-items: center; gap: 8px; }
.rank-sort a { color: var(--muted); font-weight: 700; }
.rank-sort a:hover { color: var(--text); }
.rank-sort a.is-active { color: var(--red); }
.rank-table-wrap { overflow-x: auto; }
.rank-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 0.9rem; }
.rank-table th, .rank-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rank-table th {
  background: #f8f4ec; color: #635a50; font-size: 0.74rem;
  letter-spacing: 0.06em; font-weight: 800; white-space: nowrap;
}
.rank-table tr:last-child td { border-bottom: 0; }
.rank-table tbody tr:hover td { background: #fdfbf7; }
.rank-row.rank-1 td { background: linear-gradient(90deg, #fffaf0, #fffdf9); }
.rank-row.rank-2 td { background: linear-gradient(90deg, #fafafa, #fff); }
.rank-row.rank-3 td { background: linear-gradient(90deg, #fdf7f1, #fffdfb); }
.rank-medal, .rank-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-weight: 800; font-size: 0.78rem; font-variant-numeric: tabular-nums;
}
.rank-medal-1 { background: #f0d39a; color: #71440d; }
.rank-medal-2 { background: #e4e7ea; color: #48515b; }
.rank-medal-3 { background: #ecd0b9; color: #79442a; }
.rank-no { color: var(--dim); background: #faf7f1; }
.rank-char { display: flex; align-items: center; gap: 12px; }
.char-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
  background: #f8f1e4; color: var(--gold-2); border: 1px solid #eadcc6;
  font-weight: 800;
}
.level-pill {
  display: inline-flex; padding: 4px 9px; border-radius: 999px;
  background: #f8f4ec; color: var(--gold-2); font-weight: 800; font-size: 0.78rem;
  white-space: nowrap;
}
.job-chip { color: var(--muted); font-size: 0.82rem; }
.pet-cell { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.pet-thumb {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 12px;
  object-fit: cover; background: #f8f5ef; border: 1px solid var(--line);
}
.pet-cell strong { display: block; }
.pet-nick { display: block; color: var(--dim); font-size: 0.72rem; margin-top: 2px; }
.attack-num { color: var(--red); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.owner-cell { color: var(--muted); }
.rank-empty { padding: 64px 24px; text-align: center; }
.rank-empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; margin-bottom: 12px; border-radius: 50%;
  background: #faf3e6; color: var(--gold-2); border: 1px solid #eadcc6;
}
.rank-empty h3 { margin: 0 0 6px; }
.rank-empty p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.ranking-note { color: var(--dim); font-size: 0.78rem; margin: 16px 0 0; }
.notice { padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 9px; background: #faf6ee; color: #5e564d; font-size: 0.84rem; margin: 18px 0; }
.notice.wide { margin-top: 26px; }
.split-2 { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.split-2 p { color: var(--muted); }

/* 地图页 */
.map-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.map-frame { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; box-shadow: var(--shadow); }
.map-frame .map-button { border: 0; border-radius: 8px; box-shadow: none; }
.map-side { display: grid; gap: 16px; }
.place-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 12px; }
.place-list span { padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: #4f4840; font-size: 0.78rem; background: #fdfbf7; }
.map-dialog { width: min(96vw, 1100px); max-height: 94vh; padding: 12px; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); }
.map-dialog::backdrop { background: rgba(29, 26, 23, 0.55); backdrop-filter: blur(3px); }
.map-dialog img { width: 100%; height: auto; max-height: calc(94vh - 24px); object-fit: contain; border-radius: 6px; }
.dialog-close { position: absolute; right: 18px; top: 16px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.dialog-close:hover { color: var(--red); }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.7fr 0.9fr; gap: 44px; padding: 46px 0 34px; }
.brand-footer { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 0.86rem; max-width: 34em; }
.qq-copy { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: #3d3731; cursor: pointer; font-size: 0.84rem; }
.qq-copy:hover { border-color: var(--gold-3); color: var(--gold-2); }
.footer-col h3 { color: #3d3731; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.86rem; padding: 4px 0; }
.footer-col a:hover { color: var(--gold-2); }
.footer-meta { color: var(--muted); font-size: 0.8rem; margin: 0 0 6px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0 26px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.74rem; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: #1f1b18; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 0.84rem; font-weight: 700; box-shadow: 0 12px 34px rgba(29, 26, 23, 0.25); z-index: 200; transition: opacity 0.2s, transform 0.2s; max-width: min(92vw, 680px); word-break: break-all; text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 后台登录 */
.page-admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(700px 500px at 50% 0%, rgba(176, 122, 53, 0.08), transparent 65%), var(--bg); }
.admin-login-shell { width: min(430px, 100%); }
.admin-login-card { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 80px rgba(29, 26, 23, 0.1); }
.admin-login-card .brand { margin-bottom: 26px; }
.admin-login-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.admin-login-card > p { font-size: 0.86rem; }
.admin-login-foot { text-align: center; margin: 18px 0 0; font-size: 0.8rem; }
.admin-login-foot a { color: var(--muted); }
.admin-login-foot a:hover { color: var(--gold-2); }

/* 后台 */
.page-admin { background: #f7f5f0; }
.admin-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { display: flex; flex-direction: column; gap: 26px; padding: 22px 16px; background: #fff; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; }
.admin-sidebar .brand { padding: 0 6px; }
.admin-sidebar .brand-logo { height: 40px; }
.admin-sidebar .brand-sub { display: none; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav-link { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 8px; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.admin-nav-link:hover { color: var(--text); background: var(--panel-2); }
.admin-nav-link.is-active { color: var(--text); background: var(--panel-3); border: 1px solid var(--line); }
.admin-sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.admin-main { padding: 28px 34px 60px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.admin-topbar h1 { margin: 0; font-size: 1.9rem; }
.admin-user { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.82rem; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; background: #fff; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); display: inline-block; flex: 0 0 auto; }
.status-dot.ok { background: var(--green); box-shadow: 0 0 8px rgba(63, 138, 74, 0.35); }
.status-dot.bad { background: #c4544a; box-shadow: 0 0 8px rgba(196, 84, 74, 0.3); }
.status-dot.warn { background: var(--gold); box-shadow: 0 0 8px rgba(176, 122, 53, 0.3); }
.admin-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.admin-stat { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.admin-stat-head { display: flex; align-items: center; gap: 7px; color: var(--dim); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.admin-stat strong { display: block; font-size: 1.02rem; }
.admin-stat p { color: var(--muted); font-size: 0.8rem; margin: 5px 0 8px; overflow-wrap: anywhere; }
.admin-stat-meta { color: var(--dim); font-size: 0.72rem; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.admin-grid .admin-panel { margin-bottom: 0; }
.admin-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.admin-panel-head h2 { margin: 0; font-size: 1.12rem; }
.config-list { margin: 0; }
.config-list div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.config-list div:last-child { border-bottom: 0; }
.config-list dt { color: var(--dim); font-size: 0.76rem; }
.config-list dd { margin: 0; color: #4f4840; font-size: 0.82rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; min-width: 420px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 9px; border-bottom: 1px solid var(--line); }
.admin-table th { color: var(--dim); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.admin-table tr:last-child td { border-bottom: 0; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-card { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fdfbf7; }
.quick-card:hover { color: var(--gold-2); border-color: var(--gold-3); background: #fff; }
.quick-card svg { color: var(--gold); margin-bottom: 7px; }
.quick-card strong { color: #3d3731; font-size: 0.86rem; }
.quick-card span { font-size: 0.74rem; color: var(--dim); }

.admin-form .admin-panel { padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .field { margin-bottom: 16px; }
.switch { display: flex; align-items: center; gap: 9px; padding: 9px 0; color: #4f4840; font-weight: 600; font-size: 0.86rem; cursor: pointer; }
.switch input { width: 18px; height: 18px; padding: 0; border: 0; background: transparent; box-shadow: none; accent-color: var(--gold); }
.test-row { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--line); }
.test-result { color: var(--muted); font-size: 0.8rem; }
.test-result.ok { color: var(--green); }
.test-result.bad { color: #b23d32; }
.inline-status { display: flex; align-items: center; gap: 8px; padding: 12px 0; color: var(--muted); font-size: 0.86rem; }
.admin-save-bar { display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin-bottom: 18px; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; position: sticky; bottom: 12px; z-index: 5; box-shadow: 0 -8px 30px rgba(29, 26, 23, 0.06); }
.admin-password-form { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
.field-action { padding-bottom: 16px; }

/* 响应式 */
@media (max-width: 1120px) {
  .nav-link { padding: 8px 7px; font-size: 0.84rem; }
  .qq-chip span { display: none; }
  .brand-sub { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid.three { grid-template-columns: repeat(3, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .pet-grid { grid-template-columns: repeat(3, 1fr); }
  .pet-grid-lg { grid-template-columns: repeat(3, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .header-inner { gap: 12px; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 20px 16px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(29, 26, 23, 0.08);
  }
  .nav.is-open { display: flex; }
  .nav-link { padding: 12px 10px; font-size: 0.95rem; }
  .menu-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: none; text-align: center; padding: 46px 24px 36px; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-art { min-height: 320px; }
  .hero-art::before { background: linear-gradient(180deg, #fbfaf7 0%, rgba(251, 250, 247, 0) 22%); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .download-band-inner { flex-direction: column; align-items: flex-start; }
  .faq-layout { grid-template-columns: 1fr; gap: 24px; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-side { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
  .download-preview { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
  .pet-grid, .pet-grid-lg { grid-template-columns: repeat(2, 1fr); }
  .pet-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .pet-archive-art { min-height: 130px; }
  .hatch-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; grid-template-columns: repeat(2, 1fr); }
  .map-feature { grid-template-columns: 1fr; gap: 28px; }
  .map-page-grid { grid-template-columns: 1fr; }
  .split-2 { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: span 2; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-sidebar .brand { margin-right: auto; }
  .admin-nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .admin-sidebar-foot { margin: 0; border: 0; padding: 0; }
  .admin-main { padding: 22px 20px 50px; }
  .admin-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .admin-password-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 28px); }
  .ranking-tabs { gap: 0; }
  .ranking-tab { flex: 1; padding: 11px 8px; text-align: center; font-size: 0.84rem; }
  .ranking-summary { padding: 12px 14px; font-size: 0.72rem; flex-wrap: wrap; }
  .pet-archive-grid { grid-template-columns: 1fr; }
  .pet-filter-btn { padding: 6px 10px; font-size: 0.76rem; }
  .archive-count { font-size: 0.76rem; }
  .rank-table { min-width: 0; font-size: 0.78rem; }
  .rank-table th, .rank-table td { padding: 10px 6px; }
  .pet-thumb { width: 38px; height: 38px; flex-basis: 38px; border-radius: 8px; }
  .pet-cell { min-width: 0; gap: 6px; }
  .pet-cell strong { font-size: 0.8rem; }
  .pet-nick { font-size: 0.64rem; }
  .char-avatar { width: 30px; height: 30px; flex-basis: 30px; font-size: 0.8rem; }
  .rank-medal, .rank-no { width: 26px; height: 26px; font-size: 0.68rem; }
  .level-pill { padding: 3px 7px; font-size: 0.7rem; }
  .attack-num { font-size: 0.88rem; }
  .owner-cell { font-size: 0.72rem; overflow-wrap: anywhere; }
  .job-chip { font-size: 0.74rem; }
  .top-strip-inner { justify-content: center; }
  .top-strip-item:first-child { display: none; }
  .brand-logo { height: 38px; }
  .header-actions .btn { display: none; }
  .hero-copy { padding: 34px 20px 28px; }
  .hero-copy h1 { font-size: 2.55rem; }
  .hero-actions .btn { width: 100%; }
  .hero-art { min-height: 240px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 44px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 8px; }
  .feature-grid, .feature-grid.three, .guide-grid, .step-grid, .pet-grid, .pet-grid-lg { grid-template-columns: 1fr; }
  .pet-figure { min-height: 190px; }
  .auth-side, .article-side { grid-template-columns: 1fr; }
  .download-band-actions { width: 100%; }
  .download-band-actions .btn { width: 100%; }
  .download-card { padding: 20px; }
  .download-preview { grid-template-columns: 1fr; }
  .download-preview-art { max-width: 220px; }
  .download-card-head { align-items: flex-start; }
  .download-icon { width: 58px; height: 58px; }
  .download-actions .btn { width: 100%; }
  .client-meta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-bottom: 5px; }
  .admin-password-form { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .admin-topbar { display: block; }
  .admin-user { display: inline-flex; margin-top: 10px; }
  .admin-save-bar { position: static; }
  .article-nav { display: block; }
  .article-nav-link { max-width: 100%; }
  .article-nav-link.next { text-align: left; margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .map-button:hover img { transform: none; }
}
