/* ============================================================
   Lutris 中文站 - 全站样式
   配色取自官方 Logo：橙色 #F7941E / 棕色 #4A3428
   ============================================================ */

:root {
  --orange: #f7941e;
  --orange-deep: #e07c08;
  --orange-light: #ffb648;
  --orange-soft: #fdf1e0;
  --brown: #4a3428;
  --brown-deep: #33241b;
  --brown-mid: #6b5244;
  --ink: #2b211b;
  --ink-soft: #5c5049;
  --line: #ecdfd2;
  --bg: #faf7f3;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(74, 52, 40, 0.08);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--brown);
}
.brand img { width: 38px; height: 38px; }
.brand .brand-cn { color: var(--orange-deep); }

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.main-nav a.nav-link:hover { color: var(--orange-deep); background: var(--orange-soft); }
.main-nav a.nav-link.active { color: var(--orange-deep); background: var(--orange-soft); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 60%, var(--orange-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(247, 148, 30, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(247, 148, 30, 0.45); }
.btn-lg { padding: 16px 44px; font-size: 18px; border-radius: 12px; }
.btn-ghost {
  background: #fff;
  color: var(--brown);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-deep); }

.btn-download-sm { padding: 10px 22px; font-size: 15px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--brown);
  border-radius: 2px;
}

/* ---------------- Hero ---------------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(247, 148, 30, 0.16), transparent 65%),
    radial-gradient(700px 380px at -5% 110%, rgba(74, 52, 40, 0.08), transparent 60%),
    #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 84px 0 76px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  border: 1px solid #f6ddb8;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  color: var(--brown);
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--orange-deep); }

.hero .hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-meta { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-meta .meta-item { font-size: 14px; color: var(--ink-soft); }
.hero-meta .meta-item strong { color: var(--brown); font-size: 15px; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-wrap {
  width: 300px;
  height: 300px;
  border-radius: 32px;
  background: linear-gradient(145deg, #fff 0%, var(--orange-soft) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-wrap img { width: 200px; height: 200px; }

.float-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brown);
}
.float-chip small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.chip-1 { top: 6%; left: 2%; }
.chip-2 { bottom: 12%; right: 0; }
.chip-3 { bottom: -4%; left: 12%; }

/* ---------------- 区块通用 ---------------- */
.section { padding: 78px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head .kicker {
  display: inline-block;
  color: var(--orange-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 32px; color: var(--brown); line-height: 1.3; margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 16.5px; }

/* 卡片网格 */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card .card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 19px; color: var(--brown); margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--ink-soft); }

/* 场景步骤条 */
.scene-card { position: relative; }
.scene-num {
  position: absolute;
  top: 24px; right: 26px;
  font-size: 44px;
  font-weight: 800;
  color: rgba(247, 148, 30, 0.16);
  line-height: 1;
}

/* 平台标签 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--brown);
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover { border-color: var(--orange); color: var(--orange-deep); }
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* 数据条 */
.stats-band {
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-deep) 100%);
  color: #fff;
  padding: 54px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .stat-num { font-size: 34px; font-weight: 800; color: var(--orange-light); }
.stat .stat-label { font-size: 14.5px; opacity: 0.85; margin-top: 4px; }

/* ---------------- 页面头（内页） ---------------- */
.page-hero {
  background:
    radial-gradient(700px 320px at 90% -20%, rgba(247, 148, 30, 0.14), transparent 65%),
    #fff;
  border-bottom: 1px solid var(--line);
  padding: 60px 0 48px;
  text-align: center;
}
.page-hero h1 { font-size: 36px; color: var(--brown); margin-bottom: 12px; }
.page-hero p { color: var(--ink-soft); font-size: 17px; max-width: 640px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--orange-deep); }
.breadcrumb .sep { color: var(--line); }

