/* 云天龙 官网样式 —— 水墨武侠：宣纸、浓墨、朱砂 */
:root {
  --paper: #f2ebdc;
  --paper-2: #e8dec8;
  --paper-3: #dccfb2;
  --paper-hi: #f9f5ea;
  --ink: #1a1814;
  --ink-2: #3a352f;
  --ink-3: #685f53;
  --ink-4: #978c7c;
  --red: #b9352a;
  --red-2: #93241a;
  --red-hi: #cf4733;
  --line: rgba(26, 24, 20, .14);
  --line-2: rgba(26, 24, 20, .3);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --nav-h: 70px;
  --brush: polygon(1.5% 22%, 6% 10%, 18% 7%, 34% 9%, 50% 6%, 66% 8%, 82% 5%, 94% 9%, 98.5% 18%, 99.6% 50%, 98% 82%, 93% 92%, 78% 95%, 62% 92%, 46% 95%, 30% 92%, 14% 95%, 5% 90%, 1% 76%, 0% 50%);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--serif); font-size: 16px; line-height: 1.8; color: var(--ink);
  background-color: var(--paper);
  /* 宣纸纤维 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
b { font-weight: 700; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
[hidden] { display: none !important; }

/* ---------- 按钮：毛笔刷出来的形状 ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 34px; overflow: hidden;
  font-size: 17px; font-weight: 700; letter-spacing: .14em; white-space: nowrap; color: var(--paper-hi);
  background: var(--ink); clip-path: var(--brush);
  transition: transform .25s, background-color .25s;
}
.btn svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.btn small { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: 0; opacity: .75; }
.btn::after { /* 墨晕：鼠标移上去从中心晕开 */
  content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%);
  transform: scale(0); transition: transform .5s;
}
.btn:hover { transform: translateY(-2px); background-color: var(--ink-2); }
.btn:hover::after { transform: scale(1); }
.btn-red { background-color: var(--red); }
.btn-red:hover { background-color: var(--red-hi); }
.btn.off { background-color: #7d766b; }
.btn:focus-visible { outline: none; transform: translateY(-2px); box-shadow: inset 0 0 0 3px rgba(249, 245, 234, .7); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top); transition: background-color .35s, box-shadow .35s;
}
.nav.solid { background: rgba(242, 235, 220, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav.solid::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 12px; pointer-events: none;
  background: url("images/stroke.svg") center / 100% 100% no-repeat; opacity: .55;
}
.nav-in { max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 28px; }
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 14px; font-size: 16px; letter-spacing: .2em; color: var(--ink-2); transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px; margin-left: -3px;
  background: var(--red); transform: rotate(45deg) scale(0); transition: transform .25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.on { color: var(--ink); font-weight: 700; }
.nav-links a.on::after, .nav-links a:hover::after { transform: rotate(45deg) scale(1); }
.nav-cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 22px; font-size: 15px; font-weight: 700; letter-spacing: .2em;
  color: var(--paper-hi); background: var(--red); clip-path: var(--brush); transition: background-color .2s;
}
.nav-cta:hover { background: var(--red-hi); }
.nav-menu { display: none; width: 42px; height: 42px; position: relative; }
.nav-menu i { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.nav-menu i:nth-child(1) { top: 14px; } .nav-menu i:nth-child(2) { top: 20px; } .nav-menu i:nth-child(3) { top: 26px; }
.nav.open .nav-menu i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-menu i:nth-child(2) { opacity: 0; }
.nav.open .nav-menu i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; min-height: max(660px, 100vh); min-height: max(660px, 100svh); overflow: hidden;
  display: flex; align-items: center; padding: calc(var(--nav-h) + 30px) 0 110px;
}
.hero-bg {
  position: absolute; inset: -2%; background: url("images/bg.jpg") 68% 55% / cover no-repeat;
  animation: breathe 28s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06) translate(-1%, -.5%); } }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(rgba(242, 235, 220, 0), var(--paper)); pointer-events: none; }
