/* ============================================================
   急凑凑 · 站点样式
   版式照业主最终确认的参考稿（深蓝侧栏 + 大圆角卡片 + 图标导航）
   配色：--primary-dark #0A2B4E / --primary #1E6B9E / --accent #F5A623
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #F0F4F9;
    color: #1E2F3E;
    line-height: 1.5;
}

/* 官网主色调 */
:root {
    --primary-dark: #0A2B4E;
    --primary: #1E6B9E;
    --primary-light: #E9F0F7;
    --accent: #F5A623;
    --gray-bg: #F8FAFD;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --text-dark: #1F2F3D;
    --text-gray: #5A6F84;
}

/* 侧边栏布局 */
.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--primary-dark);
    color: #E2EDF7;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(0,0,0,0.08);
    z-index: 10;
}

.logo-area {
    padding: 32px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.logo-area h1 {
    font-size: 24px;
    font-weight: 600;
    color: white;
    letter-spacing: 1px;
}
.logo-area h1 small {
    font-size: 14px;
    font-weight: 400;
    color: #8BB9E0;
    display: block;
    margin-top: 6px;
}

.nav-menu {
    flex: 1;
    padding: 24px 0;
}
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #CBDEF5;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}
.nav-item i {
    width: 28px;
    font-size: 18px;
    margin-right: 12px;
}
.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}
.nav-item.active {
    background: rgba(255,255,255,0.15);
    color: white;
    border-left: 3px solid var(--accent);
}

/* 图标：用内联 SVG 代替 Font Awesome CDN。
   原因：cdnjs.cloudflare.com 在国内常见超时，而它是 <link rel="stylesheet">，
   在 head 里会阻塞渲染 —— 一旦卡住整页白屏。内联 SVG 视觉一致且零依赖。 */
.nav-icon-svg {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    flex-shrink: 0;
    fill: currentColor;
}

.partner-box {
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
}
.partner-title {
    /* 字号与导航项（.nav-item，15px）对齐 */
    font-size: 15px;
    font-weight: 500;
    padding: 12px 24px;
    color: #CBDEF5;
}
/* 小符号用伪元素加，不占正文，删改文字时不会误删 */
.partner-title::before {
    content: "·";
    margin-right: 8px;
    color: #9ABFDF;
}
.partner-list a {
    display: block;
    padding: 8px 12px;
    color: #CCE0F5;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: 0.2s;
}
.partner-list a:hover {
    background: var(--primary);
    color: white;
}

/* 右侧主内容 */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 32px 40px;
    max-width: calc(100% - 280px);
}

/* 卡片通用 */
.card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
}

/* 公告栏 */
.notice-bar {
    background: #FFF8ED;
    border-left: 4px solid var(--accent);
    border-radius: 16px;
    padding: 16px 24px;
    margin-bottom: 32px;
}
.notice-bar strong {
    color: #D98E00;
}

