:root {
  --ink: #0a0705;
  --ink-2: #15100c;
  --paper: #f0e6d0;
  --muted: #a99880;
  --gold: #d8a94a;
  --gold-light: #f5d78c;
  --red: #9d211b;
  --red-bright: #d4472f;
  --line: rgba(218, 176, 91, .23);
  --content: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: #e8decb;
  background:
    radial-gradient(circle at 80% 10%, rgba(119, 45, 24, .12), transparent 32rem),
    #0d0a07;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: .18;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 1000; padding: 10px 16px; background: var(--gold); color: #17100a; transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 42px;
  padding: 0 max(32px, calc((100vw - 1400px) / 2));
  background: linear-gradient(180deg, rgba(7, 5, 4, .92), rgba(7, 5, 4, .64));
  border-bottom: 1px solid rgba(226, 181, 89, .18);
  backdrop-filter: blur(8px);
  transition: background .25s, height .25s;
}
.site-header.is-scrolled { height: 68px; background: rgba(8, 6, 4, .96); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  font: 700 24px/1 KaiTi, STKaiti, serif;
  color: #160b06; background: linear-gradient(135deg, var(--gold-light), #a36725);
  clip-path: polygon(50% 0, 100% 27%, 90% 84%, 50% 100%, 10% 84%, 0 27%);
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { color: #f1dec0; font: 700 22px/1 KaiTi, STKaiti, serif; letter-spacing: .12em; }
.brand-copy small { margin-top: 7px; color: #856d4c; font: 9px/1 Arial; letter-spacing: .22em; }
.site-nav { justify-self: center; display: flex; align-items: center; gap: clamp(22px, 3.5vw, 52px); }
.site-nav a { position: relative; padding: 26px 0; color: #ccbfa9; font-size: 14px; letter-spacing: .12em; transition: color .2s; }
.site-nav a::after { content: ""; position: absolute; left: 50%; bottom: 17px; width: 0; height: 2px; background: var(--red-bright); transform: translateX(-50%); transition: width .2s; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold-light); }
.site-nav a:hover::after, .site-nav a:focus-visible::after { width: 24px; }
.header-download { padding: 10px 19px; border: 1px solid #8f692f; color: var(--gold-light); font-size: 13px; letter-spacing: .12em; background: rgba(79, 44, 14, .15); transition: .2s; }
.header-download:hover, .header-download:focus-visible { background: var(--gold); color: #170f08; }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.nav-toggle > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px; background: #dbc18a; }

.hero { position: relative; min-height: min(940px, 100vh); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -3; background-image: url('assets/tianfu-heroes-v2.webp'); background-size: cover; background-position: 61% center; transform: scale(1.025); filter: saturate(.96) brightness(.68) contrast(1.1); }
.hero-vignette { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(6,4,3,.98) 0%, rgba(6,4,3,.9) 28%, rgba(22,8,4,.28) 60%, rgba(24,7,4,.44) 100%), radial-gradient(circle at 69% 42%, transparent 0 20%, rgba(8,4,2,.2) 52%, rgba(5,3,2,.72) 100%), linear-gradient(0deg, #0d0a07 0%, transparent 24%, rgba(0,0,0,.16) 100%); }
.hero::before { content: ""; position: absolute; inset: 82px 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(230, 183, 82, .45), transparent); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, #0d0a07); pointer-events: none; }
.hero-inner { width: var(--content); margin: 0 auto; padding-top: 86px; }
.eyebrow { display: flex; align-items: center; gap: 16px; width: max-content; margin: 0 0 18px; color: #c7a66f; font-size: 12px; letter-spacing: .28em; }
.eyebrow span { width: 32px; height: 1px; background: #9c6e31; }
.hero h1 { margin: 0; width: max-content; font: 800 clamp(72px, 9vw, 138px)/.87 KaiTi, STKaiti, "Microsoft YaHei", serif; letter-spacing: -.09em; text-shadow: 0 6px 34px rgba(0,0,0,.7); }
.hero h1 span { color: transparent; background: linear-gradient(180deg, #fff0bd 4%, #e1b350 46%, #8d481f 98%); background-clip: text; -webkit-background-clip: text; -webkit-text-stroke: 1px rgba(255, 229, 158, .35); }
.hero h1 em { margin-left: .08em; color: transparent; background: linear-gradient(180deg, #ffb55d, #cd3825 62%, #6f140f); background-clip: text; -webkit-background-clip: text; -webkit-text-stroke: 1px rgba(255, 186, 94, .28); font-style: normal; transform: translateY(.1em); display: inline-block; }
.hero-subtitle { margin: 24px 0 6px; color: #e8d2a9; font: 400 clamp(22px, 2.7vw, 36px)/1.3 KaiTi, STKaiti, serif; letter-spacing: .22em; }
.hero-summary { max-width: 580px; margin: 0; color: #b5aa9b; font-size: 16px; letter-spacing: .04em; }
.hero-actions { display: flex; align-items: stretch; gap: 14px; margin-top: 34px; }
.button { min-width: 168px; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid rgba(218, 170, 70, .55); text-align: center; letter-spacing: .1em; transition: transform .2s, background .2s, border-color .2s, color .2s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { flex-direction: column; min-width: 225px; color: #160d07; background: linear-gradient(135deg, #efca73, #b8782b 72%); border-color: #f0ce7f; box-shadow: 0 10px 36px rgba(117, 59, 14, .27); font-weight: 700; }
.button-primary small { margin-top: 1px; font-size: 12px; font-weight: 400; letter-spacing: .06em; opacity: .72; }
.button-primary:hover { background: linear-gradient(135deg, #ffdd88, #cc8732); }
.button-ghost { color: #ded0ba; background: rgba(12, 9, 6, .34); border-color: rgba(218, 170, 70, .35); }
.button-ghost:hover { color: var(--gold-light); border-color: var(--gold); background: rgba(48, 28, 10, .48); }
.button-compact { flex-direction: row; min-width: 0; min-height: 48px; padding-inline: 21px; }
.hero-status { display: flex; align-items: center; gap: 9px; margin-top: 28px; color: #a99e8e; font-size: 14px; }
.hero-status strong { color: #82b87a; font-weight: 500; }
.hero-status span:last-child::before { content: "/"; margin-right: 9px; color: #625748; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #67bd70; box-shadow: 0 0 0 5px rgba(89, 184, 102, .1), 0 0 14px #5dca6d; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(89,184,102,0), 0 0 18px #5dca6d; } }
.scroll-cue { position: absolute; left: 50%; bottom: 32px; z-index: 2; display: grid; justify-items: center; gap: 8px; transform: translateX(-50%); color: #8c7960; font-size: 8px; letter-spacing: .3em; }
.scroll-cue i { display: block; width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); }

.section { width: var(--content); margin: 0 auto; padding: 112px 0; }
.section-heading { margin-bottom: 48px; text-align: center; }
.section-heading p { margin: 0 0 5px; color: var(--red-bright); font-size: 10px; font-weight: 700; letter-spacing: .38em; }
.section-heading h2 { margin: 0; color: var(--paper); font: 700 clamp(34px, 4.2vw, 52px)/1.2 KaiTi, STKaiti, serif; letter-spacing: .08em; }
.section-heading > span { display: block; margin-top: 7px; color: #8d8171; font-size: 14px; letter-spacing: .08em; }
.section-heading-left { text-align: left; }
.server-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr); align-items: center; gap: 64px; }
.server-list { display: grid; gap: 14px; }
.server-card { position: relative; display: grid; grid-template-columns: 66px 1fr auto; align-items: center; gap: 20px; min-height: 104px; padding: 18px 20px; background: linear-gradient(110deg, rgba(39, 29, 20, .85), rgba(17, 13, 10, .86)); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, transform .2s; }
.server-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #7f4d22; }
.server-card.is-hot::before { background: var(--red-bright); box-shadow: 0 0 16px rgba(223, 57, 34, .55); }
.server-card:hover { transform: translateX(4px); border-color: rgba(218, 176, 91, .48); }
.server-index { color: #584b3c; font: 700 40px/1 Georgia, serif; border-right: 1px solid var(--line); }
.server-info h3 { display: inline; margin: 0; color: #eadabb; font-size: 17px; font-weight: 600; letter-spacing: .07em; }
.server-info p { margin: 6px 0 0; color: #8c8173; font-size: 14px; }
.server-name span { display: inline-block; margin-left: 9px; padding: 1px 7px; color: #e8b97b; background: rgba(148, 45, 26, .4); border: 1px solid rgba(190, 71, 45, .35); font-size: 10px; vertical-align: 2px; }
.server-state { display: flex; align-items: center; gap: 8px; color: #7fc280; font-size: 14px; }
.server-state i { width: 6px; height: 6px; border-radius: 50%; background: #6fc477; box-shadow: 0 0 10px #6fc477; }
.server-note { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; color: #8f8373; border: 1px dashed rgba(218, 176, 91, .18); font-size: 14px; }
.server-note p { margin: 0; }
.note-icon { flex: 0 0 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #d1aa60; border: 1px solid #9b763c; font: 700 11px/1 serif; }
.launcher-preview { position: relative; margin: 0; padding: 9px; background: linear-gradient(145deg, #3a160d, #120b08); border: 1px solid #8a5428; box-shadow: 0 28px 70px rgba(0,0,0,.42), 0 0 44px rgba(146,40,22,.13); }
.launcher-preview::before, .battle-frame::before { content: ""; position: absolute; inset: -7px; z-index: -1; border: 1px solid rgba(168, 111, 45, .25); }
.launcher-preview img { width: 100%; aspect-ratio: 1101 / 710; object-fit: cover; border: 1px solid rgba(240,187,83,.18); }
.launcher-preview figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 13px 5px 3px; color: #84735d; font-size: 11px; letter-spacing: .08em; }
.launcher-preview figcaption strong { color: #bba278; font-weight: 500; }

.feature-band { position: relative; padding: 112px max(24px, calc((100vw - 1180px) / 2)); background: linear-gradient(rgba(12,8,6,.87), rgba(8,6,4,.94)), url('assets/town.webp') center 49% / cover fixed; border-block: 1px solid rgba(210, 157, 70, .16); overflow: hidden; }
.feature-band::before { content: "天覆"; position: absolute; left: -22px; bottom: -85px; color: rgba(188, 133, 54, .045); font: 800 260px/1 KaiTi, serif; letter-spacing: -.16em; pointer-events: none; }
.feature-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: 1180px; margin: 0 auto; background: var(--line); border: 1px solid var(--line); }
.feature-card { position: relative; min-height: 302px; padding: 45px 30px 34px; background: rgba(12, 9, 7, .9); transition: background .25s, transform .25s; overflow: hidden; }
.feature-card:hover { z-index: 2; transform: translateY(-5px); background: rgba(33, 19, 11, .96); }
.feature-number { position: absolute; top: 14px; right: 18px; color: rgba(219, 169, 72, .15); font: 700 42px/1 KaiTi, serif; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 28px; color: #ddb55f; border: 1px solid #8b6332; transform: rotate(45deg); font: 22px/1 Georgia, serif; }
.feature-icon::first-letter { transform: rotate(-45deg); }
.feature-card h3 { margin: 0 0 13px; color: #e7d6b8; font: 600 21px/1.2 KaiTi, STKaiti, serif; letter-spacing: .08em; }
.feature-card p { margin: 0; color: #918677; font-size: 15px; }

.guide-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.steps li { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid rgba(211, 166, 80, .12); }
.steps li > span { color: #8b5a2b; font: 700 24px/1 Georgia, serif; }
.steps h3 { margin: 0 0 3px; color: #d7c6aa; font-size: 16px; letter-spacing: .08em; }
.steps p { margin: 0; color: #8d8376; font-size: 14px; }
.guide-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; }
.text-button { border: 0; padding: 10px 0; color: #ad9168; background: transparent; border-bottom: 1px solid #674a28; font: inherit; font-size: 14px; cursor: pointer; }
.text-button:hover { color: var(--gold-light); border-color: var(--gold); }
.copy-feedback { min-height: 20px; margin: 7px 0 0; color: #7fb47b; font-size: 11px; }
.battle-frame { position: relative; margin: 0; padding: 9px; background: #23170e; border: 1px solid #5c3f24; box-shadow: 0 28px 80px rgba(0,0,0,.5); }
.battle-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.battle-frame figcaption { position: absolute; right: 9px; bottom: 9px; left: 9px; display: flex; justify-content: space-between; padding: 13px 16px; background: linear-gradient(90deg, rgba(9,6,4,.94), rgba(9,6,4,.58)); color: #d5c09a; font-size: 12px; }
.battle-frame figcaption span { color: #927d60; }

.news-section { padding-top: 72px; }
.news-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 42px; }
.news-main { display: grid; grid-template-columns: 90px 1fr; gap: 24px; min-height: 230px; padding: 40px; background: linear-gradient(135deg, rgba(120, 38, 23, .22), rgba(28, 18, 12, .68)); border: 1px solid rgba(180, 100, 47, .22); }
.news-date { height: fit-content; padding-right: 22px; border-right: 1px solid var(--line); text-align: center; }
.news-date strong { display: block; color: #e6bd69; font: 700 48px/.9 Georgia, serif; }
.news-date span { color: #806f59; font-size: 10px; }
.news-tag { display: inline-block; padding: 2px 9px; color: #e9bf6f; background: #762219; font-size: 10px; }
.news-main h3 { margin: 14px 0 12px; color: #e8d7bb; font: 600 24px/1.35 KaiTi, serif; }
.news-main p { margin: 0; color: #918677; font-size: 15px; }
.news-list { border-top: 1px solid var(--line); }
.news-list article { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.news-list time { padding-top: 2px; color: #776b5b; font: 12px/1.5 Georgia, serif; }
.news-list h3 { margin: 0 0 3px; color: #cfc0a6; font-size: 15px; font-weight: 500; }
.news-list p { margin: 0; color: #7f7569; font-size: 14px; }
.news-list .is-disabled { opacity: .55; }

.faq-section { padding: 100px max(24px, calc((100vw - 860px) / 2)) 120px; background: #090705; border-top: 1px solid rgba(211, 165, 76, .1); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 2px; color: #cfc0a6; cursor: pointer; list-style: none; font-size: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: #a37636; font-size: 20px; font-weight: 300; transition: transform .2s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: -4px 0 0; padding: 0 42px 22px 2px; color: #8a8175; font-size: 14px; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 36px; padding: 38px max(28px, calc((100vw - 1180px) / 2)); color: #6f6558; background: #050403; border-top: 1px solid rgba(211, 165, 76, .12); font-size: 11px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand > span { width: 38px; height: 38px; display: grid; place-items: center; color: #1b1008; background: #9a6b2f; font: 700 21px/1 KaiTi, serif; }
.footer-brand div { display: grid; }
.footer-brand strong { color: #bdab8e; font: 600 16px/1.2 KaiTi, serif; letter-spacing: .1em; }
.footer-brand small { margin-top: 4px; color: #5d554a; font-size: 9px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: #bda16f; }
.copyright { color: #4d463d; }

.download-toast { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: min(360px, calc(100vw - 32px)); padding: 16px 18px; color: #d8c7a9; background: rgba(12, 9, 6, .97); border: 1px solid #795329; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.download-toast[hidden] { display: none; }
.download-toast-copy { display: grid; gap: 3px; }
.download-toast-copy strong { color: #e7c576; font-size: 14px; }
.download-toast-copy span { color: #9a8c79; font-size: 12px; }
.download-progress { height: 3px; margin-top: 12px; background: #2c2118; overflow: hidden; }
.download-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #9d211b, #e5b858); transition: width .2s; }
[data-download-client].is-downloading { pointer-events: none; opacity: .68; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

@media (max-width: 980px) {
  .site-header { gap: 20px; padding-inline: 24px; }
  .site-nav { gap: 20px; }
  .server-layout, .guide-section { grid-template-columns: 1fr; gap: 46px; }
  .launcher-preview { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .news-layout { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer > p { grid-column: 1 / -1; grid-row: 2; }
  .copyright { display: none; }
}

@media (max-width: 760px) {
  :root { --content: min(100% - 30px, 620px); }
  .site-header { height: 66px; grid-template-columns: 1fr auto; padding-inline: 16px; }
  .site-header.is-scrolled { height: 60px; }
  .brand-copy strong { font-size: 19px; }
  .brand-copy small, .header-download { display: none; }
  .nav-toggle { display: block; grid-column: 2; grid-row: 1; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 0; max-height: 0; overflow: hidden; opacity: 0; background: rgba(8,6,4,.98); border-bottom: 1px solid var(--line); transition: max-height .25s, opacity .2s; }
  .site-nav.is-open { max-height: 380px; opacity: 1; }
  .site-nav a { padding: 14px 22px; border-top: 1px solid rgba(211,165,76,.08); }
  .site-nav a::after { display: none; }
  .hero { min-height: 760px; }
  .hero-media { background-position: 61% center; }
  .hero-vignette { background: linear-gradient(90deg, rgba(6,4,3,.92), rgba(6,4,3,.44)), linear-gradient(0deg, #0d0a07, transparent 45%); }
  .hero-inner { padding-top: 66px; }
  .eyebrow { font-size: 9px; gap: 9px; letter-spacing: .16em; }
  .eyebrow span { width: 16px; }
  .hero h1 { font-size: clamp(63px, 21vw, 94px); }
  .hero-subtitle { margin-top: 20px; font-size: 22px; letter-spacing: .12em; }
  .hero-summary { font-size: 13px; }
  .hero-actions { align-items: stretch; flex-direction: column; width: min(100%, 320px); }
  .button { width: 100%; }
  .hero-status { flex-wrap: wrap; }
  .scroll-cue { display: none; }
  .section { padding: 82px 0; }
  .section-heading { margin-bottom: 34px; }
  .server-layout { gap: 30px; }
  .server-card { grid-template-columns: 48px 1fr; gap: 13px; padding: 16px 14px; }
  .server-index { font-size: 29px; }
  .server-state { grid-column: 2; }
  .launcher-preview figcaption { display: grid; gap: 2px; }
  .feature-band { padding-block: 82px; background-attachment: scroll; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; padding: 36px 27px; }
  .guide-section { gap: 34px; }
  .guide-actions { align-items: stretch; flex-direction: column; gap: 9px; }
  .text-button { align-self: flex-start; }
  .battle-frame figcaption { position: static; }
  .battle-frame figcaption span { display: none; }
  .news-main { grid-template-columns: 1fr; padding: 28px; }
  .news-date { display: flex; align-items: baseline; gap: 8px; padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .news-date strong { font-size: 34px; }
  .faq-section { padding-block: 82px; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; }
  .site-footer > p { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