/* 流动的云雾 */
.mist {
  position: absolute; left: 0; width: 200%; pointer-events: none; opacity: .85;
  background:
    radial-gradient(28% 50% at 12% 50%, rgba(249, 245, 234, .95), rgba(249, 245, 234, 0) 70%),
    radial-gradient(22% 40% at 38% 60%, rgba(249, 245, 234, .85), rgba(249, 245, 234, 0) 70%),
    radial-gradient(30% 50% at 62% 45%, rgba(249, 245, 234, .9), rgba(249, 245, 234, 0) 70%),
    radial-gradient(24% 45% at 88% 55%, rgba(249, 245, 234, .85), rgba(249, 245, 234, 0) 70%);
  filter: blur(6px);
}
.mist.m1 { bottom: 4%; height: 34%; animation: drift 70s linear infinite; }
.mist.m2 { bottom: 22%; height: 26%; opacity: .55; animation: drift 110s linear infinite reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* 飘落的梅花瓣 */
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.petals i {
  position: absolute; top: -20px; width: var(--s, 12px); height: calc(var(--s, 12px) * .72);
  border-radius: 70% 0 70% 0; background: radial-gradient(circle at 30% 30%, #e0705c, #b9352a 70%);
  opacity: .85; animation: fall var(--d, 14s) linear var(--delay, 0s) infinite;
}
@keyframes fall {
  0% { transform: translate(0, -5vh) rotate(0); opacity: 0; }
  8% { opacity: .9; }
  50% { transform: translate(var(--dx1, -6vw), 50vh) rotate(260deg); }
  100% { transform: translate(var(--dx2, -14vw), 105vh) rotate(560deg); opacity: .2; }
}
/* 飞鸟 */
.flock { position: absolute; top: 16%; left: 0; width: 120px; height: auto; pointer-events: none; animation: fly 46s linear infinite; }
.flock path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.flock .b { transform-box: fill-box; transform-origin: center; animation: flap .7s ease-in-out infinite alternate; }
.flock .b2 { animation-delay: .25s; } .flock .b3 { animation-delay: .45s; }
@keyframes fly { from { transform: translate(-160px, 40px) scale(.8); } to { transform: translate(calc(100vw + 40px), -60px) scale(.6); } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.35); } }

