/* =========================================================
   猫战单词 官网 · 共享设计系统
   风格：深色游戏 UI（深蓝紫背景 + 金黄渐变标题 + 金边面板）
   ========================================================= */

:root {
  /* 背景 */
  --bg-deep: #14122b;
  --bg-deep-2: #1c1838;
  --bg-sand: #2a2238;
  --panel: #241f3a;
  --panel-2: #2e2747;
  --panel-3: #382f52;

  /* 金黄主色 */
  --gold: #f5c451;
  --gold-2: #e6a82f;
  --gold-deep: #b9821a;
  --gold-glow: rgba(245, 196, 81, 0.45);

  /* 文字 */
  --cream: #f3e9d2;
  --cream-dim: #c7bda3;
  --cream-faint: #938a76;

  /* 功能色 */
  --blue: #4f93dd;
  --blue-2: #2c5fa8;
  --green: #5cc46a;
  --green-2: #3a9d4a;
  --tan: #7a6a52;
  --tan-2: #5b4e3c;
  --red: #e06b5a;

  /* 边框 / 圆角 */
  --border-gold: rgba(245, 196, 81, 0.45);
  --border-soft: rgba(255, 255, 255, 0.08);
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 9px;

  /* 阴影 */
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);

  --maxw: 1140px;
  --font-title: "ZCOOL KuaiLe", "PingFang SC", "Microsoft YaHei", "微软雅黑", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "微软雅黑", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--cream);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(99, 80, 180, 0.35), transparent 60%),
    radial-gradient(900px 500px at 85% 110%, rgba(180, 120, 40, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-2) 45%, var(--bg-sand) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ======================= 导航栏 ======================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(20, 18, 43, 0.78);
  border-bottom: 1px solid var(--border-gold);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 22px;
  color: var(--gold);
  text-shadow: 0 0 14px var(--gold-glow);
}
.brand .paw {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  border-radius: 50%;
  color: #2a1d05; font-size: 16px;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--cream-dim);
  font-size: 15px;
  transition: all 0.18s ease;
}
.nav-links a:hover { color: var(--cream); background: rgba(245, 196, 81, 0.1); }
.nav-links a.active {
  color: var(--gold);
  background: rgba(245, 196, 81, 0.14);
  border: 1px solid var(--border-gold);
}
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border-soft);
  color: var(--cream); border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 18px; cursor: pointer;
}
.nav-sep { width: 1px; height: 20px; background: var(--border-soft); margin: 0 4px; }
.nav-auth { color: var(--cream-dim) !important; }
.nav-auth:hover { color: var(--cream) !important; }
.nav-auth.active { color: var(--gold) !important; }
.nav-auth-btn { margin-left: 2px; }
.nav-user {
  padding: 6px 12px; border-radius: 999px; font-size: 14px;
  color: var(--gold); background: rgba(245, 196, 81, 0.12);
  border: 1px solid var(--border-gold);
}

/* ======================= 按钮 ======================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  color: #2a1d05;
  box-shadow: 0 6px 18px rgba(245, 196, 81, 0.35);
}
.btn-gold:hover { filter: brightness(1.06); }

.btn-blue {
  background: linear-gradient(145deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 6px 18px rgba(44, 95, 168, 0.4);
}
.btn-green {
  background: linear-gradient(145deg, var(--green), var(--green-2));
  color: #fff;
  box-shadow: 0 6px 18px rgba(58, 157, 74, 0.4);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--border-gold); color: var(--gold); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ======================= 通用区块 ======================= */
