/* ============================================================
   app.css — 遗产继承法律咨询平台 · 高端法律门户网站样式
   设计基调：极简商务 · 正统法律风 · 高端政务质感
   主色：藏蓝/深法务蓝 + 雅致深灰 + 纯净白 + 金色点缀
   ============================================================ */

/* ============================================================
   ① 设计系统 — CSS 变量
   ============================================================ */
:root {
    /* 主色系 — 藏蓝/深法务蓝 */
    --wf-primary: #0d2a5c;              /* 藏蓝(主色) */
    --wf-primary-dark: #091e44;         /* 深藏蓝 */
    --wf-primary-light: #1a3a6e;        /* 深法务蓝 */
    --wf-primary-soft: #eef2f8;         /* 极浅蓝(底纹) */
    --wf-primary-rgb: 13, 42, 92;

    /* Bootstrap 主题色映射 */
    --bs-primary: #0d2a5c;
    --bs-primary-rgb: 13, 42, 92;
    --bs-link-color: #1a3a6e;
    --bs-link-hover-color: #0d2a5c;

    /* 金色点缀(权威感) */
    --wf-gold: #b8954a;                 /* 雅金 */
    --wf-gold-dark: #9a7a3a;
    --wf-gold-soft: #f5ede0;            /* 浅金底纹 */
    --wf-gold-rgb: 184, 149, 74;

    /* 功能色 */
    --wf-accent: #b8954a;               /* 金色替代红色做主点缀 */
    --wf-accent-rgb: 184, 149, 74;
    --wf-danger: #c0392b;               /* 紧急/警示用暗红 */
    --wf-success: #2d7a4e;
    --wf-warning: #c08a1e;

    /* 中性色 */
    --wf-text: #1e293b;                 /* 正文深灰 */
    --wf-text-muted: #64748b;           /* 次要灰 */
    --wf-text-light: #94a3b8;           /* 辅助灰 */
    --wf-border: #e2e8f0;               /* 分割线 */
    --wf-border-light: #f1f5f9;         /* 浅分割线 */
    --wf-bg: #f7f8fa;                   /* 页面底色 */
    --wf-bg-alt: #ffffff;               /* 区块白底 */

    /* 字体 */
    --wf-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
                    "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    --wf-font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;

    /* 圆角 */
    --wf-radius: 6px;
    --wf-radius-lg: 10px;
    --wf-radius-xl: 14px;

    /* 阴影 — 柔和藏蓝色调 */
    --wf-shadow-sm: 0 1px 2px rgba(13, 42, 92, 0.04);
    --wf-shadow: 0 2px 8px rgba(13, 42, 92, 0.06);
    --wf-shadow-lg: 0 8px 24px rgba(13, 42, 92, 0.10);
    --wf-shadow-hover: 0 6px 20px rgba(13, 42, 92, 0.12);
    /* 兼容旧变量名 */
    --wf-card-shadow: 0 2px 8px rgba(13, 42, 92, 0.06);
    --wf-card-shadow-hover: 0 6px 20px rgba(13, 42, 92, 0.12);
}

/* ============================================================
   box-sizing 重置: portal/profile 页面恢复 border-box
   (法妞 CSS 用 content-box, Bootstrap 需要 border-box,
    通过限定到 portal 容器 scope 避免互相干扰)
   ============================================================ */
.container-portal,
.container-portal *,
.breadcrumb-portal,
.breadcrumb-portal *,
.lawyer-profile,
.lawyer-profile *,
.firm-profile,
.firm-profile *,
.profile-subnav,
.profile-subnav *,
.profile-layout,
.profile-layout *,
.wf-card,
.wf-card *,
.wf-member-nav,
.wf-member-nav *,
.panel-portal,
.panel-portal *,
.wf-imagepicker,
.wf-imagepicker *,
.wf-taginput,
.wf-taginput *,
.wf-completeness-bar,
.wf-completeness-bar *,
.wf-missing-fields,
.wf-missing-fields *,
.ai-widget,
.ai-widget * {
    box-sizing: border-box;
}

/* ============================================================
   ② 基础排版
   ============================================================ */
body {
    font-family: var(--wf-font-sans);
    color: var(--wf-text);
    background-color: var(--wf-bg);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--wf-primary-light);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--wf-primary);
}

/* 容器 */
.container-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================================
   ③ 通用组件
   ============================================================ */

/* 卡片 */
.wf-card {
    background: #fff;
    border-radius: var(--wf-radius-lg);
    box-shadow: var(--wf-shadow);
    border: 1px solid var(--wf-border);
    padding: 24px;
}
.wf-card .wf-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wf-text);
}
.wf-card .wf-card-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 18px;
    background: var(--wf-primary);
    border-radius: 2px;
}
.wf-card .wf-card-title i {
    color: var(--wf-primary);
    font-size: 18px;
}

/* 区块 */
.wf-section {
    padding: 56px 0;
}
.wf-section-compact {
    padding: 40px 0;
}
@media (max-width: 768px) {
    .wf-section { padding: 28px 0; }
    .wf-section-compact { padding: 20px 0; }
}

/* 区块标题 */
.section-header {
    margin-bottom: 28px;
}
.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--wf-text);
    letter-spacing: 0.02em;
}
.section-desc {
    font-size: 14px;
    color: var(--wf-text-muted);
    margin-top: 4px;
}
/* 带金色装饰线的标题 */
.section-title-deco {
    position: relative;
    padding-left: 16px;
}
.section-title-deco::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--wf-primary), var(--wf-gold));
    border-radius: 2px;
}

/* 查看更多 */
.btn-link-more {
    font-size: 14px;
    color: var(--wf-text-muted);
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-link-more:hover {
    color: var(--wf-primary);
}

/* 按钮 */
.btn-primary {
    --bs-btn-bg: var(--wf-primary);
    --bs-btn-border-color: var(--wf-primary);
    --bs-btn-hover-bg: var(--wf-primary-dark);
    --bs-btn-hover-border-color: var(--wf-primary-dark);
    --bs-btn-active-bg: var(--wf-primary-dark);
    --bs-btn-disabled-bg: var(--wf-primary);
    --bs-btn-disabled-border-color: var(--wf-primary);
}
.btn-accent {
    --bs-btn-bg: var(--wf-gold);
    --bs-btn-border-color: var(--wf-gold);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--wf-gold-dark);
    --bs-btn-hover-border-color: var(--wf-gold-dark);
    --bs-btn-hover-color: #fff;
}
.btn-outline-primary {
    --bs-btn-color: var(--wf-primary);
    --bs-btn-border-color: var(--wf-primary);
    --bs-btn-hover-bg: var(--wf-primary);
    --bs-btn-hover-border-color: var(--wf-primary);
    --bs-btn-active-bg: var(--wf-primary);
}
.btn-gold {
    background: linear-gradient(135deg, var(--wf-gold), var(--wf-gold-dark));
    color: #fff;
    border: none;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.1s;
}
.btn-gold:hover {
    color: #fff;
    opacity: 0.9;
}

/* 标签徽章 */
.tag-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--wf-primary-soft);
    color: var(--wf-primary);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 文本截断 */
.text-truncate-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ============================================================
   ④ 页头 — 高端简约固定导航
   ============================================================ */
.portal-header {
    background: #fff;
    border-bottom: 1px solid var(--wf-border);
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* 顶部工具栏 */
.portal-header .top-bar {
    background: var(--wf-primary-dark);
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    padding: 0;
    line-height: 36px;
}
.portal-header .top-bar a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.15s;
}
.portal-header .top-bar a:hover {
    color: #fff;
}
.portal-header .top-bar .sep {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 6px;
}
.portal-header .top-bar i {
    margin-right: 2px;
}

/* 主导航栏 */
.portal-header .main-bar {
    padding: 0;
    height: 68px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--wf-border-light);
    transition: box-shadow 0.2s;
}
.portal-header.scrolled .main-bar {
    box-shadow: var(--wf-shadow);
}

/* Logo */
.portal-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.portal-header .logo img {
    height: 36px;
    width: auto;
}
.portal-header .logo .logo-text {
    font-family: var(--wf-font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--wf-primary);
    letter-spacing: 0.04em;
    line-height: 1.2;
}
.portal-header .logo .logo-sub {
    font-size: 11px;
    color: var(--wf-text-muted);
    letter-spacing: 0.1em;
    line-height: 1.2;
}

/* 主导航 */
.portal-header .nav-main {
    display: flex;
    gap: 2px;
    align-items: center;
    height: 68px;
}
.portal-header .nav-main a {
    padding: 0 14px;
    height: 68px;
    display: flex;
    align-items: center;
    color: var(--wf-text);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: color 0.15s;
}
.portal-header .nav-main a:hover {
    color: var(--wf-primary);
}
.portal-header .nav-main a.active {
    color: var(--wf-primary);
    font-weight: 600;
}
.portal-header .nav-main a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 3px;
    background: linear-gradient(90deg, var(--wf-primary), var(--wf-gold));
    border-radius: 3px 3px 0 0;
}
.portal-header .nav-main a .nav-badge {
    position: absolute;
    top: 16px;
    right: 2px;
    width: 6px;
    height: 6px;
    background: var(--wf-gold);
    border-radius: 50%;
}

