/* ==========================================================================
   日照便民12345 · 前台样式
   主题通过 body 的 theme-* 类切换，后台「系统设置 - 风格设置」同步生效
   ========================================================================== */

:root {
    --primary: #1668dc;
    --primary-dark: #0e4fb0;
    --primary-light: #eaf2ff;
    --primary-soft: #f4f8ff;
    --accent: #ff8a00;
    --text: #1f2430;
    --text-light: #5b6472;
    --muted: #8b94a3;
    --line: #e8ebf0;
    --bg: #f5f7fb;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(20, 42, 80, .06);
    --shadow-hover: 0 10px 30px rgba(20, 42, 80, .12);
}

body.theme-blue {
    --primary: #1668dc;
    --primary-dark: #0e4fb0;
    --primary-light: #eaf2ff;
    --primary-soft: #f4f8ff;
    --accent: #ff8a00;
}

body.theme-green {
    --primary: #0f9d68;
    --primary-dark: #0a7a50;
    --primary-light: #e8f8f1;
    --primary-soft: #f4fbf8;
    --accent: #f5a623;
}

body.theme-orange {
    --primary: #ef6c1a;
    --primary-dark: #c9540d;
    --primary-light: #fff1e6;
    --primary-soft: #fff8f3;
    --accent: #1668dc;
}

body.theme-red {
    --primary: #cf2b2b;
    --primary-dark: #a91f1f;
    --primary-light: #fdecec;
    --primary-soft: #fff6f6;
    --accent: #f5a623;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }

/* 电话号码拨号链接：外观与所在文本一致，PC 端不起眼、手机端点击即拨号 */
.tel-link { color: inherit; text-decoration: none; }
.tel-link:hover { color: inherit; }

img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 顶部工具条 ---------- */
.topbar {
    background: #0f1b30;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    line-height: 38px;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.topbar a { color: rgba(255, 255, 255, .78); }
.topbar a:hover { color: #fff; }
.topbar .hotline b { color: #fff; letter-spacing: .5px; }
.topbar .sep { margin: 0 10px; opacity: .35; }

/* ---------- 头部 ---------- */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 1px 0 var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    text-decoration: none;
}
.logo-img { display: block; height: 46px; width: auto; max-width: 220px; object-fit: contain; }
.logo.logo-only .logo-img { height: 58px; max-width: 260px; }
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.logo-text b {
    display: block;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text);
    line-height: 1.2;
}
.logo-text small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 2px;
}
.header-ad {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 560px;
}
.header-ad img {
    display: block;
    height: auto;
    width: auto;
    max-height: 66px;
    max-width: 100%;
    border-radius: 8px;
}
.header-search {
    margin-left: auto;
    flex: 0 0 auto;
    display: flex;
    width: 208px;
    max-width: 34vw;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: #fafbfd;
    transition: border-color .2s;
}
.header-search:focus-within { border-color: var(--primary); }
.header-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0 14px;
    height: 42px;
    font-size: 14px;
    outline: none;
    color: var(--text);
}
.header-search button {
    flex: 0 0 auto;
    border: 0;
    background: var(--primary);
    color: #fff;
    padding: 0 16px;
    font-size: 14px;
    cursor: pointer;
}
.header-search button:hover { background: var(--primary-dark); }

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}

/* ---------- 主导航 ---------- */
.main-nav {
    border-top: 1px solid var(--line);
    background: #fff;
}
.main-nav .container {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
}
.main-nav a.nav-item {
    position: relative;
    padding: 12px 18px;
    font-size: 15px;
    color: var(--text);
    white-space: nowrap;
}
.main-nav a.nav-item:hover { color: var(--primary); }
.main-nav a.nav-item.active { color: var(--primary); font-weight: 600; }
.main-nav a.nav-item.active::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--primary);
}

/* 移动端导航 */
.mobile-nav {
    display: none;
    background: #fff;
    border-top: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}