.section { padding: 78px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 {
  font-family: var(--font-title);
  font-size: 34px;
  color: var(--gold);
  text-shadow: 0 0 16px var(--gold-glow);
  margin-bottom: 10px;
}
.section-head p { color: var(--cream-dim); font-size: 16px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 16px;
  background: rgba(245, 196, 81, 0.06);
}

/* ======================= 卡片 ======================= */
.card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card-soft {
  background: rgba(46, 39, 71, 0.6);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ======================= 页脚 ======================= */
.footer {
  border-top: 1px solid var(--border-gold);
  background: rgba(15, 13, 32, 0.7);
  padding: 40px 0 30px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.footer .brand { font-size: 18px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--cream-dim); font-size: 14px; }
.footer-links a:hover { color: var(--gold); }
.footer .copy { color: var(--cream-faint); font-size: 13px; width: 100%; text-align: center; margin-top: 10px; }

/* ======================= 首屏 Hero ======================= */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-title);
  font-size: 62px;
  line-height: 1.12;
  background: linear-gradient(180deg, #fff3cf, var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 28px var(--gold-glow);
  margin-bottom: 18px;
}
.hero .sub {
  font-size: 18px;
  color: var(--cream-dim);
  margin-bottom: 30px;
  max-width: 460px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 38px; }
.hero-stats .num { font-family: var(--font-title); font-size: 30px; color: var(--gold); }
.hero-stats .lbl { font-size: 13px; color: var(--cream-faint); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--panel);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 11; }
.hero-visual .tag {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(20, 18, 43, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 6px 14px; font-size: 13px; color: var(--gold);
}

/* ======================= 玩法卡片 ======================= */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.feature:hover { transform: translateY(-6px); border-color: var(--gold); }
.feature .icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(145deg, rgba(245,196,81,0.18), rgba(245,196,81,0.05));
  border: 1px solid var(--border-gold);
  margin-bottom: 18px;
}
.feature h3 { font-family: var(--font-title); font-size: 21px; color: var(--gold); margin-bottom: 10px; }
.feature p { color: var(--cream-dim); font-size: 15px; }

/* ======================= 截图轮播 ======================= */
.gallery { position: relative; }
.slider { display: flex; gap: 18px; overflow: hidden; border-radius: var(--radius-lg); }
.slide {
  flex: 0 0 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.slider-nav { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--cream-faint); cursor: pointer; border: none;
  transition: all 0.2s ease;
}
.dot.active { background: var(--gold); width: 26px; border-radius: 999px; }

/* ======================= CTA 横幅 ======================= */
.cta {
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(245,196,81,0.16), transparent 70%),
    linear-gradient(160deg, var(--panel-3), var(--panel));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 54px 26px;
  box-shadow: var(--shadow);
}
.cta h2 { font-family: var(--font-title); font-size: 32px; color: var(--gold); margin-bottom: 12px; text-shadow: 0 0 16px var(--gold-glow); }
.cta p { color: var(--cream-dim); margin-bottom: 26px; font-size: 16px; }