/* ---------------- 下载页 ---------------- */
.download-main-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-top: -34px;
  position: relative;
  z-index: 5;
}
.download-main-card h2 { font-size: 26px; color: var(--brown); margin-bottom: 12px; }
.download-main-card .ver { color: var(--orange-deep); font-size: 15px; font-weight: 700; }
.download-main-card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 24px; }
.download-main-card .dl-note { font-size: 13.5px; margin-top: 14px; color: #a19284; }

.qr-panel {
  background: var(--orange-soft);
  border: 1px solid #f6ddb8;
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
}
.qr-panel .qr-title { font-size: 16px; font-weight: 700; color: var(--brown); margin-bottom: 16px; }
.qr-row { display: flex; gap: 20px; justify-content: space-around; }
.qr-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-item img {
  width: 132px; height: 132px;
  border-radius: 10px;
  border: 1px solid #f0dcc0;
  background: #fff;
  padding: 6px;
}
.qr-item .qr-label { font-size: 13.5px; font-weight: 600; color: var(--brown-mid); }

.install-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.install-block h3 { font-size: 19px; color: var(--brown); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.install-block h3 .os-badge {
  font-size: 12px;
  font-weight: 700;
  background: var(--orange-soft);
  color: var(--orange-deep);
  padding: 3px 10px;
  border-radius: 999px;
}
.install-block p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 12px; }

.code-block {
  background: var(--brown-deep);
  color: #f3e9df;
  border-radius: 8px;
  padding: 14px 18px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13.5px;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.6;
}
.code-block .cm { color: #b9a58f; }

.req-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.req-table th, .req-table td { padding: 14px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
.req-table th { background: var(--orange-soft); color: var(--brown); font-weight: 700; width: 180px; }
.req-table tr:last-child td { border-bottom: none; }
.req-table td { color: var(--ink-soft); }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--brown);
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .arrow {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange-soft);
  position: relative;
  transition: transform 0.25s;
}
.faq-q .arrow::before, .faq-q .arrow::after {
  content: "";
  position: absolute;
  background: var(--orange-deep);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-q .arrow::before { width: 10px; height: 2px; }
.faq-q .arrow::after { width: 2px; height: 10px; transition: opacity 0.2s; }
.faq-item.open .arrow { transform: rotate(90deg); }
.faq-item.open .arrow::after { opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a .faq-a-inner { padding: 0 24px 22px; color: var(--ink-soft); font-size: 15px; }
.faq-a .faq-a-inner p + p { margin-top: 8px; }
.faq-a code { background: var(--orange-soft); color: var(--orange-deep); padding: 2px 7px; border-radius: 5px; font-size: 13.5px; }

/* ---------------- CTA 条 ---------------- */
.cta-band {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 55%, var(--orange-deep) 100%);
  color: #fff;
  text-align: center;
  padding: 66px 0;
}
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { opacity: 0.92; margin-bottom: 28px; font-size: 16.5px; }
.cta-band .btn-primary { background: #fff; color: var(--orange-deep); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--brown-deep);
  color: #cbbba9;
  padding: 56px 0 0;
  font-size: 14.5px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; }
.footer-desc { line-height: 1.8; opacity: 0.85; }
.footer-col h4 { color: #fff; font-size: 15.5px; margin-bottom: 16px; font-weight: 600; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { opacity: 0.85; transition: color 0.2s, opacity 0.2s; }
.footer-col a:hover { color: var(--orange-light); opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0.7;
}

/* ---------------- 下载弹窗 ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 33, 27, 0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.modal-overlay.show { display: flex;  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
button { outline: none } 
.modal {
  background: #fff;
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  padding: 36px 32px 30px;
  position: relative;
  text-align: center;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { transform: translateY(16px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--brown-mid);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--orange); color: #fff; }
.modal h3 { font-size: 22px; color: var(--brown); margin-bottom: 6px; }
.modal .modal-sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; }
.modal .qr-row { gap: 28px; }
.modal .qr-item img { width: 150px; height: 150px; }
.modal .qr-tip { margin-top: 20px; font-size: 13px; color: #a19284; }

/* ---------------- 正文内链 ---------------- */
.card p a,
.faq-a .faq-a-inner a,
.note-center a {
  color: var(--orange-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(247, 148, 30, 0.35);
  text-underline-offset: 3px;
}
.card p a:hover,
.faq-a .faq-a-inner a:hover,
.note-center a:hover { text-decoration-color: var(--orange-deep); }

.note-center { text-align: center; margin-top: 18px; font-size: 14px; color: #a19284; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0; text-align: center; }
  .hero .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-visual { margin-top: 10px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .download-main-card { grid-template-columns: 1fr; padding: 32px 26px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a.nav-link { padding: 12px 14px; }
  .header-inner .btn { display: none; }
  .hero h1 { font-size: 32px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 26px; }
  .page-hero h1 { font-size: 28px; }
  .qr-row { flex-direction: column; align-items: center; }
  .modal .qr-row { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
