/* =============================================
   青柠檬绿 · 治愈小清新风格
   主色：rgb(103, 194, 58) / #67C23A
   ============================================= */
:root {
    --primary: #67C23A;
    --primary-light: #E8F8E0;
    --primary-dark: #5DAF33;
    --primary-bg: #F3F9F2;
    --bg: #F7F9F7;
    --card: #FFFFFF;
    --text: #333333;
    --text-light: #7A9A7A;
    --text-muted: #A8BFA8;
    --border: #E2EDE2;
    --shadow: 0 2px 12px rgba(103, 194, 58, 0.08);
    --shadow-hover: 0 4px 20px rgba(103, 194, 58, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font: 14px/1.7 -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
ul, ol { list-style: none; }

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

/* ===== 顶部绿色细条 ===== */
.top-strip {
    height: 4px;
    background: linear-gradient(90deg, #67C23A, #85D66D, #67C23A);
}

/* ===== 顶部栏 ===== */
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    height: 36px;
    line-height: 36px;
    font-size: 13px;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a { color: var(--text-light); }
.topbar a:hover { color: var(--primary); }
.topbar .city-link { color: var(--primary); font-weight: 500; }
.topbar .gap { color: var(--border); margin: 0 6px; }

/* ===== 头部 ===== */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
}
.header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    overflow: visible; /* 确保搜索框阴影不裁剪 */
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}
.logo { flex-shrink: 0; }
.header-inner .logo {
    justify-self: start;
}
.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}
.logo-text span { color: var(--text); font-weight: 300; }

/* 搜索框 - 圆角卡片式 */
.search-box {
    max-width: 500px;
    width: 100%;
    justify-self: center;
}
.search-form {
    display: flex;
    background: var(--primary-bg);
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s;
    overflow: visible; /* 不裁剪阴影 */
    position: relative;
}
.search-form:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(103, 194, 58, 0.1);
}
.search-form input {
    flex: 1;
    height: 42px;
    padding: 0 18px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--text);
}
.search-form input::placeholder { color: var(--text-muted); }

/* 搜索建议下拉 */
.search-suggest {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: -2px;
    right: -2px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    max-height: 320px;
    overflow-y: auto;
    z-index: 200;
}
.search-suggest .suggest-item {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: all 0.15s;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-suggest .suggest-item:last-child { border-bottom: none; }
.search-suggest .suggest-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 20px;
}
.search-suggest .suggest-item .hl { color: var(--primary); font-weight: 600; }

.search-btn {
    width: 80px;
    height: 42px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
}
.search-btn:hover { background: var(--primary-dark); }

/* 热门标签 */
.hot-tags {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.hot-tags a {
    font-size: 12px;
    color: var(--text-light);
    padding: 2px 10px;
    background: var(--primary-bg);
    border-radius: 20px;
    transition: all 0.2s;
}
.hot-tags a:hover {
    background: var(--primary);
    color: #fff;
}

/* 发布按钮 */
.publish-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.2s;
    justify-self: end;
}
.publish-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.3);
}

/* ===== 导航 ===== */
.nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 4px;
}
.nav-item {
    display: inline-block;
    padding: 12px 18px;
    font-size: 14px;
    color: var(--text);
    position: relative;
    transition: color 0.2s;
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
    transition: transform 0.2s;
}
.nav-item:hover,
.nav-item.active {
    color: var(--primary);
}
.nav-item:hover::after,
.nav-item.active::after {
    transform: translateX(-50%) scaleX(1);
}
.nav-item-home {
    background: var(--primary);
    color: #fff;
    border-radius: 0 0 8px 8px;
}
.nav-item-home:hover { background: var(--primary-dark); color: #fff; }
.nav-item-home::after { display: none; }

/* ===== 面包屑 ===== */
.breadcrumb-bar {
    padding: 6px 0 2px;
}
.breadcrumb-bar .container { font-size: 12px; color: var(--text-muted); }
.breadcrumb-bar .container a { color: var(--text-light); }
.breadcrumb-bar .container a:hover { color: var(--primary); }
.breadcrumb-bar .container span { margin: 0 6px; }

/* ===== 主体布局 ===== */
.page-wrap {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
    display: flex;
    gap: 24px;
    align-items: stretch;
}

/* 左侧 */
.side-left { width: 200px; flex-shrink: 0; display: flex; flex-direction: column; }
.side-left .card { flex: 1; }

/* 中间 */
.content-main { flex: 1; min-width: 0; }

/* 右侧 */
.side-right { width: 260px; flex-shrink: 0; display: flex; flex-direction: column; }

/* ===== 卡片 ===== */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card-header {
    padding: 16px 20px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}
.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.card-title i { color: var(--primary); margin-right: 6px; }
.card-more { font-size: 12px; color: var(--text-light); }
.card-body { padding: 12px 20px 16px; }

/* ===== 分类导航(左侧) ===== */
/* ===== 左侧分类导航 ===== */
.cate-nav-side {
    overflow-y: auto;
}
.cate-nav-side::-webkit-scrollbar { width: 4px; }
.cate-nav-side::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.cate-nav-side .cate-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    transition: all 0.2s;
}
.cate-nav-side .cate-item:last-child { border-bottom: none; }
.cate-nav-side .cate-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 20px;
}
.cate-nav-side .cate-item i {
    width: 20px;
    text-align: center;
    color: var(--primary);
    font-size: 16px;
}
.cate-nav-side .cate-sub {
    display: block;
    padding: 2px 16px 2px 46px;
    font-size: 12px;
    color: var(--text-light);
    transition: color 0.2s;
}
.cate-nav-side .cate-sub:hover { color: var(--primary); }