/* ======================= 排行榜 ======================= */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tab { padding: 9px 20px; font-size: 14px; }
.tab {
  padding: 10px 26px; border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.03);
  color: var(--cream-dim); cursor: pointer; font-size: 15px;
  transition: all 0.18s ease;
}
.tab.active { color: #2a1d05; background: linear-gradient(145deg, var(--gold), var(--gold-deep)); border-color: transparent; font-weight: 600; }

.board { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 20px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.row:hover { border-color: var(--border-gold); transform: translateX(4px); }
.row.me { border-color: var(--gold); background: linear-gradient(160deg, rgba(245,196,81,0.12), rgba(245,196,81,0.04)); }
.rank {
  font-family: var(--font-title); font-size: 24px; text-align: center;
  width: 46px; height: 46px; line-height: 46px; border-radius: 12px;
  background: rgba(255,255,255,0.05); color: var(--cream-dim);
}
.rank.top1 { background: linear-gradient(145deg, #ffd95e, #d99b1a); color: #2a1d05; }
.rank.top2 { background: linear-gradient(145deg, #d8d8e0, #9a9aa6); color: #23232b; }
.rank.top3 { background: linear-gradient(145deg, #e0a978, #b9763f); color: #2a1605; }
.player { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(145deg, var(--panel-3), var(--panel));
  border: 1px solid var(--border-gold);
}
.player .name { font-weight: 600; color: var(--cream); }
.player .meta { font-size: 12px; color: var(--cream-faint); }
.score { font-family: var(--font-title); font-size: 22px; color: var(--gold); }

.find {
  display: flex; gap: 10px; max-width: 460px; margin: 0 auto 30px;
}
.find input {
  flex: 1; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft); background: rgba(255,255,255,0.04);
  color: var(--cream); font-size: 15px; outline: none;
}
.find input:focus { border-color: var(--border-gold); }
.find-result { text-align: center; color: var(--cream-dim); min-height: 24px; margin-bottom: 20px; }

/* ======================= 在线玩 ======================= */
.play-hero { text-align: center; padding: 70px 0 30px; }
.play-hero h1 {
  font-family: var(--font-title); font-size: 48px;
  background: linear-gradient(180deg, #fff3cf, var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 24px var(--gold-glow); margin-bottom: 14px;
}
.play-hero p { color: var(--cream-dim); font-size: 17px; max-width: 540px; margin: 0 auto 30px; }
.play-card {
  max-width: 560px; margin: 0 auto 30px; text-align: center;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-gold); border-radius: var(--radius-lg);
  padding: 40px 30px; box-shadow: var(--shadow);
}
.play-card .big-emoji { font-size: 64px; margin-bottom: 16px; }
.play-note { text-align: center; color: var(--cream-faint); font-size: 14px; }

/* ======================= 介绍页 ======================= */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 60px; }
.about-block.rev { direction: rtl; }
.about-block.rev > * { direction: ltr; }
.about-block h3 { font-family: var(--font-title); font-size: 26px; color: var(--gold); margin-bottom: 14px; }
.about-block p { color: var(--cream-dim); font-size: 16px; margin-bottom: 14px; }
.about-block .pic { border-radius: var(--radius-lg); border: 1px solid var(--border-gold); overflow: hidden; box-shadow: var(--shadow); }
.about-block .pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.faq { max-width: 760px; margin: 0 auto; }
.faq-item { background: rgba(46,39,71,0.6); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; }
.faq-item h4 { color: var(--gold); font-size: 17px; margin-bottom: 8px; }
.faq-item p { color: var(--cream-dim); font-size: 15px; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pill { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-gold); color: var(--gold); font-size: 13px; background: rgba(245,196,81,0.06); }

/* ======================= 响应式 ======================= */
@media (max-width: 860px) {
  .hero-grid, .about-block { grid-template-columns: 1fr; gap: 30px; }
  .about-block.rev { direction: ltr; }
  .features { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: rgba(20,18,43,0.98); padding: 14px; gap: 4px;
    border-bottom: 1px solid var(--border-gold); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 44px; }
  .section { padding: 56px 0; }
}

/* ======================= 排行榜：个人数据卡 ======================= */
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 8px; }
.stat-card {
  position: relative;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 15px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.stat-card .top-badge {
  position: absolute; top: -8px; right: 6px;
  display: grid; place-items: center;
  width: 38px; height: 20px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  color: #2a1d05;
  background: linear-gradient(135deg, #ffd95e, #d99b1a);
  box-shadow: 0 2px 6px rgba(217,155,26,0.5);
  z-index: 2;
}
.stat-card:hover { border-color: var(--border-gold); transform: translateY(-3px); }
.stat-card.active {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(245,196,81,0.16), rgba(245,196,81,0.04));
}
.stat-card .lbl { font-size: 13px; color: var(--cream-dim); margin-bottom: 7px; }
.stat-card .val { font-family: var(--font-title); font-size: 23px; color: var(--gold); }
.stat-hint { text-align: center; color: var(--cream-faint); font-size: 13px; margin: 0 0 22px; }

/* ======================= 介绍页：随机事件卡 ======================= */
.event-card {
  margin-top: 16px;
  background: linear-gradient(160deg, rgba(245,196,81,0.14), rgba(245,196,81,0.03));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.event-card strong { color: var(--gold); display: block; margin-bottom: 6px; font-size: 15px; }
.event-card p { color: var(--cream-dim); font-size: 14px; margin: 0; line-height: 1.7; }

/* ======================= 联系页 ======================= */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 800px; margin: 0 auto 36px; }
.contact-item {
  background: rgba(46,39,71,0.6);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 18px; text-align: center;
  transition: border-color 0.18s ease;
}
.contact-item:hover { border-color: var(--border-gold); }
.contact-item .ic { font-size: 28px; margin-bottom: 8px; }
.contact-item .t { color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.contact-item .v { color: var(--cream-dim); font-size: 14px; word-break: break-all; }

.cform {
  max-width: 560px; margin: 0 auto;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-gold); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow);
}
.cform .field { margin-bottom: 18px; text-align: left; }
.cform label { display: block; color: var(--cream-dim); font-size: 14px; margin-bottom: 8px; }
.cform input, .cform textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft); background: rgba(255,255,255,0.04);
  color: var(--cream); font-size: 15px; outline: none; font-family: var(--font-body);
}
.cform input:focus, .cform textarea:focus { border-color: var(--border-gold); }
.cform-msg { text-align: center; color: var(--gold); font-size: 14px; min-height: 20px; margin-top: 12px; }

/* ======================= 政策/条款正文 ======================= */
.doc { max-width: 820px; margin: 0 auto; }
.doc h3 { font-family: var(--font-title); color: var(--gold); font-size: 20px; margin: 26px 0 10px; }
.doc p { color: var(--cream-dim); font-size: 15px; margin-bottom: 10px; line-height: 1.8; }
.doc .updated { color: var(--cream-faint); font-size: 13px; text-align: center; margin-top: 30px; }

/* ======================= 登录 / 注册 ======================= */
.auth-section { padding: 70px 0 90px; }
.auth-card {
  max-width: 420px; margin: 0 auto;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-gold); border-radius: var(--radius-lg);
  padding: 38px 34px; box-shadow: var(--shadow); text-align: center;
}
.auth-card .eyebrow { display: inline-block; margin-bottom: 8px; }
.auth-card h2 { font-family: var(--font-title); font-size: 28px; color: var(--gold); text-shadow: 0 0 16px var(--gold-glow); margin-bottom: 22px; }
.auth-form { text-align: left; }
.auth-form .field { margin-bottom: 16px; }
.auth-form label { display: block; color: var(--cream-dim); font-size: 14px; margin-bottom: 8px; }
.auth-form input, .auth-form select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft); background: rgba(255,255,255,0.04);
  color: var(--cream); font-size: 15px; outline: none; font-family: var(--font-body);
}
.auth-form input:focus, .auth-form select:focus { border-color: var(--border-gold); }
.auth-form select option { color: #1a1730; }
.auth-tip { margin-top: 8px; color: var(--cream-faint); font-size: 13px; line-height: 1.6; }
.btn-block { width: 100%; margin-top: 6px; }
.auth-msg {
  min-height: 22px; margin-top: 14px; text-align: center;
  color: var(--cream-dim); font-size: 14px;
}
.auth-field-msg {
  min-height: 18px;
  margin-top: 8px;
  text-align: left;
  font-size: 13px;
}
.auth-msg.is-error { color: #ff9b9b; }
.auth-msg.is-success { color: var(--gold); }
.auth-msg.is-info { color: var(--cream-dim); }
.auth-switch { margin-top: 18px; color: var(--cream-dim); font-size: 14px; }
.auth-switch a { color: var(--gold); }
.auth-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 6px;
}
.auth-actions .btn { width: 100%; }

/* ======================= 错词本 ======================= */
.account-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.account-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-head h2 {
  font-family: var(--font-title);
  font-size: 24px;
  color: var(--gold);
  text-shadow: 0 0 14px var(--gold-glow);
}
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(245,196,81,0.12);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}
.status-chip.is-expired {
  border-color: rgba(224,107,90,0.45);
  background: rgba(224,107,90,0.12);
  color: #ffb7ab;
}
.status-chip.is-active {
  border-color: rgba(92,196,106,0.45);
  background: rgba(92,196,106,0.12);
  color: #9ce7a6;
}
.status-chip.is-permanent {
  border-color: rgba(102, 183, 255, 0.5);
  background: rgba(102, 183, 255, 0.14);
  color: #b9e5ff;
}
.account-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.account-metric {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.04);
}
.account-metric .label {
  display: block;
  margin-bottom: 6px;
  color: var(--cream-faint);
  font-size: 13px;
}
.account-metric strong {
  color: var(--cream);
  font-size: 17px;
}
.account-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.code-box {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.04);
}
.code-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--cream-faint);
  font-size: 13px;
}
.code-box strong {
  display: block;
  color: var(--gold);
  font-size: 18px;
  line-height: 1.5;
  word-break: break-all;
}
.code-box-link strong {
  color: var(--cream);
  font-size: 14px;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.account-card-links .btn,
.account-card-links a.btn {
  min-width: 88px;
  text-align: center;
}
.invite-summary-grid {
  grid-template-columns: 1fr;
}
.invitee-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.invitee-item,
.invitee-empty {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.04);
}
.invitee-name {
  display: block;
  color: var(--cream);
  font-size: 16px;
  line-height: 1.5;
}
.invitee-time {
  display: block;
  margin-top: 6px;
  color: var(--cream-dim);
  font-size: 13px;
}
.invitee-empty {
  margin: 0;
  color: var(--cream-dim);
  font-size: 14px;
  line-height: 1.7;
}
.account-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.account-inline-form .ctrl {
  flex: 1;
  min-width: 180px;
}
.account-note {
  color: var(--cream-dim);
  font-size: 14px;
  line-height: 1.7;
}
.account-security-form {
  text-align: left;
}
.account-security-form .field {
  margin-bottom: 14px;
}
.account-security-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--cream-dim);
  font-size: 14px;
}
.account-security-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.04);
  color: var(--cream);
  font-size: 15px;
  outline: none;
  font-family: var(--font-body);
}
.account-security-form input:focus { border-color: var(--border-gold); }
.account-security-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.account-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 6px 0;
}
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.ctrl {
  padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft); background: rgba(255,255,255,0.04);
  color: var(--gold); font-size: 15px; outline: none; font-family: var(--font-body);
}
.ctrl:focus { border-color: var(--border-gold); }
#sortSelect { min-width: 190px; }
#pageSizeSelect { min-width: 150px; }
#searchInput { flex: 1; min-width: 200px; }
.toolbar select option { color: #1a1730; }

.batch-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.select-all-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
}
.select-all-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}
.batch-hint {
  color: var(--cream-dim);
  font-size: 14px;
}
.pager-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.pager-info, .pager-summary {
  color: var(--cream-dim);
  font-size: 14px;
}
#wrongWordsMsg {
  margin: 0 0 14px;
  text-align: left;
}
.pager-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pager-size {
  color: var(--cream-dim);
  font-size: 14px;
}
.pager-buttons .btn {
  min-width: 88px;
}

