/* ============================================================
   skin-sina.css —— 数学游戏区 · 「新浪门户」风格覆盖层
   ------------------------------------------------------------
   用法：在 styles.css 之后加载，只做覆盖，不改原样式文件。
   回退：把 index.html 里引用本文件的那一行删掉（或注释掉），
        页面立刻回到原来的米白圆角风格。
   设计取向与主站 skin-sina.css 保持一致：
        白底、无圆角、无阴影、细线分隔、蓝色链接 + 橙色强调。
   ============================================================ */

:root {
  --paper: #ffffff;
  --card: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #444444;
  --ink-3: #999999;
  --navy: #004499;          /* 新浪链接蓝 */
  --navy-deep: #003366;
  --teal: #0b6ea8;
  --orange: #ff8500;        /* 新浪橙 */
  --red: #e00000;
  --line: #e6e6e6;
  --soft: #f5f5f5;
  --serif: "Songti SC", "SimSun", "Times New Roman", serif;
  --sans: "PingFang SC", "Microsoft YaHei", Arial, "Helvetica Neue", sans-serif;
}

body {
  background: #fff;
  background-image: none;     /* 纸纹网格在新浪风里是噪点 */
  color: #1a1a1a;
  font-size: 14px;
}
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-weight: 700; }

/* ---------- 顶栏：白底细线，链接排一行 ---------- */
.topbar {
  max-width: 1000px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid #e6e6e6;
  align-items: flex-end;
}
.brand { gap: 8px; }
.brand-mark { width: 30px; height: 30px; color: var(--navy); }
.brand-mark svg { width: 28px; height: 28px; }
.brand-text { flex-direction: row; align-items: baseline; gap: 7px; line-height: 1.1; }
.brand-text strong { font-family: var(--sans); font-size: 21px; color: #1a1a1a; letter-spacing: 0; }
.brand-text em { font-size: 12px; letter-spacing: 0; color: #999; font-style: normal; }
.topnav { gap: 8px; align-items: center; }
.nav-link { border-radius: 0; padding: 3px 9px; font-size: 13px; color: var(--navy); white-space: nowrap; }
.nav-link:hover { background: none; color: var(--red); text-decoration: underline; }
/* 右上角四个功能入口：白底细边框页签，悬停反色 */
.nav-games, .nav-app, .nav-msg, .nav-here {
  background: none;
  border: 1px solid #dcdcdc;
  padding: 1px 9px;
  color: var(--navy);
}
.nav-games:hover, .nav-app:hover, .nav-msg:hover, .nav-here:hover {
  background: var(--navy); border-color: var(--navy); color: #fff; text-decoration: none;
}
/* 当前所在页：实心蓝底 */
.nav-link.nav-games.active, .nav-link.nav-app.active,
.nav-link.nav-msg.active, .nav-link.nav-here.active {
  background: var(--navy); border: 1px solid var(--navy); color: #fff;
  font-weight: 700; padding: 1px 9px; text-decoration: none;
}
.nav-link.active {
  background: none; color: #1a1a1a; font-weight: 700;
  border-bottom: 2px solid var(--orange); padding-bottom: 4px;
}

/* ---------- 视图容器 ---------- */
.view { max-width: 1000px; padding: 0 12px 30px; }

/* ---------- 列表页 hero：压成频道头 ---------- */
.hero {
  background: none; border: 0; border-radius: 0;
  padding: 16px 0 4px; margin-bottom: 18px; overflow: visible;
}
.hero::after, .eyebrow { display: none; }
.hero h1 {
  font-family: var(--sans); font-size: 25px; line-height: 1.35;
  font-weight: 700; color: #1a1a1a; letter-spacing: 0;
}
.hero-desc { margin-top: 8px; font-size: 13px; color: #666; max-width: 720px; line-height: 1.75; }
.hero-stats { margin-top: 12px; gap: 26px; }
.hero-stats div { gap: 6px; }
.hero-stats strong { font-family: var(--sans); font-size: 18px; font-weight: 700; color: var(--orange); }
.hero-stats span { font-size: 12px; color: #999; letter-spacing: 0; }

/* ---------- 模块标题：4px 蓝色竖条 + 17px 黑字 ---------- */
.cat-block { margin-bottom: 22px; }
.cat-block h2 {
  align-items: center; gap: 8px; margin-bottom: 12px;
  border-left: 4px solid var(--navy); padding-left: 9px; line-height: 1.2;
}
.cat-block h2 span { font-family: var(--sans); font-size: 17px; font-weight: 700; color: #1a1a1a; }
.cat-block h2 em { font-size: 12px; color: #999; }

/* ---------- 游戏卡：细线方格，无圆角无阴影 ---------- */
.cards { gap: 12px; }
.card {
  border: 1px solid #e6e6e6; border-radius: 0;
  padding: 13px 14px 11px; gap: 4px; background: #fff;
}
.card::before { display: none; }
.card:hover {
  border-color: var(--orange); background: #fffdf9;
  box-shadow: none; transform: none;
}
.card-head { min-height: 0; align-items: center; gap: 8px; }
.card-art { width: 42px; height: 42px; opacity: 1; }
.card-tag {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0;
  color: var(--orange); font-weight: 600;
}
.card strong { font-family: var(--sans); font-size: 16px; font-weight: 700; color: #1a1a1a; margin-top: 2px; }
.card:hover strong { color: var(--navy); }
.card p {
  font-size: 12.5px; color: #666; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-go { margin-top: 6px; font-size: 12.5px; letter-spacing: 0; color: var(--navy); }
.card:hover .card-go { color: var(--red); }
.foot-note {
  margin-top: 22px; font-size: 12px; color: #999; line-height: 1.8;
  border-top: 1px solid #e6e6e6; padding-top: 12px;
}

/* ---------- 游戏页头 ---------- */
.crumb { font-size: 12px; color: #999; padding: 0 0 10px; gap: 6px; }
.crumb a { color: var(--navy); }
.game-head { margin-bottom: 14px; align-items: flex-end; }
.game-head h1 { font-family: var(--sans); font-size: 22px; font-weight: 700; color: #1a1a1a; }
.lede { margin-top: 6px; font-size: 13px; color: #666; line-height: 1.75; }
.game-meta { gap: 6px; }
.game-meta span {
  font-size: 11.5px; color: #666; background: #fafafa;
  border: 1px solid #e6e6e6; border-radius: 0; padding: 3px 8px;
}

/* ---------- 面板 ---------- */
.game-shell { grid-template-columns: minmax(0,1fr) 272px; gap: 14px; }
.panel { border: 1px solid #e6e6e6; border-radius: 0; padding: 14px; }
.panel-board { padding: 12px 14px 14px; }
.panel-side h3 {
  font-family: var(--sans); font-size: 13px; font-weight: 700; color: #1a1a1a;
  border-left: 4px solid var(--navy); padding-left: 8px; margin-bottom: 10px;
}
.turn { font-size: 13px; color: #444; }

/* ---------- 按钮 ---------- */
.btn {
  border: 1px solid #dcdcdc; background: #fff; color: #333; border-radius: 0;
  padding: 6px 12px; font-size: 12.5px;
}
.btn:hover { border-color: var(--orange); color: var(--orange); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: #ea7a00; border-color: #ea7a00; color: #fff; }
.btn-ghost { background: #fafafa; }
.btn.on { background: #fff4e6; border-color: #ffc98a; color: #b35c00; }

.hint { font-size: 12px; color: #999; line-height: 1.7; }
.note { font-size: 11.5px; color: #999; border-top: 1px solid #eee; padding-top: 10px; }

/* ---------- 规则 / 选项 ---------- */
.rules li { font-size: 12.5px; color: #555; line-height: 1.75; }
.mk-hit { color: var(--navy); }
.mk-near { color: #d17000; }
.opt-row label { font-size: 11.5px; color: #999; letter-spacing: 0; }
/* 分段选择做成门户常见的「文字页签」：不加框，靠加粗 + 橙色下划线区分 */
.seg { background: none; border: 0; border-radius: 0; padding: 0; gap: 14px; }
.seg button {
  border: 0; border-radius: 0; background: none; padding: 3px 0 4px;
  font-size: 12.5px; color: #666; border-bottom: 2px solid transparent;
}
.seg button:hover { color: var(--orange); }
.seg button.on {
  background: none; color: #1a1a1a; font-weight: 700;
  box-shadow: none; border-bottom-color: var(--orange);
}

/* ---------- 穿岸 ---------- */
.hex-shore {
  font-family: var(--sans); letter-spacing: .1em;
  fill: #888 !important; fill-opacity: 1 !important;
}
.hex-cell.empty:hover { fill: #fff4e6; }

/* ---------- 暗码 ---------- */
.crow { border-radius: 0; background: #fafafa; border: 1px solid #eee; padding: 5px 9px; }
.crow.cur { background: #fffdf9; border-color: #ffd9a8; }
.crow .idx { font-family: var(--sans); }
.slots { gap: 8px; }
.slot { border-radius: 0; border: 1px dashed #d8d8d8; background: #fafafa; }
.slot.filled { border-style: solid; border-color: #d0d0d0; background: #fff; }
.slot.active { border-color: var(--orange); background: #fff8ee; box-shadow: none; }
.pegb { border-radius: 0; }
.pegb:hover { border-color: var(--orange); transform: none; }
.pegb.sel { border-color: var(--orange); background: #fff8ee; box-shadow: 0 0 0 1px var(--orange); }
.cand-box {
  border-radius: 0; background: #fafafa; border: 1px solid #e6e6e6;
}
.cand-box span { font-size: 11.5px; letter-spacing: 0; color: #999; }
.cand-box strong { font-family: var(--sans); font-size: 20px; font-weight: 700; color: var(--navy); }
.cand-box p { font-size: 11.8px; color: #666; }

/* ---------- 寻迹 ---------- */
#gridBoard { border-radius: 0; background: #fff; }
.gl-target-label { font-family: var(--sans); }
.level-list { gap: 0; border-bottom: 1px solid #eee; }
.level-btn {
  border: 0; border-bottom: 1px solid #eee; border-radius: 0;
  padding: 7px 9px; font-size: 12.5px; color: #333; background: #fff;
}
.level-btn:last-child { border-bottom: 0; }
.level-btn:hover { background: #fafafa; color: var(--navy); }
.level-btn.on {
  border-color: #eee; border-left: 3px solid var(--orange); padding-left: 10px;
  background: #fff8ee; color: #1a1a1a; font-weight: 700;
}
.level-btn .st { color: #999; }

/* ---------- 巡街 ---------- */
.street-stat { border-top: 1px solid #eee; padding-top: 10px; margin-top: 10px; }
.street-stat strong { font-family: var(--sans); font-size: 17px; font-weight: 700; color: #1a1a1a; }

/* ---------- 织牌 ---------- */
.rack-area h4 { font-size: 11.5px; letter-spacing: 0; color: #999; font-weight: 600; }
.group { border-radius: 0; background: #fafafa; border: 1px solid #eee; padding: 6px; }
.group.drop { border-color: var(--orange); background: #fff8ee; }
.tray { border-radius: 0; background: #fafafa; border: 1px dashed #ddd; }
.tray.drop { border-color: var(--orange); background: #fff8ee; }
.tile { border-radius: 0; border: 1px solid #d8d8d8; }
.tile::after { border-radius: 0; }
.tile.sel { transform: none; box-shadow: 0 0 0 2px var(--orange); border-color: var(--orange); }
@keyframes glow { 50% { box-shadow: 0 0 0 3px rgba(255,133,0,.35); } }

/* ---------- 数独 ---------- */
.sdk-grid { border-radius: 0; }
.sdk-cell { font-family: var(--sans); }
/* 九宫格的粗线原来偏浅，白底上几乎看不出分区，加深一点 */
.sdk-cell.bR { border-right-color: #93a2a8; }
.sdk-cell.bB { border-bottom-color: #93a2a8; }
.sdk-key { border-radius: 0; font-family: var(--sans); font-size: 16px; }
.sdk-key:hover { border-color: var(--orange); background: #fff8ee; }

/* ---------- 数织 ---------- */
.nono-board { border-radius: 0; }
.nono-corner, .nono-clue { background: #f4f4f4; border-color: #e0e0e0; }
.nono-clue { font-family: var(--sans); }

/* ---------- 华容道 ---------- */
.kl-board { border-radius: 0; background: #f7f7f7; }
.kl-inner { border-radius: 0; font-family: var(--sans); }
.kl-win-card { border-radius: 0; border: 1px solid #e6e6e6; box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.kl-win-card strong { font-family: var(--sans); font-size: 18px; font-weight: 700; letter-spacing: 0; color: #1a1a1a; }
.kl-win { background: rgba(255,255,255,.68); border-radius: 0; }
.kl-dir { border-radius: 0; }
.kl-dir:hover { border-color: var(--orange); color: var(--orange); background: #fff8ee; }
.kl-stat strong { font-family: var(--sans); font-size: 18px; font-weight: 700; color: #1a1a1a; }
.kl-exit { letter-spacing: .2em; padding-left: .2em; }

/* ---------- 页脚 ---------- */
.footer { max-width: 1000px; padding: 6px 12px 30px; }
.footer-line { background: #e6e6e6; margin-bottom: 12px; }
.footer-bottom { font-size: 12px; color: #999; }
.footer-bottom a { color: var(--navy); }
.foot-links { gap: 14px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .game-shell { grid-template-columns: 1fr; }
  .panel-side { position: static; }
}
@media (max-width: 560px) {
  .topbar { padding: 10px 12px 8px; gap: 8px; }
  /* 窄屏品牌改回两行竖排，给右侧按钮让出宽度 */
  .brand-text { flex-direction: column; align-items: flex-start; gap: 0; }
  .brand-text strong { font-size: 17px; }
  .brand-text em { font-size: 10px; letter-spacing: .04em; }
  .topnav { gap: 6px; }
  .nav-link { font-size: 12px; padding: 2px 4px; }
  .nav-games, .nav-app, .nav-msg, .nav-here { padding: 0 5px; }
  .nav-link.nav-games.active, .nav-link.nav-app.active,
  .nav-link.nav-msg.active, .nav-link.nav-here.active { padding: 0 5px; }
  .view { padding: 0 12px 24px; }
  .hero { padding: 12px 0 0; }
  .hero h1 { font-size: 21px; }
  .hero-desc { font-size: 12.5px; }
  .hero-stats { gap: 18px; margin-top: 10px; }
  .hero-stats strong { font-size: 16px; }
  .cat-block h2 span { font-size: 15px; }
  .cat-block h2 em { display: none; }
  .game-head h1 { font-size: 20px; }
  .panel { padding: 12px; }
  .panel-board { padding: 10px 12px 12px; }
  .card { padding: 12px 12px 10px; }
  .card-art { width: 38px; height: 38px; }
  .card strong { font-size: 15px; }
  .footer { padding: 4px 12px 24px; }
}