/* 导航下拉菜单 */
.portal-header .nav-dropdown {
    position: relative;
    height: 68px;
    display: flex;
    align-items: center;
}
.portal-header .nav-dropdown > a {
    padding: 0 14px;
    height: 68px;
    display: flex;
    align-items: center;
    color: var(--wf-text);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: color 0.15s;
    cursor: pointer;
}
.portal-header .nav-dropdown > a:hover,
.portal-header .nav-dropdown:hover > a {
    color: var(--wf-primary);
}
.portal-header .nav-dropdown > a.active {
    color: var(--wf-primary);
    font-weight: 600;
}
.portal-header .nav-dropdown > a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 3px;
    background: linear-gradient(90deg, var(--wf-primary), var(--wf-gold));
    border-radius: 3px 3px 0 0;
}
.portal-header .nav-dropdown-menu {
    position: absolute;
    top: 68px;
    left: 0;
    min-width: 160px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s;
    z-index: 1000;
}
.portal-header .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.portal-header .nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--wf-text);
    font-size: 14px;
    font-weight: 400;
    height: auto;
    white-space: nowrap;
    transition: all 0.15s;
}
.portal-header .nav-dropdown-menu a:hover {
    color: var(--wf-primary);
    background: var(--wf-bg, #f8f9fa);
}

/* 城市切换器 */
.city-switcher {
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.city-switcher:hover {
    color: #fff;
}
.city-switcher .city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius);
    box-shadow: var(--wf-shadow-lg);
    padding: 16px;
    min-width: 420px;
    z-index: 1030;
    display: none;
    color: var(--wf-text);
    line-height: 1.8;
}
.city-switcher:hover .city-dropdown,
.city-switcher.open .city-dropdown {
    display: block;
}
.city-switcher .city-dropdown a {
    color: var(--wf-text-muted);
    display: block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}
.city-switcher .city-dropdown a:hover {
    color: var(--wf-primary);
    background: var(--wf-primary-soft);
}
.city-switcher .city-dropdown > .mb-2 a {
    color: var(--wf-primary);
    font-size: 14px;
}

/* 顶栏操作按钮 */
.topbar-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    transition: color 0.15s;
}
.topbar-action:hover {
    color: #fff;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    border: none;
    background: none;
    font-size: 26px;
    color: var(--wf-primary);
    padding: 4px 8px;
    line-height: 1;
}

/* 移动端抽屉菜单 */
.offcanvas-start {
    max-width: 300px;
}
.offcanvas-header {
    background: var(--wf-primary);
    color: #fff;
}
.offcanvas-header .offcanvas-title {
    font-family: var(--wf-font-serif);
    font-weight: 600;
}
.offcanvas-header .btn-close {
    filter: brightness(0) invert(1);
}
.offcanvas-body .nav-link {
    color: var(--wf-text);
    font-size: 15px;
    font-weight: 500;
    padding: 12px 16px;
    border-bottom: 1px solid var(--wf-border-light);
    transition: all 0.15s;
}
.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link.active {
    color: var(--wf-primary);
    background: var(--wf-primary-soft);
}
.offcanvas-body .nav-link i {
    margin-right: 8px;
    color: var(--wf-primary);
}

/* ============================================================
   ⑤ 页脚
   ============================================================ */
.portal-footer {
    background: var(--wf-primary-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 56px 0 0;
    margin-top: 0;
}
.portal-footer .footer-main {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.portal-footer h5 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}
.portal-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--wf-gold);
}
.portal-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.portal-footer ul li {
    margin-bottom: 10px;
}
.portal-footer a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    transition: color 0.15s;
}
.portal-footer a:hover {
    color: #fff;
}
.footer-hotline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: #fff;
}
.footer-hotline i {
    font-size: 22px;
    color: var(--wf-gold);
}
.footer-hotline span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}
.footer-hotline strong {
    font-size: 20px;
    color: #fff;
    font-family: var(--wf-font-serif);
    letter-spacing: 0.02em;
}
.portal-footer .footer-bottom {
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.4);
}
.portal-footer .footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
}
.portal-footer .footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.7);
}
.footer-bottom .sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   ⑥ 移动端底部导航
   ============================================================ */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--wf-border);
    z-index: 1020;
    box-shadow: 0 -2px 12px rgba(13, 42, 92, 0.06);
}
.mobile-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-nav li {
    flex: 1;
    text-align: center;
}
.mobile-nav li a {
    display: block;
    color: var(--wf-text-muted);
    font-size: 11px;
    padding: 8px 0 6px;
}
.mobile-nav li a i {
    display: block;
    font-size: 20px;
    margin-bottom: 2px;
}
.mobile-nav li a.active {
    color: var(--wf-primary);
}
@media (max-width: 768px) {
    .mobile-nav { display: block; }
    body { padding-bottom: 56px; }
}

/* ============================================================
   ⑦ 面包屑
   ============================================================ */
.breadcrumb-portal {
    padding: 16px 0;
    font-size: 13px;
    color: var(--wf-text-muted);
}
.breadcrumb-portal a {
    color: var(--wf-text-muted);
}
.breadcrumb-portal a:hover {
    color: var(--wf-primary);
}
.breadcrumb-portal .sep {
    margin: 0 6px;
    color: var(--wf-text-light);
}

/* ============================================================
   ⑧ 首页 — 首屏搜索区 + 业务领域目录(左目录右搜索,门户门面)
   ============================================================ */
.hero-directory {
    position: relative;
    background: linear-gradient(135deg, var(--wf-primary) 0%, var(--wf-primary-dark) 100%);
    overflow: hidden;
    padding: 40px 0 0;
}
.hero-directory-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(184, 149, 74, 0.08) 0%, transparent 40%);
    pointer-events: none;
}
.hero-directory-inner {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 20px;
    align-items: stretch;
    min-height: 480px;
}

/* 左：业务领域目录卡(白色门面,子分类平铺) */
.domain-catalog {
    flex: 0 0 260px;
    background: #fff;
    border-radius: var(--wf-radius);
    box-shadow: var(--wf-shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.domain-catalog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: var(--wf-primary);
    color: #fff;
    flex-shrink: 0;
}
.domain-catalog-head h2 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.05em;
}
.domain-catalog-head a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 2px;
}
.domain-catalog-head a:hover { color: var(--wf-gold); }
.domain-catalog-body {
    flex: 1;
    overflow-y: auto;
}
.domain-catalog-body::-webkit-scrollbar { width: 4px; }
.domain-catalog-body::-webkit-scrollbar-thumb { background: var(--wf-border); border-radius: 2px; }
.domain-catalog-item {
    padding: 12px 18px;
    border-bottom: 1px solid var(--wf-border-light);
}
.domain-catalog-item:last-child { border-bottom: none; }
.domain-catalog-item:hover { background: var(--wf-primary-soft); }
.domain-catalog-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--wf-text);
}
.domain-catalog-title i {
    color: var(--wf-gold);
    font-size: 13px;
}
.domain-catalog-item:hover .domain-catalog-title { color: var(--wf-primary); }
.domain-catalog-sub {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}
.domain-catalog-sub a {
    font-size: 12px;
    color: var(--wf-text-muted);
    line-height: 1.6;
}
.domain-catalog-sub a:hover { color: var(--wf-primary); }

/* 右：搜索焦点区(藏蓝渐变) */
.hero-focus {
    flex: 1;
    position: relative;
    padding: 56px 48px;
    overflow: hidden;
    border-radius: var(--wf-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-focus-deco {
    position: absolute;
    right: -40px;
    top: -20px;
    width: 320px;
    height: 320px;
    opacity: 0.9;
    pointer-events: none;
}
.hero-focus-deco svg { width: 100%; height: 100%; }
.hero-focus-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--wf-gold);
    margin-bottom: 16px;
    padding: 4px 0;
    border-top: 1px solid rgba(184, 149, 74, 0.4);
    border-bottom: 1px solid rgba(184, 149, 74, 0.4);
}
.hero-title {
    font-family: var(--wf-font-serif);
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
    line-height: 1.3;
}
.hero-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
    line-height: 1.8;
}
.hero-search-box {
    display: flex;
    max-width: 560px;
    margin-bottom: 16px;
    box-shadow: var(--wf-shadow-lg);
    border-radius: var(--wf-radius);
    overflow: hidden;
}
.hero-search-input {
    flex: 1;
    border: none;
    font-size: 14px;
    padding: 14px 18px;
    outline: none;
    color: var(--wf-text);
}
.hero-search-input::placeholder { color: var(--wf-text-light); }
.hero-search-btn {
    border: none;
    background: var(--wf-gold);
    color: #fff;
    padding: 0 26px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
}
.hero-search-btn:hover { background: var(--wf-gold-dark); }
.hero-quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.hero-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--wf-radius);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
}
.hero-quick-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.hero-quick-btn.primary {
    background: var(--wf-gold);
    border-color: var(--wf-gold);
}
.hero-quick-btn.primary:hover {
    background: var(--wf-gold-dark);
    border-color: var(--wf-gold-dark);
}
.hero-hot-search {
    font-size: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 28px;
}
.hero-hot-label {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}
.hero-hot-search a {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.15s;
}
.hero-hot-search a:hover { color: var(--wf-gold); }
.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stat-item { color: #fff; }
.hero-stat-item strong {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    font-family: var(--wf-font-serif);
}
.hero-stat-item span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}
.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, rgba(184, 149, 74, 0.5), transparent);
}
@media (max-width: 992px) {
    .hero-directory-inner { flex-direction: column; }
    .domain-catalog { flex: none; }
    .domain-catalog-body { flex: none; max-height: 320px; }
    .hero-focus { padding: 40px 28px; }
    .hero-title { font-size: 28px; }
}
@media (max-width: 576px) {
    .hero-focus { padding: 32px 20px; }
    .hero-title { font-size: 24px; }
    .hero-search-box { max-width: 100%; }
    .hero-quick-actions { flex-wrap: wrap; }
    .hero-quick-btn { flex: 1; justify-content: center; }
    .hero-stats { gap: 18px; }
    .hero-stat-item strong { font-size: 22px; }
    .hero-focus-deco { width: 200px; height: 200px; opacity: 0.4; }
}

/* ============================================================
   ⑨ 首页 — 核心服务入口(5列极简卡片,含 AI)
   ============================================================ */