.hero-in { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; }
.hero-main { width: min(680px, 58%); }
.hero-logo { position: relative; width: 100%; line-height: 0; }
.logo-ink { width: 100%; height: auto; animation: write 1.7s cubic-bezier(.55, .05, .25, 1) .2s both; }
.logo-seal { position: absolute; left: 92.66%; top: 11.21%; width: 6.84%; height: auto; animation: stamp .5s cubic-bezier(.3, 1.6, .5, 1) 1.75s both; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -2% 0 0); } }
@keyframes stamp { 0% { opacity: 0; transform: scale(2) rotate(-14deg); } 60% { opacity: 1; transform: scale(.92) rotate(3deg); } 100% { opacity: 1; transform: none; } }
.hero-slogan { margin-top: 18px; font-size: clamp(16px, 1.5vw, 20px); letter-spacing: .32em; color: var(--ink-2); animation: rise .9s ease 1.9s both; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; animation: rise .9s ease 2.05s both; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: 8px; padding: 2px 14px; font-size: 14px; letter-spacing: .2em; color: var(--ink-2);
  border: 1px solid var(--line-2); background: rgba(249, 245, 234, .55);
}
.hero-badges li::before { content: ""; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; animation: rise .9s ease 2.2s both; }
.hero-note { margin-top: 14px; font-size: 13px; letter-spacing: .1em; color: var(--ink-3); animation: rise .9s ease 2.3s both; }
.hero-note:empty { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-side { position: absolute; right: 3.5%; top: calc(var(--nav-h) + 5vh); z-index: 2; }
.vpoem { display: flex; flex-direction: row-reverse; gap: 12px; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: .5em; color: var(--ink); animation: rise 1.2s ease 2.4s both; }
.vpoem span { writing-mode: vertical-rl; text-orientation: upright; text-shadow: 0 0 12px rgba(249, 245, 234, .9); }
.vpoem span:last-child { margin-top: 2.2em; color: var(--ink-2); }
.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .4em; color: var(--ink-3); }
.scroll-hint span { writing-mode: vertical-rl; }
.scroll-hint i { width: 1px; height: 40px; background: linear-gradient(var(--ink-3), rgba(104, 95, 83, 0)); animation: hint 2s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 栏目通用 ---------- */
.sec { position: relative; padding: 110px 0 90px; }
.sec-head { position: relative; text-align: center; }
.sec-title { height: 66px; width: auto; margin: 0 auto; }
.sec-en { display: block; margin-top: 8px; font-family: var(--sans); font-size: 12px; letter-spacing: .5em; color: var(--ink-4); }
.sec-head::before, .sec-head::after {
  content: ""; position: absolute; top: 34px; width: min(22vw, 240px); height: 12px; opacity: .45;
  background: url("images/stroke.svg") center / 100% 100% no-repeat;
}
.sec-head::before { right: calc(50% + 190px); transform: scaleX(-1); }
.sec-head::after { left: calc(50% + 190px); }
.sec-head.short::before { right: calc(50% + 120px); } .sec-head.short::after { left: calc(50% + 120px); }
.sec-lead { margin-top: 20px; text-align: center; font-size: 16px; letter-spacing: .24em; color: var(--ink-3); }
/* 标题出现：像毛笔从左往右写出来（不支持 IntersectionObserver 时直接显示） */
.js .sec-head.pre .sec-title { clip-path: inset(0 100% 0 0); }
.js .sec-head.in .sec-title { animation: write 1.2s cubic-bezier(.55, .05, .25, 1) both; }
.js .reveal.pre { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; transition-delay: var(--rd, 0s); }

/* ---------- 游戏介绍 ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 60px; }
.scroll-card { position: relative; filter: drop-shadow(0 16px 26px rgba(70, 50, 25, .16)); }
.rod {
  position: relative; height: 22px; margin: 0 -6px; border-radius: 11px;
  background: linear-gradient(180deg, #6b4a2c, #3a2614 45%, #23170c 55%, #573a20);
}
.rod::before, .rod::after { content: ""; position: absolute; top: -3px; width: 18px; height: 28px; border-radius: 6px; background: linear-gradient(180deg, #c49a55, #7a5626 50%, #a77d3d); }
.rod::before { left: -12px; } .rod::after { right: -12px; }
.scroll-body {
  margin: 0 12px; padding: 44px 48px 40px;
  background: linear-gradient(180deg, rgba(220, 207, 178, .45), rgba(249, 245, 234, 0) 12%, rgba(249, 245, 234, 0) 88%, rgba(220, 207, 178, .45)), var(--paper-hi);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  font-size: 17px; line-height: 2.15; color: var(--ink-2);
}
.scroll-body p { text-indent: 2em; }
.scroll-body p + p { margin-top: .9em; }
.scroll-body p:first-child { text-indent: 0; }
.scroll-body p:first-child::first-letter { float: left; margin: 8px 12px 0 0; font-size: 3.1em; line-height: 1; font-weight: 900; color: var(--red); }
.facts { position: relative; padding: 10px 0 0 6px; }
.facts-seal { position: absolute; right: 0; top: -54px; width: 58px; height: auto; transform: rotate(5deg); }
.facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 26px; }
.facts dl > div { position: relative; padding: 2px 0 2px 20px; }
.facts dl > div::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--ink); clip-path: polygon(20% 0, 100% 3%, 80% 100%, 0 96%); }
.facts dl > div:nth-child(odd)::before { background: var(--red); }
.facts dt { font-family: var(--sans); font-size: 13px; letter-spacing: .3em; color: var(--ink-4); }
.facts dd { margin-top: 4px; font-size: clamp(17px, 1.55vw, 22px); font-weight: 700; letter-spacing: .08em; color: var(--ink); line-height: 1.5; }

/* ---------- 门派 ---------- */
.mp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 34px 18px; margin-top: 56px; }
.mp { text-align: center; }
.mp-ring { position: relative; width: 100%; max-width: 132px; aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.mp-ring::before { /* 墨圈 */
  content: ""; position: absolute; inset: 0; background: url("images/enso.svg") center / contain no-repeat;
  transform: rotate(var(--rot, 0deg)); transition: transform .6s cubic-bezier(.3, .8, .3, 1);
}
.mp-ring::after { /* 悬停时墨晕铺开 */
  content: ""; position: absolute; inset: 15%; border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 24, 20, .92) 0 55%, rgba(26, 24, 20, .55) 70%, rgba(26, 24, 20, 0) 72%);
  transform: scale(.2); opacity: 0; transition: transform .45s cubic-bezier(.3, .8, .3, 1), opacity .3s;
}
.mp-name { position: relative; z-index: 1; font-size: 26px; font-weight: 900; letter-spacing: .06em; line-height: 1.2; transition: color .3s; }
.mp-name.long { font-size: 21px; }
.mp-role { margin-top: 10px; font-family: var(--sans); font-size: 12.5px; letter-spacing: .12em; color: var(--red); }
.mp-desc { margin-top: 2px; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.mp:hover .mp-ring::before, .mp:focus-within .mp-ring::before { transform: rotate(calc(var(--rot, 0deg) + 50deg)); }
.mp:hover .mp-ring::after, .mp:focus-within .mp-ring::after { transform: scale(1); opacity: 1; }
.mp:hover .mp-name, .mp:focus-within .mp-name { color: var(--paper-hi); }

/* ---------- 特色玩法 ---------- */
.ft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 60px; }
.ft {
  position: relative; padding: 34px 30px 30px; background: rgba(249, 245, 234, .72); border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.ft::before, .ft::after { content: ""; position: absolute; width: 26px; height: 26px; border-color: var(--ink); border-style: solid; transition: width .3s, height .3s; }
.ft::before { left: -1px; top: -1px; border-width: 3px 0 0 3px; }
.ft::after { right: -1px; bottom: -1px; border-width: 0 3px 3px 0; }
.ft:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(70, 50, 25, .12); }
.ft:hover::before, .ft:hover::after { width: 46px; height: 46px; }
.ft-ic { width: 62px; height: 62px; }
.ft-ic svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ft-ic svg .r { stroke: var(--red); }
.ft-ic svg .f { fill: var(--red); stroke: none; }
.ft h3 { margin-top: 16px; font-size: 22px; letter-spacing: .22em; }
.ft p { margin-top: 8px; font-size: 15px; line-height: 1.9; color: var(--ink-3); }
.ft-no { position: absolute; right: 22px; top: 18px; font-size: 40px; font-weight: 900; line-height: 1; color: rgba(26, 24, 20, .06); }

