/* style.css — www_new 轻量新前端（重构第一单元）
   设计语言沿用首页样张：品牌蓝 #0e6dbc、卡片式分区、无 table 布局。
   组件 = 样张（hero/grid/catcard/catindex/tools）+ 分类页（crumbs/clsnav/
   pager/linkgrid/block）两组合并，类名与 PHP 模板对应。 */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:"Microsoft YaHei","PingFang SC",sans-serif; background:#f4f6f9; color:#222; }
.wrap { max-width:1200px; margin:0 auto; padding:0 16px; }
a { color:#0e6dbc; }

/* 页眉 */
header { background:#0e6dbc; color:#fff; }
.bar { display:flex; align-items:center; gap:28px; min-height:64px; flex-wrap:wrap; padding:8px 0; }
.logo { font-size:24px; font-weight:700; letter-spacing:2px; white-space:nowrap; color:#fff; text-decoration:none; }
.logo small { font-size:12px; font-weight:400; opacity:.85; margin-left:8px; letter-spacing:0; }
nav.main a { color:#eaf4fc; text-decoration:none; margin-right:16px; font-size:14px; white-space:nowrap; }
nav.main a:hover { text-decoration:underline; }

/* 首页 hero + 大搜索 */
.hero { background:linear-gradient(180deg,#0e6dbc,#0a5a9e); color:#fff; padding:30px 0 26px; }
.hero h1 { font-size:22px; font-weight:600; text-align:center; margin-bottom:16px; }
form.bigsearch { display:flex; max-width:680px; margin:0 auto; }
form.bigsearch input { flex:1; height:46px; border:0; border-radius:6px 0 0 6px; padding:0 14px; font-size:16px; min-width:0; }
form.bigsearch button { height:46px; border:0; background:#f5a623; color:#fff; padding:0 30px; font-size:16px; border-radius:0 6px 6px 0; cursor:pointer; white-space:nowrap; }
.quick { max-width:680px; margin:14px auto 0; font-size:13px; line-height:2.2; }
.quick .lab { opacity:.85; }
.qchip { display:inline-block; color:#fff; background:rgba(255,255,255,.16); border-radius:12px; padding:0 10px; margin:0 3px; text-decoration:none; line-height:1.9; }
.qchip:hover { background:rgba(255,255,255,.3); }

/* 子页搜索条 */
.subbar { background:#0a5a9e; padding:10px 0; }
form.searchbox { display:flex; max-width:680px; }
form.searchbox input { flex:1; height:40px; border:0; border-radius:6px 0 0 6px; padding:0 12px; font-size:15px; min-width:0; }
form.searchbox button { height:40px; border:0; background:#f5a623; color:#fff; padding:0 24px; font-size:15px; border-radius:0 6px 6px 0; cursor:pointer; white-space:nowrap; }

/* 分区面板 */
.panel { background:#fff; border-radius:8px; padding:18px; margin:16px 0; }
.panel h2 { font-size:17px; margin-bottom:6px; }
.panel .sub { font-size:12px; color:#999; margin-bottom:12px; }
.more-line { margin-top:12px; font-size:13px; }
.more-line a { text-decoration:none; }

/* 工具快捷区 */
.tools a { display:inline-block; background:#eef5fb; color:#0e6dbc; border-radius:6px; padding:8px 14px; margin:0 8px 8px 0; text-decoration:none; font-size:14px; }
.tools a:hover { background:#dcecf8; }
.tools a em { font-style:normal; font-size:11px; color:#fff; background:#e2574c; border-radius:7px; padding:0 5px; margin-left:5px; }

/* 名站卡片网格 */
.grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.card { display:block; background:#fff; border:1px solid #e6ebf0; border-radius:8px; padding:12px 14px; text-decoration:none; color:#222; min-width:0; }
.panel .card { background:#fbfcfe; }
.card:hover { border-color:#0e6dbc; }
.card .nm { display:block; font-weight:600; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.card .dm { display:block; color:#999; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.card .st { display:inline-block; font-size:11px; border-radius:6px; padding:0 6px; margin-top:6px; }
.card .st.ok { color:#1a7f37; background:#e6f4ea; }
.card .st.lim { color:#a86a00; background:#fdf3e0; }
/* 分类页宽卡片 */
.card.wide { margin-bottom:10px; }
.card .t { font-weight:600; font-size:15px; }
.card .meta { display:block; color:#999; font-size:12px; margin-top:2px; }

/* 分类卡片（首页） */
.catgrid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.catcard { background:#fff; border-radius:8px; padding:14px 16px; }
.catcard h3 { font-size:15px; color:#0e6dbc; margin-bottom:8px; display:flex; justify-content:space-between; align-items:baseline; }
.catcard h3 .cnt { font-size:12px; color:#999; font-weight:400; }
.catcard li { list-style:none; display:flex; align-items:baseline; gap:8px; padding:4px 0; border-bottom:1px dashed #f0f0f0; font-size:13px; min-width:0; }
.catcard li a { color:#333; text-decoration:none; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.catcard li a:hover { color:#0e6dbc; }
.catcard li .dm { color:#999; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.catcard .more { margin-top:8px; font-size:12px; }
.catcard .more a { text-decoration:none; }

/* 分类索引（首页） */
.catindex { font-size:13px; line-height:2; }
.catindex a { color:#444; text-decoration:none; }
.catindex a:hover { color:#0e6dbc; }
.catindex a span { color:#aaa; font-size:11px; }

/* 分类页组件 */
main.wrap { padding-top:6px; padding-bottom:8px; }
.crumbs { font-size:13px; color:#999; margin:14px 0 8px; }
.crumbs a { color:#666; text-decoration:none; }
.crumbs a:hover { color:#0e6dbc; }
.crumbs .sep { margin:0 6px; }
.cat-title { font-size:22px; margin-bottom:4px; }
.cat-sub { font-size:13px; color:#999; margin-bottom:14px; }
.group-title { font-size:16px; margin:20px 0 10px; }
.clsnav { display:flex; flex-wrap:wrap; gap:8px; }
.clsnav a { background:#fff; border:1px solid #e6ebf0; border-radius:6px; padding:8px 12px; color:#333; text-decoration:none; font-size:14px; }
.clsnav a:hover { border-color:#0e6dbc; color:#0e6dbc; }
.clsnav a.on { background:#0e6dbc; color:#fff; border-color:#0e6dbc; }
.clsnav a .n { color:#999; font-size:12px; margin-left:6px; }
.clsnav a.on .n { color:#cfe6f7; }
.toolgrid { display:flex; flex-wrap:wrap; gap:8px; }
.toolgrid a { background:#eef5fb; color:#0e6dbc; border-radius:6px; padding:8px 14px; text-decoration:none; font-size:14px; }
.block { background:#fff; border-radius:8px; padding:14px 16px; margin-bottom:12px; }
.block h3 { font-size:15px; color:#0e6dbc; margin-bottom:8px; }
.linkgrid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px 14px; }
.linkgrid a { color:#333; text-decoration:none; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding:3px 0; }
.linkgrid a:hover { color:#0e6dbc; }
.linkgrid a .h { display:block; color:#aaa; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pager { display:flex; flex-wrap:wrap; gap:6px; margin:18px 0 8px; }
.pager a { background:#fff; border:1px solid #e6ebf0; border-radius:6px; padding:6px 12px; color:#333; text-decoration:none; font-size:14px; }
.pager a.on { background:#0e6dbc; color:#fff; border-color:#0e6dbc; }
.pager .gap { padding:6px 2px; color:#999; }
.empty { background:#fff8e6; border:1px solid #f0dfae; border-radius:8px; padding:14px 16px; font-size:14px; color:#7a5b00; }

/* 页脚 */
footer { border-top:1px solid #e2e6ea; padding:18px 0 26px; font-size:12px; color:#888; text-align:center; line-height:1.9; margin-top:16px; }
footer .fl a { color:#666; text-decoration:none; margin:0 7px; }

@media (max-width:700px) {
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .catgrid { grid-template-columns:1fr; }
  .linkgrid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bar { gap:12px; }
  nav.main a { margin-right:10px; }
  .hero h1 { font-size:18px; }
  form.bigsearch button { padding:0 18px; }
}
