/* ============================================================
 * 子页面通用样式：列表页（更多律师/案例列表/文章列表）+ 详情页（全文）
 * 依赖 style.css（基础）+ practice.css（面包屑/detail-head/empty-tip）
 * ============================================================ */

/* ================= 页面主体 ================= */
.subpage-main {
    min-height: 60vh;
    background: var(--bg-alt);
    padding: 60px 0 80px;
}
.page-head {
    text-align: center;
    margin-bottom: 44px;
}
.page-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.page-desc {
    color: var(--text-light);
    font-size: 15px;
}

/* ================= 通用列表行（标题列表） ================= */
.row-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}
.row-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 26px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.row-item:last-child { border-bottom: none; }
.row-item:hover { background: var(--bg-alt); }
.row-item a.title-link {
    flex: 1;
    min-width: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
    transition: color var(--transition);
}
.row-item a.title-link:hover { color: var(--primary); }
.row-item .row-meta {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 13px;
    font-family: "Consolas", monospace;
    white-space: nowrap;
}
.row-item .row-badge {
    flex-shrink: 0;
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(26, 109, 212, 0.1);
    color: var(--primary-dark);
}
.row-item .row-badge.bd-reg { background: rgba(108, 99, 255, 0.1); color: #6c63ff; }
.row-item .row-badge.bd-news { background: rgba(14, 154, 167, 0.12); color: #0b7f89; }

/* ================= 分页控件（右下角：上一页/下一页 + 5 个页码） ================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.pagination button, .pagination a.page-num {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.pagination button:hover:not(:disabled):not(.active),
.pagination a.page-num:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}
.pagination button.active, .pagination a.page-num.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}
.pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.pagination .page-info {
    margin-left: 10px;
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
}

/* ================= 详情页（全文） ================= */
.article {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 48px 56px;
    max-width: 960px;
    margin: 0 auto;
}
.article-head {
    text-align: center;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
}
.article-head .article-cat {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 999px;
    background: rgba(26, 109, 212, 0.1);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.article-head h1 {
    font-size: 30px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.5;
    letter-spacing: 1px;
    margin-bottom: 16px;
    overflow-wrap: break-word;
    word-break: break-word;
}
.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 26px;
    color: var(--text-muted);
    font-size: 13px;
}
.article-meta b { color: var(--text-light); font-weight: 600; }
.article-body {
    font-size: 16px;
    line-height: 2.05;
    color: var(--text);
}
.article-body p {
    margin-bottom: 18px;
    text-align: justify;
    overflow-wrap: break-word;
    word-break: break-word;
}
.article-body .article-section {
    margin-bottom: 26px;
}
.article-body h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
    line-height: 1.4;
}
.article-body .field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 12px 16px;
    background: var(--bg-alt);
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 14px;
}
.article-body .field-row b { color: var(--text-light); font-weight: 600; margin-right: 4px; }
.article-body .field-row span { color: var(--text); }
.article-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.article-404 {
    text-align: center;
    padding: 80px 20px;
}
.article-404 h2 { font-size: 28px; color: var(--dark); margin-bottom: 12px; }
.article-404 p { color: var(--text-light); margin-bottom: 26px; }

/* ================= 律师列表（更多律师子页） ================= */
.lawyers-all {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

/* ================= 响应式 ================= */
@media (max-width: 992px) {
    .subpage-main { padding: 40px 0 60px; }
    .page-title { font-size: 28px; }
    .article { padding: 34px 30px; }
    .article-head h1 { font-size: 24px; }
    .lawyers-all { grid-template-columns: 1fr; }
    .row-item { flex-wrap: wrap; padding: 14px 20px; }
    .row-item a.title-link { flex-basis: 100%; order: 1; }
    .row-item .row-badge { order: 2; }
    .row-item .row-meta { order: 3; }
}
@media (max-width: 576px) {
    .subpage-main { padding: 30px 0 50px; }
    .page-title { font-size: 24px; }
    .article { padding: 26px 20px; }
    .article-head h1 { font-size: 20px; }
    .article-meta { gap: 6px 16px; font-size: 12px; }
    .pagination button { min-width: 36px; height: 36px; padding: 0 10px; font-size: 13px; }
}

/* ================= 律师详情页 ================= */
.lawyer-detail-main { padding-top: 96px; padding-bottom: 60px; }
.lawyer-detail-head {
    display: flex;
    gap: 36px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 34px;
    margin-bottom: 26px;
    box-shadow: var(--shadow);
}
.ld-avatar { flex-shrink: 0; }
.ld-avatar img {
    width: 190px;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--primary-light);
}
.ld-info { flex: 1; min-width: 0; }
.ld-info h1 { font-size: 28px; color: var(--dark); margin-bottom: 8px; }
.ld-role { color: var(--accent); font-size: 15px; margin-bottom: 14px; font-weight: 500; }
.ld-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ld-license { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }
.ld-license b { color: var(--dark); }
.page-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 26px 30px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}
.card-title {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th {
    width: 130px;
    text-align: left;
    color: var(--text-light);
    font-weight: 600;
    padding: 11px 14px 11px 0;
    border-bottom: 1px solid #eef3f9;
    vertical-align: top;
}
.info-table td { padding: 11px 0; border-bottom: 1px solid #eef3f9; color: var(--text); line-height: 1.7; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.rich-content { color: var(--text); font-size: 15px; line-height: 2; white-space: pre-line; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.contact-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}
.cc-label { color: var(--text-light); font-size: 13px; margin-bottom: 8px; }
.cc-value { color: var(--primary); font-size: 15px; font-weight: 600; }
.cc-empty { color: var(--text-muted); font-size: 13px; }
.qr-img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto; }
.page-empty { text-align: center; color: var(--text-muted); padding: 80px 0; }
@media (max-width: 760px) {
    .lawyer-detail-head { flex-direction: column; padding: 22px; }
    .ld-avatar img { width: 100%; height: 280px; }
}