/* ---------- 下载通道 ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin-top: 56px; align-items: stretch; }
.dl-card { position: relative; display: flex; flex-direction: column; filter: drop-shadow(0 16px 24px rgba(70, 50, 25, .14)); }
.dl-card .rod { margin: 0; }
.dl-hang { position: relative; height: 34px; }
.dl-hang::before { content: ""; position: absolute; left: 50%; top: 0; width: 56%; height: 34px; transform: translateX(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 34' preserveAspectRatio='none'%3E%3Cpath d='M50 1 1 34M50 1 99 34' fill='none' stroke='%235b4630' stroke-width='1.4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.dl-hang::after { content: ""; position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #5b4630; }
.dl-body {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; margin: 0 10px; padding: 34px 26px 28px; text-align: center;
  background: linear-gradient(180deg, rgba(220, 207, 178, .5), rgba(249, 245, 234, 0) 10%), var(--paper-hi);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.dl-card .rod.bot { margin-top: -2px; }
.dl-card.is-rec .dl-body { background: linear-gradient(180deg, rgba(185, 53, 42, .14), rgba(249, 245, 234, 0) 14%), var(--paper-hi); }
.dl-rec {
  position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 22px; font-weight: 900; color: var(--paper-hi); background: var(--red); border-radius: 4px; transform: rotate(8deg);
  box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4.5px rgba(249, 245, 234, .8);
}
.dl-ic { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); }
.is-rec .dl-ic { background: var(--red); }
.dl-ic svg { width: 38px; height: 38px; fill: var(--paper-hi); }
.dl-body h3 { margin-top: 16px; font-size: 25px; letter-spacing: .3em; line-height: 1.3; padding-left: .3em; }
.dl-body h3 small { display: block; margin-top: 4px; font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .25em; color: var(--ink-4); }
.dl-meta { display: flex; justify-content: center; margin-top: 16px; }
.dl-meta li { padding: 0 14px; line-height: 1.35; }
.dl-meta li + li { border-left: 1px solid var(--line-2); }
.dl-meta b { display: block; font-size: 15px; }
.dl-meta small { font-family: var(--sans); font-size: 11px; color: var(--ink-4); }
.dl-desc { margin-top: 16px; font-size: 15px; line-height: 1.85; color: var(--ink-3); }
.dl-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.dl-tags span { padding: 1px 10px; font-family: var(--sans); font-size: 12px; color: var(--ink-3); border: 1px solid var(--line-2); }
.dl-act { width: 100%; margin-top: auto; padding-top: 24px; }
.dl-act .btn { width: 100%; max-width: 280px; }
.dl-guide.plain { color: var(--ink-4); border-bottom-color: transparent; }
.dl-guide { display: inline-block; margin-top: 12px; font-size: 14px; letter-spacing: .1em; color: var(--red); border-bottom: 1px dashed rgba(185, 53, 42, .5); }
.dl-mirrors { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 10px; font-family: var(--sans); font-size: 13px; color: var(--ink-4); }
.dl-mirrors a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.dl-qr { display: flex; align-items: center; gap: 20px; max-width: 520px; margin: 44px auto 0; padding: 18px 22px; background: var(--paper-hi); border: 1px dashed var(--line-2); }
.dl-qr img { width: 132px; height: 132px; padding: 6px; background: #fff; }
.dl-qr b { font-size: 18px; letter-spacing: .2em; }
.dl-qr p { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.dl-tips { max-width: 780px; margin: 40px auto 0; }
.dl-tips li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 2; color: var(--ink-3); }
.dl-tips li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }
.dl-tips b { color: var(--ink); }

/* ---------- 页脚 ---------- */
.foot { position: relative; margin-top: 40px; padding: 56px 0 calc(44px + env(safe-area-inset-bottom)); text-align: center; background: var(--paper-2); }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 14px; background: url("images/stroke.svg") center / 100% 100% no-repeat; opacity: .7; }
.foot-logo { height: 52px; width: auto; margin: 0 auto; }
.health { margin-top: 18px; font-size: 13px; line-height: 2.1; color: var(--ink-3); }
.copy { margin-top: 10px; font-family: var(--sans); font-size: 12.5px; color: var(--ink-4); }
.copy #icp:not(:empty)::before { content: "　|　"; }