.mobile-nav.open { max-height: 80vh; overflow-y: auto; }
.mobile-nav .container { padding-top: 8px; padding-bottom: 12px; }
.mobile-nav a {
    display: block;
    padding: 10px 4px;
    border-bottom: 1px dashed var(--line);
    font-size: 15px;
}
.mobile-nav .group-title {
    font-size: 13px;
    color: var(--muted);
    padding: 12px 4px 4px;
}
.mobile-nav .sub {
    padding-left: 14px;
    color: var(--text-light);
    display: inline-block;
    width: 50%;
    border: 0;
    font-size: 13px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(900px 320px at 88% -10%, rgba(255, 255, 255, .22), transparent 60%),
        linear-gradient(120deg, var(--primary-dark), var(--primary) 62%, #2f86f6 100%);
    color: #fff;
    padding: 54px 0 64px;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    pointer-events: none;   /* 纯装饰圆环，不参与点击，避免遮挡搜索框/按钮 */
}
.hero-inner {
    position: relative;
    z-index: 2;             /* 内容层置于装饰圆环之上 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
}
.hero-copy { flex: 1 1 auto; min-width: 0; }
.hero-action {
    flex: 0 0 520px;
    max-width: 520px;
    margin-left: auto;
    text-align: right;
}
.hero h1 {
    margin: 0 0 10px;
    font-size: 34px;
    letter-spacing: 1px;
    font-weight: 700;
}
.hero p {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    max-width: 640px;
}
.hero-search {
    display: flex;
    background: #fff;
    border-radius: 30px;
    padding: 6px;
    max-width: 100%;
    box-shadow: 0 12px 30px rgba(6, 26, 60, .22);
}
.hero-search input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 0 18px;
    font-size: 15px;
    background: transparent;
    min-width: 0;
}
.hero-search button {
    border: 0;
    background: var(--primary);
    color: #fff;
    height: 44px;
    padding: 0 30px;
    border-radius: 24px;
    font-size: 15px;
    cursor: pointer;
}
.hero-search button:hover { background: var(--primary-dark); }
.hero-tags {
    margin-top: 16px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .8);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 12px;
}
.hero-tags a { color: rgba(255, 255, 255, .9); }
.hero-tags a:hover { color: #fff; text-decoration: underline; }

/* ---------- 快捷入口 ---------- */
.quick-panel {
    position: relative;
    margin-top: -38px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(20, 42, 80, .1);
    padding: 24px 22px 26px;
    z-index: 5;
}
.quick-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.quick-head h2 { margin: 0; font-size: 18px; letter-spacing: .5px; }
.quick-head span { font-size: 13px; color: var(--muted); }
.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 6px 14px;
    border-radius: 10px;
    background: var(--primary-soft);
    border: 1px solid transparent;
    transition: all .2s;
    text-align: center;
}
.quick-item:hover {
    background: var(--primary-light);
    border-color: rgba(22, 104, 220, .18);
    transform: translateY(-2px);
    color: var(--primary);
}
.quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(20, 42, 80, .06);
    transition: background .2s, color .2s;
}
.quick-icon .qicon { width: 21px; height: 21px; display: block; }
.quick-item:hover .quick-icon { background: var(--primary); color: #fff; }
.quick-item span.quick-title { font-size: 14px; }

/* ---------- 通用区块 ---------- */
.section { padding: 42px 0 6px; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}
.section-head h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: .5px;
    position: relative;
    padding-left: 14px;
}
.section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    border-radius: 3px;
    background: var(--primary);
}
.section-head .more {
    font-size: 13px;
    color: var(--muted);
}
.section-head .more:hover { color: var(--primary); }

.panel {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ---------- 六大板块 ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.cat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 22px 16px;
    box-shadow: var(--shadow);
    transition: all .22s;
    border-top: 3px solid var(--primary);
    display: flex;
    flex-direction: column;
}
.cat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.cat-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cat-card-head .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 20px;
    flex: 0 0 auto;
}
.cat-card-head .icon .qicon { width: 22px; height: 22px; }
.cat-card-head h3 { margin: 0; font-size: 18px; }
.cat-card-head h3 a:hover { color: var(--primary); }
.cat-card p {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--muted);
    min-height: 22px;
}
.cat-card .links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cat-card .links a {
    font-size: 13px;
    padding: 5px 11px;
    border-radius: 20px;
    background: var(--primary-soft);
    color: var(--text-light);
}
.cat-card .links a:hover { background: var(--primary); color: #fff; }
.cat-card .enter {
    margin-top: 14px;
    font-size: 13px;
    color: var(--primary);
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

/* ---------- 资讯区 ---------- */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 22px;
}
.news-main { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 22px; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
}
.news-list li:last-child { border-bottom: 0; }
.news-list .badge {
    flex-shrink: 0;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--primary-light);
    color: var(--primary);
}
.news-list .badge.top { background: #fff1f0; color: #cf2b2b; }
.news-list a.title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}
.news-list .date { flex-shrink: 0; color: var(--muted); font-size: 13px; }

