/* ============================================================
   DNF复古 · fugu.7060dnf.com 视觉层
   ------------------------------------------------------------
   主题名：「旧票根 / RETRO TICKET」
   米黄纸面 + 旧印刷朱红 + 靛青油墨 + 黄铜描边，
   直角双线票框、齿孔圆点、斜纹条、印章编号。
   与 dnf86（炭黑战术档案）、dnf60（宣纸编年册）不共用装饰语言，
   也不依赖 dnf86-base.css，本文件自成一套。
   ============================================================ */

:root {
  --paper: #f4ecdd;
  --paper-2: #ece0cb;
  --card: #fbf7ee;
  --ink: #1f1a15;
  --ink-2: #3b332a;
  --ink-3: #6d6357;
  --red: #b5372a;
  --red-d: #8d281e;
  --teal: #2f5d63;
  --gold: #b98a3c;
  --green: #4a6b34;
  --line: rgba(31, 26, 21, .18);
  --line-soft: rgba(31, 26, 21, .1);
  --shadow: 0 14px 34px -20px rgba(52, 38, 22, .55);
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Roboto Mono", "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body.fg {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  background-image:
    repeating-linear-gradient(0deg, rgba(31, 26, 21, .028) 0 1px, transparent 1px 4px),
    radial-gradient(900px 520px at 12% -8%, rgba(185, 138, 60, .16), transparent 64%),
    radial-gradient(760px 460px at 96% 4%, rgba(47, 93, 99, .1), transparent 62%);
}

::selection { background: rgba(181, 55, 42, .18); }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--red); }

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

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- 顶栏 ---------- */
.fg-top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 236, 221, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.fg-top-in {
  display: flex; align-items: center; gap: 22px;
  height: 62px;
}
.fg-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.fg-logo-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--red); color: #fff6e6;
  font-family: var(--serif); font-weight: 900; font-size: 17px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px rgba(255, 246, 230, .45);
}
.fg-logo-txt { display: flex; flex-direction: column; line-height: 1.15; }
.fg-logo-txt b { font-size: 16px; letter-spacing: .06em; }
.fg-logo-txt span { font-size: 10.5px; letter-spacing: .22em; color: var(--ink-3); text-transform: uppercase; }

.fg-menu { display: flex; gap: 4px; margin-left: auto; list-style: none; }
.fg-menu a {
  display: block; padding: 6px 12px; font-size: 14px; color: var(--ink-2);
  border-radius: 3px; letter-spacing: .02em;
}
.fg-menu a:hover { background: var(--paper-2); color: var(--red-d); }

.fg-top-cta {
  flex: none; padding: 8px 18px; font-size: 13.5px; font-weight: 700;
  color: #fff6e6; background: var(--red); border-radius: 3px;
  box-shadow: 0 3px 0 var(--red-d);
  letter-spacing: .04em;
}
.fg-top-cta:hover { color: #fff6e6; background: var(--red-d); }

.fg-burger { display: none; }

/* ---------- 首屏 ---------- */
.fg-hero { padding: 54px 0 40px; position: relative; }
.fg-hero-in {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px; align-items: center;
}
.fg-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .2em; color: var(--red-d);
  text-transform: uppercase; font-family: var(--mono);
  margin-bottom: 16px;
}
.fg-kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); }

.fg-hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 6.2vw, 68px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: .02em;
  margin-bottom: 8px;
}
.fg-hero h1 em {
  font-style: normal; color: var(--red);
  position: relative; white-space: nowrap;
}
.fg-hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em;
  height: .12em; background: rgba(181, 55, 42, .22); z-index: -1;
}
.fg-hero-sub {
  font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-2);
  margin: 14px 0 22px; max-width: 34em; line-height: 1.95;
}
.fg-hero-sub b { color: var(--ink); font-weight: 700; }

.fg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.fg-tags span {
  font-size: 12.5px; padding: 3px 11px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(251, 247, 238, .8);
}