.service-entry-section {
    background: #fff;
    margin-top: -1px;
    position: relative;
    z-index: 2;
    padding: 28px 0 36px;
}
.service-entry-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
@media (max-width: 992px) {
    .service-entry-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
    .service-entry-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.service-entry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 12px;
    border-radius: var(--wf-radius);
    border: 1px solid var(--wf-border);
    background: #fff;
    transition: all 0.2s ease;
    color: var(--wf-text);
    text-decoration: none;
}
.service-entry-card:hover {
    border-color: var(--wf-primary);
    box-shadow: var(--wf-shadow-hover);
    transform: translateY(-2px);
    color: var(--wf-text);
}
.service-entry-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--wf-radius);
    background: var(--wf-primary-soft);
    color: var(--wf-primary);
    font-size: 22px;
    margin-bottom: 12px;
    transition: all 0.2s;
}
.service-entry-card:hover .service-entry-icon {
    background: var(--wf-primary);
    color: #fff;
}
.service-entry-card.ai-card { border-color: var(--wf-gold); }
.service-entry-card.ai-card .service-entry-icon {
    background: var(--wf-gold-soft);
    color: var(--wf-gold);
}
.service-entry-card.ai-card:hover .service-entry-icon {
    background: var(--wf-gold);
    color: #fff;
}
.service-entry-name { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.service-entry-desc { font-size: 12px; color: var(--wf-text-muted); }

/* ============================================================
   ⑩ 首页 — 板块通用标题行(左标题右查看更多)
   ============================================================ */
.consult-section { background: var(--wf-bg); }
.consult-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}
.consult-head .section-title { margin: 0; }
@media (max-width: 576px) {
    .consult-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   ⑪ 首页 — 在线咨询动态流(左栏) + 快速提问框(右栏)
   ============================================================ */
.consult-flow {
    background: #fff;
    border-radius: var(--wf-radius);
    border: 1px solid var(--wf-border);
    overflow: hidden;
}
.consult-flow-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--wf-border-light);
    color: var(--wf-text);
    text-decoration: none;
    transition: background 0.15s;
}
.consult-flow-item:last-child { border-bottom: none; }
.consult-flow-item:hover { background: var(--wf-bg); }
.consult-flow-time {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--wf-text-light);
    font-family: var(--wf-font-serif);
    width: 40px;
}
.consult-flow-cat {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--wf-primary);
    background: var(--wf-primary-soft);
    padding: 2px 8px;
    border-radius: 3px;
}
.consult-flow-item.answered .consult-flow-cat {
    color: var(--wf-success);
    background: rgba(45, 122, 78, 0.1);
}
.consult-flow-text {
    flex: 1;
    font-size: 14px;
    color: var(--wf-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s;
}
.consult-flow-item:hover .consult-flow-text { color: var(--wf-primary); }

/* 快速提问卡 */
.quick-ask-card {
    background: linear-gradient(135deg, var(--wf-primary) 0%, var(--wf-primary-dark) 100%);
    border-radius: var(--wf-radius);
    padding: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.quick-ask-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    border: 1px solid rgba(184, 149, 74, 0.12);
    border-radius: 50%;
}
.quick-ask-card h3 {
    font-family: var(--wf-font-serif);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}
.quick-ask-tip {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.quick-ask-form { position: relative; z-index: 1; }
.quick-ask-input {
    width: 100%;
    border: none;
    border-radius: var(--wf-radius);
    padding: 14px 16px;
    font-size: 13px;
    color: var(--wf-text);
    margin-bottom: 12px;
    min-height: 80px;
    resize: none;
    cursor: pointer;
    background: #fff;
}
.quick-ask-input::placeholder { color: var(--wf-text-light); }
.quick-ask-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}
.quick-ask-steps span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
}
.quick-ask-steps i { color: var(--wf-gold); font-size: 14px; }

/* 工具箱 */
.tool-quick-card { padding: 24px; }
.tool-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.tool-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 8px;
    border-radius: var(--wf-radius);
    border: 1px solid var(--wf-border);
    background: var(--wf-bg);
    color: var(--wf-text);
    font-size: 13px;
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
}
.tool-quick-item:hover {
    border-color: var(--wf-primary);
    background: #fff;
    color: var(--wf-primary);
    box-shadow: var(--wf-shadow-sm);
}
.tool-quick-item i { font-size: 24px; margin-bottom: 6px; color: var(--wf-primary); }

/* ============================================================
   ⑫ 首页 — 精选法律问答(一问多答流式卡片列表)
   ============================================================ */
.qa-section { background: #fff; }
.qa-list { display: flex; flex-direction: column; gap: 12px; }
.qa-card {
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius);
    background: #fff;
    padding: 18px 20px;
    transition: all 0.2s;
}
.qa-card:hover {
    border-color: var(--wf-primary-light);
    box-shadow: var(--wf-shadow);
}
.qa-card-q {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.qa-q-tag {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: var(--wf-primary);
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--wf-font-serif);
}
.qa-q-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--wf-text);
    min-width: 200px;
    transition: color 0.15s;
}
.qa-q-title:hover { color: var(--wf-primary); }
.qa-card-meta {
    font-size: 13px;
    color: var(--wf-text-muted);
    display: flex;
    gap: 16px;
    align-items: center;
    padding-left: 32px;
    flex-wrap: wrap;
}
.qa-card-meta i { margin-right: 2px; }

/* ============================================================
   ⑬ 首页 — 推荐律师(名片式横向网格)
   ============================================================ */
.lawyer-section { background: var(--wf-bg); }
.lawyer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 992px) {
    .lawyer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .lawyer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .lawyer-grid { grid-template-columns: 1fr; }
}
.lawyer-card-mini {
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    border-radius: var(--wf-radius);
    border: 1px solid var(--wf-border);
    background: #fff;
    transition: all 0.2s;
    color: var(--wf-text);
    text-decoration: none;
    text-align: center;
}
.lawyer-card-mini:hover {
    border-color: var(--wf-primary-light);
    box-shadow: var(--wf-shadow-hover);
    transform: translateY(-2px);
    color: var(--wf-text);
}
.lawyer-avatar-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
}
.lawyer-avatar-sm {
    width: 72px;
    height: 72px;
    border-radius: var(--wf-radius);
    object-fit: cover;
    border: 1px solid var(--wf-border);
}
.lawyer-verify {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 22px;
    height: 22px;
    background: var(--wf-gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid #fff;
}
.lawyer-mini-info { min-width: 0; }
.lawyer-mini-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}
.lawyer-mini-title {
    font-size: 12px;
    color: var(--wf-primary);
    margin-bottom: 4px;
}
.lawyer-mini-firm {
    font-size: 12px;
    color: var(--wf-text-muted);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lawyer-mini-firm i { font-size: 11px; margin-right: 2px; }
.lawyer-mini-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    color: var(--wf-text-muted);
    margin-bottom: 12px;
}
.lawyer-mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 18px;
    border-radius: var(--wf-radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--wf-primary);
    border: 1px solid var(--wf-primary);
    background: #fff;
    transition: all 0.2s;
}
.lawyer-card-mini:hover .lawyer-mini-btn {
    background: var(--wf-primary);
    color: #fff;
}

/* ============================================================
   ⑭ 首页 — 推荐律所(4列名片卡)
   ============================================================ */
.lawfirm-section { background: #fff; }
.lawfirm-card {
    text-align: center;
    padding: 28px 16px;
    border-radius: var(--wf-radius);
    border: 1px solid var(--wf-border);
    background: #fff;
    transition: all 0.2s ease;
    color: var(--wf-text);
    text-decoration: none;
    display: block;
    height: 100%;
}
.lawfirm-card:hover {
    border-color: var(--wf-primary-light);
    box-shadow: var(--wf-shadow-hover);
    transform: translateY(-2px);
    color: var(--wf-text);
}
.lawfirm-logo-wrap {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    border-radius: var(--wf-radius);
    overflow: hidden;
    background: var(--wf-primary-soft);
    border: 1px solid var(--wf-border);
}
.lawfirm-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.lawfirm-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.lawfirm-slogan { font-size: 12px; color: var(--wf-gold-dark); margin-bottom: 8px; line-height: 1.4; }
.lawfirm-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 6px;
}
.lawfirm-meta span { font-size: 11px; color: var(--wf-text-muted); }
.lawfirm-addr { font-size: 12px; color: var(--wf-text-muted); margin-bottom: 10px; }
.lawfirm-enter { font-size: 12px; color: var(--wf-primary); font-weight: 500; }

/* ============================================================
   ⑮ 首页 — 法律知识库(文章列表 + 热门TOP10)
   ============================================================ */
.knowledge-section { background: var(--wf-bg); }
.article-list { display: flex; flex-direction: column; }
.article-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--wf-border-light);
    transition: background 0.15s;
}
.article-item:last-child { border-bottom: none; }
.article-item:hover { background: var(--wf-bg); }
.article-item a { text-decoration: none; }
.article-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--wf-text);
    transition: color 0.15s;
}
.article-item a:hover h4 { color: var(--wf-primary); }
.article-summary {
    font-size: 13px;
    color: var(--wf-text-muted);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-meta {
    font-size: 12px;
    color: var(--wf-text-muted);
    display: flex;
    gap: 10px;
    align-items: center;
}
.hot-rank-card { padding: 24px; }
.hot-rank-list { list-style: none; padding: 0; margin: 0; }
.hot-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--wf-border-light);
}
.hot-rank-item:last-child { border-bottom: none; }
.rank-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    font-size: 12px;
    font-weight: 700;
    color: var(--wf-text-muted);
    background: var(--wf-bg);
    border-radius: 4px;
    font-family: var(--wf-font-serif);
}
.hot-rank-item.top .rank-num { background: var(--wf-gold); color: #fff; }
.rank-title {
    font-size: 13px;
    color: var(--wf-text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}
.rank-title:hover { color: var(--wf-primary); }

/* ============================================================
   ⑯ 首页 — 案件委托(横向卡片行)
   ============================================================ */
.entrust-section { background: #fff; }
.entrust-list-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.entrust-item-card {
    display: block;
    padding: 20px;
    border-radius: var(--wf-radius);
    border: 1px solid var(--wf-border);
    background: #fff;
    transition: all 0.2s;
    color: var(--wf-text);
    text-decoration: none;
}
.entrust-item-card:hover {
    border-color: var(--wf-primary-light);
    box-shadow: var(--wf-shadow);
    transform: translateY(-2px);
    color: var(--wf-text);
}
.entrust-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.entrust-badge {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}
.entrust-badge.urgent { background: rgba(192, 57, 43, 0.1); color: var(--wf-danger); }
.entrust-badge.recommend { background: var(--wf-gold-soft); color: var(--wf-gold-dark); }
.entrust-badge.normal { background: var(--wf-primary-soft); color: var(--wf-primary); }
.entrust-response { font-size: 12px; color: var(--wf-text-muted); }
.entrust-item-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.entrust-item-card p {
    font-size: 13px;
    color: var(--wf-text-muted);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.entrust-meta { font-size: 12px; color: var(--wf-text-muted); }

/* ============================================================
   ⑰ 首页 — 律师排行榜(双栏,规整表格感)
   ============================================================ */
.ranking-section { background: var(--wf-bg); }
.rank-card { padding: 24px; }
.rank-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--wf-border-light);
}
.rank-row:last-child { border-bottom: none; }
.rank-num-large {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 28px;
    font-size: 14px;
    font-weight: 700;
    color: var(--wf-text-muted);
    background: var(--wf-bg);
    border-radius: 50%;
    font-family: var(--wf-font-serif);
}
.rank-num-large.top { background: var(--wf-gold); color: #fff; }
.rank-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 15px; font-weight: 600; color: var(--wf-text); }
.rank-name:hover { color: var(--wf-primary); }
.rank-desc { font-size: 12px; color: var(--wf-text-muted); display: block; }

/* ============================================================
   ⑱ 首页 — 服务保障区(藏蓝底权威条)
   ============================================================ */
.guarantee-section {
    background: linear-gradient(135deg, var(--wf-primary-dark) 0%, var(--wf-primary) 100%);
    position: relative;
    overflow: hidden;
    padding: 56px 0;
}
.guarantee-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--wf-gold), transparent);
}
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
@media (max-width: 768px) {
    .guarantee-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.guarantee-item {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 16px 20px;
    position: relative;
}
.guarantee-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: rgba(184, 149, 74, 0.25);
}
@media (max-width: 768px) {
    .guarantee-item::after { display: none; }
}
.guarantee-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--wf-gold);
    border: 1px solid rgba(184, 149, 74, 0.25);
}
.guarantee-item h4 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.guarantee-item p { font-size: 13px; color: rgba(255, 255, 255, 0.55); line-height: 1.6; }

