/* ============================================================
   官网形态样式（PC 端）—— 参照「奇兵到家」结构，配色跟随后台主题
   仅用于 views/layouts/official.php 与官网首页 classified/views/index.php
   ============================================================ */

.off-body { background: #fff; color: #1f2329; }

/* ---------- 顶部 ---------- */
.off-topbar {
    background: #f7f8fa; border-bottom: 1px solid #eef0f3;
    font-size: 13px; color: #8a8f99;
}
.off-topbar .wrap { max-width: 1200px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 16px; }
.off-topbar .sp { flex: 1; }
.off-topbar a { color: #8a8f99; }
.off-topbar a:hover { color: var(--primary-text); }

.off-header { background: #fff; border-bottom: 1px solid #eef0f3; position: sticky; top: 0; z-index: 50; }
.off-header .wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 74px; display: flex; align-items: center; gap: 28px; }
.off-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; color: #111; letter-spacing: .5px; }
.off-brand img { height: 40px; display: block; }
.off-brand .sub { font-size: 12px; font-weight: 500; color: #9aa0a6; border-left: 1px solid #e5e7eb; padding-left: 10px; letter-spacing: 0; }
.off-nav { display: flex; align-items: center; gap: 26px; flex: 1; }
.off-nav a { font-size: 15px; color: #3c4048; padding: 6px 0; position: relative; white-space: nowrap; }
.off-nav a:hover, .off-nav a.on { color: var(--primary-text); font-weight: 700; }
.off-nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--primary); }
.off-hact { display: flex; align-items: center; gap: 10px; }
.off-hact a { font-size: 14px; padding: 8px 18px; border-radius: 999px; white-space: nowrap; }
.off-hact .line { border: 1px solid #dcdfe6; color: #4a4f57; }
.off-hact .line:hover { border-color: var(--primary); color: var(--primary-text); }
.off-hact .fill { background: var(--primary); color: var(--on-primary); font-weight: 700; }
.off-hact .fill:hover { background: var(--primary-dark); }
.off-hact .name { font-size: 14px; color: #6b7280; padding: 0 4px; }

/* ---------- Hero ---------- */
.off-hero {
    background: linear-gradient(135deg, var(--primary-softer) 0%, #fff 62%);
    border-bottom: 1px solid #f1f2f4;
}
.off-hero .wrap { max-width: 1200px; margin: 0 auto; padding: 56px 20px 46px; display: flex; align-items: center; gap: 48px; }
.off-hero-left { flex: 1; min-width: 0; }
.off-hero h1 { font-size: 42px; line-height: 1.28; font-weight: 900; color: #16181c; margin: 0 0 14px; }
.off-hero h1 em { font-style: normal; color: var(--primary-text); }
.off-hero p.lead { font-size: 17px; color: #6b7280; line-height: 1.9; margin-bottom: 26px; }
.off-search { display: flex; background: #fff; border: 2px solid var(--primary); border-radius: 999px; overflow: hidden; max-width: 560px; box-shadow: 0 6px 22px rgba(0,0,0,.06); }
.off-search input { flex: 1; border: 0; outline: 0; padding: 15px 24px; font-size: 15px; background: transparent; }
.off-search button { border: 0; cursor: pointer; padding: 0 36px; font-size: 16px; font-weight: 800; background: var(--primary); color: var(--on-primary); }
.off-hot { margin-top: 14px; font-size: 13px; color: #9aa0a6; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.off-hot a { color: #6b7280; }
.off-hot a:hover { color: var(--primary-text); }
.off-hero-stats { display: flex; gap: 42px; margin-top: 34px; }
.off-hero-stats .n { font-size: 30px; font-weight: 900; color: var(--primary-text); line-height: 1.2; }
.off-hero-stats .t { font-size: 13px; color: #9aa0a6; margin-top: 4px; }
.off-hero-right { width: 340px; flex: 0 0 auto; background: #fff; border: 1px solid #eef0f3; border-radius: 18px; padding: 24px; box-shadow: 0 14px 40px rgba(0,0,0,.07); }
.off-hero-right h3 { font-size: 17px; margin: 0 0 4px; color: #16181c; }
.off-hero-right .desc { font-size: 13px; color: #9aa0a6; margin-bottom: 16px; }
.off-entry { display: block; border: 1px solid #eef0f3; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; transition: .15s; }
.off-entry:hover { border-color: var(--primary); background: var(--primary-softer); transform: translateY(-1px); }
.off-entry .en-t { font-size: 15px; font-weight: 700; color: #1f2329; display: flex; align-items: center; gap: 8px; }
.off-entry .en-d { font-size: 12px; color: #9aa0a6; margin-top: 3px; }
.off-entry .ico { font-size: 20px; }

/* ---------- 通用区块 ---------- */
.off-sec { max-width: 1200px; margin: 0 auto; padding: 58px 20px; }
.off-sec.tint { max-width: none; background: #fafbfc; }
.off-sec.tint > .inner { max-width: 1200px; margin: 0 auto; }
.off-sec-hd { text-align: center; margin-bottom: 38px; }
.off-sec-hd h2 { font-size: 30px; font-weight: 900; color: #16181c; margin: 0 0 10px; }
.off-sec-hd p { font-size: 15px; color: #9aa0a6; }
.off-sec-hd .bar { width: 44px; height: 4px; border-radius: 4px; background: var(--primary); margin: 14px auto 0; }

/* 服务品类宫格 */
.off-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.off-cat {
    background: #fff; border: 1px solid #eef0f3; border-radius: 14px; padding: 22px 12px 18px;
    text-align: center; transition: .18s; display: block;
}
.off-cat:hover { border-color: var(--primary); box-shadow: 0 10px 26px rgba(0,0,0,.08); transform: translateY(-3px); }
.off-cat .ic { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px; background: var(--primary-softer);
    display: flex; align-items: center; justify-content: center; font-size: 26px; }
.off-cat .nm { font-size: 15px; font-weight: 700; color: #1f2329; }
.off-cat .sb { font-size: 12px; color: #a5aab2; margin-top: 5px; height: 17px; overflow: hidden; }
.off-cat .go { display: inline-block; margin-top: 12px; font-size: 12px; padding: 5px 16px; border-radius: 999px;
    background: var(--primary-softer); color: var(--primary-text); font-weight: 700; }
.off-cat:hover .go { background: var(--primary); color: var(--on-primary); }

/* 优势 */
.off-adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.off-adv .it { background: #fff; border: 1px solid #eef0f3; border-radius: 14px; padding: 28px 22px; text-align: center; }
.off-adv .it .ic { font-size: 34px; margin-bottom: 12px; }
.off-adv .it h4 { font-size: 17px; margin: 0 0 8px; color: #1f2329; }
.off-adv .it p { font-size: 13px; color: #9aa0a6; line-height: 1.9; }

/* 流程 */
.off-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.off-flow .st { text-align: center; padding: 0 14px; position: relative; }
.off-flow .st::after { content: ""; position: absolute; top: 26px; right: -50%; width: 100%; height: 2px;
    background: repeating-linear-gradient(90deg, #e3e6ea 0 8px, transparent 8px 16px); }
.off-flow .st:last-child::after { display: none; }
.off-flow .no { width: 54px; height: 54px; line-height: 54px; margin: 0 auto 14px; border-radius: 50%;
    background: var(--primary); color: var(--on-primary); font-size: 20px; font-weight: 900; position: relative; z-index: 2; }
.off-flow .st h4 { font-size: 16px; margin: 0 0 6px; color: #1f2329; }
.off-flow .st p { font-size: 13px; color: #9aa0a6; line-height: 1.8; }

/* 信息卡片流 */
.off-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.off-card { background: #fff; border: 1px solid #eef0f3; border-radius: 12px; overflow: hidden; display: block; transition: .18s; }
.off-card:hover { border-color: var(--primary); box-shadow: 0 10px 24px rgba(0,0,0,.08); transform: translateY(-3px); }
.off-card .th { aspect-ratio: 1/1; background: #f5f6f8; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.off-card .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.off-card .th .ph { font-size: 40px; color: #d5d8dd; }
.off-card .bd { padding: 10px 12px 14px; }
.off-card .tt { font-size: 14px; line-height: 1.5; color: #1f2329; height: 42px; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.off-card .pr { font-size: 17px; font-weight: 900; color: var(--primary-text); margin-top: 8px; }
.off-card .mt { font-size: 12px; color: #a5aab2; margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; }
.off-more { text-align: center; margin-top: 30px; }
.off-more a { display: inline-block; padding: 11px 40px; border: 1px solid #dcdfe6; border-radius: 999px; color: #4a4f57; font-size: 15px; }
.off-more a:hover { border-color: var(--primary); color: var(--primary-text); }

/* 两栏：资讯 + 问答 */
.off-two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.off-panel { background: #fff; border: 1px solid #eef0f3; border-radius: 14px; padding: 22px 24px; }
.off-panel h3 { font-size: 19px; margin: 0 0 16px; color: #16181c; display: flex; align-items: center; justify-content: space-between; }
.off-panel h3 a { font-size: 13px; font-weight: 400; color: #9aa0a6; }
.off-panel li { list-style: none; padding: 11px 0; border-bottom: 1px dashed #f0f1f3; display: flex; gap: 10px; align-items: baseline; }
.off-panel li:last-child { border-bottom: 0; }
.off-panel li a { flex: 1; font-size: 14px; color: #3c4048; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.off-panel li a:hover { color: var(--primary-text); }
.off-panel li .dt { font-size: 12px; color: #b9bdc4; flex: 0 0 auto; }
.off-panel li .dot { color: var(--primary); font-weight: 900; }

/* CTA 条 */
.off-cta { background: linear-gradient(100deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--on-primary); }
.off-cta .wrap { max-width: 1200px; margin: 0 auto; padding: 42px 20px; display: flex; align-items: center; gap: 24px; }
.off-cta h3 { font-size: 27px; font-weight: 900; margin: 0 0 6px; }
.off-cta p { font-size: 14px; opacity: .82; }
.off-cta .sp { flex: 1; }
.off-cta .bt { background: #fff; color: #1f2329; padding: 13px 34px; border-radius: 999px; font-size: 16px; font-weight: 800; white-space: nowrap; }

/* ---------- 内容页容器（会员中心等复用官网外壳） ---------- */
.off-main { max-width: 1200px; margin: 0 auto; padding: 26px 20px 50px; min-height: 420px; }
.off-crumb { font-size: 13px; color: #9aa0a6; margin-bottom: 16px; }
.off-crumb a { color: #9aa0a6; }
.off-crumb a:hover { color: var(--primary-text); }

/* ---------- 页脚 ---------- */
.off-footer { background: #1f2329; color: #9aa0a6; padding: 46px 20px 0; margin-top: 10px; }
.off-footer a { color: #9aa0a6; }
.off-footer a:hover { color: #fff; }
.off-fwrap { max-width: 1200px; margin: 0 auto; display: flex; gap: 60px; flex-wrap: wrap; padding-bottom: 34px; }
.off-fcol h4 { color: #fff; font-size: 15px; margin: 0 0 16px; }
.off-fcol p, .off-fcol li { list-style: none; font-size: 13px; line-height: 2.1; }
.off-fabout { flex: 1; min-width: 260px; }
.off-fabout .lg { color: #fff; font-size: 20px; font-weight: 900; margin-bottom: 12px; }
.off-fabout p { font-size: 13px; line-height: 2; max-width: 420px; }
.off-fqr { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.off-fqr img { width: 84px; height: 84px; border-radius: 8px; background: #fff; padding: 4px; object-fit: contain; }
.off-fqr span { font-size: 13px; color: #cdd6e6; }
.off-articles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.off-articles li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px dashed #e6e9f0; padding: 10px 0; }
.off-articles li a { color: #333; font-size: 15px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.off-articles li a:hover { color: var(--primary-text); }
.off-articles li .dt { color: #9aa3b8; font-size: 12px; flex: none; }
@media (max-width: 720px) { .off-articles { grid-template-columns: 1fr; } }
.off-fbeian { border-top: 1px solid #2c3036; text-align: center; font-size: 12px; line-height: 2.2; padding: 18px 0 26px; }
.off-fbeian .beian-shield { display: inline-block; width: 14px; height: 14px; line-height: 14px; text-align: center;
    background: #4a4f57; color: #fff; border-radius: 3px; font-size: 9px; margin-right: 4px; vertical-align: -2px; }
.off-flinks { max-width: 1200px; margin: 0 auto; font-size: 12px; padding-bottom: 16px; }
.off-flinks a { margin-right: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .off-cats { grid-template-columns: repeat(4, 1fr); }
    .off-grid { grid-template-columns: repeat(3, 1fr); }
    .off-hero-right { display: none; }
}
@media (max-width: 820px) {
    .off-header .wrap { height: auto; flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
    .off-nav { order: 3; width: 100%; overflow-x: auto; gap: 18px; }
    .off-hero .wrap { padding: 36px 16px; }
    .off-hero h1 { font-size: 30px; }
    .off-cats { grid-template-columns: repeat(3, 1fr); }
    .off-adv, .off-flow, .off-two { grid-template-columns: 1fr 1fr; }
    .off-flow .st::after { display: none; }
    .off-grid { grid-template-columns: repeat(2, 1fr); }
    .off-cta .wrap { flex-direction: column; text-align: center; }
}