.fg-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; font-size: 15px; font-weight: 700;
  border-radius: 3px; letter-spacing: .04em; transition: .18s;
}
.fg-btn-main { background: var(--red); color: #fff6e6; box-shadow: 0 4px 0 var(--red-d); }
.fg-btn-main:hover { background: var(--red-d); color: #fff6e6; transform: translateY(1px); box-shadow: 0 3px 0 var(--red-d); }
.fg-btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink-3); }
.fg-btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* 票根卡 */
.fg-ticket {
  position: relative; background: var(--card);
  border: 2px solid var(--ink); border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
}
.fg-ticket::before,
.fg-ticket::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border-radius: 50%; background: var(--paper);
  border: 2px solid var(--ink);
  top: 50%; margin-top: -8px;
}
.fg-ticket::before { left: -10px; }
.fg-ticket::after { right: -10px; }
.fg-ticket-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px dashed var(--line); padding-bottom: 10px; margin-bottom: 12px;
}
.fg-ticket-head b { font-family: var(--serif); font-size: 17px; letter-spacing: .06em; }
.fg-ticket-head span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .12em; }
.fg-ticket-list { list-style: none; display: grid; gap: 2px; }
.fg-ticket-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 8px; border-radius: 3px; color: var(--ink-2);
  font-size: 14px; border-bottom: 1px dotted var(--line-soft);
}
.fg-ticket-list li:last-child a { border-bottom: 0; }
.fg-ticket-list a:hover { background: var(--paper-2); color: var(--red-d); }
.fg-ticket-list i {
  font-family: var(--mono); font-style: normal; font-size: 12px;
  width: 30px; color: var(--red); font-weight: 700;
}
.fg-ticket-list b { font-weight: 700; }
.fg-ticket-list em { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.fg-ticket-foot {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between;
  font-family: var(--mono); letter-spacing: .06em;
}

/* ---------- 更新条 ---------- */
.fg-news {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 238, .7);
}
.fg-news-in { display: flex; align-items: center; gap: 18px; padding: 10px 0; }
.fg-news-label {
  flex: none; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em;
  color: #fff6e6; background: var(--teal); padding: 3px 9px; border-radius: 2px;
}
.fg-news ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 26px; min-width: 0; }
.fg-news li { font-size: 13.5px; display: flex; gap: 8px; align-items: baseline; }
.fg-news time { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.fg-news a { color: var(--ink-2); }
.fg-news a:hover { color: var(--red-d); }

/* ---------- 通用区块 ---------- */
.fg-sec { padding: 62px 0; border-top: 1px solid var(--line-soft); }
.fg-sec-head { margin-bottom: 30px; max-width: 60em; }
.fg-sec-no {
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em;
  color: var(--red); display: block; margin-bottom: 10px;
}
.fg-sec-head h2 {
  font-family: var(--serif); font-size: clamp(25px, 3.4vw, 34px);
  font-weight: 900; letter-spacing: .01em; line-height: 1.3;
}
.fg-sec-head p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; max-width: 52em; }

/* ---------- 模块 1：三步选版本 ---------- */
.fg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fg-step {
  position: relative; background: var(--card);
  border: 1px solid var(--line); border-top: 4px solid var(--ink);
  padding: 24px 22px 22px; border-radius: 4px;
}
.fg-step:nth-child(1) { border-top-color: var(--red); }
.fg-step:nth-child(2) { border-top-color: var(--teal); }
.fg-step:nth-child(3) { border-top-color: var(--gold); }
.fg-step-no {
  position: absolute; right: 16px; top: 12px;
  font-family: var(--serif); font-size: 40px; font-weight: 900;
  color: rgba(31, 26, 21, .07); line-height: 1;
}
.fg-step h3 { font-size: 18px; font-family: var(--serif); margin-bottom: 4px; }
.fg-step .q { font-size: 12.5px; color: var(--red-d); letter-spacing: .06em; margin-bottom: 12px; font-family: var(--mono); }
.fg-step ul { list-style: none; display: grid; gap: 9px; }
.fg-step li { font-size: 14px; color: var(--ink-2); padding-left: 18px; position: relative; }
.fg-step li::before {
  content: ""; position: absolute; left: 2px; top: .72em;
  width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg);
}
.fg-step li b { color: var(--ink); }

