﻿/* 零工网 LingGong.ca */
:root {
    --green: #0f7b5c;
    --green-dark: #0a5c45;
    --green-soft: #e7f4ef;
    --orange: #f07b22;
    --ink: #1f2a2e;
    --muted: #66737a;
    --line: #e3e8ea;
    --bg: #f6f8f7;
    --card: #ffffff;
    --danger: #c62f2f;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(16, 40, 32, .06), 0 4px 16px rgba(16, 40, 32, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 15px/1.65 -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 17px; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ---------- 按钮 / 表单 ---------- */
.btn {
    display: inline-block; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
    padding: 10px 22px; font: inherit; font-weight: 600; line-height: 1.2; text-align: center;
    background: #fff; color: var(--ink); border-color: var(--line); transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; border-color: #c5cfd2; }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff !important; }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-accent { background: var(--orange); border-color: var(--orange); color: #fff !important; }
.btn-accent:hover { background: #d86a15; }
.btn-danger { color: var(--danger); }
.btn-sm { padding: 7px 16px; font-size: 14px; }
.btn-block { display: block; width: 100%; }
.btn-link { background: none; border: 0; color: var(--green); padding: 0; font: inherit; cursor: pointer; }

.form { max-width: 720px; }
.field { margin-bottom: 18px; }
.field > label, .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
.req { color: var(--danger); margin-left: 2px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=url], select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #cfd8db; border-radius: 8px; background: #fff;
    font: inherit; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(15, 123, 92, .25); border-color: var(--green); }
textarea { min-height: 140px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.inline-list { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.inline-list label, .check-grid label { font-weight: normal; cursor: pointer; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; }
.check-grid td { padding: 2px 12px 2px 0; }
.val { color: var(--danger); font-size: 13px; display: block; margin-top: 4px; }
.errors { background: #fdecec; color: var(--danger); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.errors ul { margin: 0; padding-left: 18px; }
.notice { background: var(--green-soft); border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.notice-warn { background: #fff4e5; }

/* ---------- 头部 ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px;
    background: var(--green); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 1px;
}
.logo-text { font-weight: 800; font-size: 20px; line-height: 1.05; display: flex; flex-direction: column; }
.logo-text small { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .5px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--ink); font-weight: 500; }
.main-nav a.btn { color: #fff; }
.nav-user { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-toggle, .nav-burger { display: none; }

.flash { background: var(--green-soft); border-bottom: 1px solid #cfe8de; padding: 10px 0; }
.flash-error { color: var(--danger); }
.flash-warn { background: #fff4e5; border-bottom-color: #fbe0bf; }
.flash-warn a { font-weight: 700; margin-left: 8px; }

.site-main { min-height: 60vh; }

/* ---------- 页脚 ---------- */
.site-footer { background: #17302a; color: #b9c9c3; margin-top: 64px; padding: 40px 0 20px; font-size: 14px; }
.site-footer a { color: #d5e3de; display: block; margin: 3px 0; }
.site-footer h4 { color: #fff; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand { color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #2b4841; margin-top: 28px; padding-top: 16px; font-size: 13px; }

/* ---------- 首页 ---------- */
.hero { background: linear-gradient(135deg, #0f7b5c 0%, #0c5f58 100%); color: #fff; padding: 64px 0 72px; }
.hero h1 { font-size: 40px; margin-bottom: 12px; letter-spacing: .5px; }
.hero p.lead { font-size: 18px; opacity: .92; margin: 0 0 28px; }
.hero-search {
    display: flex; background: #fff; border-radius: 999px; padding: 6px; max-width: 720px; box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}
.hero-search input[type=text], .hero-search select { border: 0; border-radius: 999px; padding: 12px 18px; font-size: 16px; }
.hero-search input[type=text]:focus, .hero-search select:focus { outline: none; }
.hero-search select { width: 150px; border-left: 1px solid var(--line); border-radius: 0; background: transparent; }
.hero-search .btn { padding: 12px 28px; font-size: 16px; }
.hero-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags a { color: #fff; background: rgba(255, 255, 255, .14); padding: 5px 14px; border-radius: 999px; font-size: 14px; }
.hero-tags a:hover { background: rgba(255, 255, 255, .25); text-decoration: none; }

.section { padding: 48px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-tile {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; text-align: center;
    color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cbe3d9; }
.cat-tile .icon { font-size: 32px; line-height: 1; display: block; margin-bottom: 8px; }
.cat-tile .name { font-weight: 600; }
.cat-tile .count { display: block; font-size: 12px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step .num {
    display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--green-soft); color: var(--green);
    align-items: center; justify-content: center; font-weight: 800; margin-bottom: 10px;
}
.join-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: #fff4e5; border: 1px solid #fbe0bf; border-radius: var(--radius); padding: 28px 32px;
}
.join-banner h2 { margin-bottom: 4px; }
.region-cloud { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.region-cloud .group { width: 100%; font-weight: 700; margin-top: 8px; }
.region-cloud a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; color: var(--ink); font-size: 14px; }
.region-cloud a:hover { border-color: var(--green); color: var(--green); text-decoration: none; }

/* ---------- 卡片 / 列表 ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px; }
.card h3 { margin-bottom: 10px; }
.empty {
    background: var(--card); border: 2px dashed #d5dfdb; border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--muted);
}
.empty .big { font-size: 40px; display: block; margin-bottom: 6px; }
.empty .btn { margin-top: 12px; }

.layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding-top: 28px; }
.layout-detail { display: grid; grid-template-columns: 1fr 330px; gap: 24px; padding-top: 28px; }
.sidebar .card { padding: 16px 18px; }
.sidebar h4 { font-size: 15px; margin-bottom: 8px; }
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list li a { display: block; padding: 5px 10px; border-radius: 6px; color: var(--ink); }
.filter-list li a:hover { background: var(--bg); text-decoration: none; }
.filter-list li a.active { background: var(--green-soft); color: var(--green); font-weight: 600; }
.filter-list li.sub a { padding-left: 24px; font-size: 14px; }

.page-head { padding: 28px 0 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .search { flex: 1; min-width: 200px; display: flex; gap: 8px; }
.sort-links a { color: var(--muted); margin-right: 12px; font-size: 14px; }
.sort-links a.active { color: var(--green); font-weight: 700; }
.result-count { color: var(--muted); font-size: 14px; }

.pro-card { display: flex; gap: 18px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 14px; }
.pro-card .body { flex: 1; min-width: 0; }
.pro-card h3 { margin: 0 0 2px; font-size: 18px; }
.pro-card h3 a { color: var(--ink); }
.pro-card .tagline { color: var(--muted); margin: 0 0 6px; }
.pro-card .side { text-align: right; min-width: 150px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.pro-card .price { font-weight: 700; }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-lg { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; font-size: 44px; }
.avatar-sm { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; font-size: 16px; }
.avatar-text { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 28px; }
.avatar-lg.avatar-text { font-size: 44px; }
.avatar-sm.avatar-text { font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; font-size: 13px; color: var(--muted); }
.chip-green { background: var(--green-soft); border-color: #cde7dc; color: var(--green); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 1px 7px; vertical-align: middle; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-orange { background: #fff1e3; color: #c25b0c; }
.badge-gray { background: #eef1f2; color: var(--muted); }
.badge-red { background: #fdecec; color: var(--danger); }
.stars { color: #f2a516; letter-spacing: 1px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 14px; }
.phone { font-weight: 700; font-size: 16px; white-space: nowrap; }

.task-card { display: block; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 12px; color: var(--ink); }
.task-card:hover { text-decoration: none; box-shadow: 0 2px 4px rgba(16, 40, 32, .08), 0 8px 24px rgba(16, 40, 32, .10); }
.task-card .top { display: flex; justify-content: space-between; gap: 12px; }
.task-card h3 { margin: 0 0 4px; font-size: 17px; }
.task-card .budget { color: var(--orange); font-weight: 800; white-space: nowrap; }
.task-card p { margin: 6px 0; color: #45535a; }
.task-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.task-grid .task-card { margin: 0; }
.pro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pro-mini { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 16px; text-align: center; color: var(--ink); }
.pro-mini:hover { text-decoration: none; }
.pro-mini .name { font-weight: 700; margin-top: 8px; }

/* 详情页 */
.profile-head { display: flex; gap: 22px; align-items: center; }
.profile-head h1 { margin-bottom: 4px; }
.contact-card .phone { font-size: 22px; display: block; margin: 4px 0 10px; }
.contact-card dl { margin: 0; }
.contact-card dt { color: var(--muted); font-size: 13px; margin-top: 10px; }
.contact-card dd { margin: 0; word-break: break-all; }
.desc { white-space: normal; word-wrap: break-word; }
.review { border-top: 1px solid var(--line); padding: 14px 0; }
.review:first-child { border-top: 0; }
.review .who { font-weight: 600; }
.quote { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.quote.accepted { border-color: var(--green); background: #f5fbf8; }
.quote .head { display: flex; align-items: center; gap: 12px; }
.quote .head .who { flex: 1; }
.quote .price { font-weight: 800; color: var(--orange); font-size: 18px; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { display: none; }
.rating-input label { font-size: 28px; color: #d8dcdd; cursor: pointer; font-weight: normal; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f2a516; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* 表格（我的 / 管理） */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 10px 16px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--green); border-color: var(--green); font-weight: 700; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
table.grid th, table.grid td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.grid th { background: #f2f5f4; font-weight: 600; white-space: nowrap; }
table.grid .actions { white-space: nowrap; }
table.grid .actions > * { margin-right: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.stat .n { font-size: 28px; font-weight: 800; }
.stat .t { color: var(--muted); font-size: 13px; }

.auth-box { max-width: 440px; margin: 48px auto 0; }
.auth-box .card { padding: 32px; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.pager a, .pager span { padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.pager .current { background: var(--green); border-color: var(--green); color: #fff; }
.pager a:hover { text-decoration: none; border-color: var(--green); }

.help h2 { margin-top: 32px; }
.help li { margin-bottom: 6px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .pro-grid { grid-template-columns: repeat(3, 1fr); }
    .layout, .layout-detail { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    body { font-size: 15px; }
    .nav-burger { display: flex; flex-direction: column; gap: 5px; margin-left: auto; cursor: pointer; padding: 8px; }
    .nav-burger span { width: 22px; height: 2px; background: var(--ink); display: block; }
    .main-nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column;
        align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px;
    }
    .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .main-nav a.btn { margin-top: 12px; border: 0; padding: 12px; }
    .nav-toggle:checked ~ .main-nav { display: flex; }
    .hero { padding: 40px 0 44px; }
    .hero h1 { font-size: 28px; }
    .hero p.lead { font-size: 16px; }
    .hero-search { flex-direction: column; border-radius: 16px; gap: 4px; }
    .hero-search select { width: 100%; border-left: 0; border-top: 1px solid var(--line); }
    .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .cat-tile { padding: 14px 6px; }
    .cat-tile .icon { font-size: 26px; }
    .steps, .task-grid { grid-template-columns: 1fr; }
    .pro-grid { grid-template-columns: repeat(2, 1fr); }
    .row2, .row3 { grid-template-columns: 1fr; }
    .pro-card { flex-wrap: wrap; }
    .pro-card .side { width: 100%; align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; }
    .profile-head { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; }
    .join-banner { padding: 22px; }
}

/* ---------- 站内聊天 ---------- */
.nav-msg { position: relative; }
.nav-badge {
    display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px;
    background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; text-align: center; vertical-align: 1px;
}
.chat {
    display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 64px - 56px); min-height: 460px; margin-top: 24px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list-head { font-weight: 800; font-size: 18px; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.chat-empty-list { padding: 24px 18px; color: var(--muted); font-size: 14px; }
.conv-item { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f0f3f4; color: var(--ink); }
.conv-item:hover { background: var(--bg); text-decoration: none; }
.conv-item.active { background: var(--green-soft); }
.conv-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; }
.conv-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.conv-task { color: var(--green); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-preview { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread-badge { background: var(--danger); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; line-height: 20px; text-align: center; padding: 0 6px; }
.chat-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-placeholder { margin: auto; text-align: center; color: var(--muted); }
.chat-placeholder .big { font-size: 44px; display: block; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat-head-text { display: flex; flex-direction: column; min-width: 0; }
.chat-name { font-weight: 800; color: var(--ink); }
.chat-back { display: none; font-size: 22px; color: var(--ink); padding-right: 4px; }
.chat-back:hover { text-decoration: none; }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px; background: #f7f9f8; display: flex; flex-direction: column; gap: 10px; }
.chat-hint { margin: auto; color: var(--muted); font-size: 14px; text-align: center; max-width: 320px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 75%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.bubble { background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--green); border-color: var(--green); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg-time { font-size: 11px; color: var(--muted); margin: 2px 4px 0; }
.chat-composer { display: flex; gap: 10px; align-items: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); }
.chat-composer textarea { min-height: 44px; max-height: 160px; resize: vertical; }
.chat-safety { font-size: 12px; color: var(--muted); padding: 0 16px 10px; }

@media (max-width: 760px) {
    .chat { grid-template-columns: 1fr; height: calc(100vh - 64px - 24px); margin-top: 12px; }
    .chat.has-thread .chat-list { display: none; }
    .chat:not(.has-thread) .chat-thread { display: none; }
    .chat-back { display: inline; }
    .msg { max-width: 88%; }
}
/* ---------- 屏蔽与举报 ---------- */
.chat-actions { margin-left: auto; display: flex; gap: 14px; font-size: 13px; white-space: nowrap; }
.chat-actions a { color: var(--muted); }
.chat-actions a:hover { color: var(--danger); }
.report-link { text-align: right; font-size: 13px; margin: -4px 4px 12px; }
.report-link a, .report-link-inline { color: var(--muted); }
.report-link a:hover, .report-link-inline:hover { color: var(--danger); }
.report-link-inline { font-size: 12px; margin-left: 2px; }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff !important; }
.btn-danger-solid:hover { background: #a82626; }
.radio-stack { list-style: none; margin: 0; padding: 0; }
.radio-stack li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.radio-stack label { font-weight: normal; cursor: pointer; }
/* 注册蜜罐字段：对人隐藏，对机器人可见 */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 推荐师傅 / 邀请报价 */
.invite-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.invite-row:first-of-type { border-top: 0; }
.invite-body { flex: 1; min-width: 0; }
.invite-body a { color: var(--ink); }

/* ---------- 照片墙与放大浏览 ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 14px; }
.gallery-item { position: relative; }
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; display: block; background: var(--bg); }
.gallery-item .photo-del {
    position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; line-height: 22px; text-align: center; border-radius: 50%;
    background: rgba(0, 0, 0, .6); color: #fff; font-size: 16px;
}
.gallery-item .photo-del:hover { background: var(--danger); text-decoration: none; }
.photo-check { display: block; font-size: 13px; font-weight: normal; margin-top: 4px; cursor: pointer; }
.add-photos { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.card-thumbs { display: flex; gap: 6px; margin: 8px 0 4px; }
.card-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.lb-overlay {
    position: fixed; inset: 0; z-index: 1000; background: rgba(10, 16, 14, .92); display: flex; align-items: center; justify-content: center;
}
.lb-overlay img { max-width: 94vw; max-height: 88vh; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lb-btn { position: absolute; color: #fff; background: rgba(255, 255, 255, .12); border: 0; font-size: 28px; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -24px; }
.lb-next { right: 16px; top: 50%; margin-top: -24px; }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #cfd8d4; font-size: 14px; }
.hires { color: var(--green); font-weight: 600; }

/* ---------- 价格参考 ---------- */
.price-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.price-group h3 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.price-group h3 a { color: var(--ink); }
.price-median { font-size: 14px; color: var(--orange); font-weight: 700; white-space: nowrap; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid #f0f3f4; font-size: 14px; }
.price-list li:first-child { border-top: 0; }
.price-hero { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 8px; }
.price-big { font-size: 40px; font-weight: 800; color: var(--orange); line-height: 1.1; }
.price-mid { font-size: 22px; font-weight: 700; }
.verdict { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 4px; padding: 1px 7px; margin-left: 8px; vertical-align: middle; }
.verdict:hover { text-decoration: none; opacity: .85; }
.verdict-ok { background: var(--green-soft); color: var(--green); }
.verdict-low { background: #fff4e5; color: #b45b0c; }
.verdict-high { background: #fdecec; color: var(--danger); }
/* 微信分享图：对用户隐藏（微信抓取页面中第一张不小于 300px 的图片） */
.wx-share { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: #45535a; }

/* ---------- 首页：平台承诺与本周动态 ---------- */
.promise { background: #fff; border-bottom: 1px solid var(--line); }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.promise-grid div { display: flex; flex-direction: column; padding-left: 14px; border-left: 3px solid var(--green); }
.promise-grid strong { font-size: 16px; }
.promise-grid span { color: var(--muted); font-size: 13px; }
.pulse { padding-bottom: 18px; color: var(--muted); font-size: 14px; }
.pulse strong { color: var(--green); }
.pulse .dot { margin: 0 10px; }
@media (max-width: 760px) { .promise-grid { grid-template-columns: 1fr 1fr; } }
.nav-lang { border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 13px; }
.nav-lang:hover { border-color: var(--green); text-decoration: none; }

.fav-on { color: #c28a00 !important; border-color: #f2d27a; background: #fffaf0; }
.danger-zone { border: 1px solid #f3c9c9; margin-top: 20px; }

/* 管理后台：错误日志 */
.break { word-break: break-all; overflow-wrap: anywhere; }
.error-detail { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; background: #f6f8f9; border: 1px solid var(--line); border-radius: 8px; padding: 12px; max-height: 480px; overflow: auto; }

/* 邮编自动选地区 */
.postal-row { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.postal-input { max-width: 220px; }

/* 发布需求：按分类引导的问题 */
fieldset.task-form { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 4px; margin: 0 0 16px; background: #fafcfb; }
fieldset.task-form[hidden] { display: none; }
fieldset.task-form legend { font-weight: 600; padding: 0 6px; }
.task-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.input-unit { display: flex; align-items: center; gap: 8px; }
.input-unit input { flex: 1; min-width: 0; }
.input-unit span { color: var(--muted); white-space: nowrap; }

/* 手机：文件选择框默认宽度不能收缩，放在 flex 里会撑出屏幕 */
input[type=file] { max-width: 100%; min-width: 0; }
.postal-input { width: 100%; max-width: 280px; }

/* 站外工具推荐（装修类页面） */
.promo { display: block; border: 1px dashed #b9d3c6; background: #f4faf7; border-radius: 10px; padding: 12px 14px; margin: 12px 0 16px; }
.promo-tag { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.promo strong { display: block; }
.promo p { margin: 4px 0 6px; font-size: 14px; color: #45535a; }
.promo a { font-weight: 600; }

/* 未认领商家 */
.claim-card { background: #fffaf0; border-color: #f0dcb0; }
.claim-card p { margin: 6px 0 10px; }

/* AI 估价 */
.estimate-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 8px; }
.estimate-total .price-big { font-size: 30px; font-weight: 700; color: var(--orange); }
.conf-low { background: #fdecea; color: #a4342a; }
.conf-medium { background: #fff4e0; color: #8a5a00; }
.conf-high { background: #e6f4ec; color: #1d6b43; }
.estimate-items td.nowrap { white-space: nowrap; }
.estimate-subtotals { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0; font-size: 14px; color: #45535a; }
.estimate h3 { font-size: 16px; margin: 16px 0 6px; }
.estimate ul { margin: 0; padding-left: 20px; }
.estimate-actions .btn { margin: 0 8px 8px 0; }
.hero-ai { margin: 10px 0 0; }
.hero-ai a { color: #fff; text-decoration: underline; }
.ai-quote-box { background: #f4f8ff; border: 1px dashed #b8c9e8; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.ai-quote-detail { margin-top: 12px; }
.ai-quote-detail summary { cursor: pointer; color: var(--muted); }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 4px 0; }