.export-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.export-bar .total { color: var(--cream-dim); font-size: 14px; }
.export-btns { display: flex; gap: 10px; }

.ww-list {
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  overflow: auto;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  margin-bottom:16px;
}
.ww-head, .ww-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.15fr) minmax(0, 2.1fr) 92px 112px 104px;
  gap: 14px;
  padding: 13px 18px;
  align-items: center;
  min-width: 860px;
}
.ww-head {
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  background: rgba(245,196,81,0.10);
  border-bottom: 1px solid var(--border-gold);
}
.ww-item { border-bottom: 1px solid var(--border-soft); }
.ww-item:last-child { border-bottom: none; }
.ww-item.is-selected {
  background: rgba(245,196,81,0.08);
}
.ww-head span:first-child,
.ww-head span:nth-child(4),
.ww-head span:nth-child(5),
.ww-head span:nth-child(6),
.ww-select,
.ww-grade,
.ww-count,
.ww-action {
  justify-self: center;
}
.ww-head span:nth-child(6),
.ww-action {
  justify-self: end;
  text-align: right;
}
.ww-select, .ww-action {
  display: flex;
  align-items: center;
}
.ww-select {
  justify-content: center;
}
.ww-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}
.ww-word {
  font-family: "Microsoft YaHei", "微软雅黑", var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
}
.ww-meaning { color: var(--cream-dim); font-size: 15px; line-height: 1.6; }
.ww-grade {
  color: var(--cream-dim);
  font-size: 14px;
  text-align: center;
  font-weight: 600;
  width: 100%;
}
.ww-count {
  color: var(--gold);
  font-size: 14px;
  text-align: center;
  font-weight: 600;
  width: 100%;
}
.ww-action { justify-content: flex-end; }
.ww-action .btn {
  min-width: 64px;
  padding-inline: 12px;
}
.ww-empty { text-align: center; color: var(--cream-faint); padding: 28px 0; font-size: 14px; }