/* ---------- 模块 2：六代对照表 ---------- */
.fg-tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; background: var(--card); }
table.fg-tbl { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14px; }
table.fg-tbl caption {
  text-align: left; padding: 14px 18px 0; font-size: 13px; color: var(--ink-3);
  font-family: var(--mono); letter-spacing: .04em;
}
table.fg-tbl th, table.fg-tbl td {
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  padding: 12px 14px; text-align: left; vertical-align: top;
}
table.fg-tbl th { background: var(--paper-2); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
table.fg-tbl thead th { border-bottom: 2px solid var(--ink); font-family: var(--serif); font-size: 14.5px; }
table.fg-tbl tbody th { background: rgba(236, 224, 203, .55); position: sticky; left: 0; z-index: 1; }
table.fg-tbl tr:last-child th, table.fg-tbl tr:last-child td { border-bottom: 0; }
table.fg-tbl td:last-child, table.fg-tbl th:last-child { border-right: 0; }
table.fg-tbl td b { color: var(--red-d); }
.fg-tbl-note { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

/* ---------- 模块 3：魔改识别 ---------- */
.fg-check { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fg-check-item {
  background: var(--card); border: 1px solid var(--line);
  border-left: 5px solid var(--teal); padding: 18px 20px; border-radius: 3px;
}
.fg-check-item.warn { border-left-color: var(--red); }
.fg-check-item h3 { font-size: 16px; margin-bottom: 6px; display: flex; gap: 8px; align-items: baseline; }
.fg-check-item h3 i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .1em; }
.fg-check-item p { font-size: 14px; color: var(--ink-2); }
.fg-veto {
  margin-top: 16px; background: rgba(181, 55, 42, .07);
  border: 1px dashed var(--red); border-radius: 4px; padding: 16px 20px;
  font-size: 14.5px; color: var(--ink);
}
.fg-veto b { color: var(--red-d); }

/* ---------- 模块 4：年代时间轴 ---------- */
.fg-time { position: relative; padding: 8px 0 4px; }
.fg-time-line {
  position: absolute; left: 0; right: 0; top: 46px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 16px);
  opacity: .35;
}
.fg-time-track {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; position: relative;
}
.fg-time-item { padding-top: 26px; position: relative; }
.fg-time-item::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--red);
}
.fg-time-yr { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--ink-3); }
.fg-time-item h3 { font-family: var(--serif); font-size: 17px; margin: 2px 0 6px; }
.fg-time-item p { font-size: 13px; color: var(--ink-2); line-height: 1.75; }

/* ---------- 模块 5：内链矩阵 ---------- */
.fg-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fg-map-col { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; }
.fg-map-col h3 {
  font-size: 15.5px; font-family: var(--serif); padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: baseline;
}
.fg-map-col h3 em { font-style: normal; font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); }
.fg-map-col ul { list-style: none; display: grid; gap: 7px; }
.fg-map-col li a { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: baseline; }
.fg-map-col li a::before { content: "›"; color: var(--gold); font-weight: 700; }
.fg-map-col li a:hover { color: var(--red-d); }