/* ===== 信息列表项 ===== */
.info-item {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    cursor: default;
    position: relative;
    transition: all 0.2s ease;
    /* 分割线用伪元素，与 hover 背景对齐 */
}
/* 缩进分割线 — 左右各留 8px，与 hover 背景宽度一致 */
.info-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 1px;
    background: var(--border);
}
.info-item:last-child::before { display: none; }
.info-item:hover {
    background: var(--primary-bg);
    border-radius: 10px;
    margin: 0 8px;
    padding: 16px 12px;
}
.info-img {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--primary-bg);
}
.info-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.info-item:hover .info-img img { transform: scale(1.05); }
.info-body { flex: 1; min-width: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.info-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-title a {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.info-title a:hover { color: var(--primary); }
.info-cate-tag {
    flex-shrink: 0;
    font-size: 11px;
    color: #fff;
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.info-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.info-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info-price {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}
.info-price.free {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 13px;
}
.info-tags {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}
.info-tags i { margin-right: 3px; width: 12px; text-align: center; }

/* ===== Board 分类板块 ===== */
.board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.board-col { display: flex; flex-direction: column; gap: 16px; }
.board-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.board-card-header {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}
.board-card-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.board-card-header h3 i { color: var(--primary); margin-right: 6px; }
.board-card-body { padding: 12px 18px 14px; }
.board-card-body a {
    display: inline-block;
    font-size: 13px;
    color: var(--text-light);
    margin-right: 12px;
    margin-bottom: 4px;
    line-height: 1.8;
    transition: color 0.2s;
}
.board-card-body a:hover { color: var(--primary); }
.board-card-body .board-price { color: var(--primary); font-weight: 500; float: right; }

/* ===== 右侧边栏 ===== */
.side-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 16px;
}
.side-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.side-card-title i { color: var(--primary); margin-right: 6px; }
.side-city-tag {
    display: inline-block;
    padding: 4px 12px;
    margin: 3px;
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-light);
    transition: all 0.2s;
}
.side-city-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.side-rel-item {
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
}
.side-rel-item:last-child { border-bottom: none; }
.side-rel-item a { font-size: 13px; color: var(--text); }
.side-rel-item a:hover { color: var(--primary); }
.side-rel-price { color: var(--primary); font-weight: 500; font-size: 14px; margin-top: 2px; }

/* 侧栏广告位 */
.side-ad { margin-bottom: 16px; }

/* ===== 详情页 ===== */
.detail-layout { display: flex; gap: 24px; }
.detail-main { flex: 1; }
.detail-side { width: 280px; flex-shrink: 0; }
.detail-section {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 16px;
}
.detail-title { font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.price-tag {
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.price-tag .price { font-size: 26px; font-weight: 700; color: var(--primary); }
.price-tag .meta { font-size: 13px; color: var(--text-muted); }
.detail-content { font-size: 15px; line-height: 1.9; color: #444; }

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px 0;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.2s;
}
.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== 按钮 ===== */
.btn-green {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: #fff;
    padding: 8px 20px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-green:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(103,194,58,0.3); }
.btn-outline-green {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    color: var(--primary);
    padding: 6px 16px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline-green:hover { background: var(--primary); color: #fff; }

/* ===== 表单 ===== */
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.2s;
    color: var(--text);
    background: #fff;
}
.form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(103, 194, 58, 0.1);
}
.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: #fff;
    color: var(--text);
}
.form-select:focus {
    border-color: var(--primary);
    outline: none;
}

/* ===== 底部 ===== */
.footer {
    background: #5daf3314;
    margin-top: 40px;
    padding: 32px 0;
    color: #A8BFA8;
    font-size: 13px;
}
.footer .container { text-align: center; }
.footer a { color: #A8BFA8; margin: 0 10px; }
.footer a:hover { color: #fff; }
.footer .copyright { margin-top: 10px; font-size: 12px; opacity: 0.7; }

/* ===== 返回顶部 ===== */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.3);
    transition: all 0.2s;
}
.back-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .board-grid { grid-template-columns: repeat(2, 1fr); }
    .page-wrap { flex-direction: column; }
    .side-left, .side-right { width: 100%; }
}

/* ===== 城市弹窗 ===== */
.city-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0);
    transition: background 0.35s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
}
.city-popup-overlay.active {
    background: rgba(0, 0, 0, 0.35);
    visibility: visible;
}
.city-popup-overlay,
.city-popup-overlay > * {
    pointer-events: none;
}
.city-popup-overlay.active,
.city-popup-overlay.active > * {
    pointer-events: auto;
}
.city-popup-overlay.body-locked {
    overflow: hidden;
}

