﻿/* ==================== 全局变量 ==================== */
html {
    scroll-behavior: smooth;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --gov-blue: #4d9ffa;
    --tech-blue: #6bb3fb;
    --gov-dark: #0d3b6b;
    --gov-light: #6bb3fb;
    --accent-cyan: #26c6da;
    --white: #ffffff;
    --bg-light: #f4f9ff;
    --text-dark: #0d3b6b;
    --text-light: #5a7a9e;
    --border: #dbe9f8;
    --orange: #ff8c00;
    --orange-dark: #e67e00;
}
body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'Noto Sans SC', -apple-system, sans-serif;
    background: #ffffff;   /* 原 var(--bg-light) 浅灰蓝 → 白 */
    color: var(--text-dark);
}

/* ==================== 筛选卡片 ==================== */
.filter-card {
    background: white;
    border-radius: 0px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(77,159,250,0.06);
}

.filter-row {
    display: flex;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.filter-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-label {
    width: 80px;
    font-size: 13px;
    color: var(--text-light);
    flex-shrink: 0;
    padding-top: 6px;
}

.filter-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 0px;
    background: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dark);
}

.filter-btn:hover {
    border-color: var(--gov-blue);
    color: var(--gov-blue);
}

.filter-btn.active {
    background: var(--gov-blue);
    color: white;
    border-color: var(--gov-blue);
}

/* ==================== 区块标题 ==================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
}

.section-more {
    color: var(--gov-blue);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-more:hover { text-decoration: underline; }

/* ==================== 律师卡片网格 ==================== */
.law-firm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ==================== 律师卡片（左图+姓名 | 右信息） ==================== */
.lawyer-card {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(77,159,250,0.06);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.lawyer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(77,159,250,0.15);
    border-color: var(--gov-blue);
}

/* 左侧：照片 + 姓名 */
.lawyer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 130px;
    flex-shrink: 0;
    padding: 20px 12px;
    background: var(--bg-light);
    position: relative;
}

.lawyer-left::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.lawyer-photo {
    width: 120px;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(77,159,250,0.15);
    background: #e8f0fe;
}

.lawyer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lawyer-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 10px;
    text-align: center;
    position: relative;
}

.lawyer-name::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: linear-gradient(to right, var(--gov-blue), var(--tech-blue));
    margin: 6px auto 0;
    border-radius: 1px;
}

/* 右侧：简介 + 信息列表 */
.lawyer-detail {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.lawyer-summary {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lawyer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 0;
    border-top: 1px dashed var(--border);
    padding-top: 8px;
}

.lawyer-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 13px;
    color: var(--text-dark);
}

.lawyer-info-item:hover {
    background: var(--bg-light);
}

.lawyer-info-item i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gov-blue), var(--tech-blue));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
}

.lawyer-info-item .info-label {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.lawyer-info-item .info-value {
    font-size: 13px;
    color: var(--text-dark);
    word-break: break-all;
    line-height: 1.4;
}

.lawyer-info-contact .info-value {
    color: var(--gov-blue);
    font-weight: 500;
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-light);
    margin-right: 16px;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 0px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    color: var(--text-dark);
}

.pagination-btn:hover {
    border-color: var(--gov-blue);
    color: var(--gov-blue);
}

.pagination-btn.active {
    background: var(--gov-blue);
    color: white;
    border-color: var(--gov-blue);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== 页脚（由 footer.template.html 统一管理，此处不重复定义） ==================== */

.hidden {
    display: none !important;
}

/* ==================== 律所卡片 ==================== */
.law-firm-card {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(77,159,250,0.06);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.law-firm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(77,159,250,0.15);
    border-color: var(--gov-blue);
}

.firm-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    flex-shrink: 0;
    padding: 20px 16px;
    background: var(--bg-light);
    position: relative;
}

.firm-left::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.firm-logo {
    width: 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(77,159,250,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.firm-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.firm-right {
    flex: 1;
    padding: 18px 22px;
    min-width: 0;
}

.firm-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.firm-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.firm-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.firm-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gov-blue);
    background: rgba(77,159,250,0.1);
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.firm-badge i {
    font-size: 10px;
}

.firm-summary {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.firm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.firm-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gov-blue);
    background: rgba(77,159,250,0.12);
    padding: 3px 10px;
    border-radius: 3px;
}

