/* ============================================================
 * LW Tool 前台样式
 *
 * 配色参照 https://vox.188666.com.cn/ 的设计系统：
 *   --page      #f3f8ff   页面底（浅蓝白）
 *   --surface   #ffffff   卡片
 *   --ink       #102542   主文字（深海军蓝）
 *   --muted     #61738c   次要文字
 *   --line      #d7e5f6   边框
 *   --blue      #087bec   主色
 *   --cyan      #14b8f5   辅助色 / 渐变
 *   --orange    #ff9418   主按钮与点缀
 *   --navy      #061d37   页头 / 页脚
 * 无任何外部依赖：不引 CDN 字体/框架，宝塔服务器在国内也能秒开。
 * ============================================================ */

:root {
  --bg: #f3f8ff;
  --bg-soft: #eef6ff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f9ff;
  --border: #c9daef;
  --border-soft: #d7e5f6;
  --text: #102542;
  --text-soft: #49627f;
  --text-dim: #8b9bb0;
  --brand: #087bec;
  --brand-dark: #075bdc;
  --accent: #14b8f5;
  --warning: #ff9418;
  --danger: #e5484d;
  --navy: #061d37;
  --navy-soft: #0b315a;
  --header-bg: rgba(4, 25, 48, .96);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 45px rgba(16, 58, 104, .14);
  --wrap: 1160px;
  --font: Inter, "Segoe UI", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans", "Noto Sans Thai", "Noto Sans Vietnamese",
          Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: 2.35rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .9em; }
