/* ============================================================
   郑好修维修资讯站 前台样式（无外部依赖，本地加载）
   ============================================================ */
:root {
    --primary: #1677ff;
    --primary-dark: #0e5fd8;
    --text: #222;
    --text-sub: #666;
    --text-light: #999;
    --bg: #f5f6f8;
    --border: #e8e8e8;
    --radius: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.75;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部 ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-size: 24px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.logo .sub { font-size: 13px; color: var(--text-light); font-weight: 400; margin-left: 8px; }
.searchbox { display: flex; flex: 1; max-width: 420px; margin: 0 24px; }
.searchbox input {
    flex: 1; height: 38px; border: 2px solid var(--primary); border-right: none;
    border-radius: 6px 0 0 6px; padding: 0 14px; font-size: 14px; outline: none;
}
.searchbox button {
    height: 38px; padding: 0 22px; background: var(--primary); color: #fff;
    border: none; border-radius: 0 6px 6px 0; cursor: pointer; font-size: 14px;
}
.searchbox button:hover { background: var(--primary-dark); }
.hotline-box { text-align: right; font-size: 13px; color: var(--text-light); white-space: nowrap; }
.hotline-box b { display: block; font-size: 20px; color: #ff6a00; }

/* ---------- 导航 ---------- */
.nav { background: var(--primary); }
.nav ul { display: flex; flex-wrap: wrap; }
.nav a {
    display: block; padding: 0 22px; line-height: 46px; color: #fff; font-size: 16px;
}
.nav a:hover, .nav a.cur { background: var(--primary-dark); color: #fff; text-decoration: none; }

/* ---------- 通用块 ---------- */
.main { padding: 20px 0 40px; }
.card { background: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.card-title {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 2px solid var(--primary); padding-bottom: 10px; margin-bottom: 16px;
}
.card-title h2 { font-size: 20px; padding-left: 10px; border-left: 4px solid var(--primary); }
.card-title .more { font-size: 13px; color: var(--text-light); }
.layout-2 { display: flex; gap: 20px; align-items: flex-start; }
.layout-2 .col-main { flex: 1; min-width: 0; }
.layout-2 .col-side { width: 300px; flex-shrink: 0; }

/* ---------- 首页栏目块 ---------- */
.block-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.article-list li {
    display: flex; align-items: baseline; gap: 10px;
    padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.article-list li:last-child { border-bottom: none; }
.article-list .t {
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--text); font-size: 15px;
}
.article-list .t:hover { color: var(--primary); }
.article-list .d { color: var(--text-light); font-size: 13px; flex-shrink: 0; }

/* 列表页条目（带摘要） */
.art-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.art-item:last-child { border-bottom: none; }
.art-item h3 { font-size: 18px; margin-bottom: 8px; font-weight: 600; }
.art-item h3 a { color: var(--text); }
.art-item h3 a:hover { color: var(--primary); }
.art-item p { color: var(--text-sub); font-size: 14px; margin-bottom: 8px; }
.art-item .meta { font-size: 13px; color: var(--text-light); }
.art-item .meta .cat { color: var(--primary); margin-right: 10px; }

/* ---------- 文章正文 ---------- */
.crumbs { font-size: 13px; color: var(--text-light); padding: 14px 0; }
.crumbs a { color: var(--text-light); }
.article-head { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 20px; }
.article-head h1 { font-size: 26px; line-height: 1.5; margin-bottom: 12px; }
.article-meta { font-size: 13px; color: var(--text-light); display: flex; flex-wrap: wrap; gap: 16px; }
.article-body { font-size: 16px; color: #333; }
.article-body p { margin: 0 0 16px; }
.article-body h2 {
    font-size: 20px; margin: 28px 0 14px; padding-left: 10px;
    border-left: 4px solid var(--primary);
}
.article-body h3 { font-size: 17px; margin: 20px 0 10px; }
.article-body ul, .article-body ol { margin: 0 0 16px 24px; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--primary-dark); }
.article-body img { border-radius: 6px; margin: 8px 0; }

/* ---------- 问答 ---------- */
.ask-item { padding: 16px 0; border-bottom: 1px dashed var(--border); }
.ask-item:last-child { border-bottom: none; }
.ask-q { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.ask-q::before { content: "问"; display: inline-block; background: var(--primary); color: #fff; font-size: 12px; border-radius: 4px; padding: 1px 6px; margin-right: 8px; vertical-align: 2px; font-weight: 400; }
.ask-a { color: var(--text-sub); font-size: 14px; }
.ask-a::before { content: "答"; display: inline-block; background: #26a65b; color: #fff; font-size: 12px; border-radius: 4px; padding: 1px 6px; margin-right: 8px; vertical-align: 2px; }
.ask-detail .article-body { margin-top: 8px; }

/* ---------- 侧栏 ---------- */
.side-list li {
    display: flex; align-items: baseline; gap: 8px; padding: 9px 0;
    border-bottom: 1px dashed var(--border); font-size: 14px;
}
.side-list li:last-child { border-bottom: none; }
.side-list .n { color: #fff; background: var(--text-light); width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 3px; font-size: 12px; flex-shrink: 0; }
.side-list li:nth-child(1) .n { background: #ff4d4f; }
.side-list li:nth-child(2) .n { background: #ff7a45; }
.side-list li:nth-child(3) .n { background: #ffc53d; color: #666; }
.side-list .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.side-list .t:hover { color: var(--primary); }
.side-list .v { color: var(--text-light); font-size: 12px; }

/* ---------- 分页 ---------- */
.pagination { margin: 24px 0 8px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination a, .pagination .dot {
    display: block; min-width: 36px; height: 36px; line-height: 36px; text-align: center;
    background: #fff; border: 1px solid var(--border); border-radius: 6px;
    padding: 0 12px; color: var(--text); font-size: 14px;
}
.pagination a.cur { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pagination a.cur:hover { color: #fff; }

/* ---------- 页脚 ---------- */
.footer { background: #2b2f36; color: #9aa0a8; padding: 30px 0 90px; font-size: 13px; }
.footer a { color: #9aa0a8; margin: 0 10px; }
.footer a:hover { color: #fff; }
.footer .friend-links { margin-bottom: 14px; }
.footer .copyright { border-top: 1px solid #3a3f47; padding-top: 14px; text-align: center; }

/* ---------- 引流悬浮组件 ---------- */
.float-widget {
    position: fixed; z-index: 999; right: 16px; bottom: 90px;
    display: flex; flex-direction: column; gap: 10px;
}
.float-widget a {
    display: flex; align-items: center; gap: 6px; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%; color: #fff; font-size: 12px;
    flex-direction: column; line-height: 1.3; text-align: center;
}
.float-widget a:hover { text-decoration: none; opacity: .92; }
.float-widget .fw-call { background: #ff6a00; }
.float-widget .fw-jump { background: var(--primary); }
.bottom-bar {
    position: fixed; z-index: 998; left: 0; right: 0; bottom: 0;
    display: flex; background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.bottom-bar a {
    flex: 1; text-align: center; padding: 10px 0; color: #fff; font-size: 15px; font-weight: 600;
}
.bottom-bar a:hover { text-decoration: none; opacity: .95; }
.bottom-bar .bb-call { background: #ff6a00; }
.bottom-bar .bb-jump { background: var(--primary); }
.bottom-bar svg, .float-widget svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .topbar-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
    .logo { font-size: 20px; }
    .hotline-box { display: none; }
    .searchbox { max-width: none; margin: 0; order: 3; width: 100%; }
    .nav { overflow-x: auto; }
    .nav ul { flex-wrap: nowrap; }
    .nav a { padding: 0 14px; white-space: nowrap; font-size: 15px; }
    .layout-2 { display: block; }
    .layout-2 .col-side { width: auto; }
    .block-grid { grid-template-columns: 1fr; }
    .float-widget { display: none; }
    .article-head h1 { font-size: 21px; }
    .article-body { font-size: 15px; }
    .main { padding-bottom: 70px; }
}
@media (min-width: 901px) {
    .bottom-bar { display: none; }
}
