/*
 * 天堂2私服 · 月蚀档案
 * 独立原创样式 | Pure HTML + CSS | No functional JavaScript
 * 设计语言：月光银 / 古金 / 深海夜蓝 / 亚丁档案
 */
:root {
  --ink: #16253a;
  --ink-2: #26364c;
  --night: #111b2d;
  --night-soft: #1a2b3f;
  --deep-line: #354a59;
  --paper: #f4efe4;
  --paper-2: #fffaf0;
  --cream: #ebe3d4;
  --line: #dcd2bf;
  --muted: #596576;
  --gold: #9b7748;
  --gold-light: #e6c693;
  --jade: #a7ddd0;
  --jade-ink: #245c55;
  --white: #fffaf0;
  --font-body: 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-title: 'Noto Serif CJK SC', 'Songti SC', 'STSong', serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font-body); font-size: 14px; line-height: 1.85; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid #68cdb7; outline-offset: 4px; }
h1, h2, h3, h4, p { margin-top: 0; }
p { margin-bottom: 0; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* Header */
.topline { background: #0b1422; color: #a9c4c6; border-bottom: 1px solid #273a4b; font-size: 11px; letter-spacing: .055em; }
.topline-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.site-header { background: #152337; border-bottom: 1px solid #314453; }
.brand-row { min-height: 96px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { display: block; width: 285px; height: auto; }
.header-right { text-align: right; color: #a7bbc5; font-size: 12px; }
.header-right span { display: block; }
.header-right .header-line { font-family: var(--font-title); color: #e7d7b9; font-size: 17px; letter-spacing: .15em; margin-bottom: 3px; }

/* Anchors (no JS) */
.nav-shell { position: sticky; top: 0; z-index: 50; background: rgba(20, 34, 53, .965); border-bottom: 1px solid #475569; backdrop-filter: blur(15px); }
.nav-scroll { display: flex; overflow-x: auto; align-items: center; gap: 3px; min-height: 52px; scrollbar-width: thin; scrollbar-color: #a58c65 transparent; }
.nav-scroll a { color: #d5dce1; flex: 0 0 auto; font-size: 12px; font-weight: 600; white-space: nowrap; border-radius: 5px; padding: 7px 10px; transition: color .2s, background .2s; }
.nav-scroll a:hover { background: #33445a; color: #f5d8ab; }

/* Hero */
.hero { background: #101c2e url('img/hero-citadel.png') center center / cover no-repeat; color: #f9f2e7; min-height: 575px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 22, 37, .96) 0%, rgba(13, 23, 39, .88) 40%, rgba(13, 26, 44, .23) 80%, rgba(13, 24, 41, .09) 100%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 70px; background: linear-gradient(0deg, rgba(14, 27, 44, .82), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); align-items: center; gap: 30px; position: relative; z-index: 2; min-height: 575px; padding-block: 68px 58px; }
.hero-content { max-width: 760px; }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: .19em; color: #bce2d6; }
.rune-star { color: #f1d19b; font-size: 22px; line-height: 1; }
.hero h1 { font-family: var(--font-title); font-size: clamp(39px, 4.55vw, 64px); line-height: 1.32; font-weight: 700; margin: 22px 0 23px; letter-spacing: .025em; text-shadow: 0 3px 25px rgba(0,0,0,.3); }
.hero h1 em { font-style: normal; color: #eac99a; }
.hero-lead { color: #d4dde1; font-size: 15px; line-height: 2.15; max-width: 680px; }
.hero-lead strong { color: #f7ddac; font-weight: 600; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 43px; padding: 10px 20px; border-radius: 5px; font-size: 13px; font-weight: 750; border: 1px solid transparent; transition: transform .18s, background .18s, border-color .18s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #dfbf8e; color: #18273b; }
.btn-primary:hover { background: #f0d5a9; }
.btn-outline { border-color: rgba(211, 235, 227, .55); color: #f3e9d6; background: rgba(14, 29, 46, .45); }
.btn-outline:hover { border-color: #f3d4a8; background: rgba(29, 54, 69, .8); }
.hero-metrics { display: flex; gap: 0; flex-wrap: wrap; margin-top: 42px; border-top: 1px solid rgba(200, 220, 220, .23); padding-top: 19px; }
.hero-metrics div { min-width: 132px; border-right: 1px solid rgba(200, 220, 220, .23); margin-right: 25px; padding-right: 25px; }
.hero-metrics div:last-child { border-right: 0; }
.hero-metrics b { display: block; font-family: Georgia, serif; font-size: 29px; line-height: 1.12; letter-spacing: .04em; color: #e5c998; }
.hero-metrics span { display: block; color: #bed0d0; font-size: 11px; margin-top: 4px; }
.hero-aside { display: flex; align-items: flex-end; flex-direction: column; gap: 14px; margin-top: 145px; }
.feature-seal { width: 165px; height: 165px; border-radius: 50%; border: 1px solid rgba(222, 200, 158, .68); background: rgba(18, 32, 49, .78); box-shadow: inset 0 0 0 7px rgba(18, 32, 49, .7), inset 0 0 0 8px rgba(230, 195, 142, .34), 0 10px 50px rgba(0, 0, 0, .32); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.feature-seal .ornament { font-size: 20px; color: var(--gold-light); line-height: 1; }
.feature-seal b { font-family: var(--font-title); font-size: 23px; line-height: 1.28; color: #f6e2bd; margin: 8px 0; }
.feature-seal small { color: #b2cecd; font-size: 8px; letter-spacing: .13em; }
.hero-caption { background: rgba(12, 24, 39, .7); color: #e7d1af; border-left: 2px solid #d6b77f; font-size: 11px; letter-spacing: .2em; padding: 7px 12px; }

/* Sections & headings */
.section { padding: 75px 0; border-bottom: 1px solid #e1d6c4; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 26px; margin-bottom: 29px; }
.section-num { color: #97744e; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.section-heading h2, .contact-inner h2 { font-family: var(--font-title); font-size: clamp(25px, 2.55vw, 36px); line-height: 1.4; letter-spacing: .02em; margin: 8px 0 0; }
.section-heading h2 em, .contact-inner h2 em { color: var(--gold); font-style: normal; }
.section-heading > p { max-width: 470px; font-size: 12px; line-height: 1.85; color: var(--muted); }
.section-deep { background: var(--night); border-color: #263447; color: #f6eddb; }
.section-heading-inverted > p { color: #a7b9c7; }
.section-deep .section-num { color: #d5b582; }
.section-heading-inverted h2 em { color: #e0bf88; }

/* Intro cards */
.overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.overview-card { display: flex; flex-direction: column; min-width: 0; min-height: 255px; padding: 23px; background: var(--paper-2); border: 1px solid #e2d8c8; border-radius: 8px; transition: transform .18s, border-color .18s; }
.overview-card:hover { transform: translateY(-4px); border-color: #bea17a; }
.overview-card.accent-card { background: #203448; color: #f7ecda; border-color: #2b4a57; }
.overview-icon { font-size: 26px; line-height: 1; color: var(--gold); }
.accent-card .overview-icon { color: #c9e8de; }
.card-eyebrow { margin-top: 19px; color: #9f7a48; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.accent-card .card-eyebrow { color: #b4dcd3; }
.overview-card h3 { font-family: var(--font-title); font-size: 18px; margin: 9px 0 10px; }
.overview-card p { font-size: 12px; line-height: 1.95; color: #606c76; flex: 1; }
.overview-card.accent-card p { color: #bacdd1; }
.overview-card a { margin-top: 17px; font-size: 11px; font-weight: 800; color: #8a6745; }
.accent-card a { color: #f0cd95; }

/* Server tables */
.table-header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 13px 17px; background: #233449; border: 1px solid #3e5060; border-bottom: 0; border-radius: 8px 8px 0 0; font-size: 12px; color: #bed0d4; }
.table-header > span:first-child { color: #e5d3b8; font-weight: 800; }
.green-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #9be0d1; margin-right: 7px; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #3e5060; border-radius: 0 0 8px 8px; background: #18273a; }
table { width: 100%; border-collapse: collapse; }
.server-table { min-width: 910px; }
th, td { text-align: left; vertical-align: middle; }
.server-table th { padding: 13px 14px; background: #2a3b50; color: #e4cda3; white-space: nowrap; letter-spacing: .04em; font-size: 11px; font-weight: 750; }
.server-table td { padding: 12px 14px; color: #c0ccd5; font-size: 12px; border-bottom: 1px solid #314153; }
.server-table tbody tr:last-child td { border-bottom: 0; }
.server-table tbody tr:hover { background: #25394a; }
.server-table .numeric { font-family: Georgia, serif; color: #7e9ca8; font-size: 12px; }
.server-name { min-width: 140px; font-weight: 750; color: #f8e9d0 !important; white-space: nowrap; }
.server-emblem { color: #d8b983; padding-right: 8px; }
.version-label { white-space: nowrap; color: #b1e1d7; border: 1px solid #466e6b; border-radius: 20px; display: inline-block; padding: 1px 8px; font-size: 11px; }
.status { color: #e6c08c; white-space: nowrap; }
.server-table .description { min-width: 300px; color: #b3c2cc; line-height: 1.7; }
.source-note { color: #a4b6be; font-size: 11px; line-height: 1.9; padding-top: 12px; }

/* Featured directions */
.spotlight-section { background: #eae2d4; }
.spotlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.spotlight-card { min-height: 210px; padding: 24px; border-radius: 7px; background: #fffaf2; border: 1px solid #ded1bd; display: flex; flex-direction: column; justify-content: flex-start; }
.spotlight-card > span { font-size: 10px; color: #987a51; letter-spacing: .12em; font-weight: 800; }
.spotlight-card h3 { font-family: var(--font-title); font-size: 20px; margin: 14px 0 11px; line-height: 1.45; }
.spotlight-card p { font-size: 12px; color: #637078; line-height: 1.95; }
.spotlight-card.large { grid-row: span 2; background: #273b4d; color: #f6ead3; padding: 33px 28px; border-color: #324e5a; justify-content: flex-end; position: relative; overflow: hidden; }
.spotlight-card.large::before { content: '✦'; position: absolute; top: -88px; right: 10px; font-size: 270px; line-height: 1; color: rgba(233, 207, 157, .07); }
.spotlight-card.large > span { color: #bbded5; }
.spotlight-card.large h3 { font-size: 27px; }
.spotlight-card.large p { color: #c3d4d5; }
.spotlight-card.large a { font-size: 12px; color: #e9cc9a; margin-top: 17px; font-weight: 800; }

/* Criteria archive */
.index-section { background: #faf6ed; }
.criteria-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; border-top: 1px solid var(--line); }
.criteria-item { padding: 17px 3px; display: grid; grid-template-columns: 36px 1fr 15px; gap: 10px; align-items: start; border-bottom: 1px solid var(--line); }
.criteria-num { font: 23px Georgia,serif; color: #b1a18b; line-height: 1.45; }
.criteria-item h3 { font-size: 14px; margin-bottom: 5px; }
.criteria-item p { font-size: 12px; color: #64707d; line-height: 1.8; }
.criteria-arrow { color: var(--gold); font-size: 12px; }

/* Comparison */
.table-scroll-round { border-radius: 8px; background: #1a2a3f; }
.compare-table { min-width: 850px; }
.compare-table th, .compare-table td { padding: 15px; border-bottom: 1px solid #364858; font-size: 12px; }
.compare-table thead th { background: #283b50; color: #e1c99f; white-space: nowrap; }
.compare-table tbody th { font-weight: 750; color: #e9d8bb; white-space: nowrap; }
.compare-table tbody td { color: #bac9d1; line-height: 1.8; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.chronicle-quote { display: flex; align-items: start; gap: 20px; padding: 26px 0 0; max-width: 830px; }
.chronicle-quote span { font-size: 33px; color: #e4c28c; line-height: 1; }
.chronicle-quote p { font-family: var(--font-title); font-size: 17px; color: #e1d4bb; line-height: 1.9; }

/* Classes */
.class-section { background: #f4efe4; }
.class-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.class-card { background: #fffaf1; padding: 24px; border: 1px solid var(--line); border-radius: 8px; min-height: 202px; transition: transform .18s, border-color .18s; }
.class-card:hover { transform: translateY(-3px); border-color: #ad936b; }
.class-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.class-mark { font: 27px Georgia,serif; color: #a18462; }
.class-sub { color: #6a827d; font-size: 11px; font-weight: 700; }
.class-card h3 { margin: 18px 0 9px; font-family: var(--font-title); font-size: 19px; }
.class-card p { font-size: 12px; color: #69747b; line-height: 1.95; }

/* Guide */
.guide-section { background: #ece4d8; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.guide-card { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 24px; min-height: 215px; border-radius: 8px; border: 1px solid #dbcbb7; background: #fdf8ef; }
.guide-index { font: 43px Georgia,serif; color: #b3a18a; line-height: 1.1; }
.guide-body h3 { font-family: var(--font-title); font-size: 18px; margin-bottom: 10px; }
.guide-body p { color: #5c6873; font-size: 12px; line-height: 1.9; }
.guide-body .guide-note { margin-top: 12px; border-top: 1px solid #e6dac9; padding-top: 12px; color: #847258; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.faq-item { border: 1px solid #3c5061; background: #1b2d40; border-radius: 7px; min-width: 0; }
.faq-item summary { color: #efe0c5; padding: 16px 18px; cursor: pointer; font-size: 13px; font-weight: 750; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: #ddbe8a; padding-left: 12px; font-size: 18px; line-height: 1.2; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { border-top: 1px solid #384c5b; padding: 14px 18px 18px; color: #b4c5cc; font-size: 12px; line-height: 2; }

/* About & Policies */
.info-section { background: #fffaf0; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.info-grid article { padding: 24px; border-radius: 8px; border: 1px solid #ddd0bd; background: #f6efe4; }
.info-grid h3 { font-family: var(--font-title); font-size: 19px; margin-bottom: 12px; }
.info-grid p { font-size: 12px; color: #626b76; line-height: 2; }
.policy-section { background: #f4efe5; padding-block: 63px; }
.alt-policy { background: #eae2d4; }
.policy-box { border: 1px solid #d9cab5; background: #fffaf1; padding: 27px 30px; border-radius: 8px; }
.policy-box h3 { color: #725535; font-size: 15px; margin: 0 0 8px; }
.policy-box h3:not(:first-child) { margin-top: 21px; }
.policy-box p { color: #5c6975; font-size: 12px; line-height: 2; }

/* Friends / Contact */
.links-section { background: #f9f5ec; }
.friend-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.friend-grid a { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; border: 1px dashed #c1ae90; background: #fffdf8; border-radius: 8px; color: #725a3c; font-size: 12px; font-weight: 700; transition: border-color .18s, background .18s; }
.friend-grid a span { color: #9d7e57; font-size: 16px; }
.friend-grid a:hover { border-color: #8e6540; background: #f7ebd8; }
.contact-section { background: #203246; color: #f3e7d1; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.contact-inner .section-num { color: #dfbb81; }
.contact-inner h2 em { color: #e5c18c; }
.contact-inner p { max-width: 690px; font-size: 12px; color: #b9cbd0; margin-top: 12px; }

/* Footer */
.footer { background: #111c2d; color: #d7dfdd; }
.footer-grid { padding: 46px 0 32px; display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 52px; }
.footer-brand img { display: block; width: 200px; height: auto; }
.footer-brand p { max-width: 410px; color: #9eafb6; font-size: 11px; line-height: 1.95; margin-top: 16px; }
.footer-col h3 { color: #e4c797; font-size: 13px; margin: 0 0 15px; }
.footer-col a { display: block; color: #adbec4; font-size: 11px; padding-block: 3px; }
.footer-col a:hover { color: #eed3a8; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; padding-block: 18px; border-top: 1px solid #304154; font-size: 10px; letter-spacing: .05em; color: #8d9da8; }

/* Responsive */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: minmax(0,1.1fr) minmax(180px,.5fr); }
  .overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .spotlight-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .spotlight-card.large { grid-row: span 2; }
  .criteria-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .header-right { display: none; }
}
@media (max-width: 780px) {
  html { scroll-padding-top: 70px; }
  .wrap { width: min(100% - 28px, 1180px); }
  .hero { min-height: auto; background-position: 57% center; }
  .hero::before { background: linear-gradient(90deg,rgba(12,22,37,.97),rgba(13,26,42,.79)); }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; padding-block: 60px 48px; }
  .hero-aside { display: none; }
  .hero h1 { font-size: clamp(34px,8vw,51px); }
  .hero-lead { font-size: 13px; }
  .hero-metrics { margin-top: 33px; }
  .section { padding-block: 50px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 22px; }
  .section-heading > p { max-width: none; }
  .class-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .info-grid { grid-template-columns: 1fr; }
  .friend-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; gap: 20px; }
  .contact-inner { align-items: flex-start; flex-direction: column; }
  .contact-inner .btn { margin-top: 8px; }
}
@media (max-width: 560px) {
  .topline { font-size: 9px; }
  .topline-inner { justify-content: center; text-align: center; }
  .topline-inner span:last-child { display: none; }
  .brand-row { min-height: 80px; }
  .brand img { width: 235px; }
  .nav-scroll { min-height: 48px; }
  .nav-scroll a { font-size: 12px; padding: 7px 9px; }
  .hero-grid { padding-block: 45px 43px; }
  .hero h1 { font-size: 35px; }
  .hero-lead { line-height: 2; }
  .hero-actions { gap: 9px; }
  .btn { gap: 10px; }
  .hero-metrics { justify-content: space-between; }
  .hero-metrics div { min-width: 0; margin-right: 0; padding-right: 10px; width: 33.333%; }
  .hero-metrics b { font-size: 24px; }
  .hero-metrics span { font-size: 10px; }
  .overview-grid, .spotlight-grid, .criteria-grid, .class-grid, .guide-grid, .faq-grid, .friend-grid { grid-template-columns: 1fr; }
  .overview-card { min-height: 0; }
  .spotlight-card.large { grid-row: auto; min-height: 280px; }
  .spotlight-card { min-height: 0; }
  .guide-card { grid-template-columns: 42px 1fr; gap: 15px; padding: 20px; }
  .guide-index { font-size: 35px; }
  .policy-box { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