/* ============================================================
   ⑲ 首页 — 律师入驻 CTA 通栏(藏蓝渐变 + 金线收尾)
   ============================================================ */
.join-cta-section { padding: 56px 0; background: #fff; }
.join-cta-card {
    background: linear-gradient(135deg, var(--wf-primary) 0%, var(--wf-primary-dark) 100%);
    border-radius: var(--wf-radius);
    padding: 48px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    gap: 24px;
    position: relative;
    overflow: hidden;
}
.join-cta-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -5%;
    width: 320px; height: 320px;
    border: 1px solid rgba(184, 149, 74, 0.12);
    border-radius: 50%;
}
.join-cta-card::after {
    content: '';
    position: absolute;
    top: -30%; right: 10%;
    width: 200px; height: 200px;
    border: 1px solid rgba(184, 149, 74, 0.08);
    border-radius: 50%;
}
.join-cta-content { position: relative; z-index: 1; }
.join-cta-content h2 {
    font-family: var(--wf-font-serif);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}
.join-cta-content p {
    font-size: 14px;
    opacity: 0.75;
    line-height: 1.6;
    margin: 0;
}
.join-cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .join-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 20px;
    }
    .join-cta-content h2 { font-size: 20px; }
    .join-cta-actions { width: 100%; }
    .join-cta-actions .btn { flex: 1; }
}

/* ============================================================
   ⑳ 兼容组件 — 案例卡片
   ============================================================ */
.case-card {
    border-radius: var(--wf-radius);
    overflow: hidden;
    box-shadow: var(--wf-shadow);
    background: #fff;
    transition: transform 0.2s;
}
.case-card:hover { transform: translateY(-4px); }
.case-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.case-card .case-body {
    padding: 16px;
}
.case-card .case-body h4 {
    font-size: 16px;
    margin-bottom: 8px;
}
.case-card .case-body p {
    font-size: 13px;
    color: var(--wf-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ============================================================
   ㉑ 兼容组件 — 律师卡片
   ============================================================ */
.lawyer-card {
    text-align: center;
    padding: 24px;
    border-radius: var(--wf-radius-lg);
    border: 1px solid var(--wf-border);
    background: #fff;
    transition: all 0.2s;
}
.lawyer-card:hover {
    border-color: var(--wf-primary-light);
    box-shadow: var(--wf-shadow);
}
.lawyer-card img.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}
.lawyer-card .name {
    font-size: 16px;
    font-weight: 600;
}
.lawyer-card .title {
    font-size: 13px;
    color: var(--wf-text-muted);
}

/* ============================================================
   ㉒ 兼容组件 — 分类图标卡片
   ============================================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 768px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}
.category-card {
    text-align: center;
    padding: 24px 12px;
    border-radius: var(--wf-radius);
    border: 1px solid var(--wf-border);
    background: #fff;
    transition: all 0.2s;
}
.category-card:hover {
    border-color: var(--wf-primary);
    box-shadow: var(--wf-shadow);
    transform: translateY(-2px);
}
.category-card .icon {
    font-size: 32px;
    color: var(--wf-primary);
    margin-bottom: 8px;
}
.category-card .name {
    font-size: 14px;
    font-weight: 500;
}

/* ============================================================
   ㉓ 兼容组件 — 标签云
   ============================================================ */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-cloud a {
    padding: 4px 12px;
    background: var(--wf-bg);
    border: 1px solid var(--wf-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--wf-text-muted);
    transition: all 0.15s;
}
.tag-cloud a:hover {
    background: var(--wf-primary);
    color: #fff;
    border-color: var(--wf-primary);
}

/* ============================================================
   ㉔ 兼容组件 — Hero 轮播
   ============================================================ */
.hero-banner {
    position: relative;
    max-height: 400px;
    overflow: hidden;
}
.hero-banner .swiper-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
@media (max-width: 768px) {
    .hero-banner .swiper-slide img { height: 200px; }
}
.hero-banner .hero-cta {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
@media (max-width: 768px) {
    .hero-banner .hero-cta { bottom: 20px; }
}

/* ============================================================
   ㉕ 法律工具箱页面
   ============================================================ */
.tool-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 768px) {
    .tool-list-grid { grid-template-columns: 1fr; }
}
.tool-list-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: var(--wf-radius-lg);
    border: 1px solid var(--wf-border);
    background: #fff;
    transition: all 0.2s;
    color: var(--wf-text);
    text-decoration: none;
}
.tool-list-card:hover {
    border-color: var(--wf-primary);
    box-shadow: var(--wf-shadow-hover);
    transform: translateY(-2px);
    color: var(--wf-primary);
}
.tool-list-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--wf-radius);
    background: var(--wf-primary-soft);
    color: var(--wf-primary);
    font-size: 28px;
}
.tool-list-body {
    flex: 1;
    min-width: 0;
}
.tool-list-body h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    color: inherit;
}
.tool-list-body p {
    font-size: 13px;
    color: var(--wf-text-muted);
    margin: 0;
}
.tool-list-arrow {
    flex-shrink: 0;
    color: var(--wf-text-muted);
    font-size: 18px;
}

/* 工具表单 */
.tool-form {
    max-width: 600px;
}
.tool-form .form-label {
    color: var(--wf-text);
}
.tool-form .form-text {
    color: var(--wf-text-muted);
    font-size: 13px;
}

/* 工具结果 */
.tool-result {
    margin-top: 24px;
    padding: 24px;
    background: var(--wf-bg);
    border-radius: var(--wf-radius-lg);
    border: 1px solid var(--wf-border);
}
.tool-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--wf-border);
    font-size: 15px;
}
.tool-result-row:last-child { border-bottom: none; }
.tool-result-row strong {
    font-size: 18px;
    color: var(--wf-primary);
}
.tool-result-row.total {
    padding-top: 14px;
    border-top: 2px solid var(--wf-border);
    border-bottom: none;
    font-weight: 700;
}
.tool-result-row.total strong {
    color: var(--wf-gold);
}
.tool-result-note {
    margin-top: 16px;
    padding: 14px;
    background: var(--wf-primary-soft);
    border-radius: var(--wf-radius);
    font-size: 13px;
    color: var(--wf-text-muted);
}
.tool-result-note i {
    color: var(--wf-primary);
    margin-right: 4px;
}
.tool-result-note p {
    margin-bottom: 4px;
}
.tool-result-pass,
.tool-result-fail {
    text-align: center;
    padding: 20px 0;
}
.tool-result-pass i {
    font-size: 48px;
    color: var(--wf-success);
}
.tool-result-fail i {
    font-size: 48px;
    color: var(--wf-danger);
}
.tool-result-pass h3,
.tool-result-fail h3 {
    margin: 12px 0 4px;
    font-size: 18px;
}
.tool-issues {
    margin-top: 16px;
}
.tool-issues ul {
    padding-left: 20px;
}
.tool-issues li {
    padding: 6px 0;
    color: var(--wf-text);
}

/* 单选按钮组 */
.tool-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tool-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
}
.tool-radio-group label:hover {
    border-color: var(--wf-primary);
    background: var(--wf-primary-soft);
}
.tool-radio-group input[type="radio"] {
    margin: 0;
    accent-color: var(--wf-primary);
}

/* ============================================================
   ㉖ 认证页 / 入驻页
   ============================================================ */
.auth-page,
.join-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    background: linear-gradient(135deg, var(--wf-primary-soft) 0%, var(--wf-bg) 50%, var(--wf-gold-soft) 100%);
}

.auth-card,
.join-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: var(--wf-radius-xl);
    box-shadow: var(--wf-shadow-lg);
    padding: 36px 40px;
}
.join-card {
    max-width: 720px;
    padding: 40px 48px;
}
.join-card-sm {
    max-width: 480px;
    padding: 36px 40px;
}
.section-optional {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 400;
    color: var(--wf-text-light);
}

.auth-header,
.join-header {
    text-align: center;
    margin-bottom: 24px;
}
.auth-header h1,
.join-header h1 {
    font-family: var(--wf-font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--wf-primary);
    margin: 0 0 8px;
    letter-spacing: 0.03em;
}
.auth-header p,
.join-header p {
    font-size: 14px;
    color: var(--wf-text-light);
    margin: 0;
}