/* 需求列表样式 */
.order-list {
    display: flex;
    flex-direction: column;
}
.order-item {
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}
.order-item:last-child {
    border-bottom: none;
}
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.order-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}
.status {
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}
.status-pending { background: #FFEEE5; color: #E67E22; }
.status-accepted { background: #E1F7ED; color: #1E7B4B; }
.status-completed { background: #EEF2F5; color: #6C7E97; }
.order-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 12px 0;
    font-size: 13px;
    color: var(--text-gray);
}
.price-highlight {
    color: #E74C3C;
    font-weight: 700;
}
.order-desc {
    color: var(--text-gray);
    margin: 12px 0 16px;
}
.btn-outline {
    color: var(--primary);
    border: 1px solid var(--primary);
    background: transparent;
    padding: 6px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
    display: inline-block;
    cursor: pointer;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.btn-solid {
    background: var(--primary);
    border: none;
    color: white;
    padding: 6px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
}
.btn-solid:hover {
    background: #0C547D;
}
.order-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* 页脚 */
.footer {
    margin-top: 48px;
    background: var(--primary-dark);
    border-radius: 20px;
    padding: 32px 24px 24px;
    text-align: center;
    color: #BDD6F0;
    font-size: 13px;
}
.footer a {
    color: #A0C4F0;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}
.footer hr {
    margin: 18px 0;
    border-color: rgba(255,255,255,0.1);
}

/* 响应式 */
@media (max-width: 900px) {
    .sidebar {
        width: 240px;
    }
    .main-content {
        margin-left: 240px;
        padding: 24px;
    }
}
@media (max-width: 700px) {
    .app {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 20px;
    }
}

/* ============================================================
   以下为补齐功能所新增的组件
   全部沿用参考稿的视觉语言：navy/blue 主色、20px 圆角、胶囊按钮
   ============================================================ */

/* 侧栏登录区 */
.user-box {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #9ABFDF;
}
.user-box .u-name {
    color: #fff;
    font-weight: 500;
    margin-bottom: 4px;
}
.user-box .u-role {
    color: #8BB9E0;
    font-size: 12px;
    margin-bottom: 10px;
}
.user-box a {
    color: #A0C4F0;
    text-decoration: none;
    margin-right: 12px;
}
.user-box a:hover { text-decoration: underline; color: #fff; }

/* 表单 */
.form-group { margin-bottom: 22px; }
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.form-label .required { color: #E74C3C; }
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,107,158,0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-file {
    width: 100%;
    padding: 10px 14px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    font-size: 13px;
    background: var(--gray-bg);
    cursor: pointer;
}
.form-hint {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 6px;
}
.form-row {
    display: flex;
    gap: 20px;
}
.form-row .form-group { flex: 1; }
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

/* 筛选栏 */
.filter-bar {
    background: var(--white);
    border-radius: 20px;
    padding: 18px 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.filter-bar .filter-label {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
}
.filter-select {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-dark);
    background: #fff;
    cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--primary); }

/* 统计条 */
.stats-bar {
    background: var(--primary-light);
    border-radius: 16px;
    padding: 14px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-gray);
}
.stats-bar strong {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    margin: 0 2px;
}

/* 分页 */
.pagination {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.pagination .page-info {
    display: block;
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 14px;
}
.page-btn {
    display: inline-block;
    padding: 7px 14px;
    margin: 0 4px;
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text-gray);
    font-size: 13px;
    text-decoration: none;
    transition: 0.2s;
}
.page-btn:hover, .page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* 详情页 */
.detail-row {
    display: flex;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
    width: 110px;
    color: var(--text-gray);
    flex-shrink: 0;
}
.detail-value { color: var(--text-dark); flex: 1; }
.detail-value.price {
    color: #E74C3C;
    font-size: 20px;
    font-weight: 700;
}
.detail-section { margin-bottom: 28px; }
.detail-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.detail-content {
    color: var(--text-gray);
    background: var(--gray-bg);
    border-left: 3px solid var(--primary);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.8;
}
.photo-gallery {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.photo-gallery img, .photo-gallery video {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--gray-bg);
}

/* 提示卡 */
.tips-card {
    background: #FFF8ED;
    border-left: 4px solid var(--accent);
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 24px;
}
.tips-card h4 {
    color: #D98E00;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}
.tips-card ul { list-style: none; }
.tips-card li {
    padding: 5px 0 5px 18px;
    position: relative;
    color: var(--text-gray);
    font-size: 14px;
}
.tips-card li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--accent);
    font-weight: 700;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}
.empty-state p { margin-bottom: 18px; font-size: 15px; }

/* 提示条 */
.alert {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.8;
}
.alert-error { background: #FDEDEC; border-left: 4px solid #E74C3C; color: #A93226; }
.alert-ok { background: #E1F7ED; border-left: 4px solid #1E7B4B; color: #15653C; }
.alert-info { background: var(--primary-light); border-left: 4px solid var(--primary); color: #14567F; }

/* 登录弹窗 */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(10,43,78,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}
.modal-head h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}
.modal-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0 4px;
}
.modal-close:hover { color: var(--text-dark); }
.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    background: var(--gray-bg);
    padding: 4px;
    border-radius: 30px;
}
.auth-tabs button {
    flex: 1;
    padding: 9px;
    border: none;
    background: transparent;
    border-radius: 30px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-gray);
    cursor: pointer;
    transition: 0.2s;
}
.auth-tabs button.active {
    background: var(--primary);
    color: #fff;
    font-weight: 500;
}
.role-row { display: flex; gap: 10px; }
.role-row label {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
    cursor: pointer;
    transition: 0.2s;
}
.role-row input { display: none; }
.role-row label:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    background: var(--primary-dark);
    color: #fff;
    padding: 13px 26px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 2000;
    max-width: 90vw;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.toast-err { background: #E74C3C; }

/* 图片预览 */
.photo-preview {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.photo-preview img, .photo-preview video {
    width: 130px;
    height: 98px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}

/* 窄屏补充 */
@media (max-width: 700px) {
    .form-row { flex-direction: column; gap: 0; }
    .filter-bar { gap: 10px; }
    .stats-bar { gap: 20px; }
    .order-actions { flex-wrap: wrap; }
    .modal-box { padding: 24px; }
    .photo-gallery img, .photo-gallery video { width: 140px; height: 105px; }
}

/* 侧栏未读红点 */
.jcc-badge {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    margin-left: 5px;
    background: #E74C3C;
    color: #fff;
    font-size: 11px;
    border-radius: 8px;
    text-align: center;
    vertical-align: middle;
}

/* FAQ 问答 */
.faq-q {
    font-weight: 600;
    color: #1F2F3D;
    margin: 18px 0 8px;
    font-size: 15px;
}
.faq-q:first-of-type { margin-top: 10px; }
.faq-a {
    color: #5A6F84;
    font-size: 14px;
    line-height: 1.85;
    padding-left: 2px;
}

/* ============================================================
   法务页（隐私政策 / 用户协议 / 资质公示）
   这三页正文是从旧模板迁移过来的，保留 prose / notice / note 类名，
   这里补上深蓝主题下的样式，保证与主站一致。
   ============================================================ */

.prose {
    font-size: 14px;
    line-height: 1.9;
    color: #4A5568;
}
.prose h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0A2B4E;
    margin: 26px 0 10px;
    padding-left: 10px;
    border-left: 3px solid #1E6B9E;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1F2F3D;
    margin: 18px 0 8px;
}
.prose p { margin: 8px 0; }
.prose ul, .prose ol { margin: 8px 0 8px 22px; }
.prose li { margin: 5px 0; }
.prose strong { color: #1F2F3D; font-weight: 600; }
.prose a { color: #1E6B9E; }
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}
.prose th, .prose td {
    border: 1px solid #E2E8F0;
    padding: 8px 10px;
    text-align: left;
}
.prose th { background: #F8FAFD; font-weight: 600; color: #1F2F3D; }

/* 提示块 */
.notice {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.8;
    margin: 14px 0;
    background: #E9F0F7;
    border-left: 3px solid #1E6B9E;
    color: #1F2F3D;
}
.notice-ok {
    background: #E1F7ED;
    border-left-color: #27AE60;
}
.notice-danger {
    background: #FFEEE5;
    border-left-color: #E67E22;
}
.note {
    font-size: 13px;
    color: #5A6F84;
    margin-top: 10px;
}

/* 待办状态标记 */
.badge-pending {
    display: inline-block;
    padding: 1px 8px;
    font-size: 12px;
    border-radius: 10px;
    background: #FFEEE5;
    color: #E67E22;
    vertical-align: middle;
}

/* 通用灰色小字 */
.muted { color: #5A6F84; }

/* 示例需求标记：冷启动期撑场面用的内容，不能真被抢 */
.demo-tag {
    display: inline-block;
    padding: 1px 8px;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    color: #8A8F99;
    background: #EEF2F5;
    border-radius: 4px;
    vertical-align: middle;
}

/* 完工按钮：正向动作，用绿色与「下架」的红色区分 */
.btn-green {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    color: #FFFFFF;
    background: #27AE60;
    border: 1px solid #27AE60;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-green:hover { background: #219150; border-color: #219150; }
.btn-green:disabled { background: #95A5A6; border-color: #95A5A6; cursor: not-allowed; }

/* ============================================================
   广告位（预留，暂不放链接）
   ------------------------------------------------------------
   一期不放广告：没有广告主、也没有审核机制。
   但位置先留出来，并明确写「联系发布广告」——
   这样以后接广告时不用改版式，只需把内容填进框里。

   样式刻意做得朴素（虚线框 + 浅底 + 纯文字），
   和整体「只做最简单的文字页面」的取向一致。
   ============================================================ */
.ad-slot {
    border: 1px dashed rgba(255,255,255,0.22);
    border-radius: 12px;
    /* 不设底色，跟随侧边栏本身的颜色 */
    text-align: center;
    color: #9ABFDF;
    font-size: 14px;
    line-height: 1.8;
    text-decoration: none;
    display: block;
    transition: border-color 0.15s, background 0.15s;
}
.ad-slot:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.ad-slot-label {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    color: #7FA8CC;
    margin-bottom: 6px;
}
.ad-slot strong {
    font-weight: 600;
}

/* 侧边栏竖位 */
.ad-slot--side {
    margin: 0 24px 20px;
    padding: 18px 12px;
}

/* 内容流内嵌位（列表中间） */
.ad-slot--inline {
    padding: 16px 20px;
    margin-bottom: 14px;
}

/* ============================================================
   顶部操作条（登录 / 注册）
   ------------------------------------------------------------
   业主希望注册登录入口在首页上方，不要只藏在左侧栏底部。
   做成右上角一条细栏，不抢内容区。
   ============================================================ */
.top-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}
.top-actions a {
    color: var(--primary);
    text-decoration: none;
}
.top-actions a:hover {
    text-decoration: underline;
}
.top-actions .btn-login {
    display: inline-block;
    padding: 7px 22px;
    border-radius: 30px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
}
.top-actions .btn-login:hover {
    background: var(--primary-dark);
    text-decoration: none;
}
.top-actions .top-user {
    color: var(--text-gray);
}
.top-actions .top-user strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ============================================================
   侧边栏登录区（放在「首页」正上方）
   ------------------------------------------------------------
   业主希望登录入口显眼、在导航第一项上方。
   未登录时是一整块实心按钮；已登录时显示昵称 + 我的 / 退出。
   放在 logo 与 nav-menu 之间，视觉上比导航项更突出。
   ============================================================ */
.sidebar-auth {
    padding: 4px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
}

/* 未登录：整块实心按钮 */
.sidebar-auth .auth-login {
    display: block;
    text-align: center;
    padding: 13px 0;
    border-radius: 30px;
    background: var(--accent);
    color: #0A2B4E;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    transition: filter 0.15s;
}
.sidebar-auth .auth-login:hover {
    filter: brightness(1.1);
    text-decoration: none;
}

/* 已登录 */
.sidebar-auth .auth-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-auth .auth-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.sidebar-auth .auth-info {
    flex: 1;
    min-width: 0;
}
.sidebar-auth .auth-name {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-auth .auth-role {
    color: #8BB9E0;
    font-size: 12px;
    margin-top: 2px;
}
.sidebar-auth .auth-links {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    font-size: 13px;
}
.sidebar-auth .auth-links a {
    color: #9ABFDF;
    text-decoration: none;
}
.sidebar-auth .auth-links a:hover {
    color: var(--accent);
}