/* ---------- 手机底部下载条 / 提示 ---------- */
.mbar { display: none; }
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 90; max-width: 86vw; padding: 10px 20px;
  font-size: 14px; line-height: 1.6; text-align: center; color: var(--paper-hi); background: rgba(26, 24, 20, .92); border-radius: 4px;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 自适应 ---------- */
@media (max-width: 1180px) {
  .mp-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero-main { width: min(620px, 62%); }
}
@media (max-width: 980px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 10px; letter-spacing: .12em; }
  .intro-grid { grid-template-columns: 1fr; gap: 70px; }
  .facts { max-width: 560px; }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .hero-side { display: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 58px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .nav-in { padding: 0 8px 0 14px; gap: 10px; }
  .nav-logo img { height: 36px; }
  .nav-cta { height: 34px; padding: 0 16px; font-size: 14px; margin-left: auto; }
  .nav-menu { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: 6px 0 12px;
    background: rgba(242, 235, 220, .98); box-shadow: 0 12px 24px rgba(60, 40, 20, .12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s;
  }
  .nav.open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav.open { background: rgba(242, 235, 220, .98); }
  .nav-links a { padding: 12px 22px; font-size: 16px; letter-spacing: .3em; }
  .nav-links a::after { left: 10px; top: 50%; bottom: auto; margin: -3px 0 0; }

  .hero { min-height: max(600px, 100svh); align-items: flex-start; padding: calc(var(--nav-h) + 6vh) 0 120px; }
  .hero-bg { background-image: url("images/bg_m.jpg"); background-position: 50% 100%; }
  .hero-in { padding: 0 16px; justify-content: center; }
  .hero-main { width: 100%; max-width: 520px; text-align: center; }
  .hero-logo { width: 96%; margin: 0 auto; }
  .hero-slogan { font-size: 14.5px; letter-spacing: .14em; }
  .hero-badges { justify-content: center; }
  .hero-badges li { font-size: 12.5px; padding: 1px 10px; letter-spacing: .14em; }
  .hero-btns { flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; }
  .hero-btns .btn { width: 100%; max-width: 320px; height: 52px; font-size: 16px; }
  .flock { top: 12%; width: 90px; }
  .scroll-hint { display: none; }

  .sec { padding: 78px 0 56px; }
  .sec-title { height: 50px; }
  .sec-head::before, .sec-head::after { top: 24px; width: 18vw; }
  .sec-head::before { right: calc(50% + 120px); } .sec-head::after { left: calc(50% + 120px); }
  .sec-head.short::before { right: calc(50% + 66px); } .sec-head.short::after { left: calc(50% + 66px); }
  .sec-lead { font-size: 14.5px; letter-spacing: .12em; }
  .intro-grid { margin-top: 40px; gap: 60px; }
  .scroll-body { padding: 28px 20px 26px; font-size: 16px; line-height: 2; }
  .facts dl { gap: 24px 16px; }
  .facts dd { font-size: 18px; }
  .facts-seal { width: 46px; top: -48px; }
  .mp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 10px; margin-top: 40px; }
  .mp-name { font-size: 22px; } .mp-name.long { font-size: 18px; }
  .mp-desc { font-size: 12px; }
  .ft-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
  .ft { display: grid; grid-template-columns: 52px 1fr; gap: 0 16px; padding: 22px 18px; }
  .ft-ic { width: 52px; height: 52px; grid-row: span 2; }
  .ft h3 { margin-top: 0; font-size: 19px; }
  .ft p { margin-top: 4px; font-size: 14px; }
  .dl-grid { margin-top: 40px; gap: 28px; }
  .dl-qr { display: none !important; }
  .dl-tips li { font-size: 13.5px; }

  .mbar {
    display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); background: rgba(249, 245, 234, .96);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 -1px 0 var(--line), 0 -8px 20px rgba(60, 40, 20, .08);
    transform: translateY(110%); transition: transform .3s;
  }
  .mbar.show { transform: none; }
  .mbar > img { width: 42px; height: 42px; border-radius: 10px; flex: none; }
  .mbar-t { flex: 1; min-width: 0; line-height: 1.2; }
  .mbar-t img { height: 26px; width: auto; }
  .mbar-t small { display: block; font-family: var(--sans); font-size: 11px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar .btn { height: 44px; padding: 0 22px; font-size: 15px; }
}
@media (max-width: 380px) {
  .mp-grid { gap: 22px 6px; }
  .mp-name { font-size: 20px; }
}