/* 标签切换 */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--wf-border);
    margin-bottom: 24px;
}
.auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
    color: var(--wf-text-light);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.auth-tabs a:hover {
    color: var(--wf-primary);
}
.auth-tabs a.active {
    color: var(--wf-primary);
    border-bottom-color: var(--wf-primary);
    font-weight: 600;
}

/* 表单字段 */
.auth-form,
.join-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.auth-field,
.join-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.auth-field label,
.join-field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--wf-text);
}
.auth-field label .required,
.join-field label .required {
    color: var(--wf-danger);
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap > i.bi {
    position: absolute;
    left: 14px;
    font-size: 17px;
    color: var(--wf-text-light);
    z-index: 1;
}
.input-wrap input,
.input-wrap select,
.input-wrap textarea {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.input-wrap textarea {
    padding-left: 14px;
    resize: vertical;
    min-height: 80px;
}
.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
    outline: none;
    border-color: var(--wf-primary);
    box-shadow: 0 0 0 3px rgba(13, 42, 92, 0.08);
}

/* 双列布局 */
.join-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* 选项行 */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--wf-text-light);
    cursor: pointer;
}
.checkbox-label input {
    margin: 0;
    accent-color: var(--wf-primary);
}

/* 验证码输入组 */
.input-wrap-code {
    gap: 8px;
}
.input-wrap-code > input {
    flex: 1;
    min-width: 0;
}
.btn-send-code {
    flex-shrink: 0;
    padding: 11px 16px;
    border: 1px solid var(--wf-primary);
    background: #fff;
    color: var(--wf-primary);
    border-radius: var(--wf-radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.btn-send-code:hover:not(:disabled) {
    background: var(--wf-primary);
    color: #fff;
}
.btn-send-code:disabled {
    border-color: var(--wf-border);
    color: var(--wf-text-light);
    cursor: not-allowed;
    background: var(--wf-bg);
}

/* 提交按钮 */
.btn-auth-submit,
.btn-join-submit {
    width: 100%;
    padding: 13px;
    background: var(--wf-primary);
    color: #fff;
    border: none;
    border-radius: var(--wf-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}
.btn-auth-submit:hover,
.btn-join-submit:hover {
    background: var(--wf-primary-dark);
}
.btn-auth-submit:active,
.btn-join-submit:active {
    transform: scale(0.99);
}

/* 微信登录按钮 */
.btn-wechat-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #07c160;
    color: #fff;
    border: none;
    border-radius: var(--wf-radius);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 10px;
}
.btn-wechat-login:hover {
    background: #06ad56;
    color: #fff;
    text-decoration: none;
}
.btn-wechat-login:active {
    transform: scale(0.99);
}
.btn-wechat-login i.bi {
    font-size: 20px;
}

/* 分隔线 */
.auth-divider {
    text-align: center;
    margin: 24px 0 16px;
    position: relative;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--wf-border);
}
.auth-divider span {
    position: relative;
    background: #fff;
    padding: 0 16px;
    font-size: 13px;
    color: var(--wf-text-light);
}

/* 其他身份入口 */
.auth-other-roles {
    display: flex;
    gap: 12px;
}
.role-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius-lg);
    text-decoration: none;
    color: var(--wf-text);
    font-size: 14px;
    transition: all 0.2s;
}
.role-link:hover {
    border-color: var(--wf-primary);
    background: var(--wf-primary-soft);
    color: var(--wf-primary);
}
.role-link i.bi {
    font-size: 24px;
}

/* 底部提示 */
.auth-footer-tip {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--wf-text-light);
}
.auth-footer-tip a {
    color: var(--wf-primary);
    text-decoration: none;
}
.auth-footer-tip a:hover {
    text-decoration: underline;
}
.auth-footer-tip .sep {
    margin: 0 8px;
    color: var(--wf-border);
}

/* 入驻页区块标题 */
.join-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--wf-text);
    margin: 28px 0 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--wf-border);
}
.join-section-title:first-child {
    margin-top: 0;
}
.join-tip {
    font-size: 13px;
    color: var(--wf-text-light);
    margin-bottom: 12px;
}

/* 擅长领域多选卡片 */
.join-checkbox-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.checkbox-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
}
.checkbox-card:hover {
    border-color: var(--wf-primary);
    background: var(--wf-primary-soft);
}
.checkbox-card input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--wf-primary);
}
.checkbox-card input[type="checkbox"]:checked + span {
    color: var(--wf-primary);
    font-weight: 600;
}

/* 响应式 */
@media (max-width: 576px) {
    .auth-card,
    .join-card {
        padding: 28px 20px;
    }
    .join-row {
        grid-template-columns: 1fr;
    }
    .join-checkbox-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   ㉗ 律师/律所展示中心 (profile)
   ============================================================ */

/* 头部横幅 */
.profile-hero {
    background: linear-gradient(135deg, var(--wf-primary) 0%, var(--wf-primary-light) 50%, var(--wf-primary-dark) 100%);
    color: #fff;
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}
.profile-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}
.profile-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--wf-gold) 30%, var(--wf-gold) 70%, transparent);
}
.profile-hero-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 1;
}
.profile-avatar {
    position: relative;
    flex-shrink: 0;
}
.profile-avatar img,
.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}
.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    font-size: 56px;
}
.verified-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: var(--wf-gold);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid var(--wf-primary-dark);
}
.profile-hero-info {
    flex: 1;
    min-width: 0;
}
.profile-hero-info h1 {
    font-family: var(--wf-font-serif);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: 0.02em;
}
.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.meta-tag {
    background: rgba(255, 255, 255, 0.12);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}
.meta-tag a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}
.meta-tag a:hover {
    text-decoration: underline;
}
.profile-slogan {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 14px;
    font-style: italic;
}
.profile-stats {
    display: flex;
    gap: 28px;
}
.profile-stats .stat-item {
    display: flex;
    flex-direction: column;
}
.profile-stats .stat-item strong {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    font-family: var(--wf-font-serif);
}
.profile-stats .stat-item span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}
.profile-hero-actions {
    flex-shrink: 0;
    text-align: center;
}
.profile-hero-actions .btn {
    white-space: nowrap;
}
.consult-fee {
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* 律所头部横幅 */
.firm-hero {
    background: linear-gradient(135deg, var(--wf-primary-dark) 0%, var(--wf-primary) 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}
.firm-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--wf-gold) 30%, var(--wf-gold) 70%, transparent);
    z-index: 2;
}
.firm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 30, 68, 0.88) 0%, rgba(13, 42, 92, 0.75) 100%);
}
.firm-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
}
.firm-logo-box img,
.firm-logo-placeholder-lg {
    width: 100px;
    height: 100px;
    border-radius: var(--wf-radius-lg);
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}
.firm-logo-placeholder-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: rgba(255, 255, 255, 0.5);
}
.firm-hero-info {
    flex: 1;
    min-width: 0;
}
.firm-hero-info h1 {
    font-family: var(--wf-font-serif);
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: 0.02em;
}
.firm-slogan {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 12px;
}
.firm-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
}
.firm-meta i {
    margin-right: 4px;
    color: var(--wf-gold);
}
.firm-stats {
    display: flex;
    gap: 28px;
}
.firm-stats .stat-item {
    display: flex;
    flex-direction: column;
}
.firm-stats .stat-item strong {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--wf-font-serif);
}
.firm-stats .stat-item span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}
.firm-hero-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== 律师详情页头部横幅（律师版，对照 firm-hero，圆形头像+认证勾+咨询费） ===== */
.lawyer-hero {
    background: linear-gradient(135deg, var(--wf-primary-dark) 0%, var(--wf-primary) 100%);
    color: #fff;
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}
.lawyer-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--wf-gold) 30%, var(--wf-gold) 70%, transparent);
    z-index: 2;
}
.lawyer-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 30, 68, 0.88) 0%, rgba(13, 42, 92, 0.75) 100%);
}
.lawyer-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
}
.lawyer-avatar-box {
    position: relative;
    flex-shrink: 0;
}
.lawyer-avatar-box img,
.lawyer-avatar-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.25);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}
.lawyer-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.5);
}
.lawyer-verified {
    position: absolute;
    right: -2px;
    bottom: -2px;
    background: #fff;
    color: var(--wf-success, #22c55e);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.lawyer-hero-info {
    flex: 1;
    min-width: 0;
}
.lawyer-hero-info h1 {
    font-family: var(--wf-font-serif);
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.lawyer-title-suffix {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}
.lawyer-job-title {
    display: inline-block;
    padding: 2px 10px;
    background: var(--wf-gold);
    color: #fff;
    border-radius: var(--wf-radius-sm);
    font-size: 13px;
    font-weight: 500;
}
.lawyer-slogan {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 12px;
}
.lawyer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
}
.lawyer-meta i {
    margin-right: 4px;
    color: var(--wf-gold);
}
.lawyer-meta a {
    color: rgba(255, 255, 255, 0.85);
}
.lawyer-meta a:hover {
    color: var(--wf-gold);
}
.lawyer-stats {
    display: flex;
    gap: 28px;
}
.lawyer-stats .stat-item {
    display: flex;
    flex-direction: column;
}
.lawyer-stats .stat-item strong {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--wf-font-serif);
}
.lawyer-stats .stat-item span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}
.lawyer-hero-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lawyer-fee {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    background: var(--wf-gold);
    color: #fff;
    border-radius: var(--wf-radius-sm);
    font-size: 13px;
}
/* 律师名片卡圆形头像（aside-card 内） */
.lawyer-avatar-round {
    border-radius: 50% !important;
    width: 88px !important;
    height: 88px !important;
    margin: 0 auto;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.25);
}
/* 个人简介-执业资质平铺信息（律所无此项，律师独有） */
.info-list-flat {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.info-flat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--wf-bg-soft, #f5f7fa);
    border-radius: var(--wf-radius);
    font-size: 14px;
}
.info-flat-label {
    color: var(--wf-text-muted);
}
.info-flat-value {
    color: var(--wf-text);
    font-weight: 500;
    font-family: var(--wf-font-serif);
}
/* 履历列表（教育背景/工作经历，律师独有，对照 honor-list 风格） */
.credential-list {
    margin-top: 8px;
}
.credential-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--wf-border);
}
.credential-item:last-child {
    border-bottom: none;
}
.credential-year {
    flex-shrink: 0;
    width: 56px;
    color: var(--wf-primary);
    font-weight: 600;
    font-family: var(--wf-font-serif);
}
.credential-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.credential-main {
    color: var(--wf-text);
    font-weight: 500;
}
.credential-sub {
    color: var(--wf-text-muted);
    font-size: 13px;
}

