/* ============================================================
   Luanti 中文站样式 - www.luanti.com.cn
   品牌色取自官方 logo (Tango 色板): 主绿 #4E9A06 / 亮绿 #73D216
   ============================================================ */

:root {
  --brand: #4E9A06;
  --brand-dark: #3D7A05;
  --brand-deep: #2C5A04;
  --brand-bright: #73D216;
  --accent-blue: #729FCF;
  --accent-yellow: #FCE94F;
  --accent-orange: #E9B96E;
  --ink: #1F2937;
  --ink-2: #4B5563;
  --ink-3: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F6F8F4;
  --bg-green: #F1F7EB;
  --ok: #15803D;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(31, 41, 55, .08), 0 4px 14px rgba(31, 41, 55, .06);
  --shadow-lg: 0 4px 10px rgba(31, 41, 55, .1), 0 18px 40px rgba(31, 41, 55, .14);
  --header-h: 64px;
  font-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.3em; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; display: block; }
.brand .name { letter-spacing: .5px; }
.brand .name small { font-size: .55em; font-weight: 400; color: var(--ink-3); margin-left: 6px; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--ink-2); font-size: .95rem; padding: 8px 14px; border-radius: 8px;
}
.main-nav a:hover { color: var(--brand-dark); background: var(--bg-green); text-decoration: none; }
.main-nav a[aria-current="page"] { color: #fff; background: var(--brand); font-weight: 600; }

.nav-download {
  background: var(--brand); color: #fff !important; font-weight: 600;
  padding: 9px 20px !important; border-radius: 8px; margin-left: 8px;
  border:none;
}
.nav-download:hover { background: var(--brand-dark) !important; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 10px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); flex-direction: column;
    align-items: stretch; padding: 10px 4%; gap: 2px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a, .main-nav a.nav-download { margin: 0; }
  .nav-download { text-align: center; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 8px; padding: 13px 30px; font-size: 1.02rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
  font-family: inherit; text-decoration: none !important;
}
.btn svg { flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: #CBD8C4; color: var(--brand-dark); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); background: var(--bg-green); }
.btn-lg { padding: 15px 38px; font-size: 1.08rem; }

/* ---------- 页面横幅 ---------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 52px 0 46px; }
.page-hero h1 { font-size: 2rem; margin-bottom: 10px; }
.page-hero .lead { color: var(--ink-2); font-size: 1.05rem; max-width: 760px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--ink-3); margin-bottom: 16px; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #C4CBD4; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brand-dark); }

/* ---------- 版块 ---------- */
.section { padding: 68px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 1.7rem; margin-bottom: 10px; }
.section-head p { color: var(--ink-2); }

/* ---------- 首页 Hero ---------- */
.home-hero {
  background:
    linear-gradient(115deg, var(--brand-deep) 0%, var(--brand) 58%, #5AAB09 100%);
  color: #fff; padding: 88px 0 96px; overflow: hidden; position: relative;
}
.home-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 46px 46px;
}
.home-hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-copy .tagline {
  display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  padding: 5px 14px; border-radius: 999px; font-size: .85rem; margin-bottom: 20px; color: #F2FBEA;
}
.hero-copy h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.32; margin-bottom: 18px; font-weight: 800; }
.hero-copy .desc { color: #E8F4DE; font-size: 1.06rem; max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-hero-primary { background: #fff; color: var(--brand-deep); }
.btn-hero-primary:hover { background: #F2FBEA; }
.btn-hero-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-hero-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero-meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .88rem; color: #DFEFCE; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { opacity: .9; }

.hero-visual { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hero-art {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px; padding: 10px;
}
.hero-art img {
  display: block; width: 100%; height: auto;
  border-radius: 8px; image-rendering: pixelated;
}
.hcard {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px; padding: 20px 18px; backdrop-filter: blur(2px);
}
.hcard .num { font-size: 1.65rem; font-weight: 800; color: #fff; }
.hcard .lab { font-size: .85rem; color: #E4F3D6; margin-top: 2px; }

@media (max-width: 900px) {
  .home-hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 460px; }
}

/* ---------- 信任条 ---------- */
.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-strip .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 30px;
  padding: 20px 0; font-size: .9rem; color: var(--ink-2);
}
.trust-strip b { color: var(--brand-dark); }

/* ---------- 通用卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: .95rem; }
.card .icon-box {
  width: 46px; height: 46px; border-radius: 10px; background: var(--bg-green);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--brand-dark);
}

/* 场景卡片 */
.scene-card { border-top: 3px solid var(--brand-bright); }
.scene-card:nth-child(2) { border-top-color: var(--accent-blue); }
.scene-card:nth-child(3) { border-top-color: var(--accent-orange); }
.scene-card:nth-child(4) { border-top-color: var(--accent-yellow); }

/* 优势卡片 */
.adv-card { transition: transform .15s, box-shadow .15s; }
.adv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- 特性列表页 ---------- */
.feature-block { display: grid; grid-template-columns: 340px 1fr; gap: 44px; padding: 34px 0; border-top: 1px solid var(--line); }
.feature-block:first-of-type { border-top: 0; }
.feature-block h2 { font-size: 1.25rem; margin-bottom: 8px; }
.feature-block .kicker { color: var(--brand-dark); font-weight: 700; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; }
.feature-block p { color: var(--ink-2); }
.feature-block ul { margin-top: 12px; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 860px) { .feature-block { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- 数据大字 ---------- */
.stats-band { background: var(--brand-deep); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-grid .num { font-size: 2.2rem; font-weight: 800; color: var(--brand-bright); }
.stats-grid .lab { color: #D9EDC6; font-size: .92rem; margin-top: 4px; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 游戏卡片 ---------- */
.game-card { display: flex; flex-direction: column; gap: 8px; }
.game-card .game-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.game-card .game-head h3 { margin: 0; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; background: var(--bg-green); color: var(--brand-dark);
  white-space: nowrap;
}
.badge.blue { background: #EAF1FA; color: #3D6FA8; }
.badge.gray { background: #F3F4F6; color: var(--ink-3); }
.game-card .rating { color: var(--ok); font-size: .84rem; font-weight: 600; }
.game-card .by { color: var(--ink-3); font-size: .82rem; }
.game-card p { font-size: .92rem; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: .95rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: .93rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); }
table.data th { background: var(--bg-soft); font-weight: 700; color: var(--ink); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data td { color: var(--ink-2); }

/* ---------- 下载页 ---------- */
.dl-platform {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); margin-bottom: 26px;
}
.dl-platform h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.dl-platform h2 svg { color: var(--brand-dark); }
.dl-platform .req { color: var(--ink-3); font-size: .88rem; margin-bottom: 18px; }
.dl-rows { display: grid; gap: 10px; }
.dl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-radius: 8px; padding: 13px 18px;
  background: var(--bg-soft); flex-wrap: wrap;
}
.dl-row .f { font-weight: 600; color: var(--ink); font-size: .95rem; }
.dl-row .d { color: var(--ink-3); font-size: .84rem; }
.dl-btn {
  background: var(--brand); color: #fff; border: 0; border-radius: 7px;
  padding: 9px 22px; font-size: .92rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.dl-btn:hover { background: var(--brand-dark); }
.dl-btn:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent-blue); outline-offset: 2px;
}
.dl-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: .88rem; }
.note {
  background: #FDF6E9; border: 1px solid #F0E2C0; border-radius: 8px;
  padding: 14px 18px; font-size: .9rem; color: #7A5B1E; margin-top: 16px;
}
.note b { color: #63490F; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--ink-2); font-size: .95rem; }

/* ---------- 时间线 ---------- */
.timeline { list-style: none; padding: 0; border-left: 2px solid #D8E6CB; }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px;
  border-radius: 3px; background: var(--brand);
}
.timeline time { font-weight: 700; color: var(--brand-dark); font-size: .9rem; display: block; }
.timeline p { color: var(--ink-2); font-size: .95rem; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--brand-deep), var(--brand));
  border-radius: 14px; color: #fff; padding: 52px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.6rem; margin-bottom: 8px; }
.cta-band p { color: #E4F3D6; max-width: 560px; }
.cta-band .btn { background: #fff; color: var(--brand-deep); }
.cta-band .btn:hover { background: #F2FBEA; }

/* ---------- 页脚 ---------- */
.site-footer { background: #16220F; color: #B9C7AE; padding: 56px 0 30px; margin-top: 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h3 { color: #E8F0DF; font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #B9C7AE; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-desc { max-width: 340px; color: #9DAF90; font-size: .86rem; }
.footer-bottom { border-top: 1px solid #2C3B22; padding-top: 24px; font-size: .82rem; color: #8A9C7C; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 下载弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 10, .58);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 200;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: 14px; width: min(560px, 100%);
  box-shadow: var(--shadow-lg); padding: 34px 32px 30px; position: relative;
  transform: translateY(14px); transition: transform .18s; max-height: 90vh; overflow-y: auto;
}
.modal-overlay.show .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border-radius: 8px; border: 0; background: #F3F4F6; color: var(--ink-2);
  font-size: 1.05rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { background: #E5E7EB; color: var(--ink); }
.modal h3 { font-size: 1.25rem; margin-bottom: 4px; }
.modal .modal-sub { color: var(--ink-3); font-size: .88rem; margin-bottom: 24px; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qr-item {
  border: 1px solid var(--line); border-radius: 10px; padding: 18px 14px; text-align: center; background: var(--bg-soft);
}
.qr-box {
  width: 170px; height: 170px; margin: 0 auto 12px; background: #fff;
  border: 1.5px dashed #C8d4c0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: #A3B29A; font-size: .78rem;
}
.qr-item .qr-name { font-weight: 700; font-size: .95rem; }
.qr-item .qr-tip { color: var(--ink-3); font-size: .8rem; margin-top: 2px; }
.modal-notice { margin-top: 22px; margin-bottom: 0; }
@media (max-width: 480px) { .qr-grid { grid-template-columns: 1fr; } .qr-box { width: 150px; height: 150px; } }

/* ---------- 面包屑 SEO ---------- */
.shell-main { min-height: 60vh; }

/* 回到顶部 */
.back-top {
  position: fixed; right: 22px; bottom: 26px; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--brand-dark); cursor: pointer;
  box-shadow: var(--shadow); display: none; align-items: center; justify-content: center; z-index: 90;
}
.back-top.show { display: flex; }
.back-top:hover { background: var(--bg-green); }