/* =====================================================================
 * 本服内容版块：公告 / 亮点 / 福利页签 / 表格 / 帮会活动 / 联系
 * ===================================================================== */
/* ---------- 滚动公告 ---------- */
.notice { position: relative; z-index: 3; background: var(--paper-hi); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.notice-in { display: flex; align-items: center; gap: 16px; height: 48px; }
.notice-tag {
  flex: none; height: 28px; padding: 0 14px; line-height: 28px; font-size: 13.5px; font-weight: 700; letter-spacing: .24em;
  color: var(--paper-hi); background: var(--red); clip-path: var(--brush);
}
.notice-track { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.notice-text { display: inline-flex; gap: 90px; padding-left: 100%; white-space: nowrap; font-size: 15px; letter-spacing: .06em; color: var(--ink-2); animation: marquee var(--dur, 30s) linear infinite; }
.notice-text span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 0; background: var(--red); transform: rotate(45deg); }
.notice-track:hover .notice-text { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- 亮点 ---------- */
.hl { position: relative; padding: 60px 0 0; }
.hl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hl-card, .guild-card { position: relative; background: rgba(249, 245, 234, .72); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.hl-card { padding: 28px 16px 24px; text-align: center; }
.hl-card::before, .hl-card::after, .guild-card::before, .guild-card::after { content: ""; position: absolute; width: 22px; height: 22px; border-color: var(--ink); border-style: solid; transition: width .3s, height .3s; }
.hl-card::before, .guild-card::before { left: -1px; top: -1px; border-width: 3px 0 0 3px; }
.hl-card::after, .guild-card::after { right: -1px; bottom: -1px; border-width: 0 3px 3px 0; }
.hl-card:hover, .guild-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(70, 50, 25, .12); }
.hl-card:hover::before, .hl-card:hover::after, .guild-card:hover::before, .guild-card:hover::after { width: 40px; height: 40px; }
.hl-card b { display: block; font-size: clamp(32px, 3.2vw, 44px); font-weight: 900; line-height: 1.15; letter-spacing: .04em; color: var(--red); }
.hl-card b small { margin-left: 4px; font-size: .46em; letter-spacing: .1em; color: var(--ink); }
.hl-card strong { display: block; margin-top: 10px; font-size: 18px; letter-spacing: .26em; padding-left: .26em; }
.hl-card span { display: block; margin-top: 4px; font-family: var(--sans); font-size: 12.5px; letter-spacing: .12em; color: var(--ink-4); }

/* ---------- 页签 ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 44px; }
.tab {
  height: 44px; padding: 0 24px; font-size: 16px; font-weight: 700; letter-spacing: .16em; color: var(--ink-2);
  background: rgba(26, 24, 20, .07); clip-path: var(--brush); transition: background-color .2s, color .2s;
}
.tab:hover { background: rgba(26, 24, 20, .14); color: var(--ink); }
.tab[aria-selected="true"] { color: var(--paper-hi); background: var(--ink); }
.tab:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--red); }
.panel { margin-top: 34px; animation: rise .5s ease both; }
.panel-note { margin-bottom: 20px; text-align: center; font-size: 15px; letter-spacing: .12em; color: var(--ink-3); }
.panel-note b { color: var(--red); }

/* 七日好礼 */
.gift-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.gift { display: flex; flex-direction: column; text-align: center; background: var(--paper-hi); border: 1px solid var(--line); box-shadow: 0 10px 22px rgba(70, 50, 25, .07); }
.gift-day { display: block; padding: 10px 0; font-size: 17px; font-weight: 900; letter-spacing: .24em; padding-left: .24em; color: var(--paper-hi); background: var(--ink); }
.gift:last-child .gift-day { background: var(--red); }
.gift ul { flex: 1; padding: 8px 12px 10px; }
.gift li { padding: 9px 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.gift li + li { border-top: 1px dashed var(--line-2); }
.gift li.hi { font-weight: 700; color: var(--red); }

/* 表格 */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--paper-hi); border: 1px solid var(--line); box-shadow: 0 14px 28px rgba(70, 50, 25, .08); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { padding: 13px 18px; text-align: left; white-space: nowrap; font-size: 14.5px; font-weight: 700; letter-spacing: .2em; color: var(--paper-hi); background: var(--ink); }
.tbl td { padding: 12px 18px; vertical-align: top; line-height: 1.75; color: var(--ink-2); border-top: 1px solid var(--line); }
.tbl tbody tr:nth-child(even) td { background: rgba(220, 207, 178, .2); }
.tbl tbody tr:hover td { background: rgba(185, 53, 42, .06); }
.tbl td.k { white-space: nowrap; font-weight: 700; color: var(--red); }
.tbl.drop td.k { width: 1%; color: var(--ink); }
.title-tag { display: inline-block; margin: 0 8px 2px 0; padding: 0 8px; font-size: 13px; line-height: 1.7; color: var(--red); border: 1px solid rgba(185, 53, 42, .45); background: rgba(185, 53, 42, .05); }

/* 钱庄福利 */
.bank-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.bank { padding: 24px 10px 20px; text-align: center; background: var(--paper-hi); border: 1px solid var(--line); }
.bank b { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-size: 16px; font-weight: 900; letter-spacing: .06em; color: var(--paper-hi); background: var(--ink); }
.bank:nth-child(n+6) b { background: var(--red); }
.bank span { display: block; margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* 首充礼包 */
.first-box { display: grid; grid-template-columns: 280px minmax(0, 1fr); max-width: 900px; margin: 0 auto; background: var(--paper-hi); border: 1px solid var(--line); box-shadow: 0 14px 28px rgba(70, 50, 25, .1); }
.first-price { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px 20px; text-align: center; color: var(--paper-hi); background: var(--ink); }
.first-price small { font-family: var(--sans); font-size: 13px; letter-spacing: .4em; opacity: .7; }
.first-price b { margin-top: 4px; font-size: 76px; font-weight: 900; line-height: 1; color: var(--red-hi); }
.first-price b em { margin-right: 4px; font-size: .4em; font-style: normal; }
.first-price span { margin-top: 10px; font-size: 15px; letter-spacing: .3em; }
.first-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 14px 28px; padding: 32px 40px; }
.first-items li { position: relative; padding-left: 20px; font-size: 16px; color: var(--ink-2); }
.first-items li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); }