/* 主体布局 */
.profile-body,
.firm-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    padding: 24px 0 48px;
}
.profile-main,
.firm-main {
    min-width: 0;
}

/* 区块 */
.profile-section {
    background: #fff;
    border-radius: var(--wf-radius-lg);
    box-shadow: var(--wf-shadow);
    padding: 24px;
    margin-bottom: 20px;
}
.profile-section .section-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--wf-text);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--wf-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-section .section-title i {
    color: var(--wf-primary);
    font-size: 18px;
}

/* 简介 */
.profile-bio {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
}

/* 擅长领域标签 */
.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.expertise-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--wf-primary-soft);
    color: var(--wf-primary);
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.expertise-tag:hover {
    background: var(--wf-primary);
    color: #fff;
}
.expertise-tag-static {
    cursor: default;
}
.expertise-tag-static:hover {
    background: var(--wf-primary-soft);
    color: var(--wf-primary);
}

/* 时间线 */
.timeline-list {
    position: relative;
    padding-left: 20px;
}
.timeline-list::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--wf-border);
}
.timeline-item {
    position: relative;
    padding-bottom: 20px;
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: -20px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--wf-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--wf-primary);
}
.timeline-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--wf-text);
}
.timeline-content p {
    font-size: 13px;
    color: var(--wf-text-muted);
    margin: 0;
}

/* 荣誉 */
.honor-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.honor-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(90deg, var(--wf-gold-soft), transparent);
    border-radius: var(--wf-radius);
    border-left: 3px solid var(--wf-gold);
}
.honor-item i {
    color: var(--wf-gold);
    font-size: 18px;
    flex-shrink: 0;
}
.honor-item span {
    font-size: 14px;
    color: var(--wf-text);
}
.honor-item em {
    font-style: normal;
    font-size: 12px;
    color: var(--wf-text-muted);
    margin-left: 8px;
}

/* 案例卡片 */
.case-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.case-card {
    padding: 16px;
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius-lg);
    transition: box-shadow 0.2s;
}
.case-card:hover {
    box-shadow: var(--wf-shadow-hover);
}
.case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.case-header h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: var(--wf-text);
}
.case-year {
    font-size: 13px;
    color: var(--wf-text-muted);
    white-space: nowrap;
    margin-left: 12px;
}
.case-summary {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 8px;
}
.case-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
}
.case-role {
    color: var(--wf-text-muted);
}
.case-result {
    color: var(--wf-success);
    font-weight: 500;
}

/* 回答列表 */
.answer-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.answer-item {
    padding: 16px;
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius-lg);
}
.answer-q {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}
.answer-q a {
    color: var(--wf-text);
    text-decoration: none;
}
.answer-q a:hover {
    color: var(--wf-primary);
}
.best-badge {
    display: inline-block;
    background: var(--wf-gold-soft);
    color: var(--wf-gold-dark);
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}
.answer-content {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 8px;
}
.answer-time {
    font-size: 12px;
    color: var(--wf-text-muted);
}

/* 侧栏 */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-card {
    background: #fff;
    border-radius: var(--wf-radius-lg);
    box-shadow: var(--wf-shadow);
    padding: 20px;
}
.sidebar-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--wf-text);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--wf-border);
}
.info-list {
    margin: 0;
}
.info-list dt {
    font-size: 13px;
    color: var(--wf-text-muted);
    margin-bottom: 2px;
}
.info-list dd {
    font-size: 14px;
    color: var(--wf-text);
    margin: 0 0 12px;
}
.info-list dd:last-child {
    margin-bottom: 0;
}
.info-list dd a {
    color: var(--wf-primary);
    text-decoration: none;
}
.firm-mini-card .firm-mini-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.firm-mini-card img,
.firm-logo-sm {
    width: 48px;
    height: 48px;
    border-radius: var(--wf-radius);
    object-fit: cover;
    flex-shrink: 0;
}
.firm-logo-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wf-bg);
    color: var(--wf-text-muted);
    font-size: 22px;
}
.firm-mini-link strong {
    display: block;
    font-size: 14px;
    color: var(--wf-text);
}
.firm-mini-link span {
    font-size: 12px;
    color: var(--wf-text-muted);
}
.signature-quote {
    font-size: 15px;
    color: var(--wf-text);
    border-left: 3px solid var(--wf-gold);
    padding: 8px 0 8px 14px;
    margin: 0;
    font-style: italic;
    line-height: 1.7;
}

/* 律师团队网格 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius-lg);
    text-decoration: none;
    transition: all 0.2s;
}
.team-card:hover {
    border-color: var(--wf-primary);
    box-shadow: var(--wf-shadow-hover);
    transform: translateY(-2px);
}
.team-avatar,
.team-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}
.team-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wf-bg);
    color: var(--wf-text-muted);
    font-size: 28px;
}
.team-info strong {
    display: block;
    font-size: 14px;
    color: var(--wf-text);
    margin-bottom: 2px;
}
.team-info span {
    display: block;
    font-size: 12px;
    color: var(--wf-text-muted);
}
.team-stats {
    font-size: 12px !important;
    color: var(--wf-text-muted) !important;
    margin-top: 2px;
}
.team-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
}
.team-tag {
    font-size: 11px;
    padding: 1px 8px;
    background: var(--wf-primary-soft);
    color: var(--wf-primary);
    border-radius: 10px;
}

/* 环境相册 */
.env-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.env-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--wf-radius);
}
.env-item p {
    font-size: 12px;
    color: var(--wf-text-muted);
    text-align: center;
    margin: 6px 0 0;
}

/* 团队简介(侧栏) */
.team-mini {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--wf-border);
}
.team-mini:last-child {
    border-bottom: none;
}
.team-mini img,
.team-avatar-placeholder-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.team-avatar-placeholder-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wf-bg);
    color: var(--wf-text-muted);
    font-size: 18px;
}
.team-mini strong {
    display: block;
    font-size: 13px;
    color: var(--wf-text);
}
.team-mini span {
    display: block;
    font-size: 12px;
    color: var(--wf-text-muted);
}
.team-mini em {
    font-style: normal;
    font-size: 12px;
    color: #6b7280;
    display: block;
}

/* 律所列表页占位 */
.firm-logo-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wf-bg);
    color: var(--wf-text-muted);
    font-size: 32px;
    border-radius: var(--wf-radius);
}

/* ============================================================
   ㉗-B 官网式左右结构 + 吸顶菜单 + 名片卡
   ============================================================ */

/* 吸顶导航条 */
.profile-subnav {
    background: #fff;
    border-bottom: 1px solid var(--wf-border);
    box-shadow: var(--wf-shadow-sm);
    position: sticky;
    top: 104px;           /* 门户页头 = 36px顶栏 + 68px主导航 */
    z-index: 1010;
}
.profile-subnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.profile-subnav-inner::-webkit-scrollbar {
    display: none;
}
.subnav-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 24px;
    font-family: var(--wf-font-serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--wf-text-muted);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.15s;
    cursor: pointer;
    border: none;
    background: none;
}
.subnav-link i {
    font-size: 17px;
}
.subnav-link:hover {
    color: var(--wf-primary);
}
.subnav-link.active {
    color: var(--wf-primary);
    font-weight: 600;
}
.subnav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--wf-primary), var(--wf-gold));
    border-radius: 3px 3px 0 0;
}

/* 左右结构布局 */
.profile-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}
.profile-content {
    min-width: 0;
}
.profile-content .profile-panel {
    display: none;
}
.profile-content .profile-panel.active {
    display: block;
    animation: profilePanelFade 0.25s ease;
}
@keyframes profilePanelFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 面板内空状态 */
.panel-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--wf-text-light);
}
.panel-empty i {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
    color: var(--wf-border);
}
.panel-empty p {
    font-size: 14px;
    margin: 0;
}