/* 防止弹窗打开时页面滚动 */
body.city-popup-body-locked {
    overflow: hidden;
}

.city-popup-panel {
    position: relative;
    width: 780px;
    max-width: calc(100vw - 40px);
    margin: 80px auto 50px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    padding: 28px 32px;
    transform: translateY(24px) scale(0.96);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}
.city-popup-overlay.active .city-popup-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* 弹窗标题 */
.city-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.city-popup-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.city-popup-title i {
    color: var(--primary);
    font-size: 18px;
}
.city-popup-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.25s;
    line-height: 1;
}
.city-popup-close:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: rotate(90deg);
}

/* 搜索区域 */
.city-popup-search {
    margin-bottom: 20px;
    position: relative;
}
.city-popup-search .form-input {
    padding: 11px 16px 11px 40px;
    border-radius: 50px;
    background: var(--bg);
    border-color: transparent;
    font-size: 14px;
    transition: all 0.25s;
}
.city-popup-search .form-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(103, 194, 58, 0.08);
}
.city-popup-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}
.city-search-results {
    display: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 6px;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.city-search-results .city-result-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    transition: all 0.15s;
    color: var(--text);
}
.city-search-results .city-result-item:last-child {
    border-bottom: none;
}
.city-search-results .city-result-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 20px;
}
.city-search-results .city-result-item .city-result-province {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 8px;
}
.city-search-results .city-no-result {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* 弹窗内分组区域 */
.city-popup-section {
    margin-bottom: 20px;
}
.city-popup-section-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding-left: 2px;
    text-transform: uppercase;
}
.city-popup-section .city-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 弹窗内城市标签 */
.city-popup-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-light);
    background: #fff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    white-space: nowrap;
    line-height: 1.4;
}
.city-popup-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(103, 194, 58, 0.12);
}
.city-popup-tag:active {
    transform: scale(0.95);
}

/* 省份标题 */
.city-province-block {
    margin-bottom: 16px;
}
.city-province-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    padding-left: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.city-province-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}
.city-province-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.city-province-tags .city-popup-tag {
    font-size: 12px;
    padding: 4px 12px;
}

/* 顶栏城市切换按钮 - 加强交互 */
.topbar .city-link {
    color: var(--primary);
    font-weight: 500;
    padding: 6px 10px;
    margin: -6px -10px;
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.topbar .city-link:hover {
    background: var(--primary-light);
}

/* ===== 五级联动选择器 ===== */
.cascade-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
}
.cascade-level {
    flex: 1;
    min-width: 120px;
    max-width: 160px;
}
.cascade-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
    background: #fff;
    transition: all 0.2s;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: auto;
}
.cascade-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(103, 194, 58, 0.1);
}
.cascade-select:disabled {
    background: var(--bg);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}
.cascade-confirm-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    border: none;
    border-radius: 50px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    height: 36px;
}
.cascade-confirm-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(103, 194, 58, 0.3);
}
.cascade-confirm-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* 响应式：窄屏堆叠 */
@media (max-width: 700px) {
    .cascade-selector {
        flex-direction: column;
    }
    .cascade-level {
        max-width: 100%;
    }
}

/* ===== 用户中心 ===== */