/* 称号加成 */
.title-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ttl { padding: 18px 18px 16px 20px; background: var(--paper-hi); border: 1px solid var(--line); border-left: 4px solid var(--red); }
.ttl b { display: block; font-size: 17px; letter-spacing: .06em; color: var(--ink); }
.ttl span { display: block; margin-top: 6px; font-family: var(--sans); font-size: 13.5px; line-height: 1.6; color: var(--red); }

/* ---------- 帮会活动 ---------- */
.guild-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 56px; }
.guild-card { padding: 34px 28px 30px; }
.guild-no { position: absolute; right: 20px; top: 14px; font-size: 54px; font-weight: 900; line-height: 1; color: rgba(26, 24, 20, .06); }
.guild-day { display: inline-block; padding: 3px 14px; font-family: var(--sans); font-size: 13px; letter-spacing: .06em; color: var(--paper-hi); background: var(--red); clip-path: var(--brush); }
.guild-card h3 { margin-top: 16px; font-size: 23px; letter-spacing: .14em; }
.guild-card p { margin-top: 10px; font-size: 15px; line-height: 1.95; color: var(--ink-3); }

/* ---------- 联系我们 ---------- */
.contact { padding: 30px 0 60px; }
.join {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px 52px; color: var(--paper-hi);
  background: radial-gradient(120% 140% at 0% 0%, #3a352f, var(--ink) 60%); box-shadow: 0 18px 36px rgba(40, 30, 20, .2);
}
.join h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: .22em; }
.join p { margin-top: 6px; font-size: 15px; letter-spacing: .2em; color: rgba(249, 245, 234, .6); }
.join-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.join-acts a, .join-acts button {
  display: inline-flex; align-items: center; height: 48px; padding: 0 26px; font-size: 16px; font-weight: 700; letter-spacing: .12em;
  color: var(--paper-hi); background: var(--red); clip-path: var(--brush); transition: background-color .2s, transform .2s;
}
.join-acts a:hover, .join-acts button:hover { background: var(--red-hi); transform: translateY(-2px); }
.join-acts b { margin-left: 4px; font-family: var(--sans); }