/* ===== 右侧名片卡 ===== */
.profile-aside {
    position: sticky;
    top: 120px;
}
.aside-card {
    background: #fff;
    border-radius: var(--wf-radius-xl);
    box-shadow: var(--wf-shadow-lg);
    overflow: hidden;
}
/* 名片卡头部 — 藏蓝渐变 */
.aside-card-hero {
    background: linear-gradient(135deg, var(--wf-primary) 0%, var(--wf-primary-dark) 100%);
    padding: 28px 20px 24px;
    text-align: center;
    position: relative;
}
.aside-card-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--wf-gold), transparent);
}
.aside-card-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
}
.aside-card-avatar-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.5);
}
.aside-card-name {
    font-family: var(--wf-font-serif);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: 0.02em;
}
.aside-card-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}
.aside-card-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--wf-gold);
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
    margin-top: 8px;
}
/* 名片卡信息区 */
.aside-card-body {
    padding: 20px;
}
.aside-card-body .info-list dt {
    font-size: 12px;
    color: var(--wf-text-muted);
    margin-bottom: 2px;
}
.aside-card-body .info-list dd {
    font-size: 14px;
    color: var(--wf-text);
    margin: 0 0 14px;
    font-weight: 500;
}
.aside-card-body .info-list dd:last-child {
    margin-bottom: 0;
}
.aside-card-body .info-list dd a {
    color: var(--wf-primary);
    text-decoration: none;
}
.aside-card-divider {
    height: 1px;
    background: var(--wf-border);
    margin: 16px 0;
}
/* 名片卡统计 */
.aside-card-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 20px;
    background: var(--wf-bg);
    border-top: 1px solid var(--wf-border-light);
}
.aside-card-stats .stat-item {
    text-align: center;
}
.aside-card-stats .stat-item strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    font-family: var(--wf-font-serif);
    color: var(--wf-primary);
    line-height: 1.2;
}
.aside-card-stats .stat-item span {
    font-size: 11px;
    color: var(--wf-text-muted);
}
/* 名片卡CTA */
.aside-card-actions {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.aside-card-actions .btn {
    width: 100%;
}
/* 名片卡格言 */
.aside-card-motto {
    margin: 0 20px 20px;
    padding: 14px 16px;
    background: var(--wf-gold-soft);
    border-radius: var(--wf-radius);
    border-left: 3px solid var(--wf-gold);
}
.aside-card-motto .motto-label {
    font-size: 11px;
    color: var(--wf-gold-dark);
    font-weight: 600;
    margin-bottom: 4px;
}
.aside-card-motto blockquote {
    margin: 0;
    font-size: 14px;
    font-style: italic;
    color: var(--wf-text);
    line-height: 1.6;
}
/* 名片卡中律所迷你卡 */
.aside-card .firm-mini-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 12px 16px;
    background: var(--wf-bg);
    border-radius: var(--wf-radius);
    margin: 0 20px 20px;
}
.aside-card .firm-mini-link img,
.aside-card .firm-logo-sm {
    width: 44px;
    height: 44px;
    border-radius: var(--wf-radius);
    object-fit: cover;
    flex-shrink: 0;
}
.aside-card .firm-logo-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--wf-text-muted);
    font-size: 20px;
}
.aside-card .firm-mini-link strong {
    display: block;
    font-size: 14px;
    color: var(--wf-text);
}
.aside-card .firm-mini-link span {
    font-size: 12px;
    color: var(--wf-text-muted);
}

/* 荣誉奖项 — 支持图片展示 */
.honor-item .honor-img {
    width: 56px;
    height: 56px;
    border-radius: var(--wf-radius);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--wf-border);
}
.honor-item .honor-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 文章/案例带缩略图列表 */
.article-thumb-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.article-thumb-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius-lg);
    text-decoration: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.article-thumb-card:hover {
    box-shadow: var(--wf-shadow-hover);
    border-color: var(--wf-primary-light);
}
.article-thumb-card .thumb {
    width: 120px;
    height: 80px;
    border-radius: var(--wf-radius);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--wf-bg);
}
.article-thumb-card .thumb-placeholder {
    width: 120px;
    height: 80px;
    border-radius: var(--wf-radius);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wf-primary-soft);
    color: var(--wf-primary-light);
    font-size: 28px;
}
.article-thumb-card .article-info {
    flex: 1;
    min-width: 0;
}
.article-thumb-card .article-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--wf-text);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-thumb-card:hover .article-title {
    color: var(--wf-primary);
}
.article-thumb-card .article-summary {
    font-size: 13px;
    color: var(--wf-text-muted);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}
.article-thumb-card .article-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--wf-text-light);
    flex-wrap: wrap;
}
.article-thumb-card .article-meta .author {
    color: var(--wf-primary-light);
    font-weight: 500;
}
.article-thumb-card .article-type-badge {
    display: inline-block;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 6px;
}
.article-type-badge.case {
    background: var(--wf-primary-soft);
    color: var(--wf-primary);
}
.article-type-badge.article {
    background: var(--wf-gold-soft);
    color: var(--wf-gold-dark);
}

/* 子区块标题（面板内多块时用） */
.subsection-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--wf-text);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--wf-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.subsection-title i {
    color: var(--wf-primary);
    font-size: 17px;
}
.subsection-title:not(:first-child) {
    margin-top: 28px;
}

/* profile 响应式 */
@media (max-width: 992px) {
    .profile-body,
    .firm-body {
        grid-template-columns: 1fr;
    }
    .profile-hero-inner,
    .firm-hero-inner {
        flex-wrap: wrap;
    }
    .profile-hero-actions,
    .firm-hero-actions,
    .lawyer-hero-actions {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .lawyer-hero-inner {
        flex-wrap: wrap;
    }
    /* 左右结构 → 上下结构，名片卡移到顶部 */
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .profile-aside {
        position: static;
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }
}
@media (max-width: 768px) {
    .profile-stats,
    .firm-stats,
    .lawyer-stats {
        gap: 16px;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .env-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    /* 吸顶导航：移动端顶栏隐藏，top 改为仅主导航高度 */
    .profile-subnav {
        top: 68px;
    }
    .subnav-link {
        padding: 14px 18px;
        font-size: 15px;
    }
    .article-thumb-card .thumb,
    .article-thumb-card .thumb-placeholder {
        width: 96px;
        height: 64px;
    }
}
@media (max-width: 576px) {
    .profile-hero,
    .firm-hero,
    .lawyer-hero {
        padding: 24px 0;
    }
    .profile-hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .profile-avatar img,
    .avatar-placeholder {
        width: 90px;
        height: 90px;
    }
    .profile-meta,
    .firm-meta,
    .lawyer-meta {
        justify-content: center;
    }
    .profile-stats {
        justify-content: center;
    }
    .firm-hero-inner,
    .lawyer-hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .lawyer-hero-info h1 {
        justify-content: center;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .env-gallery {
        grid-template-columns: 1fr;
    }
    .article-thumb-card {
        flex-direction: column;
    }
    .article-thumb-card .thumb,
    .article-thumb-card .thumb-placeholder {
        width: 100%;
        height: 140px;
    }
}

/* ============================================================
   ㉘ AI 法律咨询页面
   ============================================================ */

/* Hero 区 */
.ai-hero {
    background: linear-gradient(135deg, var(--wf-primary) 0%, var(--wf-primary-dark) 100%);
    color: #fff;
    padding: 56px 0 48px;
    position: relative;
    overflow: hidden;
}
.ai-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(184, 149, 74, 0.08);
    border-radius: 50%;
}
.ai-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: 0%;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(184, 149, 74, 0.06);
    border-radius: 50%;
}
.ai-hero-content {
    position: relative;
    z-index: 1;
}
.ai-hero-icon {
    font-size: 56px;
    margin-bottom: 16px;
    color: var(--wf-gold);
    opacity: 0.95;
}
.ai-hero-title {
    font-family: var(--wf-font-serif);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}
.ai-hero-subtitle {
    font-size: 16px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.6;
}
.ai-hero-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 对话区 */
.ai-chat-section {
    padding: 32px 0;
    background: var(--wf-bg);
}
.ai-chat-container {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--wf-radius-xl);
    box-shadow: var(--wf-shadow-lg);
    overflow: hidden;
}

/* 顶部状态栏 */
.ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--wf-border);
    background: var(--wf-bg);
}
.ai-chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--wf-text);
}
.ai-status-dot {
    width: 8px;
    height: 8px;
    background: var(--wf-success);
    border-radius: 50%;
    animation: ai-pulse 2s infinite;
}
@keyframes ai-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.ai-chat-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ai-remaining {
    font-size: 13px;
    color: var(--wf-text-muted);
}
.ai-remaining strong {
    color: var(--wf-primary);
}

/* 消息列表 */
.ai-chat-messages {
    min-height: 400px;
    max-height: 520px;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
}
.ai-chat-messages::-webkit-scrollbar {
    width: 6px;
}
.ai-chat-messages::-webkit-scrollbar-thumb {
    background: var(--wf-border);
    border-radius: 3px;
}

/* 欢迎引导 */
.ai-welcome {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.ai-welcome-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wf-primary), var(--wf-primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.ai-welcome-content {
    flex: 1;
}
.ai-welcome-content p {
    margin-bottom: 16px;
    color: #555;
    line-height: 1.6;
}
.ai-suggest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.ai-suggest-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius);
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-size: 14px;
    color: var(--wf-text);
}
.ai-suggest-card:hover {
    border-color: var(--wf-primary);
    background: var(--wf-primary-soft);
    transform: translateY(-1px);
}
.ai-suggest-card i {
    font-size: 20px;
    color: var(--wf-primary);
}

/* 消息气泡 */
.ai-message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.ai-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.ai-message-user .ai-message-avatar {
    background: var(--wf-bg);
    color: var(--wf-text-muted);
}
.ai-message-assistant .ai-message-avatar {
    background: linear-gradient(135deg, var(--wf-primary), var(--wf-primary-light));
    color: #fff;
}
.ai-message-body {
    flex: 1;
    min-width: 0;
}
.ai-message-name {
    font-size: 12px;
    color: var(--wf-text-light);
    margin-bottom: 4px;
}
.ai-message-text {
    padding: 12px 16px;
    border-radius: 4px 12px 12px 12px;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}
.ai-message-user .ai-message-text {
    background: var(--wf-primary-soft);
    color: var(--wf-primary-dark);
}
.ai-message-assistant .ai-message-text {
    background: var(--wf-bg);
    color: var(--wf-text);
}

/* 加载动画 */
.ai-typing {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.ai-typing-body {
    flex: 1;
}
.ai-typing-name {
    font-size: 12px;
    color: var(--wf-text-light);
    margin-bottom: 4px;
}
.ai-typing-dots {
    display: inline-flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--wf-bg);
    border-radius: 4px 12px 12px 12px;
}
.ai-typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--wf-text-light);
    border-radius: 50%;
    animation: ai-typing-bounce 1.4s infinite ease-in-out;
}
.ai-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes ai-typing-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* 输入区 */
.ai-chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid var(--wf-border);
    background: #fff;
}
.ai-chat-input-wrap {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.ai-chat-input {
    flex: 1;
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius);
    padding: 10px 14px;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    line-height: 1.5;
    max-height: 120px;
}
.ai-chat-input:focus {
    border-color: var(--wf-primary);
    box-shadow: 0 0 0 3px rgba(13, 42, 92, 0.08);
}
.ai-send-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--wf-radius);
    background: var(--wf-primary);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.ai-send-btn:hover:not(:disabled) {
    background: var(--wf-primary-dark);
    transform: translateY(-1px);
}
.ai-send-btn:disabled {
    background: var(--wf-border);
    cursor: not-allowed;
}
.ai-chat-input-tip {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--wf-text-light);
}

