﻿/* ============================================================
   分类信息网 全站样式  (前台 + 会员中心 + 管理后台)
   ============================================================ */
:root {
    --blue: #2b7de1;
    --blue-d: #1e5fc0;
    --orange: #ff6a00;
    --bg: #f4f6f9;
    --line: #e5e9f0;
    --txt: #333;
    --txt2: #777;
    --green: #1ca049;
    --red: #e03e3e;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* 手机 UA 被迫浏览电脑版时的切换提示条 */
.ua-tip { background: #fff4e5; border-bottom: 1px solid #f5e6b8; text-align: center; font-size: 13px; padding: 8px 10px; }
.ua-tip a { color: #c07b2b; font-weight: 600; }
.ua-tip a:hover { color: var(--orange); }
body {
    font: 14px/1.7 "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg); color: var(--txt);
}
a { color: var(--txt); text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; border: 0; }
em, i { font-style: normal; }
.w { max-width: 1200px; margin: 0 auto; padding: 0 12px; }

/* ---------------- 顶部条 ---------------- */
.topbar { background: #26313f; color: #aab4c3; font-size: 12px; }
.topbar .w { display: flex; justify-content: space-between; height: 34px; align-items: center; }
.topbar a { color: #cfd6e0; }
.topbar a:hover { color: #fff; }
.topbar em { color: #4a5768; margin: 0 8px; }
.topbar .hello { color: #ffd28a; }

/* ---------------- 头部 ---------------- */
.header { background: #fff; }
.header .h-in { display: flex; align-items: center; height: 92px; gap: 26px; }
.logo {
    font-size: 30px; font-weight: 700; color: var(--blue); letter-spacing: 1px;
    white-space: nowrap; text-shadow: 0 1px 0 #eaf2ff;
}
.logo:hover { color: var(--blue-d); }
.search-box { flex: 1; display: flex; height: 40px; }
.search-box select {
    width: 150px; border: 2px solid var(--blue); border-right: 0; border-radius: 4px 0 0 4px;
    padding: 0 8px; font-size: 13px; color: #555; outline: none; background: #fff;
}
.search-box input {
    flex: 1; border: 2px solid var(--blue); border-right: 0; padding: 0 12px;
    font-size: 14px; outline: none; min-width: 0;
}
.search-box button {
    width: 92px; background: var(--blue); color: #fff; border: 0; border-radius: 0 4px 4px 0;
    font-size: 16px; letter-spacing: 4px; cursor: pointer;
}
.search-box button:hover { background: var(--blue-d); }
.btn-post {
    background: var(--orange); color: #fff; font-size: 16px; padding: 10px 22px;
    border-radius: 4px; white-space: nowrap; box-shadow: 0 2px 8px rgba(255,106,0,.35);
}
.btn-post b { font-weight: 700; margin-right: 4px; }
.btn-post:hover { background: #ee5f00; color: #fff; }

/* ---------------- 主导航 ---------------- */
.nav { background: var(--blue); }
.nav .w { display: flex; flex-wrap: wrap; }
.nav a {
    color: #fff; padding: 0 24px; line-height: 44px; font-size: 15px; position: relative;
}
.nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav a.on { background: var(--orange); }

/* ---------------- 公告条 ---------------- */
.announce { background: #fffbe8; border-bottom: 1px solid #f5e6b8; font-size: 13px; }
.announce .w { height: 36px; display: flex; align-items: center; gap: 10px; }
.announce a { color: #a26b00; }
.announce .more { margin-left: auto; color: #999; }

/* ---------------- 分类格子 ---------------- */
.main-w { padding-top: 14px; padding-bottom: 20px; }
.grid-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
.cat-box { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cb-hd {
    background: linear-gradient(135deg, #3a8af0, var(--blue)); padding: 8px 12px;
    display: flex; justify-content: space-between; align-items: center;
}
.cb-hd a { color: #fff; font-weight: 600; font-size: 15px; }
.cb-hd span { color: #dcebff; font-size: 12px; }
.cb-bd { padding: 8px 10px; display: flex; flex-wrap: wrap; }
.cb-bd a { font-size: 12px; color: #667; padding: 2px 6px; border-radius: 3px; }
.cb-bd a:hover { background: #eaf3ff; color: var(--blue); }

/* ---------------- 两栏布局 ---------------- */
.index-cols { display: flex; gap: 14px; align-items: flex-start; }
.main-col { flex: 1; min-width: 0; }
.side-col { width: 300px; flex-shrink: 0; }

/* ---------------- 面板 ---------------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 14px; }
.panel-hd {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}
.panel-hd h2 { font-size: 17px; border-left: 4px solid var(--orange); padding-left: 10px; line-height: 1.2; }
.panel-hd .sub { color: #999; font-size: 12px; }
.panel-hd .hl { color: var(--orange); }
.panel-hd .more { margin-left: auto; color: var(--blue); font-size: 13px; }
.panel .empty { color: #999; text-align: center; padding: 30px 0; }

/* ---------------- 信息列表 ---------------- */
.info-list { list-style: none; padding: 4px 0; }
.info-list li {
    display: flex; align-items: center; gap: 10px; padding: 9px 16px;
    border-bottom: 1px dashed #eef1f5;
}
.info-list li:last-child { border-bottom: 0; }
.info-list li:hover { background: #f8fbff; }
.info-list .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.info-list time { color: #999; font-size: 12px; flex-shrink: 0; }
.info-list.rich li { padding: 12px 16px; }
.li-main { flex: 1; min-width: 0; }
.li-sub { display: flex; align-items: center; gap: 10px; margin-top: 3px; font-size: 12px; color: #999; }
.li-sub em { color: #999; }
.price { color: var(--orange); font-weight: 700; }
.price.big { font-size: 18px; }

.badge {
    background: #eaf3ff; border-radius: 3px; flex-shrink: 0; font-size: 12px;
}
.badge a { color: var(--blue); padding: 2px 8px; display: inline-block; }
.top-flag {
    background: var(--orange); color: #fff; font-size: 12px; border-radius: 3px;
    padding: 1px 6px; flex-shrink: 0;
}
.st-flag { background: #999; color: #fff; font-size: 12px; border-radius: 3px; padding: 1px 6px; }

/* ---------------- 侧栏 ---------------- */
.post-panel { text-align: center; padding: 22px 18px; }
.post-panel h3 { font-size: 18px; color: var(--blue); margin-bottom: 8px; }
.post-panel p { color: #999; font-size: 13px; margin-bottom: 16px; }
.btn-big {
    display: block; background: var(--orange); color: #fff; font-size: 17px;
    padding: 12px 0; border-radius: 6px; letter-spacing: 2px;
    box-shadow: 0 3px 10px rgba(255,106,0,.35);
}
.btn-big:hover { background: #ee5f00; color: #fff; }
.dot-list { list-style: none; padding: 6px 0; }
.dot-list li {
    padding: 7px 16px 7px 26px; position: relative; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.dot-list li::before {
    content: ""; position: absolute; left: 16px; top: 15px; width: 5px; height: 5px;
    border-radius: 50%; background: var(--blue); opacity: .6;
}
.hot-list { list-style: none; padding: 6px 0; counter-reset: hot; }
.hot-list li { display: flex; align-items: center; gap: 8px; padding: 7px 14px; }
.hot-list i {
    width: 18px; height: 18px; background: #dfe6ee; color: #8a94a3; font-size: 12px;
    text-align: center; line-height: 18px; border-radius: 3px; flex-shrink: 0; font-style: normal;
}
.hot-list i.r { background: var(--orange); color: #fff; }
.hot-list a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-list em { color: #b0b8c3; font-size: 12px; }

/* ---------------- 面包屑 / 子分类 ---------------- */
.crumb { padding: 12px 2px; color: #999; font-size: 13px; }
.crumb a { color: var(--blue); }
.sub-tabs {
    background: #fff; border: 1px solid var(--line); border-radius: 6px;
    padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.sub-tabs a { padding: 4px 14px; border-radius: 20px; font-size: 13px; color: #556; }
.sub-tabs a:hover { background: #eaf3ff; color: var(--blue); }
.sub-tabs a.on { background: var(--blue); color: #fff; }

/* ---------------- 详情页 ---------------- */
.detail h1 { font-size: 22px; padding: 18px 20px 6px; line-height: 1.4; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.d-meta {
    display: flex; flex-wrap: wrap; gap: 16px; padding: 4px 22px 14px; color: #999; font-size: 13px;
    border-bottom: 1px solid var(--line); align-items: center;
}
.d-contact {
    margin: 14px 20px; background: linear-gradient(135deg, #fff7ef, #fffdf8);
    border: 1px solid #ffe1c4; border-radius: 8px; padding: 14px 18px;
    display: flex; flex-wrap: wrap; gap: 30px; align-items: center;
}
.c-item label { display: block; color: #b08457; font-size: 12px; }
.c-item b { font-size: 18px; color: #7a4b16; }
.c-item .tel { font-size: 24px; color: var(--orange); letter-spacing: 1px; }
.c-tip { width: 100%; font-size: 12px; color: #c07b2b; border-top: 1px dashed #ffe1c4; padding-top: 8px; }
.d-content { padding: 6px 22px 20px; font-size: 15px; line-height: 1.9; white-space: normal; word-break: break-word; }
.d-imgs { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 22px 18px; }
.d-imgs a { width: 200px; height: 150px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); display: block; }
.d-imgs img { width: 100%; height: 100%; object-fit: cover; }
.d-warn { background: #f7f9fc; color: #99a3b0; font-size: 12px; padding: 12px 22px; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; }
.notice-detail h1 { font-size: 20px; padding: 18px 20px 6px; }
.notice-detail .d-content { padding-top: 14px; }
.none-panel { text-align: center; padding: 60px 20px; }
.none-panel h2 { margin-bottom: 10px; }

/* ---------------- 友链 / 页脚 ---------------- */
.links-bar { background: #fff; border-top: 1px solid var(--line); padding: 14px 0; margin-top: 10px; font-size: 13px; }
.links-bar .w { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.links-bar b { color: #556; }
.links-bar a { color: #667; }
.footer { background: #26313f; color: #8f9bad; margin-top: 0; padding: 30px 0 0; font-size: 13px; }
.f-in { display: flex; gap: 30px; flex-wrap: wrap; padding-bottom: 22px; }
.f-col { flex: 1; min-width: 200px; }
.f-col h4 { color: #d6dde8; font-size: 15px; margin-bottom: 10px; }
.f-col a { display: inline-block; color: #8f9bad; margin: 2px 14px 2px 0; }
.f-col a:hover { color: #fff; }
.f-col .tel b { color: var(--orange); font-size: 20px; }
.f-bt { border-top: 1px solid #37424f; padding: 14px 12px; text-align: center; font-size: 12px; }
.f-bt a { color: #8f9bad; }

/* ---------------- 表单 ---------------- */
.form-w { max-width: 860px; }
.tip { background: #f2f8ff; border: 1px solid #cfe4ff; color: #2b6cb0; padding: 10px 14px; border-radius: 4px; font-size: 13px; margin: 12px 16px 0; }
.tip-ok { background: #f0fbf3; border: 1px solid #c3e6cd; color: var(--green); padding: 10px 14px; border-radius: 4px; font-size: 13px; margin: 12px 16px 0; }
.tip-err { background: #fff2f2; border: 1px solid #ffd6d6; color: var(--red); padding: 10px 14px; border-radius: 4px; font-size: 13px; margin: 12px 16px 0; }
.form { padding: 18px 22px 22px; }
.row { margin-bottom: 15px; }
.row label { display: block; font-size: 13px; color: #556; margin-bottom: 5px; }
.row label i { color: var(--red); margin-right: 2px; font-style: normal; }
.row input[type=text], .row input[type=password], .row input[type=number], .row select, .row textarea, .a-filter input, .a-filter select {
    width: 100%; padding: 9px 11px; border: 1px solid #d6dbe3; border-radius: 4px; font-size: 14px; outline: none; background: #fff;
}
.row input:focus, .row select:focus, .row textarea:focus, .a-filter input:focus, .a-filter select:focus {
    border-color: var(--blue); box-shadow: 0 0 0 2px rgba(43,125,225,.14);
}
.row textarea { resize: vertical; font-family: inherit; }
.row .inline { display: flex; gap: 10px; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.uploads input[type=file] { padding: 6px; background: #fafbfd; }
.row.sub-row { display: flex; align-items: center; gap: 14px; }
.btn-post2 {
    background: var(--orange); color: #fff; border: 0; border-radius: 4px; cursor: pointer;
    padding: 10px 36px; font-size: 15px; letter-spacing: 1px;
}
.btn-post2:hover { background: #ee5f00; }
.btn-gray { display: inline-block; background: #eef1f5; color: #556; border-radius: 4px; padding: 10px 22px; font-size: 14px; }
.btn-gray:hover { background: #e2e7ee; color: #333; }
.img-preview { display: flex; gap: 8px; margin-top: 8px; }
.img-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.img-keep { display: flex; flex-wrap: wrap; gap: 10px; }
.img-keep .ik { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: #667; position: relative; }
.img-keep img { width: 90px; height: 70px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); cursor: zoom-in; }
.img-keep .ik input[type=checkbox] { cursor: pointer; }
.img-keep label.ik { cursor: pointer; }
.ik-del {
    position: absolute; top: -7px; right: -7px; width: 20px; height: 20px;
    border-radius: 50%; background: var(--red); color: #fff; border: 0;
    font-size: 14px; line-height: 18px; cursor: pointer; padding: 0; font-family: inherit;
}
.ik-del:hover { background: #b32a2a; }
.img-lightbox {
    position: fixed; inset: 0; background: rgba(0, 0, 0, .78);
    display: flex; align-items: center; justify-content: center;
    z-index: 999; cursor: zoom-out;
}
.img-lightbox img {
    max-width: 92vw; max-height: 92vh; border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .5); background: #fff;
}
.info-thumb {
    width: 52px; height: 40px; object-fit: cover; border-radius: 3px;
    border: 1px solid var(--line); margin-right: 6px; vertical-align: middle; cursor: zoom-in;
    background: #f7f9fc;
}
.mini-note { font-size: 12px; color: #99a; width: 100%; }

/* 登录注册 */
.auth-panel { max-width: 460px; margin: 30px auto; }
.auth-panel .form { padding: 22px 30px 26px; }

/* 登录页：标题区 + 页签切换 + 验证码行 */
.auth-hd { text-align: center; padding: 28px 30px 6px; }
.auth-hd h2 { font-size: 22px; color: #333; }
.auth-hd p { color: #99a3b0; font-size: 13px; margin-top: 4px; }
.auth-tabs { display: none; border-bottom: 1px solid var(--line); margin-top: 12px; }
.auth-panel.tabbed .auth-tabs { display: flex; }
.auth-tabs button {
    flex: 1; background: none; border: 0; border-bottom: 2px solid transparent;
    padding: 12px 0 10px; font-size: 15px; color: #889; cursor: pointer; font-family: inherit;
    margin-bottom: -1px;
}
.auth-tabs button:hover { color: var(--blue); }
.auth-tabs button.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.auth-panel.tabbed .auth-pane { display: none; }
.auth-panel.tabbed .auth-pane.on { display: block; }
.auth-pane + .auth-pane { border-top: 1px dashed #eef1f5; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; min-width: 0; }
.btn-send {
    width: 128px; flex-shrink: 0; background: #eaf3ff; color: var(--blue);
    border: 1px solid #cfe4ff; border-radius: 4px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.btn-send:hover:not(:disabled) { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-send:disabled { background: #f1f2f5; color: #98a1ad; border-color: #e5e9f0; cursor: not-allowed; }
.auth-note { font-size: 12px; color: #99a3b0; margin: 4px 0 0; line-height: 1.9; }
.auth-note a { color: var(--blue); }

/* 信息列表区域筛选 */
.list-filter {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 6px;
    padding: 8px 12px; margin-bottom: 12px;
}
.list-filter label { color: #889; font-size: 13px; }
.list-filter select {
    flex: 0 0 220px; border: 1px solid #d6dbe3; border-radius: 4px;
    padding: 6px 10px; font-size: 13px; background: #fff; outline: none;
}
/* 发布/编辑区域级联 */
.area-cascade { display: flex; gap: 10px; }
.area-cascade select { flex: 1; min-width: 0; width: auto; }

/* ---------------- 拼车 ---------------- */
.carpool-hero { text-align: center; padding: 24px 0 16px; }
.carpool-hero h1 { font-size: 24px; color: #333; }
.carpool-hero p { color: #99a3b0; font-size: 13px; margin: 4px 0 12px; }
.carpool-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.carpool-tabs a {
    padding: 7px 22px; border-radius: 20px; font-size: 14px; color: #556;
    background: #fff; border: 1px solid var(--line);
}
.carpool-tabs a.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.ride-card { padding: 16px 20px; margin-bottom: 12px; }
.ride-route { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 600; color: #2a3441; margin-bottom: 8px; flex-wrap: wrap; }
.ride-route .ride-depart, .ride-route .ride-dest { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ride-route .price { margin-left: auto; font-size: 18px; }
.ride-arrow { display: flex; align-items: center; gap: 0; flex-shrink: 0; padding: 0 4px; }
.ride-arrow .ride-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.ride-arrow .ride-dot.dest { background: var(--orange); }
.ride-arrow .ride-line { flex: 0 0 24px; height: 2px; background: #ccc; position: relative; }
.ride-arrow .ride-tri { position: absolute; right: 24px; color: #ccc; font-size: 12px; font-style: normal; margin-top: -1px; }
.ride-info { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #889; font-size: 13px; margin-bottom: 8px; }
.ride-info span { white-space: nowrap; }
.ride-info .ride-pr { margin-left: auto; color: var(--orange); font-weight: 700; }
.ride-pr { margin-left: auto; color: var(--orange); font-weight: 700; }
.ride-tp { background: #eaf3ff; color: var(--blue); border-radius: 3px; padding: 0 6px; font-size: 12px; }
.ride-actions { display: flex; gap: 8px; margin-top: 8px; }

/* ---------------- 拼车专业板块（对齐移动版） ---------------- */
.cp-search { display: flex; gap: 6px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; align-items: center; }
.cp-search input[type=text] { flex: 1; min-width: 0; border: 1px solid #d6dbe3; border-radius: 6px; padding: 9px 12px; font-size: 14px; outline: none; }
.cp-search input[type=text]:focus { border-color: var(--blue); }
.cp-search .cp-swap { color: var(--blue); font-size: 18px; flex-shrink: 0; font-weight: 700; }
.cp-search button { border: 0; background: var(--orange); color: #fff; padding: 9px 20px; border-radius: 6px; font-size: 14px; cursor: pointer; flex-shrink: 0; }
.cp-search button:hover { opacity: .9; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.cp-btn { text-align: center; padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #fff; }
.cp-btn:hover { opacity: .88; }
.cp-btn.blue { background: #409eff; }
.cp-btn.green { background: #36cfc9; }
.cp-btn.orange { background: #ff7a45; }
.cp-btn.gold { background: #faad14; }
.cp-disclaimer { background: #fffbe8; border: 1px solid #f5e6b8; border-radius: 6px; color: #a26b00; font-size: 12px; padding: 7px 12px; margin-bottom: 12px; }
.cp-search-hint {
    display: flex; align-items: flex-start; gap: 7px;
    margin: 0 0 10px; padding: 8px 12px;
    background: #f0f7ff; border: 1px solid #d6e8ff; border-radius: 6px;
    color: #4c7fb8; font-size: 12px; line-height: 1.6;
}
.cp-search-hint::before { content: "💡"; flex-shrink: 0; }
.cp-hot { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; }
.cp-hot-hd { font-size: 13px; font-weight: 600; color: #556; margin-bottom: 8px; }
.cp-hot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-hot-list a { padding: 6px 14px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 16px; font-size: 13px; color: var(--blue); }
.cp-hot-list a:hover { border-color: var(--blue); }
.cp-typebar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cp-typebar a { padding: 7px 18px; border-radius: 20px; font-size: 14px; color: #556; background: #fff; border: 1px solid var(--line); }
.cp-typebar a.on { color: #fff; border-color: transparent; }
.cp-typebar a.on.t-all { background: var(--blue); }
.cp-typebar a.on.t-0 { background: #52c41a; }
.cp-typebar a.on.t-1 { background: #409eff; }
.cp-typebar a.on.t-2 { background: #ff7a45; }
.cp-typebar a.on.t-3 { background: #faad14; }
.cp-tabbar { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.cp-tabbar a { text-align: center; padding: 10px 22px; font-size: 14px; color: #889; position: relative; }
.cp-tabbar a.on { color: var(--orange); font-weight: 600; }
.cp-tabbar a.on::after { content: ""; position: absolute; bottom: 0; left: 18%; right: 18%; height: 2px; background: var(--orange); }
.cp-count { color: #99a3b0; font-size: 12px; padding: 8px 2px; }
.ride-type-badge { border-radius: 3px; padding: 1px 8px; font-size: 12px; color: #fff; flex-shrink: 0; margin-right: 4px; }
.tc-green { background: #52c41a; }
.tc-blue { background: #409eff; }
.tc-orange { background: #ff7a45; }
.tc-gold { background: #faad14; }
.cp-daily-flag { background: #e6f7ff; color: #1890ff; border-radius: 3px; padding: 1px 8px; font-size: 12px; margin-left: auto; }
.cp-departed { background: #f1f2f5; color: #98a1ad; border-radius: 3px; padding: 2px 8px; font-size: 12px; }

/* 整卡可点击进入详情 */
.ride-card[data-href] { cursor: pointer; }
.ride-foot .ride-detail { margin-left: auto; color: var(--blue); }

/* 已出发：整卡置灰 + 斜角大印章 */
.ride-card { position: relative; }
.ride-card.ride-past { background: #f7f8fa; filter: grayscale(.85); opacity: .82; }
.cp-stamp {
    position: absolute; top: 14px; right: 16px; z-index: 2;
    color: #cf1322; border: 2px solid #cf1322; border-radius: 8px;
    font-size: 18px; font-weight: 700; letter-spacing: 4px; line-height: 1;
    padding: 7px 10px 7px 14px; transform: rotate(-12deg);
    background: rgba(255, 241, 240, .92); pointer-events: none;
}

/* 置顶徽章（详情页） */
.cp-top-flag { background: linear-gradient(135deg, #ff9a3d, #fa541c); color: #fff; border: 0; border-radius: 4px; padding: 2px 10px; font-size: 12px; font-weight: 700; box-shadow: 0 1px 4px rgba(250, 84, 28, .35); }

/* 置顶卡片：顶部横贯色条 + 暖色底 */
.ride-card.ride-top { border: 1px solid #ffc069; border-left: 3px solid #fa8c16; background: #fffcf6; }
.ride-card.ride-top::before {
    content: "📌 置顶";
    position: absolute; top: 0; left: 0; right: 0; height: 24px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(90deg, #ff7a45, #fa8c16);
    color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 8px;
    text-indent: 8px; border-radius: 6px 6px 0 0;
}
.ride-card.ride-top .ride-route { margin-top: 18px; }
.ride-card.ride-top .cp-stamp { top: 32px; }
.ride-notes-s { color: #99a3b0; font-size: 13px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ride-foot { display: flex; align-items: center; gap: 14px; padding-top: 8px; border-top: 1px dashed #eef1f5; font-size: 12px; color: #889; flex-wrap: wrap; }
.ride-foot .ride-tel { color: var(--green); font-weight: 600; }
.cp-tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cp-chip { border: 1px solid #d6dbe3; background: #fff; border-radius: 14px; padding: 4px 12px; font-size: 12px; color: #667; cursor: pointer; }
.cp-chip.used, .cp-chip:hover { background: #e6f7ff; border-color: #409eff; color: #1890ff; }

/* ---------------- 拼车发布页（无卡片分区布局） ---------------- */
.cp-post { max-width: 720px; margin: 0 auto; }
.cp-post-hd { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cp-post-hd h1 { font-size: 21px; color: #2a3441; }
.cp-post-hd .cp-back { font-size: 13px; color: #99a3b0; }
.cp-post-hd .cp-back:hover { color: var(--blue); }
.cp-post-sub { color: #99a3b0; font-size: 12px; margin: 4px 0 6px; }
.cp-post .tip-err { margin-top: 12px; }
.cp-sec { margin-top: 24px; }
.cp-sec-hd { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.cp-sec-hd .no { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #ff7a45, #fa541c); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cp-sec-hd b { font-size: 15px; color: #2a3441; }
.cp-sec-hd .tip { font-size: 12px; color: #99a3b0; font-weight: 400; }
.cp-sec-hd::after { content: ""; flex: 1; height: 1px; background: #e8ecf1; }
.cp-post .frow { margin-bottom: 14px; }
.cp-post .frow > label { display: block; font-size: 13px; color: #556; margin-bottom: 6px; }
.cp-post .frow > label i { color: #fa541c; font-style: normal; margin-right: 2px; }
.cp-post input[type=text], .cp-post input[type=date], .cp-post input[type=time], .cp-post input[type=number], .cp-post textarea {
    width: 100%; border: 1px solid #d9dfe7; border-radius: 7px; padding: 10px 12px;
    font-size: 14px; outline: none; background: #fff; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.cp-post input:focus, .cp-post textarea:focus { border-color: #ff7a45; box-shadow: 0 0 0 3px rgba(255, 122, 69, .12); }
.cp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cp-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.tpick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tpick label, .mpick label { border: 1.5px solid #d9dfe7; border-radius: 9px; text-align: center; padding: 12px 4px; cursor: pointer; font-size: 13px; color: #556; display: block; transition: all .15s; }
.tpick input, .mpick input { display: none; }
.tpick label.on, .mpick label.on { border-color: #ff7a45; background: #fff5ee; color: #fa541c; font-weight: 700; }
.mpick { display: flex; gap: 10px; margin-top: 10px; }
.mpick label { flex: 1; padding: 9px 4px; }
.cp-post .cp-tag-chips { margin-top: 8px; }
.cp-submit { margin-top: 28px; }
.cp-submit button { width: 100%; border: 0; border-radius: 10px; padding: 13px 0; font-size: 16px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ff9a3d, #fa541c); cursor: pointer; box-shadow: 0 4px 12px rgba(250, 84, 28, .3); }
.cp-submit button:hover { opacity: .94; }
.cp-submit .cp-note { text-align: center; color: #99a3b0; font-size: 12px; margin-top: 12px; }
@media (max-width: 640px) {
    .cp-grid3 { grid-template-columns: 1fr 1fr; }
    .cp-grid3 .frow:last-child { grid-column: span 2; }
}

/* 注册两步指示器 */
.reg-steps { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; }
.reg-steps b { font-size: 13px; color: #99a3b0; font-weight: 600; }
.reg-steps b.on { color: #fa541c; }
.reg-steps b.done { color: var(--green); }
.reg-steps i { color: #c8cdd5; font-style: normal; }
.tip-ok.ok-line a { margin-left: 8px; color: var(--blue); }
.rdc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rdc-item { background: #f7f9fc; border-radius: 6px; padding: 10px 12px; }
.rdc-item label { display: block; color: #99a3b0; font-size: 12px; margin-bottom: 4px; }
.rdc-item b { font-size: 14px; color: #2a3441; word-break: break-all; }
.cp-contact-card { display: flex; align-items: center; gap: 12px; background: #f7f9fc; border-radius: 8px; padding: 14px 16px; margin-top: 12px; }
.cp-contact-card .cp-ava { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.cp-contact-card .cp-ava-info b { font-size: 15px; color: #2a3441; display: block; }
.cp-contact-card .cp-ava-info span { color: #99a3b0; font-size: 12px; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; gap: 6px; padding: 16px; flex-wrap: wrap; }
.pager a, .pager span {
    padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; color: #556; background: #fff;
}
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .cur { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager .dots { border: 0; background: none; }

/* ---------------- 表格 ---------------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid #eef1f5; font-size: 13px; text-align: center; }
.table th { background: #f7f9fc; color: #556; font-weight: 600; white-space: nowrap; }
.table td.ta-l { text-align: left; }
.table tr:hover td { background: #fafcff; }
.table .ops { white-space: nowrap; }
.table .empty { color: #999; padding: 26px; }
.st { border-radius: 3px; font-size: 12px; padding: 2px 8px; }
.st0 { background: #fff4e5; color: #c07b2b; }
.st1 { background: #e8f7ed; color: var(--green); }
.st2 { background: #f1f2f5; color: #98a1ad; }
.mini {
    display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: 12px;
    background: #eaf3ff; color: var(--blue); border: 0; cursor: pointer;
}
.mini:hover { background: var(--blue); color: #fff; }
.mini.red { background: #fdecec; color: var(--red); }
.mini.red:hover { background: var(--red); color: #fff; }
.mini.gray { background: #eef1f5; color: #667; }
.mini.gray:hover { background: #98a1ad; color: #fff; }
.tag-b, .tag-g { border-radius: 3px; font-size: 12px; padding: 1px 6px; margin-left: 4px; }
.tag-b { background: #fff0e3; color: var(--orange); }
.tag-g { background: #e8f7ed; color: var(--green); }
.notice-list time { font-size: 13px; }

/* ---------------- 管理后台 ---------------- */
.admin-body { background: #eef1f5; }
.admin-top {
    background: #26313f; color: #cfd6e0; height: 50px; display: flex; align-items: center;
    justify-content: space-between; padding: 0 22px; font-size: 14px;
}
.admin-top b { color: #fff; }
.admin-top em { color: #4a5768; margin: 0 10px; }
.admin-top a { color: #aab4c3; margin-left: 4px; }
.admin-top a:hover { color: #fff; }
.admin-wrap { display: flex; max-width: 1280px; margin: 16px auto; gap: 14px; padding: 0 12px; align-items: flex-start; }
.admin-side {
    width: 170px; background: #fff; border-radius: 6px; border: 1px solid var(--line);
    overflow: hidden; flex-shrink: 0; padding: 8px 0;
}
.admin-side a { display: block; padding: 12px 22px; font-size: 14px; color: #455; border-left: 3px solid transparent; }
.admin-side a:hover { background: #f7f9fc; }
.admin-side a.on { background: #eaf3ff; border-left-color: var(--blue); color: var(--blue); font-weight: 600; }
.admin-main { flex: 1; min-width: 0; }
.a-title { font-size: 18px; margin-bottom: 12px; color: #33415a; }
.a-panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 14px; }
.a-panel-hd {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.a-panel-hd b { font-size: 15px; }
.a-panel-hd .sub { color: #999; font-size: 12px; font-weight: 400; }
.a-panel-hd .more { margin-left: auto; color: var(--blue); font-size: 13px; }
.a-filter { display: flex; gap: 10px; padding: 14px 16px; flex-wrap: wrap; align-items: center; }
.a-filter input, .a-filter select { width: auto; min-width: 150px; }
.a-filter .btn-post2 { padding: 8px 22px; font-size: 13px; }
.a-filter .cb { font-size: 13px; color: #556; display: flex; align-items: center; gap: 4px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 14px; }
.stat-cards .card {
    background: #fff; border: 1px solid var(--line); border-radius: 6px; text-align: center; padding: 18px 0;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.stat-cards a.card { text-decoration: none; display: block; }
.stat-cards a.card:hover {
    border-color: var(--blue); color: var(--blue);
    box-shadow: 0 3px 12px rgba(43, 125, 225, .14); transform: translateY(-2px);
}
.stat-cards .card b { display: block; font-size: 28px; color: var(--blue); }
.stat-cards .card span { color: #889; font-size: 13px; }
.stat-cards .card.warn b { color: var(--orange); }
.stat-cards .card.hot { border-color: #ffd6b0; background: #fff9f3; }
.inline-form { display: inline; }
.table-fixed { table-layout: fixed; }
.table-fixed td { word-break: break-all; }
.ipt-name { width: 100% !important; }
.ipt-url { width: 100% !important; }
.ipt-sort { width: 70px !important; }
.btn-save { border: 0; }
.admin-main .table td input[type=text], .admin-main .table td input[type=number],
.admin-main .table td select, .admin-main .table td input[type=checkbox] {
    padding: 5px 8px; border: 1px solid #d6dbe3; border-radius: 3px; font-size: 13px;
}
.inline-lb { display: flex; gap: 20px; align-items: center; }
.inline-lb label, .cb { display: flex; align-items: center; gap: 5px; font-size: 14px; }

/* 后台登录 */
.login-body {
    background: linear-gradient(135deg, #2b7de1 0%, #1a4d9e 100%);
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
}
.login-box {
    background: #fff; width: 380px; border-radius: 10px; padding: 34px 34px 22px;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.login-box h1 { font-size: 19px; text-align: center; color: #33415a; margin-bottom: 18px; }
.login-box .form { padding: 0; }
.login-box .full { width: 100%; margin-top: 6px; }
.login-tip { text-align: center; color: #99a3b0; font-size: 12px; margin-top: 12px; }
.login-tip a { color: var(--blue); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
    .grid-cats { grid-template-columns: repeat(3, 1fr); }
    .header .h-in { flex-wrap: wrap; height: auto; padding: 10px 12px; gap: 10px; }
    .search-box { order: 3; flex-basis: 100%; }
    .logo { font-size: 24px; }
    .index-cols { flex-direction: column; }
    .side-col { width: 100%; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .admin-wrap { flex-direction: column; }
    .admin-side { width: 100%; display: flex; overflow-x: auto; padding: 0; }
    .admin-side a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
    .admin-side a.on { border-bottom-color: var(--blue); }
}
@media (max-width: 560px) {
    .grid-cats { grid-template-columns: repeat(2, 1fr); }
    .nav a { padding: 0 12px; font-size: 14px; }
    .row.two, .row.three { grid-template-columns: 1fr; }
    .d-contact { gap: 14px; }
}


/* ---- 置顶/推荐扩展 ---- */
.rec-flag {
    background: var(--green); color: #fff; font-size: 12px; border-radius: 3px;
    padding: 1px 6px; flex-shrink: 0;
}
.top-until { color: #c07b2b; }
.ipt-days {
    width: 64px !important; padding: 3px 6px !important; border: 1px solid #d6dbe3;
    border-radius: 3px; font-size: 12px; background: #fff;
}

/* ---- 加急 / 有效期扩展 ---- */
.urgent-flag {
    background: var(--red); color: #fff; font-size: 12px; border-radius: 3px;
    padding: 1px 6px; flex-shrink: 0; font-weight: 700;
}
.inline-lb .cb input[type=radio], .inline-lb .cb input[type=checkbox] { margin: 0; }
.row .mini-note { font-size: 12px; color: #99a; margin-top: 5px; }
.d-meta .exp-soon { color: #c07b2b; }
.tag-r { background: #fdecec; color: var(--red); }
.tag-x { background: #f1f2f5; color: #98a1ad; }

/* 详情页扫码分享 */
.share-panel .share-body { padding: 16px; text-align: center; }
.share-qr { display: block; margin: 0 auto 8px; border: 1px solid var(--line); border-radius: 6px; }
.share-tip { color: #99a3b0; font-size: 12px; margin-bottom: 12px; }
.share-ops { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.share-ops .btn-gray { flex: 1; min-width: 120px; text-align: center; cursor: pointer; }
.share-poster-tip { color: #b0b8c3; font-size: 12px; margin-top: 10px; line-height: 1.6; }

/* 会员中心操作列：允许换行 + 下拉/按钮组合控件 */
.table .ops { white-space: normal; }
.table .ops > a, .table .ops > span, .table .ops > button, .table .ops > select { vertical-align: middle; }
.table .st, .table .tag-b, .table .tag-g, .table .tag-r, .table .tag-x { white-space: nowrap; }
.act-pair {
    display: inline-flex; align-items: stretch; vertical-align: middle;
    margin: 1px 0;
}
.act-pair .ipt-days { width: 66px !important; border-radius: 3px 0 0 3px; border-right: 0; }
.act-pair .mini { border-radius: 0 3px 3px 0; }
td.cell-exp { white-space: nowrap; }