code {
  background: #eaf5ff; color: #0b315a; padding: .12em .45em; border-radius: 5px;
  border: 1px solid #d7e5f6;
}
kbd {
  background: #eef6ff; border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 6px; padding: .15em .5em; font-size: .82em; color: #0b315a; white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-soft); }
.small { font-size: .86rem; }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ---------------- 顶部导航（深蓝底，参照站点页头） ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex: 0 0 auto; font-size: 22px; font-weight: 850; letter-spacing: -.5px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
/* V 形六边形徽标（复刻 vox.188666.com.cn 的 logo） */
.brand-mark {
  width: 41px; height: 41px; flex: 0 0 auto;
  display: grid; place-items: center;
  color: #fff; font-size: 26px; font-style: italic; font-weight: 950; line-height: 1;
  background: linear-gradient(145deg, #22c7ff, #0576ec);
  clip-path: polygon(0 8%, 28% 8%, 50% 59%, 72% 8%, 100% 8%, 66% 94%, 35% 94%);
  filter: drop-shadow(0 5px 8px rgba(5, 118, 236, .35));
  text-transform: uppercase;
}
.brand-logo { height: 36px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; color: #fff; }
.brand-text small { color: rgba(255, 255, 255, .62); font-size: .74rem; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-link {
  position: relative;
  color: rgba(255, 255, 255, .82); padding: 8px 12px; border-radius: 6px;
  font-size: .92rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav-link::after {
  content: ""; position: absolute; inset: auto 0 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transition: transform .2s ease;
  border-radius: 2px 2px 0 0;
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: #fff; }
.nav-link-cta {
  background: var(--warning); color: #fff; font-weight: 800;
  box-shadow: 0 8px 18px rgba(193, 93, 0, .35);
}
/* 汉堡按钮（仅手机显示） */
.nav-toggle { display: none; }
.nav-admin-m { display: none; }
.nav-link-cta:hover { background: #f08a08; color: #fff; }

.topbar-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.lang-menu { position: relative; }
.lang-menu > summary {
  list-style: none; cursor: pointer; padding: 7px 11px; border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .9); font-size: .88rem; user-select: none;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu[open] > summary { color: #fff; border-color: var(--accent); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; z-index: 50;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px; margin: 0; list-style: none;
}
.lang-list a {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  border-radius: var(--radius-sm); color: var(--text-soft); font-size: .9rem; text-decoration: none;
}
.lang-list a:hover { background: var(--bg-card-hover); color: var(--text); text-decoration: none; }
.lang-list a.is-current { color: var(--brand); font-weight: 700; }
.lang-list .tick { margin-left: auto; }

/* ---------------- 按钮：主按钮橙色（参照站点 primary-button） ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 7px; border: 1px solid transparent;
  background: var(--warning); color: #fff; font-weight: 800; font-size: .94rem;
  cursor: pointer; text-decoration: none; font-family: inherit; line-height: 1.2;
  box-shadow: 0 10px 22px rgba(193, 93, 0, .28);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover {
  background: #f08a08; text-decoration: none; transform: translateY(-2px);
  box-shadow: 0 13px 26px rgba(193, 93, 0, .34);
}
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: #fff; border-color: var(--border); color: #0b315a;
  box-shadow: none; font-weight: 700;
}
.btn-ghost:hover { background: #f0f7ff; border-color: var(--brand); color: var(--brand); box-shadow: none; }
.btn-outline {
  background: transparent; border-color: var(--brand); color: var(--brand);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(8, 123, 236, .08); box-shadow: none; }
.btn-sm { padding: 7px 13px; font-size: .85rem; }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled {
  opacity: .55; pointer-events: none; background: #b9c9dc; box-shadow: none;
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 68px 0; }
.section-tight { padding: 44px 0; }
.section-head { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.section-head h2 { margin-bottom: .35em; color: var(--navy); }
.section-head p { color: var(--text-soft); margin: 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.bg-soft { background: var(--bg-soft); }
.border-top { border-top: 1px solid var(--border-soft); }

.card {
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 22px;
  box-shadow: 0 10px 26px rgba(16, 58, 104, .06);
}
.card-hover:hover { background: var(--bg-card-hover); border-color: var(--border); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* 下载卡片：3 张时三列等宽，少于 3 张自动居中 */
.grid-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; max-width: 1040px; margin-left: auto; margin-right: auto; }
.grid-center > * { flex: 0 0 calc((100% - 40px) / 3); min-width: 250px; }

.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .74rem;
  font-weight: 800; letter-spacing: .02em;
  background: #e3f2ff; color: var(--brand); border: 1px solid rgba(8, 123, 236, .25);
}
.badge-dim { background: #eef2f8; color: var(--text-soft); border-color: var(--border-soft); }
.badge-accent { background: #e0f7ff; color: #0b7fa8; border-color: rgba(20, 184, 245, .35); }
.badge-warning { background: #fff1e0; color: #d97a00; border-color: rgba(255, 148, 24, .4); }
.badge-plan {
  background: var(--warning); color: #fff; border-color: transparent;
  box-shadow: 0 6px 14px rgba(193, 93, 0, .3);
}

.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 13px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  border: 1px solid rgba(8, 123, 236, .16);
  border-radius: 12px;
  font-size: .86rem; font-weight: 700; color: #1c4066; text-decoration: none;
  box-shadow: 0 6px 16px -11px rgba(8, 80, 160, .5), inset 0 1px 0 #ffffff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
}
.chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(140deg, #a6bccf, #7d95ab);
  box-shadow: 0 0 0 3px rgba(140, 165, 190, .13);
}
.chip:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 123, 236, .45);
  color: var(--brand, #087bec);
  background: linear-gradient(180deg, #ffffff 0%, #eaf4ff 100%);
  box-shadow: 0 16px 28px -16px rgba(8, 90, 190, .65), inset 0 1px 0 #ffffff;
  text-decoration: none;
}
.chip-premium {
  border-color: rgba(8, 123, 236, .3);
  background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
}
.chip-premium::before {
  background: linear-gradient(140deg, #22c7ff, #0576ec);
  box-shadow: 0 0 0 3px rgba(8, 123, 236, .15);
}
.chip-premium:hover { border-color: var(--brand, #087bec); }

/* ---------------- Hero（浅底 + 蓝色光晕） ---------------- */
.hero {
  padding: 66px 0 46px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #eaf4ff 0%, #f6faff 55%, #ffffff 100%);
}
.hero::before {
  content: ""; position: absolute; left: 50%; top: -45%; transform: translateX(-50%);
  width: 980px; height: 520px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(20, 184, 245, .10), transparent 72%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 42px; align-items: center; }
.hero h1 { font-size: 2.6rem; margin-bottom: .5em; color: var(--navy); font-weight: 900; letter-spacing: -.02em; }
.hero-sub { font-size: 1.06rem; color: var(--text-soft); max-width: 620px; }

/* ---------------- Hero 状态行（官方风：中性底 + 单一状态色） ---------------- */
.hero-online {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 14px 0 2px; padding: 6px 14px 6px 12px;
  border-radius: 999px; flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #dbe4ef;
  color: #33475f; font-size: .8rem; letter-spacing: .01em;
  box-shadow: 0 2px 6px rgba(16, 24, 40, .05), 0 1px 2px rgba(16, 24, 40, .04);
  animation: online-in .5s ease both;
}
.hero-online > * { flex: 0 0 auto; }
.hero-online strong { color: #0b2138; font-weight: 700; letter-spacing: .01em; }
.online-sep { width: 1px; height: 13px; background: #dbe4ef; }
.online-days { color: #64748b; font-weight: 500; }
.online-num { color: #0b2138; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 状态点：整个区块里只在这里出现颜色 */
.online-dot {
  position: relative; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
  background: #12b76a; box-shadow: 0 0 0 3px rgba(18, 183, 106, .14);
}
.online-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(18, 183, 106, .7);
  animation: online-ring 2.6s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes online-ring {
  0% { transform: scale(1); opacity: .55; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}
@keyframes online-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 720px) {
  .hero-online { font-size: .75rem; padding: 5px 12px 5px 10px; gap: 8px; }
  .online-sep { height: 11px; }
}

/* ---------------- Hero 顶部一行：小标签 + 实时在线人数 ---------------- */
.hero-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* 两个胶囊锁定同一高度，保证严格对齐 */
.hero-topline .badge,
.hero-topline .live-count {
  display: inline-flex; align-items: center; height: 30px; box-sizing: border-box;
  padding-top: 0; padding-bottom: 0;
}
/* 读数块：动态广播图标 + 绿色在线数 + ONLINE */
.live-count {
  gap: 8px; padding-left: 11px; padding-right: 13px;
  border-radius: 999px; white-space: nowrap;
  background: #ffffff;
  border: 1px solid #dbe4ef;
  box-shadow: 0 2px 6px rgba(16, 24, 40, .05), 0 1px 2px rgba(16, 24, 40, .04);
}
.live-wave { display: inline-flex; flex: 0 0 auto; color: #10b981; }
.live-wave svg { width: 17px; height: 17px; display: block; }
/* 波纹向外扩散：内圈先亮，外圈延后 0.3s */
.live-wave .w-in { animation: wave-pulse 2.2s ease-in-out infinite; }
.live-wave .w-out { animation: wave-pulse 2.2s ease-in-out .3s infinite; }
.live-num {
  color: #047857; font-size: .8rem; font-weight: 800; line-height: 1;
  letter-spacing: .01em; font-variant-numeric: tabular-nums;
}
.live-txt {
  color: #64748b; font-size: .6rem; font-weight: 700; line-height: 1;
  text-transform: uppercase; letter-spacing: .08em;
}
@keyframes wave-pulse {
  0%, 100% { opacity: .18; }
  38% { opacity: 1; }
}
@media (max-width: 720px) {
  .hero-topline { gap: 8px; }
  .live-count { gap: 7px; padding-left: 9px; padding-right: 11px; }
  .live-wave svg { width: 15px; height: 15px; }
  .live-num { font-size: .76rem; }
  .live-txt { font-size: .56rem; letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-online { animation: none; }
  .online-dot::after { animation: none; opacity: 0; }
  .live-wave .w-in, .live-wave .w-out { animation: none; opacity: 1; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--text-dim); }
.hero-shot {
  border-radius: 14px; border: 2px solid var(--line, #d7e5f6); padding: 6px; background: #fff;
  box-shadow: 0 10px 30px rgba(8, 123, 236, .12); box-sizing: border-box;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.hero-shot:hover { border-color: var(--brand, #087bec); box-shadow: 0 16px 38px rgba(8, 123, 236, .22); transform: translateY(-3px); }

/* ---------------- Hero 3D 动态组件 ---------------- */
.hero-shot-wrap { position: relative; perspective: 1200px; }
.hero-shot-float { position: relative; animation: hero-float 7s ease-in-out infinite; }
.hero-shot-float::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -30px; height: 42px;
  background: radial-gradient(ellipse at center, rgba(4, 25, 48, .30), transparent 72%);
  filter: blur(8px); z-index: -1; pointer-events: none;
}
.hero-shot-float .hero-shot {
  transform-style: preserve-3d;
  will-change: transform;
  border-radius: 20px; padding: 8px;
  background: linear-gradient(160deg, #ffffff 0%, #f2f8ff 100%);
  border: 1px solid rgba(8, 123, 236, .16);
  box-shadow:
    0 44px 90px -26px rgba(4, 25, 48, .38),
    0 20px 44px -20px rgba(8, 123, 236, .34),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  transition: transform .16s ease-out, border-color .25s ease, box-shadow .25s ease;
}
.hero-shot-float .hero-shot:hover {
  border-color: rgba(8, 123, 236, .45);
  box-shadow:
    0 50px 100px -26px rgba(4, 25, 48, .42),
    0 24px 54px -20px rgba(8, 123, 236, .45),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}
/* 屏面高光扫过 */
.hero-shot-wrap::after {
  content: ""; position: absolute; top: 2%; bottom: 2%; width: 22%; left: -30%;
  border-radius: 20px; pointer-events: none; z-index: 2;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
  transform: skewX(-16deg); animation: shot-shine 7.5s ease-in-out infinite;
}
@keyframes shot-shine {
  0%, 18% { left: -30%; opacity: 0; }
  30% { opacity: 1; }
  55% { left: 108%; opacity: .9; }
  56%, 100% { left: 108%; opacity: 0; }
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.orb-a {
  width: 300px; height: 300px; top: -70px; left: -60px; opacity: .6;
  background: radial-gradient(circle, rgba(34, 199, 255, .55), transparent 68%);
  filter: blur(34px); animation: orb-drift 10s ease-in-out infinite;
}
.orb-b {
  width: 260px; height: 260px; bottom: -50px; right: -40px; opacity: .5;
  background: radial-gradient(circle, rgba(124, 92, 255, .42), transparent 68%);
  filter: blur(34px); animation: orb-drift 13s ease-in-out infinite reverse;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -16px) scale(1.08); }
}
/* 玻璃质感浮动徽章 */
.hero-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(12px) saturate(1.25);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 20px 44px -14px rgba(4, 25, 48, .32), 0 3px 10px rgba(8, 123, 236, .12);
  animation: hero-chip-float 6s ease-in-out infinite;
}
.hc-icon {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto;
  color: #fff; background: linear-gradient(142deg, #22c7ff, #0576ec);
  box-shadow: 0 8px 18px rgba(5, 118, 236, .38);
}
.hc-icon-alt { background: linear-gradient(142deg, #7c5cff, #4f46e5); box-shadow: 0 8px 18px rgba(79, 70, 229, .38); }
.hc-icon svg { width: 19px; height: 19px; }
.hc-text { display: flex; flex-direction: column; line-height: 1.15; }
.hero-chip strong {
  font-size: 1.12rem; font-weight: 900; letter-spacing: -.01em;
  background: linear-gradient(92deg, #0576ec, #14b8f5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-chip small { font-size: .72rem; color: var(--text-dim); font-weight: 700; white-space: nowrap; }
.chip-1 { top: 13%; left: -34px; animation-delay: -1.8s; }
.chip-2 { bottom: 15%; right: -30px; animation-delay: -3.6s; }
@keyframes hero-chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 980px) {
  .chip-1 { left: 6px; }
  .chip-2 { right: 6px; }
  .orb-a { left: -20px; }
  .orb-b { right: -10px; }
  .hero-chip { padding: 8px 13px 8px 9px; gap: 8px; border-radius: 13px; }
  .hc-icon { width: 30px; height: 30px; border-radius: 9px; }
  .hc-icon svg { width: 16px; height: 16px; }
  .hero-chip strong { font-size: .98rem; }
  .hero-chip small { font-size: .66rem; }
}
@media (max-width: 720px) {
  .hero-shot-wrap::after { display: none; }
  .hero-shot-float::after { height: 26px; bottom: -18px; }
}

/* 主图为 LOGO 时：不要白色卡片外观，只保留悬浮动效 */
.hero-shot-wrap.has-img::after { display: none; }
.hero-shot-wrap.has-img .hero-shot-float::after { display: none; }
.hero-shot-float .hero-shot.hero-logo-img,
.hero-shot-wrap.has-img .hero-shot {
  background: none; border: 0; padding: 0; border-radius: 0; box-shadow: none;
  max-width: 100%; height: auto;
}
.hero-shot-wrap.has-img .hero-shot:hover { border: 0; box-shadow: none; transform: none; }

/* ---------------- 数字条 ---------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--border-soft); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--bg-card); padding: 20px 18px; text-align: center; }
.stat strong { display: block; font-size: 1.5rem; color: var(--brand); letter-spacing: -.02em; }
.stat span { font-size: .86rem; color: var(--text-soft); }

/* ---------------- 平台卡片 ---------------- */
.platform { display: flex; flex-direction: column; }
.platform-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.platform h3 { margin: 0; color: var(--navy); }
.platform .platform-desc { color: var(--text-soft); font-size: .92rem; margin-bottom: 14px; }
.platform ul { list-style: none; padding: 0; margin: 0 0 18px; }
.platform li { position: relative; padding-left: 22px; margin-bottom: 9px; color: var(--text-soft); font-size: .92rem; }
.platform li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.platform .btn { margin-top: auto; }

/* ---------------- 功能分组 ---------------- */
.fgroup { margin-bottom: 34px; }
.fgroup-head { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; flex-wrap: wrap; position: relative; padding-left: 15px; }
.fgroup-head::before {
  content: ""; position: absolute; left: 0; top: .16em; bottom: .16em; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, #22c7ff, #0576ec);
  box-shadow: 0 4px 10px -3px rgba(8, 123, 236, .6);
}
.fgroup-head h3 { margin: 0; font-size: 1.22rem; color: var(--navy); letter-spacing: -.01em; }
.fgroup-count {
  display: inline-grid; place-items: center; min-width: 28px; height: 23px; padding: 0 9px;
  border-radius: 999px; font-size: .78rem; font-weight: 800; color: var(--brand, #087bec);
  background: linear-gradient(180deg, #f0f8ff, #e2f0ff); border: 1px solid rgba(8, 123, 236, .2);
  box-shadow: inset 0 1px 0 #ffffff;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.highlight-box {
  border: 1px solid rgba(8, 123, 236, .28); background: rgba(8, 123, 236, .05);
  border-radius: var(--radius); padding: 24px; margin-bottom: 34px;
}
.highlight-box h3 { color: var(--brand); }
.highlight-box ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.highlight-box li { position: relative; padding-left: 24px; color: var(--text-soft); }
.highlight-box li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

/* ---------------- 截图 ---------------- */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.shot { margin: 0; cursor: zoom-in; }
.shot img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
  border-radius: 12px; border: 2px solid var(--line, #d7e5f6); padding: 4px; background: #fff;
  box-shadow: 0 6px 18px rgba(8, 123, 236, .10);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.shot:hover img { transform: translateY(-3px); border-color: var(--brand, #087bec); box-shadow: 0 12px 26px rgba(8, 123, 236, .22); }
.shot figcaption {
  margin-top: 10px; padding: 6px 12px;
  display: inline-block; width: 100%; box-sizing: border-box;
  background: linear-gradient(90deg, #e8f4ff, #f5faff);
  border: 1px solid var(--line, #d7e5f6); border-radius: 999px;
  color: var(--brand, #087bec); font-weight: 700; font-size: .82rem;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: border-color .2s ease, color .2s ease;
}
.shot:hover figcaption { border-color: var(--brand, #087bec); color: #0576d6; }

/* ---------------- 视频展示 ---------------- */
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.video-card { margin: 0; }
.video-frame {
  position: relative; border-radius: 16px; padding: 6px; background: #fff;
  border: 2px solid var(--line, #d7e5f6);
  box-shadow: 0 10px 28px rgba(8, 123, 236, .12);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  overflow: hidden;
}
.video-card:hover .video-frame { border-color: var(--brand, #087bec); box-shadow: 0 16px 36px rgba(8, 123, 236, .2); transform: translateY(-3px); }
.video-frame video {
  display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px;
  background: linear-gradient(160deg, #0a2c50, #061d37); object-fit: contain;
}
.video-card figcaption {
  margin-top: 10px; padding: 6px 12px;
  display: inline-block; width: 100%; box-sizing: border-box;
  background: linear-gradient(90deg, #e8f4ff, #f5faff);
  border: 1px solid var(--line, #d7e5f6); border-radius: 999px;
  color: var(--brand, #087bec); font-weight: 700; font-size: .82rem;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 播放按钮（视频未加载时不发起任何请求） */
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 26px rgba(4, 25, 48, .35);
  display: grid; place-items: center;
  transition: transform .2s ease, background .2s ease;
}
.video-play:hover { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.video-play span {
  width: 0; height: 0; margin-left: 4px;
  border-left: 18px solid var(--brand, #087bec);
  border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.video-frame.is-playing .video-play { display: none; }
@media (max-width: 720px) {
  .video-play { width: 50px; height: 50px; }
  .video-play span { border-left-width: 15px; border-top-width: 9px; border-bottom-width: 9px; }
}
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr; } }

/* 图片灯箱：透明背景 + 左右切换 */
.lightbox { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center;
  background: rgba(243, 248, 255, .5);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.lightbox .lb-img { max-width: min(92vw, 1100px); max-height: 82vh; border-radius: 12px;
  border: 3px solid #fff; padding: 5px; background: #fff;
  box-shadow: 0 0 0 1px var(--line, #d7e5f6), 0 24px 60px rgba(8, 123, 236, .25);
}
.lightbox .lb-btn { position: absolute; border: none; background: rgba(8, 123, 236, .88); color: #fff; font-size: 2rem; line-height: 1; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .2s ease, transform .2s ease; }
.lightbox .lb-btn:hover { background: #0576d6; transform: scale(1.08); }
.lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox .lb-close { top: 18px; right: 18px; font-size: 1.4rem; }
.lightbox .lb-cap { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; color: var(--ink, #102542); font-weight: 600; font-size: .95rem; padding: 0 20px; }
.lightbox .lb-count { position: absolute; top: 28px; left: 26px; color: var(--muted, #61738c); font-size: .85rem; }

/* ---------------- 定价 ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.is-highlight {
  border-color: var(--brand); box-shadow: 0 0 0 1px rgba(8, 123, 236, .35), var(--shadow);
}
.plan-badge { position: absolute; top: -11px; left: 22px; }
.plan h3 { margin-bottom: .2em; color: var(--navy); }
.plan-price { font-size: 1.85rem; font-weight: 900; letter-spacing: -.02em; margin: 10px 0 2px; color: var(--navy); }
.plan-price small { font-size: .82rem; font-weight: 600; color: var(--text-dim); }
.plan-note { color: var(--text-soft); font-size: .9rem; min-height: 2.8em; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; }
.plan li { position: relative; padding-left: 22px; color: var(--text-soft); font-size: .92rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.plan li.excluded { color: var(--text-dim); }
.plan li.excluded::before { content: "×"; color: var(--text-dim); }
.plan .btn { margin-top: auto; }
.price-note { text-align: center; color: var(--text-dim); font-size: .86rem; margin-top: 22px; }

/* ---------------- FAQ / 折叠 ---------------- */
.faq-list { display: grid; gap: 10px; max-width: 880px; margin: 0 auto; }
details.faq {
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 0;
  box-shadow: 0 6px 16px rgba(16, 58, 104, .05);
}
details.faq > summary {
  cursor: pointer; padding: 15px 18px; font-weight: 700; list-style: none;
  display: flex; align-items: center; gap: 10px; color: var(--navy);
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after { content: "+"; margin-left: auto; color: var(--brand); font-size: 1.2rem; line-height: 1; font-weight: 700; }
details.faq[open] > summary::after { content: "–"; }

/* ---------------- 最新更新（复刻参考站：渐变头 + 橙色圆点列表） ---------------- */
.news-list { display: grid; gap: 14px; }
.version-card { overflow: hidden; background: #fff; border: 1px solid var(--line, #d7e5f6); border-radius: 14px; box-shadow: 0 8px 22px rgba(16, 58, 104, .07); }
.version-card summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 24px; color: #fff;
  background: linear-gradient(105deg, #0a2c50, #087bec);
  cursor: pointer; list-style: none;
}
.version-card summary::-webkit-details-marker { display: none; }
.version-card .vc-left { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.version-card .vc-left strong { font-size: 1.22rem; line-height: 1.25; font-weight: 780; }
.version-card .vc-meta { color: rgba(255, 255, 255, .78); font-weight: 600; font-size: .84rem; }
.version-tag { margin-left: auto; padding: 6px 13px; font-size: 12.5px; font-weight: 850; background: rgba(255, 255, 255, .18); border-radius: 999px; white-space: nowrap; }
.version-card summary i {
  width: 11px; height: 11px; border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg) translateY(-3px); transition: transform .18s ease; flex: 0 0 auto;
}
.version-card[open] summary i { transform: rotate(225deg) translate(-2px, -2px); }
.version-card ul { margin: 0; padding: 6px 26px 12px; list-style: none; }
.version-card li { position: relative; padding: 14px 0 14px 26px; color: var(--muted, #61738c); line-height: 1.68; font-size: .97rem; }
.version-card li + li { border-top: 1px solid var(--line, #d7e5f6); }
.version-card li::before { content: ""; position: absolute; left: 3px; top: 22px; width: 8px; height: 8px; background: var(--orange, #ff9418); border-radius: 50%; box-shadow: 0 0 0 6px #eef6ff; }
.version-card li strong { color: var(--ink, #102542); }
details.faq[open] { border-color: var(--border); }
.faq-body { padding: 0 18px 16px; color: var(--text-soft); }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------------- 公告 ---------------- */
.notice-list { display: grid; gap: 12px; }
.notice {
  border-left: 3px solid var(--accent); background: var(--bg-card);
  border-radius: var(--radius-sm); padding: 16px 18px;
  box-shadow: 0 6px 16px rgba(16, 58, 104, .05);
}
.notice-success { border-left-color: var(--brand); }
.notice-warning { border-left-color: var(--warning); }
.notice-danger { border-left-color: var(--danger); }
.notice-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.notice-head strong { font-size: 1rem; color: var(--navy); }
.notice-meta { color: var(--text-dim); font-size: .82rem; margin-left: auto; }
.notice-body { color: var(--text-soft); font-size: .93rem; }
.notice-body p:last-child { margin-bottom: 0; }

/* ---------------- 下载卡片 ---------------- */
.dl-card .meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 16px 0; }
.dl-card .meta div { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; border-bottom: 1px dashed var(--border-soft); padding-bottom: 6px; }
.dl-card .meta span:first-child { color: var(--text-dim); }
.dl-card .meta span:last-child { color: var(--navy); font-weight: 700; }
.checksum { font-family: var(--mono); font-size: .74rem; color: var(--text-dim); word-break: break-all; }

/* ---------------- 教程 ---------------- */
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
.toc { position: sticky; top: 88px; }
.toc h4 { color: var(--text-dim); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: block; padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--text-soft); font-size: .9rem; text-decoration: none;
}
.toc a:hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }

.chapter { margin-bottom: 46px; scroll-margin-top: 86px; }
.chapter-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.chapter-num {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center;
  font-size: .95rem; box-shadow: 0 8px 16px rgba(8, 123, 236, .3);
}
.chapter-head h2 { margin: 0 0 .15em; font-size: 1.35rem; color: var(--navy); }
.chapter-head p { margin: 0; color: var(--text-soft); font-size: .92rem; }

.step { border-left: 2px solid var(--border); padding: 0 0 22px 20px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--bg);
}
.step h4 { margin-bottom: .35em; font-size: 1rem; color: var(--navy); }
.step-body { color: var(--text-soft); font-size: .93rem; }
.step-body p:last-child { margin-bottom: 0; }
.step-body .ct-img, .faq-body .ct-img, .feature-body .ct-img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); margin: 8px 0; display: block; }
.step-body .ct-video, .faq-body .ct-video, .feature-body .ct-video { max-width: 100%; border-radius: 10px; margin: 8px 0; display: block; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-soft); }
table.data th {
  background: #eef6ff; color: var(--navy-soft); font-weight: 700;
  font-size: .84rem; letter-spacing: .03em; text-transform: uppercase;
}
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { white-space: nowrap; }

/* 逐项功能教程 */
.feature-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.feature-tools input[type="search"] { flex: 1 1 220px; }
details.feature {
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); margin-bottom: 9px; scroll-margin-top: 86px;
  box-shadow: 0 6px 16px rgba(16, 58, 104, .05);
}
details.feature > summary {
  cursor: pointer; padding: 13px 16px; font-weight: 700; list-style: none;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--navy);
}
details.feature > summary::-webkit-details-marker { display: none; }
details.feature > summary::after { content: "＋"; margin-left: auto; color: var(--brand); font-weight: 700; }
details.feature[open] > summary::after { content: "－"; }
details.feature[open] { border-color: var(--border); }
details.feature:target { border-color: var(--brand); box-shadow: 0 0 0 1px rgba(8, 123, 236, .3); }
.feature-body { padding: 2px 16px 16px; }
.tpl-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px dashed var(--border-soft); align-items: start; }
.tpl-row dt { color: var(--text-dim); font-size: .82rem; font-weight: 700; padding-top: 2px; }
/* 5 段标签彩色高亮 */
.tpl-row dt.ct { display: inline-flex; align-items: center; width: fit-content; padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: .8rem; }
.tpl-row dt.ct-method { background: #e8f3ff; color: #087bec; }
.tpl-row dt.ct-where { background: #e6f9ff; color: #0a9fd8; }
.tpl-row dt.ct-how { background: #fff3e0; color: #f28705; }
.tpl-row dt.ct-observe { background: #e9f9f1; color: #12a15b; }
.tpl-row dt.ct-note { background: #fdecec; color: #e5484d; }
.tpl-row dd { margin: 0; color: var(--text-soft); font-size: .92rem; }
.tpl-row dd p:last-child { margin-bottom: 0; }

/* ---------------- 搜索框 ---------------- */
input[type="search"], input[type="text"], input[type="number"], input[type="password"],
input[type="date"], input[type="email"], select, textarea {
  width: 100%; padding: 10px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff; color: var(--navy);
  font-family: inherit; font-size: .93rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(8, 123, 236, .3); outline-offset: 1px; border-color: var(--brand); }
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
label { display: block; font-size: .88rem; color: var(--text-soft); margin-bottom: 6px; font-weight: 600; }

/* ---------------- 页脚（深蓝，参照站点 footer） ---------------- */
.footer { border-top: 1px solid rgba(255, 255, 255, .08); background: var(--navy); padding: 46px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: rgba(255, 255, 255, .75); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-langs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-langs a.is-current { color: #fff; font-weight: 700; }
.footer-brand p { font-size: .9rem; margin-bottom: 10px; color: rgba(255, 255, 255, .68); }
.footer-brand .brand { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 34px; padding-top: 18px;
  color: rgba(255, 255, 255, .55); font-size: .85rem;
}

/* ---------------- 页内提示 ---------------- */
.flash {
  border-radius: var(--radius-sm); padding: 12px 16px; margin: 16px 0;
  border: 1px solid var(--border); background: #fff; font-size: .92rem;
}
.flash-ok { border-color: rgba(8, 123, 236, .35); background: #eaf5ff; color: #075bdc; }
.flash-err { border-color: rgba(229, 72, 77, .35); background: #fdeeee; color: #b3261e; }

.empty { text-align: center; padding: 46px 20px; color: var(--text-dim); }
.empty strong { display: block; color: var(--text-soft); margin-bottom: 6px; }

/* 功能项版本图例 + 三档配色（普通版 / 通用 / 高级版） */
.chip-legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
  margin: -6px 0 24px; font-size: .84rem; color: var(--text-soft);
}
.chip-legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.chip-legend .lg i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chip-legend .lg-normal i { background: linear-gradient(180deg, #5cc8ff, #087bec); box-shadow: 0 0 0 3px rgba(8, 123, 236, .12); }
.chip-legend .lg-both i { background: linear-gradient(180deg, #4ee0a8, #16c784); box-shadow: 0 0 0 3px rgba(22, 199, 132, .14); }
.chip-legend .lg-premium i { background: linear-gradient(180deg, #ffc46b, #ff8a00); box-shadow: 0 0 0 3px rgba(255, 138, 0, .14); }

/* 高级版专属 */
.chip.is-premium {
  border-color: rgba(255, 138, 0, .42);
  background: linear-gradient(180deg, #fffaf3, #ffffff);
  box-shadow: 0 8px 18px -12px rgba(255, 138, 0, .7);
}
.chip.is-premium::before { background: linear-gradient(180deg, #ffc46b, #ff8a00); }
.chip.is-premium:hover { border-color: rgba(255, 138, 0, .7); }
/* 普通版 + 高级版通用：与普通版同色（不额外着色） */
.chip.is-both::before { background: linear-gradient(180deg, #5cc8ff, #087bec); }

.chip-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: .64rem; font-style: normal; font-weight: 800; line-height: 1.5;
  color: #fff; border-radius: 6px; vertical-align: 1px;
}
/* 普通版 / 通用：同一套蓝色（只有高级版专属用金色区分） */
.chip-tag.tag-normal, .chip-tag.tag-both { background: linear-gradient(140deg, #6cc9ff, #087bec); box-shadow: 0 4px 10px -6px rgba(8, 123, 236, .9); }
.chip-tag.tag-premium, .chip-tag { background: linear-gradient(140deg, #ffb347, #ff8a00); box-shadow: 0 4px 10px -6px rgba(255, 138, 0, .9); }

/* ---------------- 首页：工具界面预览（复刻真实菜单样式） ---------------- */
.demo-section { background: var(--bg-soft); border-top: 1px solid var(--border-soft); }
.tw-app {
  max-width: 960px; margin: 0 auto; border-radius: 6px; overflow: hidden;
  background: #eceae6; border: 1px solid #b9c0cc;
  box-shadow: 0 34px 70px -36px rgba(9, 26, 54, .5);
  font-size: 12.5px; color: #3a3f47; text-align: left;
}
.tw-titlebar {
  display: flex; align-items: center; justify-content: center; position: relative;
  padding: 9px 12px; background: linear-gradient(180deg, #8b9ab5, #75859f);
  color: #fff; font-weight: 700; font-size: .9rem; letter-spacing: .01em;
}
.tw-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 1rem; opacity: .95; cursor: pointer; }
.tw-body { display: grid; grid-template-columns: 148px 1fr; height: 486px; }
.tw-side { background: #8e9cb8; display: flex; flex-direction: column; }
.tw-brand { display: flex; align-items: center; gap: 8px; padding: 12px 10px; background: rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.tw-logo { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: linear-gradient(150deg, #ffd86b, #f0a92c); color: #6b4a00; font-weight: 900; font-size: .8rem; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.tw-brand-text { font-size: .72rem; line-height: 1.2; color: #fff; font-weight: 700; }
.tw-nav { display: flex; flex-direction: column; padding: 6px 0; }
.tw-nav-item {
  appearance: none; border: 0; background: transparent; cursor: pointer; text-align: left;
  padding: 11px 14px; font-size: .82rem; color: #f2f5fa; font-family: inherit;
  border-left: 3px solid transparent;
}
.tw-nav-item:hover { background: rgba(255, 255, 255, .12); }
.tw-nav-item.is-active { background: #a6b4cb; border-left-color: #35c6d6; color: #fff; font-weight: 700; }
.tw-zone { margin-top: auto; padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .18); color: #f2f5fa; font-size: .76rem; line-height: 1.5; text-align: right; }
.tw-zone b { display: block; }
.tw-content { padding: 14px 16px 16px; background: #eceae6; min-width: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.tw-app[data-scan="idle"] .tw-dataset tbody tr { display: none; }
.tw-page { display: none; }
.tw-page.is-active { display: block; }
.tw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tw-head h3 { margin: 0; font-size: 1rem; color: #2f3540; }
.tw-head small { display: block; color: #9098a4; font-size: .76rem; margin-top: 3px; }
.tw-green-note { color: #3aa655; font-size: .78rem; font-weight: 700; }
.tw-card-title {
  background: #8fa0bb; color: #fff; font-size: .8rem; font-weight: 700;
  padding: 7px 12px; border-radius: 2px; margin: 12px 0 10px;
}
.tw-card-title-icon { display: flex; align-items: center; justify-content: space-between; }
.tw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tw-stat { background: #f7f6f3; border: 1px solid #dcdcd6; border-top: 3px solid #9aa7bb; border-radius: 3px; padding: 10px 12px; }
.tw-b-blue { border-top-color: #3aa0d8; }
.tw-b-orange { border-top-color: #e39b3c; }
.tw-b-green { border-top-color: #4fbf5f; }
.tw-stat span { display: block; color: #8b93a0; font-size: .74rem; }
.tw-stat b { display: block; margin-top: 8px; font-size: .86rem; color: #33383f; }
.tw-notice { background: #f7f6f3; border: 1px solid #dcdcd6; border-left: 3px solid #35c6d6; padding: 12px 14px; border-radius: 3px; max-height: 210px; overflow: auto; }
.tw-notice b { display: block; margin-bottom: 8px; color: #2f3540; }
.tw-notice p { margin: 0 0 9px; color: #555b64; font-size: .78rem; line-height: 1.75; }
.tw-toolbar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
  padding: 8px 10px; background: #f3f4ef; border: 1px solid #dcded8; border-radius: 8px;
}
.tw-progress {
  position: relative; flex: 1 1 150px; height: 14px; min-width: 96px;
  background: #e4e7e1; border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(40, 50, 60, .14);
}
.tw-progress i {
  display: block; height: 100%; border-radius: 999px; position: relative;
  background: linear-gradient(90deg, #7ed957, #42b551 55%, #35a344);
  box-shadow: 0 0 12px rgba(66, 181, 81, .5);
  transition: width .6s ease;
}
.tw-progress i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.5), rgba(255,255,255,0));
  transform: translateX(-100%); animation: tw-sheen 2.6s linear infinite;
}
@keyframes tw-sheen { to { transform: translateX(100%); } }
.tw-pct {
  font-size: .74rem; font-weight: 700; color: #3f4a57; font-variant-numeric: tabular-nums;
  background: #fff; border: 1px solid #d6d9d3; border-radius: 999px; padding: 3px 10px;
  min-width: 48px; text-align: center; box-shadow: 0 1px 2px rgba(20, 30, 50, .07);
}
.tw-btn {
  appearance: none; cursor: pointer; font-family: inherit; font-size: .76rem;
  padding: 6px 12px; border-radius: 3px; border: 1px solid #b9c0cc;
  background: linear-gradient(180deg, #93a2bb, #7d8ca6); color: #fff;
}
.tw-btn:hover { filter: brightness(1.06); }
.tw-btn-blue {
  appearance: none; cursor: pointer; font-family: inherit; border: 0; border-radius: 999px;
  padding: 10px 24px; font-size: .8rem; font-weight: 800; color: #fff; letter-spacing: .01em;
  background: linear-gradient(180deg, #58b9f0, #2b83c9);
  box-shadow: 0 9px 20px -12px rgba(43, 131, 201, 1), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tw-btn-blue:hover { transform: translateY(-1px); box-shadow: 0 13px 24px -14px rgba(43, 131, 201, 1), inset 0 1px 0 rgba(255, 255, 255, .35); }
.tw-btn-blue:active { transform: translateY(0); }
.tw-btn-green {
  appearance: none; cursor: pointer; font-family: inherit; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 17px; color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .01em;
  background: linear-gradient(180deg, #5ecb70, #2f9e40);
  box-shadow: 0 7px 16px -9px rgba(47, 158, 64, 1), inset 0 1px 0 rgba(255, 255, 255, .38);
  transition: transform .15s ease, box-shadow .15s ease, background .25s ease;
}
.tw-btn-green::before { content: "❙❙"; font-size: .66rem; letter-spacing: -.06em; opacity: .92; }
.tw-btn-green:hover { transform: translateY(-1px); box-shadow: 0 11px 20px -11px rgba(47, 158, 64, 1), inset 0 1px 0 rgba(255, 255, 255, .38); }
.tw-btn-green:active { transform: translateY(0); }
.tw-btn-green.is-paused {
  background: linear-gradient(180deg, #ffc76f, #ef9014);
  box-shadow: 0 7px 16px -9px rgba(239, 144, 20, 1), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.tw-btn-green.is-paused::before { content: "▶"; font-size: .7rem; letter-spacing: 0; }
.tw-btn-red {
  appearance: none; cursor: pointer; border: 0; border-radius: 999px;
  width: 36px; height: 34px; display: inline-grid; place-items: center;
  background: linear-gradient(180deg, #f0685c, #cf3a2d);
  box-shadow: 0 7px 16px -10px rgba(207, 58, 45, 1), inset 0 1px 0 rgba(255, 255, 255, .32);
  transition: transform .15s ease;
}
.tw-btn-red svg { display: block; filter: drop-shadow(0 1px 1px rgba(110, 20, 10, .45)); }
.tw-btn-red:disabled, .tw-btn-green:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.tw-btn-red:hover { transform: translateY(-1px) scale(1.03); }
.tw-btn-red:active { transform: translateY(0) scale(.98); }
.tw-subtabs { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid #cfd2cc; margin-bottom: 10px; overflow-x: auto; }
.tw-subtabs-plain { border-bottom: 0; margin-bottom: 6px; }
.tw-subtabs button {
  appearance: none; cursor: pointer; font-family: inherit; white-space: nowrap;
  background: transparent; border: 0; border-bottom: 3px solid transparent;
  padding: 8px 11px; font-size: .8rem; color: #6b7280;
}
.tw-subtabs button:hover { color: #2f3540; }
.tw-subtabs button.is-active { color: #2b8fd0; font-weight: 700; border-bottom-color: #35c6d6; }
.tw-filter { margin-left: auto; color: #8b93a0; font-size: .72rem; padding: 0 6px; }
.tw-tablewrap { position: relative; border: 1px solid #d3d6d0; background: #f7f7f3; max-height: 292px; overflow: auto; }
.tw-table { width: 100%; border-collapse: collapse; }
.tw-table thead th {
  position: sticky; top: 0; z-index: 1; background: #e6e8e3; color: #6b7280;
  font-size: .74rem; font-weight: 600; text-align: left; padding: 8px 10px;
  border-bottom: 1px solid #d3d6d0; white-space: nowrap;
}
.tw-table tbody td { padding: 7px 10px; border-bottom: 1px solid #e8eae5; font-size: .78rem; white-space: nowrap; }
.tw-table tbody tr:hover { background: #eef4fb; }
.tw-table tbody tr.is-checked { background: #e3f1fd; }
.tw-table tbody tr.is-hidden-row { opacity: .4; }
.tw-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .74rem; }
.tw-blue { color: #2b8fd0; font-weight: 700; }
.tw-dim { color: #a2a9b3; }
.tw-r { text-align: right; }
.tw-c { width: 30px; }
.tw-cb { display: inline-block; width: 14px; height: 14px; border: 1px solid #b3bcc7; background: #fff; border-radius: 2px; cursor: pointer; vertical-align: -2px; }
tr.is-checked .tw-cb { background: #2b8fd0; border-color: #2b8fd0; box-shadow: inset 0 0 0 2px #fff; }
.tw-ico {
  display: inline-grid; place-items: center; width: 24px; height: 22px; margin-left: 5px;
  border: 1px solid #c3c9d3; border-radius: 3px; background: linear-gradient(180deg, #fbfbf9, #eceee9);
  color: #5d6673; font-size: .7rem; font-style: normal; cursor: pointer;
}
.tw-ico:hover { border-color: #2b8fd0; color: #2b8fd0; }
/* Other 页：Start 按钮 */
.tw-app .tw-btn-start {
  appearance: none; cursor: pointer; font-family: inherit;
  border: 1px solid #6b7f9e; border-radius: 6px; padding: 7px 30px;
  background: linear-gradient(180deg, #7f92ae, #6d809c);
  color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 5px 12px -8px rgba(30, 50, 80, .8);
}
.tw-app .tw-btn-start:hover { filter: brightness(1.07); }
.tw-app .tw-btn-start:active { transform: translateY(1px); }

/* 行内小字 + 紧凑步进器（Apply for Office 用） */
.tw-inline { font-size: .76rem; color: #6b7280; white-space: nowrap; }
.tw-step.is-sm { padding: 2px; }
.tw-step.is-sm input { min-width: 40px; padding: 5px 2px; font-size: .78rem; }
.tw-step.is-sm .tw-mi, .tw-step.is-sm .tw-pl { width: 24px; height: 24px; font-size: .78rem; }
.tw-row-ctl { flex-wrap: wrap; justify-content: flex-end; }

/* 兵种卡底部步进器：[−] 数值 [+] 撑满整行（与真实界面一致） */
.tw-troop-step { display: block; margin-top: 10px; padding-top: 9px; border-top: 1px solid #e2e4dd; }
.tw-troop-step .tw-step {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 0; background: transparent; border-radius: 0;
}
.tw-app .tw-troop-step .tw-step input {
  flex: 1 1 auto; min-width: 0; width: auto; height: 28px; text-align: center;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  font-size: .82rem; font-weight: 700; color: #2b3543;
}
.tw-app .tw-troop-step .tw-step input:focus { background: #dfe1da; border-radius: 5px; box-shadow: none; }
.tw-troop-step .tw-mi, .tw-troop-step .tw-pl {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 6px; font-size: .95rem;
  background: #8b9ab5; color: #fff; box-shadow: 0 3px 8px -6px rgba(40, 60, 90, .7);
}
.tw-troop-step .tw-mi:hover, .tw-troop-step .tw-pl:hover { background: #2b8fd0; color: #fff; }

/* Auto Training 顶部统计条：单行不换行 */
.tw-train-stats { flex-wrap: nowrap; white-space: nowrap; }
.tw-train-stats > span { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.tw-app .tw-train-stats .tw-num { width: 58px; }
/* Auto Training：兵种卡（真实图标 + 标题同行） */
.tw-troop { border: 1px solid #d5d8d1; border-radius: 8px; background: #f5f5f1; padding: 9px; min-width: 0; }
.tw-troop-head { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 9px; }
.tw-troop-icon {
  width: 46px; height: 46px; border-radius: 6px; border: 1px solid #cbd0c8;
  display: block; object-fit: cover; flex: 0 0 auto;
}
.tw-troop-title { font-size: .82rem; font-weight: 750; color: #2b3543; line-height: 1.35; }
.tw-troop-timer { display: block; font-size: .68rem; font-weight: 700; color: #e2761a; margin-top: 3px; }
.tw-app .tw-num {
  width: 58px; height: 24px; border: 1px solid #dedfd8; border-radius: 5px; padding: 0 5px;
  background: #eeefe9; font-family: inherit; font-size: .76rem; font-weight: 700; color: #37424f;
  text-align: center; line-height: 22px; box-shadow: none;
}
.tw-app .tw-num:focus { outline: 0; border-color: #2b8fd0; background: #f6f7f3; box-shadow: 0 0 0 2px rgba(43, 143, 208, .18); }
.tw-train-stats { display: flex; align-items: center; gap: 20px; }
.tw-train-stats > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.tw-train-stats .tw-sw { margin-left: auto; }

/* 文本输入 + 表情按钮（Reply Text 行用） */
.tw-text { display: inline-flex; align-items: center; gap: 7px; }
.tw-app .tw-text-input {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 1px;
  border: 1px solid #d7dee8; border-radius: 8px; padding: 6px 10px;
  min-width: 158px; min-height: 32px; max-width: 210px;
  background: #fbfbf8; font-family: inherit; font-size: .8rem; color: #2b3b4e;
  box-shadow: inset 0 1px 2px rgba(20, 40, 70, .05); cursor: text; outline: 0;
  line-height: 1.5;
}
.tw-app .tw-text-input:focus { border-color: #2b8fd0; box-shadow: 0 0 0 2px rgba(43, 143, 208, .16); }
.tw-app .tw-text-input img {
  width: 18px; height: 18px; display: inline-block; vertical-align: -4px;
  margin: 0 1px; border-radius: 2px;
}
.tw-emoji {
  width: 32px; height: 32px; display: inline-grid; place-items: center; flex: 0 0 auto;
  border-radius: 8px; background: linear-gradient(180deg, #93a2bb, #7d8ca6);
  color: #fff; font-style: normal; font-size: .95rem; cursor: pointer;
  box-shadow: 0 4px 10px -6px rgba(40, 60, 90, .6);
}
.tw-emoji:hover { filter: brightness(1.07); }
/* 子项（缩进行）样式对齐真实界面 */
.tw-row.is-sub .tw-row-txt b { font-weight: 500; color: #3d4855; font-size: .8rem; }
.tw-row.is-sub .tw-row-txt small { font-size: .71rem; color: #96a0ad; }
.tw-row.is-sub { padding-left: 34px; position: relative; }
.tw-row.is-sub::before {
  content: ""; position: absolute; left: 20px; top: 50%; width: 7px; height: 1.5px;
  background: #c2c8d0; transform: translateY(-50%);
}

/* 道具小图标 / 稀有度 / Boss / 采集状态 / 迷你开关 */
.tw-dataset { display: none; }
.tw-dataset.is-active { display: block; }
.tw-item {
  position: relative; display: inline-block; width: 24px; height: 24px; margin-right: 7px;
  border-radius: 5px; vertical-align: -7px; overflow: visible;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
}
/* 内部矢量图标（原创绘制，风格同游戏道具） */
.tw-item-svg {
  position: absolute; inset: 0; margin: auto; color: rgba(255, 255, 255, .96);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4));
}
.tw-item-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
/* 左上角高光，更像一块图标 */
.tw-item::after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 7px; height: 7px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.85), rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.tw-item.purple { background: linear-gradient(140deg, #b06bf0, #7c3aed); }
.tw-item.orange { background: linear-gradient(140deg, #fbbf24, #d97706); }
.tw-item.green { background: linear-gradient(140deg, #4ade80, #15803d); }
.tw-item.blue { background: linear-gradient(140deg, #60a5fa, #1d4ed8); }
.tw-item.gold { background: linear-gradient(140deg, #fcd34d, #b45309); }
.tw-item.gray { background: linear-gradient(140deg, #cbd5e1, #64748b); }
.tw-item i {
  position: absolute; right: -5px; bottom: -6px; z-index: 2;
  font-style: normal; font-size: .55rem; font-weight: 800; line-height: 1.45;
  color: #fff; background: rgba(24, 30, 40, .88); border-radius: 3px; padding: 0 3px;
}
.tw-plus { display: inline-block; margin-left: 2px; color: #8b93a0; font-size: .7rem; vertical-align: 2px; }
.tw-rare {
  display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: .68rem; font-weight: 700;
  background: #fff5e6; border: 1px solid #f0b675; color: #c2751c; white-space: nowrap;
}
.tw-boss {
  display: inline-block; margin-right: 7px; padding: 1px 6px; border-radius: 3px;
  background: #57606f; color: #fff; font-size: .64rem; font-weight: 700; letter-spacing: .02em;
}
.tw-doing { color: #2f9e40; font-weight: 700; }
.tw-idle { color: #9aa4b1; }
.tw-auto { display: inline-flex; align-items: center; gap: 5px; }
.tw-auto i { font-style: normal; color: #8b93a0; font-size: .66rem; }
.tw-mini-sw { display: inline-block; width: 28px; height: 15px; border-radius: 999px; background: #c3c9d3; position: relative; }
.tw-mini-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tw-mini-sw.is-on { background: #4fbf5f; }
.tw-mini-sw.is-on::after { transform: translateX(13px); }
.tw-pill { display: inline-block; padding: 1px 8px; border-radius: 9px; background: #e4f5e6; color: #359b47; font-size: .72rem; font-weight: 700; }
.tw-tip {
  position: absolute; z-index: 4; width: 232px; padding: 10px 12px;
  background: #f7f7f3; border: 1px solid #cbcfc7; border-radius: 8px;
  box-shadow: 0 14px 30px -14px rgba(20, 30, 50, .45);
}
.tw-tip-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .74rem; padding: 3px 0; }
.tw-tip-row span { color: #6b7280; }
.tw-tip-row b { color: #2f3540; }
.tw-tip-hero { width: 250px; }
.tw-tip-hero b { display: block; font-size: .8rem; }
.tw-tip-hero small { display: block; color: #6b7280; font-size: .74rem; margin-top: 4px; }
.tw-pane { display: none; }
.tw-pane.is-active { display: block; }
.tw-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; background: #f7f6f3; border-bottom: 1px solid #e4e4de; }
.tw-row.is-sub { padding-left: 26px; background: #f2f1ed; }
.tw-row-txt b { display: block; font-size: .82rem; color: #33383f; font-weight: 600; }
.tw-row-txt small { display: block; color: #9098a4; font-size: .73rem; margin-top: 2px; }
.tw-row-ctl { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.tw-toggle { display: inline-block; width: 46px; height: 24px; border-radius: 3px; background: #9aa3ae; position: relative; cursor: pointer; flex: 0 0 auto; }
.tw-toggle i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 2px; background: #fff; transition: transform .2s; }
.tw-toggle.is-on { background: #4fbf5f; }
.tw-toggle.is-on i { transform: translateX(22px); }
.tw-seg {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: #e8eae4; border: 0; border-radius: 9px;
}
.tw-seg button {
  appearance: none; cursor: pointer; font-family: inherit; white-space: nowrap;
  border: 0; border-radius: 7px; background: transparent;
  padding: 7px 14px; font-size: .78rem; font-weight: 600; color: #5b6675;
  transition: background .18s, color .18s, box-shadow .18s;
}
.tw-seg button:hover { background: #e4eaf3; color: #2b3b4e; }
/* 多选分段：选中项加对勾，提示可多选 */
.tw-seg.is-multi button.is-active::before { content: "✓"; font-size: .7rem; margin-right: 4px; opacity: .9; }

.tw-seg button.is-active {
  background: #fbfbf8; color: #1b6fd6; font-weight: 800;
  box-shadow: 0 2px 6px -3px rgba(20, 50, 90, .3), inset 0 0 0 1px #cfdbe8;
}
.tw-step {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: #e8eae4; border-radius: 9px;
}
.tw-step input {
  border: 0; background: transparent; text-align: center; font-family: inherit;
  font-size: .82rem; font-weight: 700; color: #2b3b4e; padding: 6px 4px; min-width: 54px;
}
.tw-step input:focus { outline: 0; background: #fff; box-shadow: 0 0 0 2px rgba(43, 143, 208, .22); border-radius: 5px; }
.tw-mi, .tw-pl {
  appearance: none; cursor: pointer; width: 27px; height: 27px; border: 0; border-radius: 7px;
  background: #fbfbf8; color: #4a5568; font-size: .85rem; font-weight: 800; font-family: inherit;
  box-shadow: 0 1px 3px -1px rgba(20, 40, 70, .25); transition: background .16s, color .16s, transform .12s;
}
.tw-mi:hover, .tw-pl:hover { background: #2b8fd0; color: #fff; }
.tw-mi:active, .tw-pl:active { transform: scale(.94); }
.tw-sel { display: inline-flex; }
.tw-sel select {
  appearance: none; cursor: pointer; font-family: inherit; font-size: .78rem; font-weight: 600;
  border: 1px solid #d7dee8; border-radius: 9px; padding: 8px 30px 8px 12px;
  background: #fbfbf8 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='9' height='6'><path d='M0 0l4.5 5.5L9 0z' fill='%237c8797'/></svg>") no-repeat right 11px center;
  color: #2b3b4e; box-shadow: inset 0 1px 2px rgba(20, 40, 70, .05);
  transition: border-color .18s, box-shadow .18s;
}
.tw-sel select:hover { border-color: #b5cade; }
.tw-sel select:focus { outline: 0; border-color: #2b8fd0; box-shadow: 0 0 0 3px rgba(43, 143, 208, .15); }
.tw-split .tw-sel, .tw-split .tw-sel select, .tw-field-block .tw-sel, .tw-field-block .tw-sel select { width: 100%; }
.tw-input { display: inline-block; min-width: 44px; padding: 6px 8px; border: 1px solid #c9cdc7; border-radius: 3px; background: #fbfbf9; text-align: center; font-size: .78rem; }
.tw-slider { display: inline-flex; align-items: center; gap: 10px; }
.tw-slider input { width: 130px; accent-color: #2b8fd0; }
.tw-slider b { font-size: .76rem; color: #33383f; min-width: 46px; text-align: right; }
.tw-key { display: inline-block; min-width: 58px; padding: 6px 10px; margin-left: 6px; border: 1px solid #c9cdc7; border-radius: 3px; background: #fbfbf9; text-align: center; font-size: .76rem; color: #33383f; }
.tw-train-stats { display: flex; align-items: center; gap: 20px; padding: 11px 14px; background: #eeefe9; border-bottom: 1px solid #dfe1d9; font-size: .78rem; color: #5d6673; flex-wrap: wrap; }
.tw-train-stats b { color: #2f3540; }
.tw-train-stats .tw-toggle { margin-left: auto; }
.tw-barracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px 12px; }
.tw-bk { border: 1px solid #d5d8d1; border-radius: 8px; padding: 9px 11px; background: #f5f5f1; text-align: center; font-size: .78rem; }
.tw-bk b { display: block; color: #2f3540; margin-top: 3px; }
.tw-troops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 12px 12px; }
.tw-troop { border: 1px solid #d5d8d1; border-radius: 8px; background: #f5f5f1; padding: 9px; }
.tw-troop-img { position: relative; height: 46px; border-radius: 6px; background: linear-gradient(140deg, #7fc8b6, #4f9f8a); margin-bottom: 7px; }
.tw-troop-img span { position: absolute; left: 4px; top: 3px; color: #fff; font-size: .66rem; font-weight: 700; }
.tw-troop-img i { position: absolute; right: 5px; bottom: 4px; font-style: normal; color: #fff; font-size: .8rem; font-weight: 800; }
.tw-troop-name { font-size: .78rem; font-weight: 700; color: #2f3540; }
.tw-troop-sub, .tw-troop-line { display: flex; align-items: center; justify-content: space-between; font-size: .72rem; color: #6b7280; margin-top: 3px; }
.tw-troop-sub b, .tw-troop-line b { color: #33383f; }
/* 兵种卡小结框（Training speedup / Diamond boost）：真实可勾选 */
.tw-cbx {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  width: 15px; height: 15px; flex: 0 0 auto; margin-left: auto; margin-right: 2px;
  border: 1.5px solid #b6c0cb; border-radius: 4px; background: #fdfdfb;
  position: relative; transition: background .15s, border-color .15s, box-shadow .15s;
}
.tw-cbx:hover { border-color: #2b8fd0; box-shadow: 0 0 0 3px rgba(43, 143, 208, .12); }
.tw-cbx:checked { background: #2b8fd0; border-color: #2b8fd0; }
.tw-cbx:checked::after {
  content: ""; position: absolute; left: 4px; top: .5px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(43deg);
}
.tw-troop-line { cursor: pointer; user-select: none; }
.tw-troop-line b { min-width: 34px; text-align: right; }

/* Auto Join / Auto Farm：与真实工具一致的样式 */
/* Farm Settings：多行输入框 */
.tw-app .tw-modal .tw-textarea {
  width: 100%; min-height: 88px; margin-top: 10px; resize: vertical;
  border: 1px solid #d7dee8; border-radius: 6px; padding: 9px 11px;
  background: #fbfbf8; font-family: inherit; font-size: .82rem; color: #2b3543;
  box-shadow: inset 0 1px 2px rgba(20, 40, 70, .05);
}
.tw-app .tw-modal .tw-textarea:focus { outline: 0; border-color: #2b8fd0; box-shadow: 0 0 0 2px rgba(43, 143, 208, .16); }
.tw-modal .tw-field-block { display: block; }
.tw-modal .tw-field-row .tw-sw { margin-left: auto; }

/* 演示窗口内的弹窗（Join Settings 等） */
.tw-app { position: relative; }
.tw-modal { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; }
.tw-modal[hidden] { display: none; }
.tw-modal-mask { position: absolute; inset: 0; background: rgba(18, 28, 42, .42); }
.tw-modal-box {
  position: relative; width: min(720px, 100%); max-height: 100%;
  display: flex; flex-direction: column; overflow: hidden;
  background: #f5f5f1; border: 1px solid #7d8ea6; border-radius: 6px;
  box-shadow: 0 26px 60px -22px rgba(10, 20, 35, .75);
}
.tw-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; background: linear-gradient(180deg, #8b9cba, #7b8ca8);
  color: #fff; font-size: .84rem; font-weight: 750;
}
.tw-modal-x {
  appearance: none; cursor: pointer; font-family: inherit; line-height: 1;
  width: 26px; height: 26px; border: 1px solid #dfe3ea; border-radius: 5px;
  background: #f7f8fa; color: #46536a; font-size: .9rem; font-weight: 700;
}
.tw-modal-x:hover { background: #fff; color: #d64a3a; }
.tw-modal-body { flex: 1 1 auto; overflow: auto; }
.tw-modal .tw-field { background: #f5f5f1; border-bottom: 1px solid #e6e7e1; }
.tw-modal .tw-field > label { flex: 1 1 260px; }
.tw-modal .tw-step-end { flex: 0 1 260px; }
.tw-modal .tw-seg { flex: 0 1 300px; }
.tw-modal-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #e2e5e0; }
.tw-list-box { background: #f5f5f1; padding: 11px 14px 14px; min-height: 150px; }
.tw-list-title { display: block; font-size: .8rem; font-weight: 700; color: #37424f; margin-bottom: 9px; }
.tw-list-body { font-size: .85rem; color: #2b3543; line-height: 1.75; word-break: break-all; }
.tw-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 16px; background: #eceee8; border-top: 1px solid #dcded7; }
@media (max-width: 620px) { .tw-modal-2col { grid-template-columns: 1fr; } }


.tw-ico-group { display: inline-flex; align-items: center; gap: 6px; }
.tw-col-head .tw-ico { width: 22px; height: 22px; font-size: .78rem; }
.tw-li-ctl { display: inline-flex; align-items: center; gap: 10px; }
.tw-li-txt b { font-size: .84rem; }
.tw-li-txt small { font-size: .72rem; }

/* 下划线式分段（本体宽度铺满，选中项青蓝下划线） */
.tw-split .tw-seg, .tw-modal .tw-seg {
  display: flex; align-items: stretch; justify-content: space-between;
  width: 100%; min-width: 0; flex: 1 1 auto;
  background: transparent; padding: 0; border-radius: 0; gap: 0;
}
.tw-split .tw-seg button, .tw-modal .tw-seg button {
  flex: 1 1 auto; text-align: center; background: transparent; border: 0;
  border-bottom: 3px solid transparent; border-radius: 0;
  padding: 7px 4px 8px; font-size: .8rem; font-weight: 650; color: #6b7280;
}
.tw-split .tw-seg button:hover, .tw-modal .tw-seg button:hover { background: transparent; color: #2b3b4e; }
.tw-split .tw-seg button.is-active, .tw-modal .tw-seg button.is-active { background: transparent; color: #2b3b4e; border-bottom-color: #35c6d6; box-shadow: none; }
.tw-split .tw-seg.is-multi button.is-active::before { content: none; }

/* 数值输入 + 独立 −/+ 方块（Min/Max Level 等） */
.tw-split .tw-step-end, .tw-modal .tw-step-end { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; padding: 0; background: transparent; border-radius: 0; }
.tw-app .tw-split .tw-step-end input, .tw-app .tw-modal .tw-step-end input {
  flex: 1 1 auto; min-width: 52px; width: auto; height: 34px; padding: 0 10px; text-align: left;
  background: #fbfbf8; border: 1px solid #d7dee8; border-radius: 5px;
  font-size: .84rem; font-weight: 650; color: #2b3543; box-shadow: none;
}
.tw-split .tw-step-end .tw-mi, .tw-split .tw-step-end .tw-pl, .tw-modal .tw-step-end .tw-mi, .tw-modal .tw-step-end .tw-pl {
  width: 32px; height: 34px; flex: 0 0 auto; border: 0; border-radius: 5px;
  background: #7f8ea6; color: #fff; font-size: .95rem; font-weight: 700; box-shadow: none;
}
.tw-split .tw-step-end .tw-mi:hover, .tw-split .tw-step-end .tw-pl:hover, .tw-modal .tw-step-end .tw-mi:hover, .tw-modal .tw-step-end .tw-pl:hover { background: #2b8fd0; }
.tw-split .tw-field, .tw-modal .tw-field { gap: 14px 22px; flex-wrap: wrap; }
.tw-split .tw-field > label, .tw-modal .tw-field > label { flex: 1 1 200px; min-width: 0; }
.tw-split .tw-field .tw-seg { flex: 1 1 260px; }
.tw-split .tw-field-members { flex-wrap: nowrap; }
.tw-split .tw-field-members > label { flex: 0 1 48%; }
.tw-split .tw-field-members .tw-seg { flex: 1 1 48%; min-width: 0; }
.tw-split .tw-btn-blue { border: 1px solid #6aa8dd; }

/* 游戏表情面板 */
.tw-emoji-pop {
  position: absolute; z-index: 45; width: 296px; padding: 9px 11px 11px;
  background: #f4f4f0; border: 1px solid #b9c0cc; border-radius: 5px;
  box-shadow: 0 20px 44px -20px rgba(15, 25, 40, .78);
}
.tw-emoji-pop[hidden] { display: none; }
.tw-emoji-pop-title { font-size: .82rem; font-weight: 700; color: #37424f; margin-bottom: 9px; }
.tw-emoji-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px;
  max-height: 208px; overflow-y: auto; padding-right: 2px;
}
.tw-emoji-grid button {
  appearance: none; cursor: pointer; padding: 2px; line-height: 0;
  border: 1px solid #d3d7d0; border-radius: 4px; background: #fbfbf8;
  transition: border-color .15s, background .15s, transform .12s;
}
.tw-emoji-grid button:hover { border-color: #2b8fd0; background: #eaf4fd; transform: translateY(-1px); }
.tw-emoji-grid button.is-picked { border-color: #2b8fd0; background: #d9ecfb; }
.tw-emoji-grid img { width: 100%; height: auto; display: block; border-radius: 3px; }

/* Settings 页 */
.tw-panel-bar-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tw-panel-bar-btn .tw-sq-btn { background: #f3f4f6; color: #46536a; }
.tw-set-list { background: #f6f6f2; border: 1px solid #e2e5e0; border-top: 0; }
.tw-set-row {
  display: flex; align-items: center; gap: 16px; padding: 13px 16px;
  border-bottom: 1px solid #e6e8e2; min-height: 58px;
}
.tw-set-row:last-child { border-bottom: 0; }
.tw-set-txt { flex: 1 1 auto; min-width: 0; }
.tw-set-txt b { display: block; font-size: .82rem; font-weight: 700; color: #2b3543; }
.tw-set-txt small { display: block; font-size: .72rem; color: #8b95a2; margin-top: 4px; }
.tw-set-ctl { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.tw-set-ctl-wide { flex: 0 1 460px; flex-direction: column; align-items: stretch; gap: 4px; }
.tw-sq-btn {
  appearance: none; cursor: pointer; font-family: inherit; color: #46536a;
  width: 32px; height: 32px; display: inline-grid; place-items: center; flex: 0 0 auto;
  border: 1px solid #cfd5de; border-radius: 5px; background: #f7f8f6; font-size: .95rem;
  transition: background .16s, color .16s;
}
.tw-sq-btn:hover { background: #e9f3fb; border-color: #9fc4e6; color: #1b6fd6; }
.tw-num-row { display: inline-flex; align-items: center; gap: 8px; }
.tw-app .tw-num-box {
  width: 78px; height: 32px; text-align: center; padding: 0 6px;
  border: 1px solid #cfd5de; border-radius: 5px; background: #fbfbf8;
  font-family: inherit; font-size: .82rem; font-weight: 650; color: #2b3543; box-shadow: none;
}
.tw-key-box {
  display: inline-grid; place-items: center; min-width: 186px; height: 34px; padding: 0 12px;
  border: 1px solid #cfd5de; border-radius: 4px; background: #fbfbf8;
  font-size: .82rem; font-weight: 650; color: #37424f;
}
.tw-sel-wrap { position: relative; display: inline-flex; }
.tw-sel-wrap select { padding-right: 40px; }
.tw-sel-lg select, .tw-sel-sm select {
  appearance: none; cursor: pointer; font-family: inherit; font-weight: 650; color: #2b3543;
  height: 34px; padding: 0 12px; border: 1px solid #cfd5de; border-radius: 5px; background: #cfe0ef;
  box-shadow: none;
}
.tw-sel-sm select { background: #fbfbf8; min-width: 138px; }
.tw-sel-arrow {
  position: absolute; right: 3px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 28px; pointer-events: none;
  display: inline-grid; place-items: center; color: #fff; font-size: .7rem;
  background: #6d8098; border-radius: 4px;
}
.tw-range { width: 100%; accent-color: #3fbf4f; }
.tw-range-labels { display: flex; justify-content: space-between; font-size: .72rem; color: #8b95a2; }
.tw-btn-ghost {
  appearance: none; cursor: pointer; font-family: inherit; color: #fff; font-weight: 650;
  padding: 9px 16px; border: 1px solid #6a7d97; border-radius: 5px;
  background: linear-gradient(180deg, #7f92ae, #6d809c); font-size: .8rem;
  box-shadow: 0 5px 12px -9px rgba(30, 50, 80, .9);
}
.tw-btn-ghost:hover { filter: brightness(1.07); }

/* Teams · Equipment 页 */
.tw-eq-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: nowrap;
  padding: 9px 12px; background: #f2f2ee; border-bottom: 1px solid #e2e5e0;
}
.tw-eq-bar-2 { background: #ecede8; }
.tw-eq-teams { display: inline-flex; align-items: center; gap: 20px; }
.tw-eq-tab {
  appearance: none; cursor: pointer; font-family: inherit; background: transparent; border: 0;
  padding: 6px 2px 8px; font-size: .84rem; font-weight: 650; color: #6b7280;
  border-bottom: 3px solid transparent; transition: color .18s, border-color .18s;
}
.tw-eq-tab:hover { color: #2b3b4e; }
.tw-eq-tab.is-active { color: #2b3b4e; border-bottom-color: #35c6d6; }
.tw-eq-right { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.tw-eq-list { background: #f6f6f2; }
.tw-eq-row {
  display: grid; grid-template-columns: 48px minmax(120px, 1fr) auto auto auto;
  align-items: center; gap: 14px; padding: 10px 12px; border-bottom: 1px solid #e6e8e2;
}
.tw-eq-row:last-child { border-bottom: 0; }
.tw-eq-row picture { display: block; line-height: 0; }
.tw-eq-slot picture { display: block; width: 100%; height: 100%; }
.tw-eq-hero { width: 48px; height: 48px; border-radius: 7px; border: 2px solid #46536a; display: block; object-fit: cover; }
.tw-eq-name { min-width: 0; }
.tw-eq-name b { display: block; font-size: .84rem; font-weight: 750; color: #2b3543; }
.tw-eq-name small { display: block; font-size: .72rem; color: #8b95a2; margin-top: 4px; }
.tw-eq-slots { display: inline-flex; align-items: center; gap: 8px; }
.tw-eq-slot {
  width: 42px; height: 42px; border-radius: 7px; overflow: hidden; display: block;
  border: 1px solid rgba(30, 40, 60, .22); background: #c46fe0;
  box-shadow: 0 2px 5px -3px rgba(20, 40, 70, .5);
}
.tw-eq-slot img { width: 100%; height: 100%; display: block; object-fit: cover; image-rendering: auto; }
.tw-eq-val { font-size: .84rem; font-weight: 650; color: #4b5563; min-width: 74px; text-align: center; }
.tw-eq-acts { display: inline-flex; align-items: center; gap: 8px; }
.tw-ico-save svg { display: block; }
.tw-ico { color: #4a5568; }

/* Teams · Team Status 页 */
.tw-green-note b { color: #22a06b; }
.tw-team-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.tw-team-card {
  appearance: none; cursor: pointer; font-family: inherit; text-align: left; position: relative;
  border: 1px solid #cfd4dc; border-radius: 6px; background: #f6f6f2; padding: 12px 14px 30px;
  display: flex; flex-direction: column; gap: 7px; transition: background .18s, border-color .18s, box-shadow .18s;
}
.tw-team-card b { font-size: .84rem; color: #2b3543; font-weight: 750; }
.tw-team-card:hover { border-color: #9fc4e6; background: #eef6fd; }
.tw-team-card.is-active {
  background: linear-gradient(180deg, #5c7089, #52657c); border-color: #35c6d6;
  box-shadow: 0 6px 16px -12px rgba(20, 40, 70, .8);
}
.tw-team-card.is-active b { color: #fff; }
.tw-team-state { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 650; color: #3f4a58; }
.tw-team-state i { width: 8px; height: 8px; border-radius: 50%; background: #1fbf75; display: block; }
.tw-team-card.is-active .tw-team-state { color: #fff; }
.tw-team-dash { font-size: .78rem; color: #6b7280; }
.tw-team-card.is-active .tw-team-dash { color: rgba(255, 255, 255, .7); }
.tw-team-power { position: absolute; right: 14px; bottom: 11px; font-size: .78rem; font-weight: 650; color: #5b6675; }
.tw-team-card.is-active .tw-team-power { color: #fff; }

.tw-panel-bar {
  position: relative; margin: 14px 0 0; padding: 9px 14px 9px 18px;
  background: linear-gradient(180deg, #7d8ea6, #6d8098); color: #fff;
  font-size: .82rem; font-weight: 800; letter-spacing: .01em;
}
.tw-panel-bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #35c6d6; }
.tw-status-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: #e2e5e0; border: 1px solid #e2e5e0; border-top: 0;
}
.tw-st-cell { background: #f6f6f2; padding: 10px 14px; min-width: 0; }
.tw-st-cell span { display: block; font-size: .7rem; color: #8b95a2; margin-bottom: 6px; }
.tw-st-cell b { font-size: .84rem; font-weight: 650; color: #2b3543; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-st-cell b.is-green { color: #1fbf75; font-weight: 750; }

.tw-team-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.tw-team-bar-2 { padding-top: 0; }
.tw-right-group { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
.tw-heroes { border: 1px solid #d3d6d0; background: #fbfbf9; }
.tw-hero { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #e8eae5; }
.tw-hero:last-child { border-bottom: 0; }
.tw-hero-main { display: flex; align-items: center; gap: 8px; width: 190px; cursor: help; }
.tw-hero-img { position: relative; width: 40px; height: 40px; border-radius: 3px; background: linear-gradient(140deg, #f0b45c, #d9822b); flex: 0 0 auto; }
.tw-hero-img i { position: absolute; left: 3px; top: 2px; font-style: normal; color: #fff; font-size: .62rem; font-weight: 700; }
.tw-hero-txt b { display: block; font-size: .78rem; color: #2f3540; }
.tw-hero-txt small { display: block; color: #8b93a0; font-size: .7rem; margin-top: 2px; }
.tw-eq { position: relative; width: 38px; height: 38px; border-radius: 3px; background: linear-gradient(140deg, #b07ad6, #8a54b8); }
.tw-eq i { position: absolute; left: 3px; top: 2px; font-style: normal; color: #fff; font-size: .6rem; font-weight: 700; }
.tw-hero-plan { margin-left: auto; color: #6b7280; font-size: .76rem; }
.tw-split { display: grid; grid-template-columns: minmax(210px, 250px) minmax(0, 1fr); gap: 14px; }
@media (max-width: 720px) { .tw-split { grid-template-columns: 1fr; } }
.tw-col {
  background: #f6f7f4; border: 1px solid #d3dae2; border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 22px -20px rgba(20, 40, 70, .55);
}
.tw-col-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 15px; font-size: .82rem; font-weight: 800; color: #3a4657; letter-spacing: .01em;
  background: linear-gradient(180deg, #eceee9, #e3e5df); border-bottom: 1px solid #d8dad3;
}
.tw-col-head .tw-ico { background: #f7f8f4; border-color: #d3d6cf; }
.tw-list-item {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 15px; background: linear-gradient(180deg, #eef5f8, #e6eff4);
  border-bottom: 1px solid #dbe5ea; transition: background .2s;
}
.tw-list-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #59c8e0, #2b8fd0);
}
.tw-list-item:hover { background: linear-gradient(180deg, #e6f1f7, #dcebf3); }
.tw-list-item b { display: block; font-size: .82rem; color: #26313f; font-weight: 700; }
.tw-list-item small { display: block; color: #8b96a5; font-size: .72rem; margin-top: 4px; letter-spacing: .01em; }
.tw-x {
  font-style: normal; color: #98a3b2; cursor: pointer; font-size: .78rem; line-height: 1;
  width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 6px;
  transition: background .18s, color .18s;
}
.tw-x:hover { background: #ffe9e6; color: #d64a3a; }
.tw-empty {
  flex: 1; min-height: 96px;
  background: repeating-linear-gradient(45deg, #f4f4f0, #f4f4f0 10px, #eeefe9 10px, #eeefe9 20px);
}
.tw-field {
  padding: 14px 16px; border-bottom: 1px solid #e6e7e1; background: #f5f5f1;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.tw-field:last-of-type { border-bottom: 0; }
.tw-field label { font-size: .8rem; color: #37424f; font-weight: 700; }
.tw-field label small { display: block; color: #8d97a5; font-size: .72rem; font-weight: 400; margin-top: 4px; line-height: 1.5; }
.tw-field-block { display: block; padding: 14px 16px; }
.tw-field-block .tw-sel { margin-top: 10px; }
.tw-field-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 14px 16px; padding: 14px 16px; border-bottom: 1px solid #e6e7e1; background: #f5f5f1; }
.tw-field-2 label { display: block; font-size: .8rem; color: #37424f; font-weight: 700; margin-bottom: 9px; }
.tw-field-row { align-items: center; }
.tw-col-foot { padding: 14px 16px; text-align: right; background: #eceee8; border-top: 1px solid #dcded7; }
.tw-note { margin-top: 10px; text-align: center; font-size: .74rem; color: #8b93a0; }
@media (max-width: 820px) {
  .tw-body { grid-template-columns: 1fr; }
  .tw-nav { flex-direction: row; flex-wrap: wrap; }
  .tw-nav-item { border-left: 0; border-bottom: 3px solid transparent; padding: 9px 11px; }
  .tw-nav-item.is-active { border-bottom-color: #35c6d6; }
  .tw-zone { display: none; }
  .tw-stats { grid-template-columns: 1fr; }
  .tw-split { grid-template-columns: 1fr; }
  .tw-troops { grid-template-columns: repeat(2, 1fr); }
  .tw-barracks { grid-template-columns: 1fr; }
  .tw-row { flex-wrap: wrap; }
}

/* ---------------- 下载页安全说明 ---------------- */
.safe-panel {
  max-width: 900px; margin: 40px auto 0; padding: 22px 24px 18px;
  border-radius: var(--radius, 14px);
  background: linear-gradient(180deg, #f7fcff, #ffffff);
  border: 1px solid rgba(8, 123, 236, .18);
  box-shadow: 0 18px 40px -28px rgba(8, 80, 160, .5);
}
.safe-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.safe-head h3 { margin: 0; font-size: 1.1rem; color: var(--navy); }
.safe-icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  color: #fff; background: linear-gradient(142deg, #16c784, #0aa8c9);
  box-shadow: 0 10px 20px -10px rgba(10, 164, 107, .8);
}
.safe-list { list-style: none; padding: 0; margin: 0 0 16px; }
.safe-list li { position: relative; padding-left: 24px; margin-bottom: 9px; color: var(--text-soft); font-size: .93rem; line-height: 1.7; }
.safe-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #12a15b; font-weight: 800;
}
.hash-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.hash-table th { text-align: left; padding: 9px 10px; color: var(--text-dim); font-size: .78rem; font-weight: 800; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
.hash-table td { padding: 10px; border-bottom: 1px dashed var(--border-soft); color: var(--text-soft); word-break: break-all; }
.hash-table tr:last-child td { border-bottom: 0; }
.hash-cell { color: var(--brand, #087bec); }
.safe-panel .btn.is-copied { color: #0b8f57; border-color: rgba(11, 143, 87, .45); background: #eafaf2; }

/* 页脚非官方声明 */
.footer-disclaimer {
  margin-top: 10px; padding-top: 12px;
  border-top: 1px solid rgba(120, 150, 180, .18);
  color: var(--text-dim); font-size: .78rem; line-height: 1.7; opacity: .85;
}

/* ---------------- 购买动态挂件（社交证明） ---------------- */
.social-pop {
  position: fixed; left: 18px; bottom: 20px; z-index: 120;
  display: flex; align-items: center; gap: 12px;
  max-width: 330px; padding: 12px 34px 12px 12px;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(8, 123, 236, .16);
  border-radius: 14px;
  box-shadow: 0 18px 44px -18px rgba(4, 25, 48, .38), 0 4px 12px rgba(8, 123, 236, .1);
  animation: social-in .45s cubic-bezier(.2, 1.3, .5, 1);
}
.social-pop[hidden] { display: none; }
.social-pop.is-out { animation: social-out .35s ease forwards; }
.social-avatar {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.05rem;
  background: linear-gradient(142deg, #22c7ff, #0576ec);
  box-shadow: 0 8px 16px -8px rgba(5, 118, 236, .9);
}
.social-body { min-width: 0; }
.social-name { font-size: .84rem; color: var(--navy, #061d37); font-weight: 700; }
.social-product { font-size: .9rem; color: var(--brand, #087bec); font-weight: 800; margin-top: 2px; }
.social-product span { margin-left: 2px; }
.social-time { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .76rem; color: var(--text-dim); }
.social-dot { width: 6px; height: 6px; border-radius: 50%; background: #16c784; box-shadow: 0 0 0 3px rgba(22, 199, 132, .18); }
.social-close {
  position: absolute; top: 6px; right: 8px; border: none; background: none;
  color: #9bb0c4; font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 4px;
}
.social-close:hover { color: var(--brand, #087bec); }
@keyframes social-in { from { opacity: 0; transform: translateX(-24px) scale(.96); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes social-out { to { opacity: 0; transform: translateX(-18px) scale(.97); } }
@media (max-width: 720px) {
  .social-pop { left: 10px; right: 10px; bottom: 74px; max-width: none; }
}

/* ---------------- 首页弹窗公告 ---------------- */
.popup-mask {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 25, 48, .55); backdrop-filter: blur(4px);
  padding: 20px; animation: popup-fade .25s ease;
}
.popup-mask[hidden] { display: none; }
.popup-card {
  position: relative; width: 100%; max-width: 460px;
  background: #fff; border-radius: 18px; padding: 36px 28px 24px;
  box-shadow: 0 30px 80px rgba(4, 25, 48, .4);
  text-align: center; animation: popup-pop .32s cubic-bezier(.2, 1.4, .4, 1);
  overflow: hidden;
}
.popup-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--cyan, #14b8f5), var(--brand, #087bec));
}
.popup-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: rgba(8, 123, 236, .08); color: var(--text-soft);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.popup-close:hover { background: rgba(8, 123, 236, .15); color: var(--brand, #087bec); }
.popup-mark {
  width: 54px; height: 54px; margin: 0 auto 14px;
  display: grid; place-items: center; color: #fff; font-size: 32px; font-weight: 950; font-style: italic;
  background: linear-gradient(145deg, #22c7ff, #0576ec);
  clip-path: polygon(0 8%, 28% 8%, 50% 59%, 72% 8%, 100% 8%, 66% 94%, 35% 94%);
  filter: drop-shadow(0 6px 12px rgba(5, 118, 236, .35));
}
.popup-title { margin: 0 0 12px; font-size: 1.35rem; color: var(--navy, #061d37); }
.popup-body { color: var(--text-soft); font-size: .95rem; line-height: 1.8; margin-bottom: 20px; }
.popup-dismiss { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: var(--text-dim); font-size: .82rem; cursor: pointer; }
.popup-contacts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.popup-contact {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; text-decoration: none;
  border: 1.5px solid var(--line, #d7e5f6); background: #f5faff;
  color: var(--brand, #087bec);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.popup-contact svg { width: 20px; height: 20px; }
.popup-contact:hover {
  border-color: var(--brand, #087bec); background: #eaf4ff; color: #0576d6;
  transform: translateY(-3px); box-shadow: 0 10px 22px rgba(8, 123, 236, .22); text-decoration: none;
}
.footer-contact { display: inline-flex; align-items: center; gap: 8px; }
.fc-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; }
.fc-icon svg { width: 16px; height: 16px; }
@keyframes popup-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popup-pop { from { transform: translateY(26px) scale(.94); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

/* ---------------- 悬浮客服/TG 按钮 ---------------- */.float-wrap { position: fixed; right: 16px; bottom: 84px; z-index: 95; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand, #087bec), var(--cyan, #14b8f5));
  color: #fff; font-weight: 800; font-size: .9rem; text-decoration: none;
  box-shadow: 0 10px 26px rgba(8, 123, 236, .4);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: float-ct-in .5s ease;
}
.float-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(8, 123, 236, .5); color: #fff; text-decoration: none; }
.float-btn svg { flex: 0 0 auto; }
.float-btn::before {
  content: ""; position: absolute; inset: -6px; border-radius: 999px;
  border: 2px solid rgba(8, 123, 236, .35); animation: float-pulse 2.2s ease-out infinite;
}
.float-tg { background: linear-gradient(135deg, #2aabee, #1c96dd); box-shadow: 0 10px 26px rgba(42, 171, 238, .4); }
.float-tg::before { border-color: rgba(42, 171, 238, .35); }
@keyframes float-pulse { 0% { transform: scale(.9); opacity: .9; } 70% { transform: scale(1.25); opacity: 0; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes float-ct-in { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 720px) {
  .float-wrap { right: 12px; bottom: 18px; gap: 10px; }
  .float-btn { padding: 12px 14px; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  /* 手机端导航：单行顶栏 + 右侧汉堡展开菜单 */
  .topbar { position: sticky; top: 0; }
  .topbar-inner { height: 54px; padding: 0; gap: 8px; flex-wrap: nowrap; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; font-size: 19px; }
  .brand-text strong { font-size: .88rem; }
  .brand-text small { font-size: .64rem; }
  .topbar-right { gap: 6px; margin-left: auto; }
  .topbar-right .btn { display: none; }
  .lang-menu summary { padding: 5px 8px; }
  .lang-current { font-size: .74rem; }
  /* 汉堡按钮 */
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 40px; height: 40px; padding: 10px 8px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
  .topbar.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .topbar.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .topbar.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  /* 下拉菜单 */
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 54px;
    background: var(--header-bg, rgba(4, 25, 48, .98));
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 18px 34px rgba(4, 25, 48, .45);
    padding: 10px 16px 16px; z-index: 90;
    flex-direction: column; align-items: stretch; gap: 4px;
  }
  .topbar.open .nav { display: flex; }
  .nav-link {
    font-size: 1rem; padding: 13px 14px; border-radius: 10px;
    color: rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .06);
  }
  .nav-link.is-active { background: var(--brand, #087bec); color: #fff; }
  .nav-link-cta { background: var(--warning, #ff9418); color: #fff; }
  .nav-admin-m { display: block; border: 1px dashed rgba(255, 255, 255, .35); background: transparent; text-align: center; }
  .grid-2, .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .grid-center > * { flex: 0 0 100%; }
  .stats { gap: 1px; }
  h1 { font-size: 1.85rem; }
  .section { padding: 46px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .tpl-row { grid-template-columns: 1fr; gap: 2px; }
}