/* ======================= 打印：A4 竖向两栏 ======================= */
@media print {
  @page { size: A4 portrait; margin: 15mm; }
  body { background: #fff; color: #1a1a1a; }
  .nav, .footer, .toolbar, .batch-toolbar, .export-bar, .pager-bar, .ww-empty, .auth-msg { display: none !important; }
  .play-hero { padding: 0 0 12px; text-align: center; background: none; }
  .play-hero .eyebrow, .play-hero p { display: none; }
  .play-hero h1 { color: #1a1a1a; text-shadow: none; font-size: 22pt; }
  .ww-list {
    border: none; background: none; border-radius: 0; overflow: visible;
    column-count: 2; column-gap: 16mm;
  }
  .ww-head { display: none; }
  .ww-item {
    display: block; break-inside: avoid; padding: 5px 0; border-bottom: none;
    border-top: 1px solid #ddd;
    min-width: 0;
  }
  .ww-select, .ww-action { display: none !important; }
  .ww-word { display: block; font-size: 15pt; color: #111; }
  .ww-meaning { display: block; font-size: 10pt; color: #444; }
  .ww-count { display: block; font-size: 9pt; color: #777; text-align: left; }
}

@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .ww-head, .ww-item {
    grid-template-columns: 40px minmax(0, 0.95fr) minmax(0, 1.55fr) 78px 88px 92px;
    gap: 12px;
    min-width: 820px;
  }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-actions { grid-template-columns: 1fr; }
  .account-metrics { grid-template-columns: 1fr; }
  .account-inline-form { flex-direction: column; }
  .account-inline-form .btn { width: 100%; }
  .batch-toolbar, .pager-bar, .export-bar {
    align-items: flex-start;
  }
}
