/* 堕忘者官网样式
   2026.09 改版：去掉渐变和光晕，改成暗色，跟游戏本体界面统一
   配色参考游戏内启动器，别乱改 */

:root {
  --bg:       #121316;
  --bg-2:     #17181c;
  --panel:    #1a1c20;
  --panel-2:  #202329;
  --line:     #2c2f36;
  --line-2:   #24272d;
  --text:     #ddd8ce;
  --text-hi:  #f3efe6;
  --muted:    #8b8a86;
  --muted-2:  #6e6d69;
  --accent:   #c8a45c;
  --accent-d: #8d7238;
  --danger:   #b5544a;
  --radius:   4px;
  --maxw:     940px;
}

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

html { scroll-behavior: smooth; }

/* 背景图单独放一层，方便加模糊；body 只留底色 */
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("theforgottenone.png") center / cover no-repeat;
  filter: blur(6px);
  transform: scale(1.08);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  padding: 1px 5px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--accent);
}

/* ---------- 顶栏 ---------- */

.site-header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
  color: var(--text-hi);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  display: inline-block;
}
.logo .en {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted-2);
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 6px 11px;
  text-decoration: none;
}
.nav a:hover {
  color: var(--text-hi);
  background: var(--panel-2);
  text-decoration: none;
}
.nav a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

.menu-btn {
  display: none;
  margin-left: auto;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 16px;
  padding: 5px 11px;
  cursor: pointer;
  border-radius: var(--radius);
}

/* ---------- 布局 ---------- */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--muted-2); }
.breadcrumb a:hover { color: var(--accent); }

.page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: 1px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.page-sub {
  color: var(--muted);
  margin-top: 12px;
  max-width: 66ch;
  font-size: 14px;
}

/* ---------- 区块 ---------- */

section.block { margin-top: 40px; }

section.block > h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 14px;
  line-height: 1.4;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}
.card:hover { border-color: #3a3e46; }
.card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 6px;
}
.card p { color: var(--muted); font-size: 13.5px; }
.card b { color: var(--text); }

.card .tag {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent-d);
  padding: 0 6px;
  margin-bottom: 10px;
  letter-spacing: .5px;
}

/* 待补充区域。写内容的时候直接替换掉整个 div */
.placeholder {
  background: var(--panel);
  border: 1px dashed #3a3e46;
  border-radius: var(--radius);
  padding: 18px;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
}

/* 信息表 */
.kv {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 18px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0 16px;
  font-size: 14px;
}
.kv dt { color: var(--muted-2); }
.kv dd { color: var(--text); }
.kv > * {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.kv > *:last-child,
.kv > *:nth-last-child(2) { border-bottom: none; }

/* ---------- 首页首屏 ---------- */

.hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px 36px;
  text-align: center;
}
.hero h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--text-hi);
  line-height: 1.2;
}
.hero p {
  color: var(--muted);
  margin: 14px auto 0;
  max-width: 56ch;
  font-size: 14px;
}
.hero b { color: var(--text); }

.hero-en {
  font-size: 12px !important;
  letter-spacing: 3px !important;
  color: var(--muted-2) !important;
  margin-top: 8px !important;
  text-transform: uppercase;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-block;
  font-size: 14px;
  padding: 9px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  text-decoration: none;
  border-color: var(--accent-d);
  color: var(--text-hi);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1509;
  font-weight: 700;
}
.btn-primary:hover {
  background: #d6b26a;
  border-color: #d6b26a;
  color: #1a1509;
}

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 20px 30px;
  text-align: center;
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.9;
}
.site-footer .fnote { color: #5a5955; font-size: 12px; }

/* ---------- 开发进度 ---------- */

.meter {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 10px;
}
.meter .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--muted);
}
.meter .row span:last-child {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}
.meter .bar {
  height: 8px;
  background: #101114;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.meter .fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 1.2s ease-out;
}

/* ---------- 列表 ---------- */

.m-list { list-style: none; }
.m-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}
.m-list li .no {
  flex: 0 0 auto;
  min-width: 56px;
  color: var(--accent);
  font-weight: 700;
}
.m-list li span:last-child { color: var(--muted); }

/* ---------- 滚动进度条 ---------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 99;
  transition: width .08s linear;
}

/* ---------- 滚动淡入（很轻，别加太多） ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 弹窗（攻略页那个「点击查看」用的） ---------- */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }

.modal-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 20px;
  max-width: 340px;
  width: 100%;
  text-align: center;
}
.modal-box p {
  color: var(--text-hi);
  font-size: 15px;
  margin-bottom: 18px;
}

/* ---------- 手机 ---------- */

@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 12px 14px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 8px; border-bottom: none; }
  .nav a.active { border-bottom: none; border-left: 2px solid var(--accent); }

  .container { padding: 22px 14px 48px; }
  .hero { padding: 30px 18px 26px; }
  .hero h1 { font-size: 30px; letter-spacing: 4px; }
  .page-title { font-size: 22px; }
  section.block { margin-top: 32px; }

  .kv { grid-template-columns: 1fr; padding: 2px 14px; }
  .kv > dt {
    padding-bottom: 0;
    border-bottom: none;
    color: var(--accent);
    font-size: 12px;
  }
}

/* 系统开了减少动效就全部关掉 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
