* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #1f2329; line-height: 1.6; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: #fff; border-bottom: 1px solid #e6e9ef; position: sticky; top: 0; z-index: 10; }
.brand { font-weight: 700; font-size: 17px; }
.brand .sub { font-size: 12px; color: #8a94a6; font-weight: 400; margin-left: 6px; }
.nav button { border: none; background: none; padding: 8px 14px; margin-left: 4px; cursor: pointer; color: #5b6573; border-radius: 8px; font-size: 14px; }
.nav button.active { background: #eaf1ff; color: #2b6cff; font-weight: 600; }
.container { max-width: 760px; margin: 0 auto; padding: 28px 20px 60px; }
.step { background: #fff; border: 1px solid #e6e9ef; border-radius: 14px; padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.hidden { display: none; }
h1 { font-size: 22px; margin: 0 0 8px; }
.muted { color: #8a94a6; font-size: 14px; }
.form { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.form.inline { align-items: center; }
input, select { padding: 10px 12px; border: 1px solid #d4dae3; border-radius: 9px; font-size: 15px; flex: 1; min-width: 200px; }
button { font-family: inherit; cursor: pointer; }
.primary { background: #2b6cff; color: #fff; border: none; padding: 10px 18px; border-radius: 9px; font-size: 15px; font-weight: 600; }
.primary:hover { background: #1f5ae0; }
.row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.msg { margin-top: 10px; font-size: 14px; }
.msg.err { color: #d8453b; }
.msg.ok { color: #1f9d55; }

.test-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-weight: 600; }
.q-card { border: 1px solid #e6e9ef; border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.q-word { font-size: 26px; font-weight: 700; }
.q-pos { color: #8a94a6; font-size: 13px; margin-left: 8px; }
.q-level { float: right; background: #f0f3f8; color: #5b6573; font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.opt { display: block; width: 100%; text-align: left; padding: 11px 14px; margin-top: 8px; border: 1px solid #d4dae3; border-radius: 9px; background: #fff; font-size: 15px; }
.opt.sel { border-color: #2b6cff; background: #eaf1ff; font-weight: 600; }
.test-foot { display: flex; gap: 10px; margin-top: 8px; }
.test-foot button:not(.primary) { background: #fff; border: 1px solid #d4dae3; padding: 10px 16px; border-radius: 9px; }

.level-badge { text-align: center; margin: 10px 0; }
.level-badge span { display: inline-block; background: #2b6cff; color: #fff; font-size: 44px; font-weight: 800; width: 92px; height: 92px; line-height: 92px; border-radius: 50%; }
.desc { font-size: 15px; }
.stat { color: #5b6573; margin: 8px 0; }
.stat b { color: #1f9d55; font-size: 18px; }
.suggestion { background: #fdf1e3; border-left: 3px solid #d9822b; padding: 10px 14px; border-radius: 0 9px 9px 0; font-size: 14px; }

.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.w-card { border: 1px solid #e6e9ef; border-radius: 10px; padding: 12px; }
.w-card .w { font-weight: 700; font-size: 16px; display: flex; align-items: center; flex-wrap: wrap; }
.w-card .p { color: #8a94a6; font-size: 12px; }
.w-card .z { font-size: 14px; margin: 4px 0 8px; }
.w-card .ipa { color: #2b6cff; font-size: 12px; margin-left: 6px; font-weight: 400; }
.w-card .ex { font-size: 13px; color: #5b6573; margin: 4px 0 8px; line-height: 1.45; }
.w-card .exz { color: #8a94a6; font-size: 12px; }
.spk, .spk2 { border: 1px solid #d4dae3; background: #fff; border-radius: 8px; cursor: pointer; }
.spk { padding: 1px 7px; font-size: 13px; margin-left: 6px; }
.spk2 { padding: 1px 7px; font-size: 12px; margin-left: 4px; }
.spk:hover, .spk2:hover { background: #eaf1ff; border-color: #2b6cff; }
.w-card button { border: 1px solid #d4dae3; background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 13px; margin-right: 6px; }
.w-card button.known { color: #1f9d55; border-color: #bfe6cf; }
.w-card button.unk { color: #d8453b; border-color: #f3c2bd; }
.due { font-size: 12px; color: #8a94a6; display: block; margin-top: 6px; }

/* 我的页：统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 16px 0; }
.stat-card { background: #f8fafc; border: 1px solid #e6e9ef; border-radius: 12px; padding: 16px 12px; text-align: center; }
.stat-card b { display: block; font-size: 26px; color: #2b6cff; }
.stat-card span { font-size: 12px; color: #8a94a6; }
.msg a { color: #2b6cff; }
.err { color: #d8453b; }

/* ===== 站点群互跳条（与主站一致） ===== */
.xsite-bar { background: #16385f; border-bottom: 1px solid rgba(255,255,255,0.08); }
.xsite-in { max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 36px; display: flex; align-items: center; gap: 6px; }
.xsite-lab { font-size: 11px; color: rgba(255,255,255,0.5); margin-right: 4px; letter-spacing: 0.06em; }
.xsite-link { font-size: 13px; color: rgba(255,255,255,0.82); text-decoration: none; padding: 3px 12px; border-radius: 7px; transition: background .15s, color .15s; white-space: nowrap; }
.xsite-link:hover { background: rgba(255,255,255,0.14); color: #fff; }
.xsite-link.cur { background: #fff; color: #16385f; font-weight: 600; cursor: default; }
.xsite-link.cur:hover { background: #fff; }

/* ===== 全站导航栏 ===== */
.navbar { background: rgba(255,255,255,0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 3px rgba(16,24,40,.06); padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: #2b6cff; text-decoration: none; letter-spacing: -0.3px; }
.navbar-brand .logo { width: 36px; height: 36px; background: linear-gradient(135deg, #4f46e5, #2b6cff); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; font-weight: 800; box-shadow: 0 2px 8px rgba(79,70,229,.3); }
.navbar-nav { display: flex; gap: 4px; align-items: center; }
.navbar-nav a { color: #4a5260; text-decoration: none; padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.navbar-nav a:hover { background: #eaf1ff; color: #2b6cff; }
.navbar-nav a.active { background: #2b6cff; color: #fff; }
.navbar-right { display: flex; align-items: center; gap: 12px; }
.navbar-cta { display: inline-block; padding: 8px 18px; font-size: 14px; font-weight: 600; color: #fff; background: #2b6cff; border-radius: 9px; text-decoration: none; transition: background .15s; }
.navbar-cta:hover { background: #1f5ae0; }

/* ===== 关于平台区块（仿主站） ===== */
.about-platform { background: #f7f8fa; border-top: 1px solid #e8eaee; padding: 40px 20px; }
.about-platform-in { max-width: 1080px; margin: 0 auto; }
.about-platform h2 { font-size: 20px; color: #1a1d21; margin: 0 0 12px; font-weight: 600; }
.about-platform p { color: #4a5260; font-size: 14.5px; line-height: 1.85; margin: 0 0 12px; }
.about-platform ul { margin: 0; padding-left: 20px; color: #4a5260; font-size: 14.5px; line-height: 1.9; }
.about-platform a { color: #1a56b8; text-decoration: none; }
.about-platform a:hover { text-decoration: underline; }
.about-platform-note { color: #5a6270; font-size: 13.5px; margin-top: 14px; }

/* ===== 学习指南区块（仿主站） ===== */
.seo-guides { background: #fff; border-top: 1px solid #e8eaee; padding: 44px 20px; }
.seo-guides-in { max-width: 1080px; margin: 0 auto; }
.seo-guides h2 { font-size: 22px; color: #1a1d21; margin: 0 0 8px; font-weight: 700; }
.seo-guides p { color: #5a6270; font-size: 14px; margin: 0 0 18px; line-height: 1.7; }
.seo-guides-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 24px; }
.seo-guides-list li { padding-left: 14px; position: relative; line-height: 1.6; }
.seo-guides-list li:before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: #2b6cff; }
.seo-guides-list a { color: #1a56b8; text-decoration: none; font-size: 14.5px; }
.seo-guides-list a:hover { text-decoration: underline; }
.seo-guides-more { margin: 20px 0 0 !important; }
.seo-guides-more a { color: #1a56b8; font-weight: 600; text-decoration: none; font-size: 14.5px; }

/* ===== 版权 footer ===== */
.site-footer { background: #16385f; color: rgba(255,255,255,0.78); padding: 18px 20px; font-size: 13px; }
.site-footer-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .sep { color: rgba(255,255,255,0.35); }

/* 兄弟站外推位（2026-10-19）：浅黄高亮 + 外链箭头，与站内互跳项区分 */
.xsite-link.xsite-ext { color: #ffd66e; background: rgba(255,214,110,0.14); }
.xsite-link.xsite-ext:hover { background: rgba(255,214,110,0.3); color: #ffe49a; }
.xsite-arrow { font-size: 10px; margin-left: 4px; opacity: 0.85; }
@media (max-width: 640px) { .xsite-arrow { margin-left: 3px; font-size: 9px; } }

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  .xsite-in { padding: 0 12px; gap: 4px; height: 32px; overflow-x: auto; }
  .xsite-lab { display: none; }
  .xsite-link { height: 24px; padding: 0 9px; font-size: 12px; display: inline-flex; align-items: center; }
  .navbar { padding: 0 8px; height: 52px; gap: 6px; }
  .navbar-brand { gap: 6px; font-size: 16px; flex-shrink: 0; }
  .navbar-brand .logo { width: 30px; height: 30px; font-size: 14px; border-radius: 8px; }
  .navbar-nav { flex: 1; justify-content: flex-start; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; min-width: 0; }
  .navbar-nav::-webkit-scrollbar { display: none; }
  .navbar-nav a { white-space: nowrap; flex-shrink: 0; padding: 6px 8px; font-size: 12px; }
  .navbar-cta { padding: 6px 12px; font-size: 13px; }
  .about-platform { padding: 30px 16px; }
  .seo-guides { padding: 32px 16px; }
  .seo-guides-list { grid-template-columns: 1fr; }
  .site-footer { padding: 10px 16px; text-align: center; }
  .site-footer-in { justify-content: center; gap: 2px 8px; }
  .site-footer a { padding: 2px 4px; }
}

/* 手机端横向滚动兜底（2026-09-28） */
html, body { overflow-x: clip; }