/* ---------- 模块 6：问答 ---------- */
.fg-faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.fg-faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  padding: 14px 18px;
}
.fg-faq details[open] { border-color: var(--red); box-shadow: var(--shadow); }
.fg-faq summary {
  cursor: pointer; font-size: 15px; font-weight: 700; color: var(--ink);
  list-style: none; display: flex; gap: 10px; align-items: flex-start;
}
.fg-faq summary::-webkit-details-marker { display: none; }
.fg-faq summary::before {
  content: "Q"; flex: none; font-family: var(--mono); font-size: 12px;
  width: 20px; height: 20px; display: grid; place-items: center;
  background: var(--red); color: #fff6e6; border-radius: 2px; margin-top: 3px;
}
.fg-faq details[open] summary::before { content: "A"; background: var(--teal); }
.fg-faq .a { margin-top: 10px; font-size: 14px; color: var(--ink-2); padding-left: 30px; }

/* ---------- 下载入口条 ---------- */
.fg-dl {
  background: var(--ink); color: #f0e6d4; border-radius: 6px;
  padding: 34px 34px; display: grid; grid-template-columns: 1.4fr auto;
  gap: 24px; align-items: center; margin: 10px 0 0;
}
.fg-dl h2 { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.fg-dl p { color: rgba(240, 230, 212, .76); font-size: 14.5px; max-width: 44em; }
.fg-dl .fg-btn-main { background: var(--gold); color: #241f1a; box-shadow: 0 4px 0 #8d6521; white-space: nowrap; }
.fg-dl .fg-btn-main:hover { background: #cf9e4a; color: #241f1a; }

/* ---------- 页脚 ---------- */
.fg-foot { border-top: 1px solid var(--line); margin-top: 20px; padding: 40px 0 30px; }
.fg-foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.fg-foot h4 { font-size: 13px; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 12px; text-transform: uppercase; }
.fg-foot p { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }
.fg-foot ul { list-style: none; display: grid; gap: 8px; }
.fg-foot li a { font-size: 13.5px; color: var(--ink-2); }
.fg-foot li a:hover { color: var(--red-d); }
.fg-foot-bot {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 12.5px; color: var(--ink-3);
}

/* ---------- 高对比可读块（给搜索引擎看的实词区） ---------- */
.fg-article { max-width: 60em; }
.fg-article h3 { font-size: 17px; margin: 22px 0 8px; font-family: var(--serif); }
.fg-article p { font-size: 15px; color: var(--ink-2); margin-bottom: 12px; }
.fg-article ul { margin: 0 0 14px 1.2em; font-size: 15px; color: var(--ink-2); }
.fg-article li { margin-bottom: 6px; }

/* ---------- 动效 ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .fg-hero-in { grid-template-columns: 1fr; gap: 28px; }
  .fg-steps { grid-template-columns: 1fr; }
  .fg-check { grid-template-columns: 1fr; }
  .fg-map { grid-template-columns: repeat(2, 1fr); }
  .fg-time-track { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .fg-time-line { display: none; }
  .fg-dl { grid-template-columns: 1fr; }
  .fg-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .fg-menu { display: none; }
  .fg-top-in { height: 56px; gap: 10px; }
  .fg-menu.open {
    display: flex; flex-direction: column; position: absolute;
    left: 0; right: 0; top: 56px; background: var(--paper);
    padding: 10px 16px 16px; gap: 2px; border-bottom: 1px solid var(--line);
  }
  .fg-burger {
    display: grid; place-items: center; width: 38px; height: 34px;
    margin-left: auto; background: transparent; border: 1px solid var(--line); border-radius: 3px;
  }
  .fg-burger span { display: block; width: 16px; height: 2px; background: var(--ink); margin: 2.5px 0; }
  .fg-top-cta { display: none; }
  .fg-hero { padding: 34px 0 26px; }
  .fg-sec { padding: 44px 0; }
  .fg-map { grid-template-columns: 1fr; }
  .fg-faq { grid-template-columns: 1fr; }
  .fg-time-track { grid-template-columns: repeat(2, 1fr); }
  .fg-foot-grid { grid-template-columns: 1fr; }
  .fg-dl { padding: 24px 20px; }
  body.fg { font-size: 15.5px; }
}