.side-stack { display: flex; flex-direction: column; gap: 18px; }
.side-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.side-box h3 {
    margin: 0 0 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.side-box h3::before {
    content: "";
    width: 3px;
    height: 14px;
    background: var(--primary);
    border-radius: 2px;
}
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.notice-list li:last-child { border-bottom: 0; }
.notice-list a { display: flex; gap: 8px; }
.notice-list a::before { content: "·"; color: var(--primary); font-weight: 700; }
.notice-list a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.notice-list li { display: flex; align-items: center; gap: 10px; }
.notice-list a { flex: 1 1 auto; min-width: 0; }
.notice-date { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.side-box h3 .side-more {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0;
}
.side-box h3 .side-more:hover { color: var(--primary); }

.hot-list { list-style: none; margin: 0; padding: 0; counter-reset: hot; }
.hot-list li { display: flex; gap: 10px; padding: 9px 0; align-items: flex-start; }
.hot-list li .no {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 4px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    text-align: center;
    line-height: 18px;
    margin-top: 3px;
}
.hot-list li:nth-child(1) .no { background: var(--primary); color: #fff; }
.hot-list li:nth-child(2) .no { background: #ff8a00; color: #fff; }
.hot-list li:nth-child(3) .no { background: #ffbf00; color: #fff; }
.hot-list a { font-size: 14px; line-height: 1.6; }

/* ---------- 内页 ---------- */
.breadcrumb {
    padding: 18px 0 0;
    font-size: 13px;
    color: var(--muted);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span.sep { margin: 0 6px; opacity: .5; }

.page-wrap { padding: 16px 0 40px; }

.list-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 22px;
    align-items: start;
}
.side-nav {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: sticky;
    top: 150px;
}
.side-nav .head {
    background: linear-gradient(120deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 18px 20px;
}
.side-nav .head small { display: block; font-size: 12px; opacity: .8; letter-spacing: 2px; }
.side-nav .head b { font-size: 18px; }
.side-nav ul { list-style: none; margin: 0; padding: 8px; }
.side-nav ul li a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-light);
}
.side-nav ul li a:hover { background: var(--primary-soft); color: var(--primary); }
.side-nav ul li a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

.list-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px 26px; }
.list-panel .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--line);
    margin-bottom: 6px;
}
.list-panel .panel-head h2 { margin: 0; font-size: 19px; }
.list-panel .panel-head .count { font-size: 13px; color: var(--muted); }

.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li {
    padding: 16px 0;
    border-bottom: 1px dashed var(--line);
}
.article-list li:last-child { border-bottom: 0; }
.article-list .row1 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.article-list .tag {
    font-size: 12px;
    padding: 1px 8px;
    border-radius: 4px;
    background: var(--primary-light);
    color: var(--primary);
    flex-shrink: 0;
}
.article-list .tag.top { background: #fff1f0; color: #cf2b2b; }
.article-list a.title { font-size: 16px; color: var(--text); }
.article-list a.title:hover { color: var(--primary); }
.article-list .desc { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.article-list .meta { margin-top: 6px; font-size: 12px; color: var(--muted); display: flex; gap: 14px; }

/* ---------- 详情 ---------- */
.article-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 38px 34px; }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 22px; }
.article-head h1 {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.45;
    letter-spacing: .3px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 13px;
    color: var(--muted);
}
.article-body { font-size: 15.5px; line-height: 1.95; color: #2a3140; word-wrap: break-word; }
.article-body h3 {
    margin: 26px 0 10px;
    font-size: 17px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
    line-height: 1.4;
}
.article-body p { margin: 0 0 14px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; }
.article-body li { margin-bottom: 6px; }
.article-body img { border-radius: 8px; margin: 16px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.article-body table th, .article-body table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.article-body table th { background: var(--primary-soft); }

.article-actions {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.article-ad {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 4px;
    padding: 12px 16px;
    background: var(--primary-light);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--primary-dark);
}
.article-ad .qicon { flex: 0 0 auto; width: 18px; height: 18px; }
.article-ad a { color: inherit; }
.article-ad a:hover { text-decoration: underline; }
.article-ad span { min-width: 0; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 22px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    cursor: pointer;
    transition: all .18s;
    background: #fff;
    color: var(--text);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { border-color: var(--line); color: var(--text-light); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }

.price-note { font-size: 13px; color: var(--muted); }
.price-now { color: #cf2b2b; font-weight: 700; font-size: 18px; }

.article-nav {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
}
.article-nav a:hover { color: var(--primary); }

.related-box { margin-top: 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; }
.related-box h3 { margin: 0 0 12px; font-size: 16px; }
.related-box ul { margin: 0; padding: 0; list-style: none; }
.related-box li { padding: 7px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.related-box li:last-child { border-bottom: 0; }

/* ---------- 分页 ---------- */
.pager { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pager a, .pager span {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: var(--text-light);
}
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .pager-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .pager-total { border: 0; color: var(--muted); margin-left: 4px; }
.pager .pager-dot { border: 0; color: var(--muted); }

/* ---------- 表单 ---------- */
.form-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px 32px; }
.form-panel h2 { margin: 0 0 6px; font-size: 20px; }
.form-panel .sub { margin: 0 0 22px; font-size: 13px; color: var(--muted); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 7px; font-weight: 600; }
.form-row label .req { color: #cf2b2b; margin-left: 2px; }
.form-control {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    color: var(--text);
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
    font-family: inherit;
}
textarea.form-control { height: auto; min-height: 96px; padding: 10px 13px; line-height: 1.7; resize: vertical; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 104, 220, .1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-help { font-size: 12px; color: var(--muted); margin-top: 6px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
}
.radio-item:hover { border-color: var(--primary); }
.radio-item input { accent-color: var(--primary); }

.alert { padding: 11px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #fff1f0; border: 1px solid #ffd6d2; color: #b42318; }
.alert-success { background: #f0f9eb; border: 1px solid #c9efb6; color: #237804; }
.alert-info { background: var(--primary-soft); border: 1px solid #d7e5ff; color: var(--primary-dark); }

/* ---------- 侧栏（详情页） ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }

/* ---------- 登录注册 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 36px 0 50px; }
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 32px 34px 34px;
}
.auth-card h2 { margin: 0 0 6px; font-size: 22px; }
.auth-card p.sub { margin: 0 0 22px; font-size: 13px; color: var(--muted); }
.auth-card .btn-block { margin-top: 6px; }
.auth-alt { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--primary); }

/* ---------- 会员中心 ---------- */
.user-hero {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary));
    color: #fff;
    border-radius: var(--radius);
    padding: 26px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.user-hero .avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.user-hero .info { flex: 1; }
.user-hero h2 { margin: 0; font-size: 20px; }
.user-hero small { opacity: .8; font-size: 13px; }
.user-hero .actions a {
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13px;
    color: #fff;
}
.user-hero .actions a:hover { background: rgba(255, 255, 255, .15); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 16px 18px;
}
.stat-card b { font-size: 24px; color: var(--primary); display: block; line-height: 1.3; }
.stat-card span { font-size: 13px; color: var(--muted); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { background: #fafbfd; font-weight: 600; color: var(--text-light); font-size: 13px; }
.table td.wrap { white-space: normal; }
.status-badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; }
.status-0 { background: #fff7e6; color: #ad6800; }
.status-1 { background: #eaf2ff; color: #1668dc; }
.status-2 { background: #f0f9eb; color: #237804; }
.status-3 { background: #f5f5f5; color: #8c8c8c; }

.empty {
    padding: 46px 0;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}
.empty .icon { font-size: 34px; display: block; margin-bottom: 10px; opacity: .5; }

/* ---------- 订单详情 ---------- */
.order-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px; }
.order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}
.order-head h2 { margin: 0; font-size: 20px; }
.order-head .no { font-size: 13px; color: var(--muted); }
.order-status { font-size: 15px; font-weight: 600; }
.kv-list { display: grid; grid-template-columns: 110px 1fr; gap: 12px 18px; font-size: 14px; }
.kv-list .k { color: var(--muted); }
.kv-list .v { color: var(--text); word-break: break-all; }
.order-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.site-footer {
    margin-top: 46px;
    background: #101a2c;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    padding: 36px 0 22px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand b { color: #fff; font-size: 18px; display: block; margin-bottom: 8px; }
.footer-brand p { margin: 0 0 4px; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 12px; font-weight: 600; }
.footer-col p { margin: 0 0 8px; line-height: 1.9; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    padding-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
}
.footer-bottom .beian a { color: rgba(255, 255, 255, .62); }
.footer-bottom .beian a:hover { color: #fff; }

/* ---------- 空状态 / 404 ---------- */
.notice-bar {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .hero-inner { gap: 32px; }
    .hero-action { flex: 0 0 400px; max-width: 400px; }
    .news-layout { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-grid { grid-template-columns: repeat(4, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    body { font-size: 14.5px; }
    .topbar { font-size: 12px; line-height: 34px; }
    .topbar .container { overflow: hidden; }
    .topbar .work-time { display: none; }
    .header-search { display: none; }
    .header-ad { display: none; }
    .nav-toggle { display: inline-flex; align-items: center; margin-left: auto; }
    .main-nav { display: none; }
    .mobile-nav { display: block; }
    .logo-text b { font-size: 20px; }
    .logo-text small { font-size: 11px; letter-spacing: 1px; }
    .header-inner { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
    .hero { padding: 34px 0 52px; }
    .hero-inner { flex-direction: column; align-items: stretch; gap: 20px; }
    .hero-action { flex: 1 1 auto; max-width: 100%; text-align: left; }
    .hero h1 { font-size: 24px; }
    .hero p { font-size: 14px; margin-bottom: 0; }
    .hero-search button { padding: 0 18px; height: 40px; font-size: 14px; }
    .hero-tags { font-size: 12px; gap: 6px 14px; justify-content: flex-start; }
    .quick-panel { margin-top: -30px; padding: 18px 14px 20px; }
    .quick-panel .quick-head h2 { font-size: 16px; }
    .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .quick-item { padding: 12px 4px 10px; gap: 6px; }
    .quick-icon { width: 32px; height: 32px; font-size: 16px; }
    .quick-item span.quick-title { font-size: 12.5px; }
    .section { padding: 30px 0 4px; }
    .section-head h2 { font-size: 19px; }
    .cat-grid { grid-template-columns: 1fr; gap: 14px; }
    .cat-card { padding: 16px 18px 12px; }
    .list-layout { grid-template-columns: 1fr; }
    .side-nav { position: static; }
    .side-nav ul { display: flex; overflow-x: auto; padding: 8px; gap: 4px; }
    .side-nav ul li a { white-space: nowrap; padding: 7px 12px; }
    .list-panel { padding: 18px 16px 20px; }
    .article-panel { padding: 20px 18px 24px; }
    .article-head h1 { font-size: 20px; }
    .article-body { font-size: 15px; }
    .news-main { padding: 4px 16px; }
    .news-list .date { display: none; }
    .news-list a.title { white-space: normal; font-size: 14.5px; }
    .form-panel, .auth-card { padding: 20px 18px 24px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; padding-bottom: 18px; }
    /* 手机端页脚只保留「联系方式」，其余区块隐藏 */
    .site-footer .footer-brand,
    .site-footer .footer-col:not(.footer-contact),
    .site-footer .footer-bottom > span:last-child { display: none; }
    /* 手机端隐藏 ICP 备案号与公安备案号，仅保留版权行 */
    .site-footer .beian-item { display: none; }
    .site-footer { margin-top: 30px; padding: 24px 0 18px; }
    .footer-contact { text-align: left; }
    .user-hero { padding: 20px; }
    .kv-list { grid-template-columns: 88px 1fr; font-size: 13.5px; }
    .order-card { padding: 18px 16px; }
    .table th, .table td { padding: 9px 10px; font-size: 13px; }
    .btn { height: 38px; padding: 0 16px; font-size: 13.5px; }
}

@media (max-width: 420px) {
    .quick-grid { grid-template-columns: repeat(3, 1fr); }
    .container { padding: 0 14px; }
}