/* 用户中心整体布局 */
.page-user {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
    display: flex;
    gap: 24px;
    min-height: 500px;
}
.page-user .side-left {
    width: 200px;
    flex-shrink: 0;
}
.page-user .content-main {
    flex: 1;
    min-width: 0;
}

/* 用户头像卡片 */
.user-profile-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 18px 18px;
    text-align: center;
    margin-bottom: 16px;
}
.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #85D66D);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(103, 194, 58, 0.2);
}
.user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.user-phone {
    font-size: 12px;
    color: var(--text-muted);
}

/* 用户导航菜单 */
.user-nav {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.user-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 13px;
    color: var(--text);
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}
.user-nav a:last-child {
    border-bottom: none;
}
.user-nav a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 22px;
}
.user-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 500;
}
.user-nav a.logout {
    color: #E8744A;
    border-bottom: none;
}
.user-nav a.logout:hover {
    background: #FFF0EC;
    color: #D06030;
}
.user-nav a i {
    width: 18px;
    text-align: center;
    color: var(--primary);
    font-size: 14px;
}
.user-nav a.logout i {
    color: #E8744A;
}

/* 统计卡片 - 三列 */
.user-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.user-stat-item {
    padding: 24px 16px;
    text-align: center;
    border-right: 1px solid var(--border);
    transition: background 0.2s;
}
.user-stat-item:last-child {
    border-right: none;
}
.user-stat-item:hover {
    background: var(--primary-bg);
}
.user-stat-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}
.user-stat-number.green {
    color: var(--primary);
}
.user-stat-number.orange {
    color: #E8A040;
}
.user-stat-number.blue {
    color: #4A90D9;
}
.user-stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* 用户中心列表项 */
.user-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.user-list-item:last-child {
    border-bottom: none;
}
.user-list-item:hover {
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
}
.user-list-item .item-info {
    flex: 1;
    min-width: 0;
}
.user-list-item .item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
    display: block;
}
.user-list-item .item-title:hover {
    color: var(--primary);
}
.user-list-item .item-meta {
    font-size: 12px;
    color: var(--text-muted);
}
.user-list-item .item-meta .status-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 6px;
}
.status-badge.pending {
    background: #FFF4E0;
    color: #CC8800;
}
.status-badge.approved {
    background: var(--primary-light);
    color: var(--primary);
}
.status-badge.rejected {
    background: #FFF0EC;
    color: #E8744A;
}
.user-list-item .item-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
    margin-left: 16px;
}

/* 用户中心空状态 */
.user-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}
.user-empty i {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}
.user-empty p {
    font-size: 14px;
    margin-bottom: 12px;
}
.user-empty a {
    color: var(--primary);
    font-weight: 500;
}

/* 用户中心表单 */
.user-form {
    max-width: 500px;
}
.user-form-group {
    margin-bottom: 16px;
}
.user-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}
.user-form-group .form-input {
    width: 100%;
}
.user-form-actions {
    margin-top: 20px;
}

/* 用户中心页面标题 */
.user-page-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== 个人资料表单（Premium） ===== */

/* Flash 消息 */
.profile-flash {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: profileFlashIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes profileFlashIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.profile-flash-success {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid #C5E8B5;
}
.profile-flash-error {
    background: #FFF0EC;
    color: #E8744A;
    border: 1px solid #FFD5C5;
}

/* 头像区域 */
.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #85D66D);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(103, 194, 58, 0.25);
    transition: box-shadow 0.3s;
}
.profile-avatar:hover {
    box-shadow: 0 6px 24px rgba(103, 194, 58, 0.35);
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-avatar-upload {
    position: absolute;
    bottom: 0;
    right: -4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(103, 194, 58, 0.3);
    transition: all 0.25s;
    border: 2px solid #fff;
}
.profile-avatar-upload:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}
.profile-avatar-upload span {
    display: none;
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--text-light);
    white-space: nowrap;
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.profile-avatar-upload:hover span {
    display: block;
}
.profile-avatar-info {
    flex: 1;
    min-width: 0;
}
.profile-nickname {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.profile-username {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.profile-joined {
    font-size: 12px;
    color: var(--text-muted);
}
.profile-joined i {
    margin-right: 4px;
}

/* 表单网格 */
.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
}
.profile-form-group {
    position: relative;
}
.profile-form-full {
    grid-column: 1 / -1;
}
.profile-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}
.profile-form-label i {
    width: 16px;
    color: var(--primary);
    margin-right: 4px;
}
.profile-form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    transition: all 0.25s;
    outline: none;
}
.profile-form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(103, 194, 58, 0.1);
}
.profile-form-input::placeholder {
    color: var(--text-muted);
}
.profile-form-input-readonly {
    background: var(--bg);
    color: var(--text-muted);
    cursor: not-allowed;
}
.profile-form-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}
.profile-form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    transition: all 0.25s;
    outline: none;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.6;
}
.profile-form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(103, 194, 58, 0.1);
}
.profile-form-textarea::placeholder {
    color: var(--text-muted);
}