/* 功能介绍 */
.ai-features-section {
    padding: 56px 0;
    background: #fff;
}
.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.ai-feature-card {
    text-align: center;
    padding: 28px 16px;
}
.ai-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: var(--wf-radius-lg);
    background: var(--wf-primary-soft);
    color: var(--wf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.ai-feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.ai-feature-card p {
    font-size: 13px;
    color: var(--wf-text-muted);
    line-height: 1.6;
}

/* CTA 区 */
.ai-cta-section {
    padding: 32px 0 56px;
    background: var(--wf-bg);
}
.ai-cta-card {
    background: linear-gradient(135deg, var(--wf-primary), var(--wf-primary-dark));
    border-radius: var(--wf-radius-xl);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    gap: 24px;
    position: relative;
    overflow: hidden;
}
.ai-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(184, 149, 74, 0.1);
    border-radius: 50%;
}
.ai-cta-content {
    position: relative;
    z-index: 1;
}
.ai-cta-content h2 {
    font-family: var(--wf-font-serif);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.ai-cta-content p {
    opacity: 0.8;
    line-height: 1.6;
}
.ai-cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* AI 页面响应式 */
@media (max-width: 768px) {
    .ai-hero-title { font-size: 24px; }
    .ai-hero-subtitle { font-size: 14px; }
    .ai-hero-badges { gap: 8px; }
    .ai-badge { font-size: 12px; padding: 4px 12px; }
    .ai-suggest-grid { grid-template-columns: 1fr; }
    .ai-features-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
    }
    .ai-cta-actions { width: 100%; }
    .ai-cta-actions .btn { flex: 1; font-size: 14px; }
    .ai-chat-header { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 480px) {
    .ai-features-grid { grid-template-columns: 1fr; }
    .ai-message-avatar { width: 32px; height: 32px; font-size: 16px; }
}

/* ============================================================
 * profile-form.css — 个人中心资料编辑表单组件样式
 * ============================================================ */

/* fieldlist 动态行编辑器 */
.wf-fieldlist-items { margin-bottom: 0.5rem; }
.wf-fieldlist-row { margin-bottom: 0.5rem; }
.wf-fieldlist-row-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-end;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}
.wf-fieldlist-col { flex: 1; min-width: 120px; }
.wf-fieldlist-col-auto { flex: 0 0 auto; }
.wf-fieldlist-actions { padding-bottom: 0.25rem; }
.wf-fieldlist-row .form-label { margin-bottom: 0.15rem; }

/* taginput 标签输入 */
.wf-taginput-tags { min-height: 32px; margin-bottom: 0.5rem; }
.wf-tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    cursor: default;
}
.wf-tag-badge .bi-x-lg { font-size: 0.7rem; }

/* imagepicker 单图选择 */
.wf-imagepicker-preview {
    width: 120px;
    height: 120px;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
}
.wf-imagepicker-img { max-width: 100%; max-height: 100%; border-radius: 4px; }
.wf-imagepicker-placeholder {
    color: #adb5bd;
    text-align: center;
}
.wf-imagepicker-placeholder i { font-size: 1.8rem; display: block; margin-bottom: 0.25rem; }
.wf-imagepicker-placeholder span { font-size: 0.8rem; }

/* 头像选择器特化:圆形预览,突出是头像 */
.wf-avatar-picker .wf-imagepicker-preview {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border-style: solid;
    border-color: #e9ecef;
}
.wf-avatar-picker .wf-imagepicker-img { border-radius: 50%; object-fit: cover; }

/* 图片裁剪模态框(纯 canvas,不依赖第三方库) */
.wf-cropper-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}
.wf-cropper-modal {
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px 16px;
    width: auto;
    max-width: 92vw;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.wf-cropper-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    text-align: center;
}
.wf-cropper-stage {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}
.wf-cropper-img {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}
.wf-cropper-box {
    position: absolute;
    border: 2px solid #fff;
    /* 用超大 box-shadow 盖住裁剪框外的区域,形成遮罩 */
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
    cursor: move;
    box-sizing: border-box;
}
.wf-cropper-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 1px solid #0d6efd;
    border-radius: 50%;
    z-index: 2;
}
.wf-cropper-handle-tl { top: -7px; left: -7px; cursor: nwse-resize; }
.wf-cropper-handle-tr { top: -7px; right: -7px; cursor: nesw-resize; }
.wf-cropper-handle-bl { bottom: -7px; left: -7px; cursor: nesw-resize; }
.wf-cropper-handle-br { bottom: -7px; right: -7px; cursor: nwse-resize; }
.wf-croopper-hint {
    font-size: 12px;
    color: #868e96;
    text-align: center;
    margin: 12px 0;
}
.wf-croopper-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* honors 多图+描述 */
.wf-honors-item .card-body { background: #f8f9fa; }
.wf-honors-preview { border: 2px dashed #dee2e6; }
.wf-honors-preview:hover { border-color: #0d6efd; }

/* gallery 多图画廊 */
.wf-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.wf-gallery-item { position: relative; }
.wf-gallery-thumb { border: 1px solid #e9ecef; }
.wf-gallery-remove { opacity: 0.8; }
.wf-gallery-remove:hover { opacity: 1; }

/* 资料完善度进度条 */
.wf-completeness-bar {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    overflow: hidden;
}
.wf-completeness-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
    background: linear-gradient(90deg, #0d6efd, #6610f2);
}

/* 资料完善度 — 未填写字段徽章 */
.wf-missing-fields .badge {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.4rem 0.7rem;
}
.wf-missing-fields .badge .bi { font-size: 0.65rem; margin-right: 0.2rem; }

/* ============================================================
 * sticky.css — 内容置顶页样式
 * ============================================================ */
.wf-sticky-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}
.wf-sticky-option {
    cursor: pointer;
    margin: 0;
    position: relative;
}
.wf-sticky-option input[type=radio] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.wf-sticky-option-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem 0.75rem;
    text-align: center;
    transition: all 0.2s ease;
    background: #fff;
}
.wf-sticky-option:hover .wf-sticky-option-card {
    border-color: #adb5bd;
}
.wf-sticky-option.active .wf-sticky-option-card {
    border-color: #0d6efd;
    background: #f0f6ff;
    box-shadow: 0 0 0 1px #0d6efd inset;
}
.wf-sticky-days {
    font-size: 1.3rem;
    font-weight: 700;
    color: #212529;
}
.wf-sticky-option.active .wf-sticky-days { color: #0d6efd; }
.wf-sticky-cost {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}
.wf-sticky-content-info { border-left: 3px solid #0d6efd; }

/* ============================================================
 * member-center.css — 会员中心门户化重构样式
 * ============================================================ */
.wf-member-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.wf-member-stat {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 1.25rem 0.5rem;
    text-align: center;
    transition: transform 0.2s ease;
}
.wf-member-stat:hover { transform: translateY(-2px); }
.wf-member-stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}
.wf-member-stat-label {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.15rem;
}
.wf-member-nav .list-group-item {
    border: none;
    border-radius: 6px !important;
    margin-bottom: 0.25rem;
    padding: 0.6rem 0.9rem;
}
.wf-member-nav .list-group-item.active {
    background: #0d6efd;
    color: #fff;
}
.wf-member-nav .list-group-item:not(.active):hover {
    background: #f0f6ff;
    color: #0d6efd;
}

/* ============================================================
 * article-publish.css — 会员文章发布样式
 * ============================================================ */
.wf-publish-toolbar .btn-group button {
    font-size: 0.9rem;
}
.wf-publish-editor {
    min-height: 320px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.7;
    outline: none;
}
.wf-publish-editor:focus { border-color: #0d6efd; }
.wf-publish-editor:empty:before {
    content: attr(data-placeholder);
    color: #adb5bd;
}
.wf-publish-thumb {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

/* ===== 律师执业证AI识别区 (wizard) ===== */
.wf-license-zone {
    background: linear-gradient(135deg, #f0f6ff 0%, #f8fbff 100%);
    border: 1px solid #cfe0ff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 8px;
}
.wf-license-zone-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.wf-license-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
.wf-license-drop {
    position: relative;
    border: 2px dashed #9cc2ff;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.wf-license-drop-hover {
    border-color: #0d6efd;
    background: #f0f6ff;
}
.wf-license-drop-inner {
    text-align: center;
    padding: 28px 16px;
    color: #6c8db5;
}
.wf-license-drop-inner i {
    font-size: 38px;
    color: #0d6efd;
    opacity: .6;
    display: block;
    margin-bottom: 8px;
}
.wf-license-drop-text {
    font-size: 15px;
    font-weight: 600;
    color: #3a5a80;
    margin-bottom: 4px;
}
.wf-license-drop-hint {
    font-size: 12px;
    color: #9ab;
}
.wf-license-fileinfo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    color: #3a5a80;
}
.wf-license-fileinfo i {
    font-size: 22px;
    color: #0d6efd;
}
.wf-license-fileinfo span {
    font-weight: 600;
    flex: 1;
    min-width: 0;
}
.wf-license-result {
    margin-top: 10px;
}

/* 证件识别信息卡片(只读展示,用于个人知识库) */
.wf-license-meta {
    margin-top: 4px;
    padding: 12px 14px;
    background: #f6f8fa;
    border: 1px solid #e9ecef;
    border-left: 3px solid #0d6efd;
    border-radius: 8px;
}
.wf-license-meta-title {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}
.wf-license-meta-title i {
    color: #198754;
    margin-right: 4px;
}
.wf-license-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px 16px;
}
.wf-license-meta-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.wf-license-meta-label {
    font-size: 11px;
    color: #868e96;
    line-height: 1.4;
}
.wf-license-meta-value {
    font-size: 13px;
    color: #212529;
    font-weight: 500;
    word-break: break-all;
    line-height: 1.5;
}

/* AI建议字段标识(头衔/格言/简介由AI补齐时显示) */
.wf-ai-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: normal;
    color: #6f42c1;
    background: #f3e8ff;
    border-radius: 10px;
    vertical-align: middle;
}
.wf-ai-tag i {
    margin-right: 2px;
}