@media (max-width: 1180px) {
  .gift-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bank-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guild-grid { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
  .first-box { grid-template-columns: 1fr; max-width: 560px; }
  .join { flex-direction: column; align-items: flex-start; }
  .join-acts { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .notice-in { height: 42px; gap: 10px; }
  .notice-tag { height: 24px; line-height: 24px; padding: 0 10px; font-size: 12.5px; }
  .notice-text { font-size: 13.5px; gap: 60px; }
  .hl { padding-top: 34px; }
  .hl-grid { gap: 12px; }
  .hl-card { padding: 20px 8px 16px; }
  .hl-card strong { font-size: 16px; letter-spacing: .16em; }
  .hl-card span { font-size: 11.5px; letter-spacing: .04em; }
  .tabs { gap: 8px; margin-top: 30px; }
  .tab { height: 38px; padding: 0 14px; font-size: 14.5px; letter-spacing: .08em; }
  .panel { margin-top: 24px; }
  .panel-note { font-size: 13.5px; letter-spacing: .04em; }
  .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gift:last-child { grid-column: 1 / -1; }
  .gift li { font-size: 13.5px; padding: 7px 0; }
  .tbl { font-size: 13.5px; }
  .tbl th { padding: 11px 12px; font-size: 13px; letter-spacing: .1em; }
  .tbl td { padding: 10px 12px; }
  .bank-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .bank { padding: 16px 4px 14px; }
  .bank b { width: 44px; height: 44px; font-size: 14px; }
  .bank span { margin-top: 10px; font-size: 12.5px; }
  .first-price { padding: 26px 16px; }
  .first-price b { font-size: 60px; }
  .first-items { gap: 10px 14px; padding: 22px 18px; }
  .first-items li { font-size: 14.5px; }
  .title-grid { grid-template-columns: 1fr; gap: 10px; }
  .guild-grid { margin-top: 36px; gap: 16px; }
  .guild-card { padding: 26px 20px 22px; }
  .guild-card h3 { font-size: 20px; }
  .guild-card p { font-size: 14px; }
  .contact { padding: 10px 0 40px; }
  .join { padding: 30px 22px; gap: 20px; }
  .join-acts a, .join-acts button { height: 44px; padding: 0 20px; font-size: 15px; }
}

/* ---------- 悬浮在线客服 ---------- */
.kefu-float {
  position: fixed; right: 22px; bottom: 120px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 0; background: none; border: 0; cursor: pointer; animation: kfFloat 3.6s ease-in-out infinite;
}
.kefu-float[hidden] { display: none; }
.kf-ic {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a352f, var(--ink) 70%); box-shadow: 0 10px 24px rgba(30, 22, 14, .35), inset 0 0 0 3px rgba(249, 245, 234, .12);
  transition: transform .25s;
}
.kf-ic::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(185, 53, 42, .55); animation: kfRing 2.4s ease-out infinite; }
.kf-ic svg { width: 32px; height: 32px; fill: none; stroke: var(--paper-hi); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.kf-ic svg .r { stroke: var(--red-hi); }
.kf-t {
  padding: 3px 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; white-space: nowrap;
  color: var(--paper-hi); background: var(--red); clip-path: var(--brush);
}
.kefu-float:hover .kf-ic { transform: scale(1.08); }
.kefu-float:focus-visible { outline: none; }
.kefu-float:focus-visible .kf-ic { box-shadow: 0 0 0 3px var(--red); }
@keyframes kfFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes kfRing { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
@media (max-width: 760px) {
  .kefu-float { right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); }
  .kf-ic { width: 52px; height: 52px; }
  .kf-ic svg { width: 26px; height: 26px; }
  .kf-t { font-size: 12px; padding: 2px 8px; }
}
@media (prefers-reduced-motion: reduce) { .kefu-float, .kf-ic::after { animation: none; } }