/* 性别单选按钮 */
.profile-radio-group {
    display: flex;
    gap: 12px;
    padding-top: 2px;
}
.profile-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: all 0.25s;
    user-select: none;
}
.profile-radio:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.profile-radio input {
    display: none;
}
.profile-radio input:checked + .profile-radio-indicator {
    background: var(--primary);
    border-color: var(--primary);
}
.profile-radio input:checked + .profile-radio-indicator::after {
    transform: scale(1);
}
.profile-radio input:checked ~ span:last-child {
    color: var(--primary);
    font-weight: 500;
}
.profile-radio:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}
.profile-radio-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    flex-shrink: 0;
}
.profile-radio-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
    transition: transform 0.2s;
}

/* 提交按钮 */
.profile-form-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}
.profile-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    border: none;
    border-radius: 50px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(103, 194, 58, 0.25);
}
.profile-save-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 194, 58, 0.35);
}
.profile-save-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}
.profile-save-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* 个人资料响应式 */
@media (max-width: 768px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
    }
    .profile-avatar-info {
        text-align: center;
    }
    .profile-radio-group {
        flex-wrap: wrap;
    }
}

/* ===== 城市页 Premium 布局 ===== */

.page-city {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
    display: flex;
    gap: 24px;
    min-height: 400px;
}
.page-city .side-left {
    width: 220px;
    flex-shrink: 0;
}
.page-city .content-main {
    flex: 1;
    min-width: 0;
}
.page-city .side-right {
    width: 240px;
    flex-shrink: 0;
}

/* 城市分类导航（ico-nav） */
.ico-nav {
    list-style: none;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.ico-nav li {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.ico-nav li:last-child {
    border-bottom: none;
}
.ico-nav li:hover {
    background: var(--primary-bg);
}
.ico-nav li > a {
    display: block;
    padding: 12px 16px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.2s;
}
.ico-nav li > a:hover {
    color: var(--primary-dark);
}
.ico-nav li em {
    display: block;
    padding: 0 16px 10px;
    font-style: normal;
    font-size: 12px;
    color: var(--text-light);
    line-height: 2;
}
.ico-nav li em a {
    color: var(--text-light);
    transition: color 0.2s;
}
.ico-nav li em a:hover {
    color: var(--primary);
}

/* 信息列表项（info-list-item） */
.info-list-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}
.info-list-item:last-child {
    border-bottom: none;
}
.info-list-item:hover {
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    background: var(--primary-bg);
    border-radius: 8px;
}
.info-list-item .item-img {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg);
}
.info-list-item .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.info-list-item .item-body {
    flex: 1;
    min-width: 0;
}
.info-list-item .item-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
}
.info-list-item .item-title a {
    color: var(--text);
}
.info-list-item .item-title a:hover {
    color: var(--primary);
}
.info-list-item .item-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.info-list-item .item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info-list-item .item-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}
.info-list-item .item-info {
    font-size: 12px;
    color: var(--text-muted);
}
.info-list-item .item-info i {
    margin-right: 3px;
}

/* 城市页侧边栏盒子 */
.side-box {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 16px;
}
.side-box h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.side-box h3 i {
    color: var(--primary);
    margin-right: 6px;
}
.side-box a {
    display: block;
    padding: 4px 0;
    font-size: 12px;
    color: var(--text-light);
    transition: color 0.2s, padding-left 0.2s;
}
.side-box a:hover {
    color: var(--primary);
    padding-left: 4px;
}
.side-box .sort-link {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: #555;
    border-radius: 6px;
    transition: all 0.2s;
    margin-bottom: 2px;
}
.side-box .sort-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.side-box .sort-link.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

/* 城市页标题 */
.page-city .content-main .city-page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    padding: 0 0 12px;
    margin: 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.page-city .content-main .city-page-title i {
    color: var(--primary);
}

/* 城市页响应式 */
@media (max-width: 900px) {
    .page-city {
        flex-direction: column;
    }
    .page-city .side-left,
    .page-city .side-right {
        width: 100%;
    }
}
@media (max-width: 600px) {
    .info-list-item .item-img {
        width: 80px;
        height: 60px;
    }
    .info-list-item .item-desc {
        display: none;
    }
}