.firm-tag i {
    font-size: 10px;
}

.firm-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px dashed var(--border);
    padding-top: 10px;
    margin-top: 4px;
}

.firm-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.firm-contact-item i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gov-blue), var(--tech-blue));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
}

.firm-contact-label {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
}

.firm-contact-value {
    color: var(--text-dark);
    font-size: 13px;
}

/* ==================== 供需对接区 ==================== */
.supply-wrapper {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.supply-section {
    display: flex;
    gap: 22px;
    background: #f4f9ff;
    padding: 26px;
    border-radius: 0px;
}

.supply-side {
    width: 250px;
    min-width: 250px;
    border-radius: 0px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-left: 28px;
}

.demand-bg {
    background: linear-gradient(135deg, #4d9ffa, #6bb3fb);
}

.service-bg {
    background: linear-gradient(135deg, #2b6fc4, #4d9ffa);
}

.supply-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 70% 30%, rgba(255,255,255,0.15), transparent 30%),
            radial-gradient(circle at 30% 70%, rgba(255,255,255,0.08), transparent 35%);
}

.supply-side-content {
    position: relative;
    z-index: 2;
    color: white;
}

.supply-side-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.supply-side-content p {
    font-size: 22px;
}

.supply-content {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.supply-card {
    background: white;
    border: 1px solid var(--border);
    padding: 28px 22px;
    transition: 0.3s;
    border-radius: 8px;
}

.supply-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(77,159,250,0.12);
    border-color: var(--gov-blue);
}

.supply-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.supply-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    word-break: break-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.supply-info p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    overflow: visible;
    white-space: normal;
    word-break: break-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.supply-info span {
    color: var(--text-dark);
    font-weight: 600;
}

.green {
    color: #4d9ffa;
    font-style: normal;
    font-weight: bold;
}

.red {
    color: #6bb3fb;
    font-style: normal;
    font-weight: bold;
}

.supply-card button {
    width: 100%;
    height: 42px;
    margin-top: 24px;
    border: 2px solid var(--gov-blue);
    background: white;
    color: var(--gov-blue);
    border-radius: 0px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.supply-card button:hover {
    background: var(--gov-blue);
    color: white;
}

/* ==================== 发布需求表单 ==================== */
.publish-form-card {
    background: white;
    border-radius: 0px;
    box-shadow: 0 2px 12px rgba(77,159,250,0.06);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, var(--gov-blue), var(--tech-blue));
    padding: 28px 32px;
    color: white;
}

.form-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 14px;
    opacity: 0.9;
}

.form-body {
    padding: 32px;
}

.form-row {
    margin-bottom: 24px;
}

.form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-row input[type="text"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 0px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-row input[type="text"]:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--gov-blue);
}

.form-row textarea {
    min-height: 120px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.btn-submit {
    padding: 12px 32px;
    background: var(--gov-blue);
    color: white;
    border: none;
    border-radius: 0px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--gov-dark);
}

.btn-reset {
    padding: 12px 32px;
    background: white;
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: 0px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset:hover {
    border-color: var(--gov-blue);
    color: var(--gov-blue);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1200px) {
    .law-firm-grid { grid-template-columns: 1fr; }
    .supply-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .top-nav { padding: 0 24px; }
    .nav-menu { display: none; }
    .filter-row { flex-direction: column; gap: 8px; }
    .filter-label { width: auto; }
    .law-firm-grid { grid-template-columns: 1fr; }
    .supply-content { grid-template-columns: 1fr; }
    .content-container { padding: 24px; }
    .supply-section { flex-direction: column; }
    .supply-side { width: 100%; min-width: 100%; padding: 40px; }
    .law-firm-card { flex-direction: column; }
    .firm-left {
        width: 100%;
        padding: 16px 20px;
        justify-content: flex-start;
    }
    .firm-left::after { display: none; }
    .firm-contact { gap: 12px; }
}