/* 用户中心响应式 */
@media (max-width: 900px) {
    .page-user {
        flex-direction: column;
    }
    .page-user .side-left {
        width: 100%;
    }
    .user-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .user-stats {
        grid-template-columns: 1fr;
    }
    .user-stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .user-stat-item:last-child {
        border-bottom: none;
    }
}

/* =============================================
   后台管理 - 青柠檬绿治愈风
   ============================================= */
:root {
    --admin-bg: #F3F9F2;
    --admin-card: #FFFFFF;
    --admin-sidebar: #5daf3314;
    --admin-sidebar-hover: #4F9F29;
    --admin-primary: #67C23A;
    --admin-primary-light: #E8F8E0;
    --admin-text: #2C3E2C;
    --admin-text-light: #7A9A7A;
    --admin-border: #E2EDE2;
    --admin-danger: #E8744A;
}
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--admin-bg);
}
.admin-sidebar {
    width: 220px;
    background: #fff;
    border-right: 1px solid var(--admin-border);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar-brand {
    padding: 20px 18px;
    border-bottom: 1px solid var(--admin-border);
    text-align: center;
    background: var(--admin-bg);
}
.admin-sidebar-brand a {
    color: var(--admin-text);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}
.admin-sidebar-brand a i { color: var(--admin-primary); margin-right: 8px; }
.admin-sidebar-nav { padding: 8px 0; flex: 1; }
.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: #555;
    font-size: 13px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.admin-sidebar-nav a:hover {
    color: var(--admin-primary);
    background: var(--admin-primary-light);
}
.admin-sidebar-nav a.active {
    color: var(--admin-primary);
    background: var(--admin-primary-light);
    border-left-color: var(--admin-primary);
    font-weight: 500;
}
.admin-sidebar-nav a i { width: 18px; text-align: center; font-size: 14px; }
.admin-sidebar-nav .divider {
    border: none;
    border-top: 1px solid var(--admin-border);
    margin: 8px 16px;
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.admin-header {
    background: #fff;
    padding: 12px 24px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}
.admin-header-text { font-weight: 500; color: var(--admin-text); font-size: 14px; }
.admin-header-actions { display: flex; gap: 8px; align-items: center; }
.admin-header-actions a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.2s;
}
.admin-header-actions .btn-view { background: var(--admin-primary-light); color: var(--admin-primary); }
.admin-header-actions .btn-view:hover { background: var(--admin-primary); color: #fff; }
.admin-header-actions .btn-logout { background: #FFF0EC; color: var(--admin-danger); }
.admin-header-actions .btn-logout:hover { background: var(--admin-danger); color: #fff; }

.admin-content {
    padding: 20px 24px;
    flex: 1;
}
.admin-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--admin-text);
    margin: 0;
}
.admin-content .page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

/* 后台卡片 */
.admin-card {
    background: var(--admin-card);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(103,194,58,0.06);
    overflow: hidden;
    margin-bottom: 16px;
}
.admin-card-body { padding: 16px 20px; }

/* 后台表格 */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.admin-table th {
    background: var(--admin-primary-light);
    color: var(--admin-text);
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--admin-border);
    white-space: nowrap;
}
.admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--admin-border);
    color: #555;
}
.admin-table tr:hover td { background: #FAFDF8; }
.admin-table .empty { text-align: center; padding: 40px; color: var(--admin-text-light); }

/* 后台统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
    background: var(--admin-card);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(103,194,58,0.06);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.stat-card-icon.green { background: var(--admin-primary-light); color: var(--admin-primary); }
.stat-card-icon.orange { background: #FFF0EC; color: var(--admin-danger); }
.stat-card-icon.blue { background: #E8F4FD; color: #4A90D9; }
.stat-card-icon.purple { background: #F0ECFF; color: #7C6AE8; }
.stat-card-value { font-size: 24px; font-weight: 700; color: var(--admin-text); line-height: 1.2; }
.stat-card-label { font-size: 13px; color: var(--admin-text-light); margin-top: 2px; }

/* 后台按钮 */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.admin-btn-primary { background: var(--admin-primary); color: #fff; }
.admin-btn-primary:hover { background: #5DAF33; color: #fff; }
.admin-btn-success { background: var(--admin-primary-light); color: var(--admin-primary); }
.admin-btn-success:hover { background: var(--admin-primary); color: #fff; }
.admin-btn-danger { background: #FFF0EC; color: var(--admin-danger); }
.admin-btn-danger:hover { background: var(--admin-danger); color: #fff; }
.admin-btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.admin-btn-group { display: flex; gap: 4px; flex-wrap: wrap; }

/* 后台表单 */
.admin-form-input, .admin-form-select {
    padding: 8px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--admin-text);
    background: #fff;
    transition: all 0.2s;
}
.admin-form-input:focus, .admin-form-select:focus {
    border-color: var(--admin-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(103,194,58,0.1);
}
.admin-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--admin-text);
    margin-bottom: 4px;
}

/* 后台flash消息 */
.admin-flash {
    padding: 12px 20px;
    margin: 0 24px 12px;
    border-radius: 8px;
    font-size: 13px;
}
.admin-flash-success { background: var(--admin-primary-light); color: var(--admin-primary); border: 1px solid #C5E8B5; }
.admin-flash-error { background: #FFF0EC; color: var(--admin-danger); border: 1px solid #FFD5C5; }

/* 后台登录 */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F3F9F2 0%, #E8F8E0 100%);
}
.admin-login-card {
    width: 380px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(103,194,58,0.12);
    padding: 36px;
}
.admin-login-card h3 {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 6px;
}
.admin-login-card .subtitle {
    text-align: center;
    color: var(--admin-text-light);
    font-size: 13px;
    margin-bottom: 24px;
}
.admin-login-card .form-group { margin-bottom: 16px; }
.admin-login-card .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--admin-text);
    margin-bottom: 4px;
}
.admin-login-card .form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
}
.admin-login-card .form-group input:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(103,194,58,0.1);
    outline: none;
}
.admin-login-card .login-btn {
    width: 100%;
    padding: 10px;
    background: var(--admin-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.admin-login-card .login-btn:hover { background: #5DAF33; }
.admin-login-card .login-error {
    background: #FFF0EC;
    border: 1px solid #FFD5C5;
    color: var(--admin-danger);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

/* 后台分页 */
.admin-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 16px 0;
}
.admin-pagination a, .admin-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 12px;
    background: #fff;
    border: 1px solid var(--admin-border);
    color: #555;
}
.admin-pagination a:hover { border-color: var(--admin-primary); color: var(--admin-primary); }
.admin-pagination .current { background: var(--admin-primary); border-color: var(--admin-primary); color: #fff; }

/* 后台徽标 */
.admin-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}
.admin-badge-green { background: var(--admin-primary-light); color: var(--admin-primary); }
.admin-badge-orange { background: #FFF0EC; color: var(--admin-danger); }
.admin-badge-gray { background: #F0F0F0; color: #999; }
.admin-badge-blue { background: #E8F4FD; color: #4A90D9; }

/* 后台响应式 */
@media (max-width: 768px) {
    .admin-sidebar { width: 60px; }
    .admin-sidebar-nav a span { display: none; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   手机版响应式 (Mobile First)
   ============================================================ */

/* 底部移动端导航栏 - 全局可见 */
.mobile-bottom-nav { display: none; }

/* 汉堡菜单按钮 */
.mobile-menu-btn { display: none; }

/* 手机端侧栏菜单 */
.mobile-menu-overlay { display: none; }
.mobile-menu-panel { display: none; }

@media (max-width: 767px) {
    /* ---- 全局调整 ---- */
    body { padding-bottom: 64px; } /* 给底部导航留空间 */
    .container, .page-wrap, .page-city { padding-left: 12px; padding-right: 12px; }

    /* ---- 头部 ---- */
    .header-sticky { position: sticky; top: 0; z-index: 100; }
    .header-inner {
        grid-template-columns: auto 1fr auto !important;
        gap: 8px !important;
        padding: 10px 12px !important;
    }
    .logo-text { font-size: 18px !important; }
    .search-box { max-width: none !important; }
    .search-form input { height: 36px !important; font-size: 13px !important; }
    .hot-tags { display: none; }
    .publish-btn { padding: 8px 14px !important; font-size: 12px !important; }

    /* ---- 导航 ---- */
    .nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .nav::-webkit-scrollbar { display: none; }
    .nav-inner { gap: 0; padding: 0 8px; }
    .nav-item { padding: 10px 12px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
    .nav-item-home { display: none; }

    /* ---- 首页分类板块 ---- */
    .board-grid { grid-template-columns: 1fr !important; }
    .board-card-header h3 { font-size: 14px; }

    /* ---- 三栏变单栏 ---- */
    .page-wrap { flex-direction: column; gap: 12px; }
    .side-left, .side-right { width: 100%; }
    .side-left .card { min-height: auto; }
    .side-left .card-body { max-height: none; overflow: visible; }
    .side-card { margin-bottom: 12px; padding: 14px; }
    .side-city-tag { padding: 3px 10px; font-size: 12px; }

    /* ---- 信息列表项 ---- */
    .info-item { gap: 10px; padding: 12px 16px; }
    .info-img { width: 90px; height: 68px; }
    .info-title { font-size: 14px; }
    .info-desc { font-size: 12px; margin-bottom: 4px; }
    .info-meta { font-size: 11px; }
    .info-price { font-size: 15px; }

    /* ---- 城市页 ---- */
    .page-city { flex-direction: column; }
    .page-city .side-left, .page-city .side-right { width: 100%; }
    .ico-nav { display: grid; grid-template-columns: 1fr 1fr; }
    .ico-nav li { border-bottom: none; }
    .ico-nav li a { font-size: 12px; padding: 6px 10px; }
    .ico-nav li em { display: none; }

    .info-list-item { flex-direction: column; gap: 8px; padding: 12px 0; }
    .info-list-item .item-img { width: 100%; height: 160px; }
    .info-list-item .item-title { font-size: 15px; }
    .info-list-item .item-desc { font-size: 12px; -webkit-line-clamp: 2; }

    /* ---- 详情页 ---- */
    .detail-layout { flex-direction: column; }
    .detail-side { width: 100%; }
    .detail-title { font-size: 18px; }
    .detail-section { padding: 16px; }

    /* ---- 发布页 ---- */
    .publish-layout { flex-direction: column; }

    /* ---- 搜索页 ---- */
    .search-layout { flex-direction: column; }
    .search-filters { overflow-x: auto; display: flex; gap: 6px; }
    .search-filters label { white-space: nowrap; }

    /* ---- 用户中心 ---- */
    .page-user { flex-direction: column; }
    .page-user .side-left { width: 100%; }
    .page-user .side-left .user-sidebar { display: flex; overflow-x: auto; gap: 0; }
    .page-user .side-left .user-sidebar a { white-space: nowrap; padding: 8px 14px; border-bottom: 2px solid transparent; }
    .page-user .side-left .user-sidebar a.active { border-bottom-color: var(--primary); }
    .profile-form-grid { grid-template-columns: 1fr; }
    .profile-avatar-section { flex-direction: column; align-items: center; }

    /* ---- 面包屑 ---- */
    .breadcrumb-bar { display: none; }

    /* ---- 底部导航 ---- */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #fff;
        border-top: 1px solid var(--border);
        padding: 4px 0 env(safe-area-inset-bottom, 4px);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
    .mobile-bottom-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 6px 0;
        font-size: 10px;
        color: var(--text-muted);
        text-decoration: none;
    }
    .mobile-bottom-nav a i { font-size: 20px; }
    .mobile-bottom-nav a.active { color: var(--primary); }
    .mobile-bottom-nav a span { line-height: 1; }

    /* ---- 汉堡菜单 ---- */
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 22px;
        color: var(--text);
        cursor: pointer;
        padding: 4px;
    }
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 9998;
    }
    .mobile-menu-overlay.open { display: block; }
    .mobile-menu-panel {
        display: block;
        position: fixed;
        top: 0; left: -280px; bottom: 0;
        width: 280px;
        background: #fff;
        z-index: 9999;
        transition: left 0.3s;
        overflow-y: auto;
        padding: 20px;
    }
    .mobile-menu-panel.open { left: 0; }
    .mobile-menu-panel h3 { font-size: 14px; color: var(--primary); margin-bottom: 12px; }
    .mobile-menu-panel a {
        display: block;
        padding: 10px 0;
        font-size: 14px;
        color: var(--text);
        border-bottom: 1px solid var(--border);
    }
    .mobile-menu-panel a:last-child { border-bottom: none; }
    .mobile-menu-close {
        float: right;
        background: none;
        border: none;
        font-size: 22px;
        color: #999;
        cursor: pointer;
    }

    /* ---- 广告位 ---- */
    .side-ad { margin-bottom: 12px; }
}

/* 超小屏 400px 以下 */
@media (max-width: 400px) {
    .logo-text { font-size: 15px !important; }
    .search-form input { font-size: 12px !important; }
    .publish-btn { padding: 6px 10px !important; font-size: 11px !important; }
    .info-img { width: 70px; height: 52px; }
    .info-list-item .item-img { height: 120px; }
}
