/* ============================================================
   北京无畏律师事务所 · 官网
   Apple 设计语言（对标苹果官网视觉标准）
   - 毛玻璃吸顶导航（saturate + blur）
   - 白 / 浅灰基底，大留白克制
   - 近黑标题 + 深灰正文，系统字体优先
   - 朱砂红单一品牌色，仅点缀按钮与关键规则线
   - 大圆角卡片 + 克制阴影，胶囊按钮
   - 滚动渐显动画（reveal）+ 顶部进度条 + 返回顶部
   ============================================================ */

:root {
    /* 基底：白 / 浅灰（Apple 风） */
    --bg: #fbfbfd;
    --bg-gray: #f5f5f7;
    --bg-dark: #000000;
    --card: #ffffff;
    --paper: #ffffff;
    --line: rgba(0,0,0,0.08);
    --line-soft: rgba(0,0,0,0.05);
    --line-strong: rgba(0,0,0,0.12);

    /* 文字（Apple 风：近黑标题，深灰正文） */
    --ink: #1d1d1f;              /* 标题 */
    --ink-2: #424245;            /* 正文 */
    --gray: #86868b;             /* 次要文字 */
    --gray-2: #a1a1a6;

    /* 品牌色（朱砂红） */
    --brand: #9C1F1F;
    --brand-dark: #7A1818;
    --brand-tint: rgba(156,31,31,0.08);
    --accent: #9C1F1F;           /* 兼容别名 */
    --accent-dark: #7A1818;
    --accent-tint: rgba(156,31,31,0.08);

    /* 容器与节奏 */
    --container: 1024px;
    --gutter: 32px;
    --nav-h: 48px;
    --section-pad: 130px;

    /* 圆角（Apple：大圆角 + 胶囊） */
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 12px;
    --radius: 12px;

    /* 阴影（克制） */
    --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 10px 36px rgba(0,0,0,0.10);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text", "PingFang SC", "Helvetica Neue", Helvetica, Arial, "Noto Sans SC", sans-serif;
    background: var(--bg);
    color: var(--ink-2);
    font-size: 17px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ============================================================
   导航：Apple 风毛玻璃吸顶（saturate + blur）
   ============================================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--nav-h);
    background: rgba(251,251,253,0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
}
.nav-container {
    max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 22px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav-menu li { height: 100%; display: flex; align-items: center; }
.nav-link {
    display: inline-flex; align-items: center; height: 100%;
    padding: 0 14px; font-size: 14px; font-weight: 400; color: var(--ink-2);
    letter-spacing: -.01em; position: relative; transition: color .2s ease;
    white-space: nowrap;
}
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px;
    background: var(--accent);
}
.nav-cta { color: var(--accent); font-weight: 400; }
.nav-cta:hover { color: var(--accent-dark); }
.nav-cta::after { display: none; }
.nav-portal { color: var(--accent); font-weight: 400; display: inline-flex; align-items: center; gap: 2px; }
.nav-portal:hover { color: var(--accent-dark); }
.nav-portal::after { display: none; }

/* 汉堡菜单（移动端，无模糊） */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 0 8px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: all .25s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   Hero：Apple 风白→暖灰渐变，居中大标题 + 滚动提示
   ============================================================ */
.hero {
    position: relative;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F5 60%, #F4F1ED 100%);
    color: var(--ink); padding: 150px 0 130px; text-align: center;
    border-bottom: 1px solid var(--line);
}
.hero-container { position: relative; }
.hero-bg { display: none; }
.hero-tag {
    display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em;
    color: var(--accent); margin-bottom: 22px;
}
.hero-title { font-family: 'Noto Serif SC', serif; font-size: clamp(48px, 7vw, 84px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; margin-bottom: 0; color: var(--ink); }
.hero-title-main { display: none; }
.hero-title-sub { display: block; font-family: 'Noto Serif SC', serif; font-size: clamp(44px, 6.6vw, 80px); font-weight: 800; letter-spacing: .02em; color: var(--ink); }
.hero-sub-en { display: block; margin-top: 22px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Noto Sans SC", sans-serif; font-size: clamp(14px, 1.8vw, 20px); font-weight: 500; letter-spacing: .18em; color: var(--brand); text-transform: uppercase; }
.hero-divider {
    width: 56px; height: 3px; background: var(--brand);
    margin: 38px auto 32px; border-radius: 3px;
}
.hero-desc {
    max-width: 660px; margin: 0 auto; font-size: 19px; font-weight: 400;
    color: var(--ink-2); line-height: 1.55; letter-spacing: -.01em;
}
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.hero-visual { display: none; }
.hero-scroll {
    position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 12px; color: var(--gray); letter-spacing: .1em;
}
.hero-scroll .scroll-dot {
    width: 22px; height: 36px; border: 1.5px solid var(--gray-2); border-radius: 12px;
    position: relative;
}
.hero-scroll .scroll-dot::after {
    content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 3px; height: 7px; border-radius: 3px; background: var(--gray-2);
    animation: heroScrollDot 1.6s ease-in-out infinite;
}
@keyframes heroScrollDot {
    0% { opacity: 0; transform: translate(-50%, 0); }
    40% { opacity: 1; }
    80% { opacity: 0; transform: translate(-50%, 12px); }
    100% { opacity: 0; }
}

/* ============================================================
   Section 通用
   ============================================================ */
.section { padding: var(--section-pad) 0; }
.section-gray { background: var(--bg-gray); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 72px; }
.section-tag {
    display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 4px;
    color: var(--accent); margin-bottom: 16px; text-transform: uppercase;
}
.section-title { font-family: 'Noto Serif SC', serif; font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 16px; color: var(--ink); }
.section-subtitle { font-size: 17px; font-weight: 400; color: var(--gray); line-height: 1.8; }

/* ============================================================
   按钮：Apple 风胶囊 + 朱砂红品牌色
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 26px; border-radius: 980px; font-size: 16px; font-weight: 400;
    border: 1px solid transparent; cursor: pointer; letter-spacing: -.01em;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--brand); background: var(--bg-gray); color: var(--brand-dark); }
.btn-full { width: 100%; }
.section-gray .btn-outline { color: var(--brand); border-color: var(--line-strong); }
.section-gray .btn-outline:hover { border-color: var(--brand); background: #fff; color: var(--brand-dark); }

/* ============================================================
   About：左右分栏，克制
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: center; }
.about-lead { font-size: 21px; font-weight: 500; line-height: 1.7; color: var(--ink); margin-bottom: 22px; letter-spacing: .2px; }
.about-content p { font-size: 16px; font-weight: 400; color: var(--ink-2); line-height: 2; margin-bottom: 15px; }
.about-stats { display: flex; gap: 48px; margin-top: 44px; flex-wrap: wrap; }
.stat-item { display: flex; align-items: baseline; gap: 6px; }
.stat-number { font-size: 38px; font-weight: 700; letter-spacing: -0.5px; color: var(--ink); line-height: 1; font-family: 'Noto Serif SC', serif; }
.stat-unit { font-size: 19px; font-weight: 600; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--gray); margin-left: 4px; }
.stat-desc { font-size: 15px; color: var(--gray); font-weight: 400; letter-spacing: .3px; white-space: nowrap; }
.about-image { display: flex; justify-content: center; }
.about-image-frame {
    width: 100%; max-width: 340px; aspect-ratio: 1; border-radius: var(--radius);
    background: linear-gradient(150deg, #ECEEF1, #DDE0E4);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line);
}
.about-image-content { display: flex; align-items: center; justify-content: center; }
.about-image-logo { width: 140px; height: auto; }
.about-image-text { font-size: 18px; color: var(--gray); font-weight: 400; letter-spacing: 2px; }

/* ============================================================
   业务领域：白卡片 + 发丝线，统一无大圆角无阴影，hover 极轻
   ============================================================ */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.practice-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 44px 36px 40px; transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
    box-shadow: var(--shadow-card);
}
.practice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--line-strong); }
.practice-icon {
    width: 48px; height: 48px; border-radius: var(--radius-sm); margin-bottom: 24px;
    background: var(--accent-tint); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
}
.practice-icon svg { width: 24px; height: 24px; }
.practice-title { font-size: 20px; font-weight: 600; margin-bottom: 12px; color: var(--ink); letter-spacing: .2px; }
.practice-desc { font-size: 14.5px; font-weight: 400; line-height: 1.9; color: var(--gray); }

/* ============================================================
   服务理念：编号卡，发丝线
   ============================================================ */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-item {
    background: var(--card); border-radius: var(--radius-lg);
    padding: 40px 30px; border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
    box-shadow: var(--shadow-card);
}
.value-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--line-strong); }
.value-number {
    font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--accent); margin-bottom: 20px;
    font-variant-numeric: tabular-nums; font-family: 'Noto Serif SC', serif;
}
.value-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.value-item p { font-size: 14px; font-weight: 400; color: var(--gray); line-height: 1.85; }
.value-icon {
    width: 42px; height: 42px; border-radius: var(--radius-sm); margin-bottom: 18px;
    background: var(--accent-tint); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
}
.value-icon svg { width: 22px; height: 22px; }

/* ============================================================
   专业团队：律师卡片网格（头像统一裁切）
   ============================================================ */
.team-intro { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.team-lead { font-size: 21px; font-weight: 500; color: var(--ink); line-height: 1.7; margin-bottom: 20px; letter-spacing: .2px; }
.team-intro p { font-size: 16px; font-weight: 400; color: var(--ink-2); line-height: 1.85; }
.team-lawyers {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
    margin-top: 56px;
}
.team-lawyer-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 34px 22px 30px; text-align: center;
    display: flex; flex-direction: column; align-items: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
    box-shadow: var(--shadow-card);
}
.team-lawyer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--line-strong); }
.team-lawyer-photo-wrap {
    width: 132px; height: 166px; border-radius: var(--radius-sm); overflow: hidden;
    margin-bottom: 18px; background: linear-gradient(160deg, #ECEEF1, #DDE0E4);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.team-lawyer-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.team-lawyer-photo-text { color: #C4C9CF; font-size: 40px; font-weight: 600; font-family: 'Noto Serif SC', serif; }
.team-lawyer-name { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: .2px; }
.team-lawyer-title {
    display: inline-block; font-size: 12px; color: var(--accent); background: var(--accent-tint);
    padding: 3px 12px; border-radius: 980px; margin-bottom: 12px;
}
.team-lawyer-area { font-size: 12px; color: var(--gray); line-height: 1.6; letter-spacing: .3px; }
.team-more { text-align: center; margin-top: 48px; }
.team-more .btn-outline { color: var(--ink); border-color: var(--line); }
.team-more .btn-outline:hover { border-color: var(--ink); background: var(--bg-gray); }
.team-features { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 40px; }
.team-feature { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.feature-marker { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   最新动态（文章卡）
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.article-card {
    background: var(--card); border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--line); display: block; transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
    box-shadow: var(--shadow-card);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--line-strong); }
.article-card-cover { width: 100%; height: 196px; overflow: hidden; background: var(--bg-gray); }
.article-card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.article-card-body { padding: 26px 28px 30px; }
.article-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.article-cat {
    display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
    padding: 4px 12px; border-radius: 980px;
}
.cat-research { background: #FCEBEB; color: var(--accent); }
.cat-case { background: #E8F1EC; color: #2E6E54; }
.cat-lawyer { background: #E9EEF6; color: #2B5CA8; }
.article-date { font-size: 12px; color: var(--gray-2); }
.article-card-title { font-size: 18px; font-weight: 600; line-height: 1.55; margin-bottom: 10px; color: var(--ink); letter-spacing: .2px; }
.article-card-summary {
    font-size: 14px; font-weight: 400; color: var(--gray); line-height: 1.85;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-author { font-size: 12px; color: var(--gray-2); margin-top: 10px; }
.loading-text { text-align: center; color: var(--gray-2); font-size: 15px; padding: 40px 0; grid-column: 1 / -1; }
.news-more { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.news-more .btn-outline { color: var(--ink); border-color: var(--line); }
.news-more .btn-outline:hover { border-color: var(--ink); background: var(--bg-gray); }

/* ============================================================
   联系我们
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-card {
    display: flex; gap: 18px; align-items: flex-start; padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.contact-card h3 { font-size: 15px; font-weight: 600; color: var(--accent); min-width: 90px; margin-top: 2px; }
.contact-card p { font-size: 14px; font-weight: 400; color: var(--ink-2); line-height: 1.85; }
.contact-link {
    font-size: 14px; font-weight: 400; line-height: 1.85;
    color: var(--ink-2); text-decoration: none;
    transition: color .2s ease, border-color .2s ease;
    border-bottom: 1px dashed rgba(0,0,0,0.12);
}
.contact-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.contact-link-tel, .contact-link-email, .contact-link-address { color: var(--ink-2); }
.contact-form-wrapper {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px;
    box-shadow: var(--shadow-card);
}
.contact-form label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 18px; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    font-size: 15px; font-family: inherit; transition: border-color .2s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--gray-2); }
.contact-form select { appearance: none; -webkit-appearance: none; }
.contact-form select option { color: var(--ink); background: #fff; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--accent); background: #fff;
}
.contact-form .btn-primary { width: 100%; margin-top: 6px; background: var(--accent); color: #fff; border: none; }
.contact-form .btn-primary:hover { background: var(--accent-dark); }
.form-note { text-align: center; font-size: 12px; color: var(--gray-2); margin-top: 16px; line-height: 1.7; }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success.show { display: block; }
.success-icon {
    width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 20px;
    background: var(--accent-tint); color: var(--accent); font-size: 28px;
    display: flex; align-items: center; justify-content: center;
}
.form-success h3 { color: var(--ink); font-size: 22px; margin-bottom: 10px; }
.form-success p { color: var(--gray); font-size: 14px; }

/* ============================================================
   Footer：Apple 风深色底
   ============================================================ */
.footer { background: var(--bg-dark); color: #d2d2d7; border-top: none; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 24px; }
.footer-logo { height: 20px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand { min-width: 0; }
.footer-tagline { font-size: 13px; color: #a1a1a6; line-height: 1.8; max-width: 240px; }
.footer-links h4, .footer-contact h4 { font-size: 12px; font-weight: 600; color: #f5f5f7; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { font-size: 13px; color: #a1a1a6; transition: color .2s ease; }
.footer-links ul li a:hover { color: #ffffff; }
.footer-contact p { font-size: 13px; color: #a1a1a6; margin-bottom: 8px; line-height: 1.7; }
.footer-link { color: #a1a1a6; text-decoration: none; transition: color .2s ease; }
.footer-link:hover { color: #ffffff; }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    font-size: 11px; color: #86868b;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-icp { display: flex; align-items: center; }
.footer-icp a { color: #86868b; transition: color .2s; }
.footer-icp a:hover { color: #d2d2d7; }

/* ============================================================
   子页面统一（列表页 / 详情页 / 团队页 / 案例页 / 媒体页）
   保留所有原类名，仅更新视觉令牌
   ============================================================ */
.page-hero { padding: 168px 0 72px; background: var(--bg); border-bottom: 1px solid var(--line); text-align: center; }
.page-hero-tag { font-size: 13px; font-weight: 600; letter-spacing: 4px; color: var(--brand); margin-bottom: 16px; }
.page-hero-title { font-family: 'Noto Serif SC', serif; font-size: clamp(34px, 5vw, 52px); font-weight: 800; color: var(--ink); margin-bottom: 14px; letter-spacing: -.01em; line-height: 1.2; }
.page-hero-desc { font-size: 18px; font-weight: 400; color: var(--gray); max-width: 680px; line-height: 1.6; margin: 0 auto; }

/* 分类筛选标签（胶囊） */
.filter-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }
.filter-tab {
    padding: 9px 22px; background: transparent; border: 1px solid var(--line); color: var(--gray);
    font-size: 14px; font-family: inherit; border-radius: 980px; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.filter-tab:hover { border-color: var(--ink); color: var(--ink); }
.filter-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 通用空状态 */
.empty-text { text-align: center; color: var(--gray-2); padding: 60px 0; font-size: 15px; }
.lawyers-section { padding: var(--section-pad) 0; }

/* ============ 文章列表页 ============ */
.article-list-section .container { max-width: var(--container); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-grid .article-card-body { padding: 24px 26px 26px; }
.article-list { max-width: 820px; margin: 0 auto; }
.article-list li { margin-bottom: 8px; }

/* ============ 文章详情页 ============ */
.article-detail { background: var(--bg); }
.article-detail-wrap { max-width: 760px; margin: 0 auto; }
.article-detail-header { padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.article-detail-title { font-size: clamp(28px, 4.5vw, 38px); font-weight: 700; color: var(--ink); line-height: 1.35; margin: 16px 0; letter-spacing: .3px; }
.article-detail-meta { display: flex; gap: 24px; font-size: 14px; color: var(--gray-2); margin-bottom: 20px; flex-wrap: wrap; }
.article-detail-summary { font-size: 16px; font-weight: 400; color: var(--ink-2); line-height: 1.85; border-left: 3px solid var(--accent); padding-left: 16px; }
.article-detail-body { font-size: 17px; line-height: 2; color: var(--ink-2); }
.article-p { margin-bottom: 24px; text-align: justify; }
.article-h2 { font-size: 25px; font-weight: 700; color: var(--ink); margin: 40px 0 20px; letter-spacing: .2px; }
.article-h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 32px 0 16px; }
.article-quote { border-left: 3px solid var(--accent); padding: 16px 24px; margin: 28px 0; background: var(--bg-gray); font-style: italic; color: var(--ink-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.article-list { margin: 20px 0 24px; padding-left: 24px; }
.article-list li { margin-bottom: 8px; }
.article-figure { margin: 32px 0; }
.article-figure img { width: 100%; border-radius: var(--radius-sm); }
.article-figure figcaption { text-align: center; font-size: 13px; color: var(--gray-2); margin-top: 12px; }
.article-source { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-source a { color: var(--accent); font-size: 14px; }
.article-source a:hover { text-decoration: underline; }
.article-pager { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-prev, .article-next { font-size: 14px; color: var(--gray); transition: color .2s ease; }
.article-prev:hover, .article-next:hover { color: var(--accent); }

/* ============ 律师团队页 ============ */
.lawyer-group { margin-bottom: 64px; }
.lawyer-group:last-child { margin-bottom: 0; }
.lawyer-group-title { font-size: 25px; font-weight: 700; color: var(--ink); padding-bottom: 16px; margin-bottom: 32px; border-bottom: 1px solid var(--line); position: relative; letter-spacing: .2px; }
.lawyer-group-title::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 80px; height: 2px; background: var(--accent); }
.lawyer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.lawyer-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 40px 24px 34px; text-align: center; transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
    box-shadow: var(--shadow-card);
}
.lawyer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--line-strong); }
.lawyer-photo-wrap { margin-bottom: 20px; }
.lawyer-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin: 0 auto; display: block; }
.lawyer-photo-text { background: linear-gradient(145deg, #B04949, #8E1F1F); color: #fff; font-size: 42px; font-weight: 700; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.lawyer-name { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: .2px; }
.lawyer-title { display: inline-block; font-size: 13px; color: var(--accent); background: var(--accent-tint); padding: 3px 14px; border-radius: 980px; margin-bottom: 14px; }
.lawyer-intro { font-size: 14px; font-weight: 400; color: var(--gray); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.lawyer-detail-link { font-size: 13px; color: var(--accent); }
.lawyer-detail-link:hover { text-decoration: underline; }

/* ============ 经典案例页 ============ */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 32px 30px; display: flex; flex-direction: column; gap: 14px; transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
    box-shadow: var(--shadow-card);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--line-strong); }
.case-card-top { display: flex; justify-content: space-between; align-items: center; }
.case-type { font-size: 12px; color: var(--accent); background: var(--accent-tint); padding: 3px 14px; border-radius: 980px; }
.case-date { font-size: 13px; color: var(--gray-2); }
.case-title { font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1.5; letter-spacing: .2px; }
.case-summary { font-size: 14px; font-weight: 400; color: var(--gray); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.case-card-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.case-result { font-size: 13px; font-weight: 600; padding: 3px 14px; border-radius: 980px; background: var(--bg-gray); color: var(--ink-2); }
.case-result-win { background: #E8F1EC; color: #2E6E54; }
.case-result-loss { background: #FCEBEB; color: #A32D2D; }
.case-detail-link { font-size: 13px; color: var(--accent); }
.case-detail-link:hover { text-decoration: underline; }

/* ============ 媒体中心页 ============ */
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.media-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 48px 36px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
    box-shadow: var(--shadow-card);
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--line-strong); }
.media-card-icon { width: 52px; height: 52px; color: var(--accent); }
.media-card-icon svg { width: 100%; height: 100%; }
.media-card-title { font-size: 23px; font-weight: 600; color: var(--ink); letter-spacing: .2px; }
.media-card-desc { font-size: 14px; font-weight: 400; color: var(--gray); line-height: 1.75; max-width: 300px; }
.media-qr { width: 180px; height: 180px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin: 8px 0; background: #fff; }
.media-qr img { width: 100%; height: 100%; object-fit: contain; }
.qr-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--gray-2); }

/* ============================================================
   滚动渐显动画 + 顶部进度条 + 返回顶部（Apple 风）
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.99);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
    will-change: opacity, transform;
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* 顶部滚动进度条 */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0;
    background: var(--brand);
    z-index: 1100;
    transition: width .1s linear;
}

/* 返回顶部漂浮按钮 */
.back-to-top {
    position: fixed; right: 26px; bottom: 26px; z-index: 1050;
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,0.82);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .2s ease;
    color: var(--ink-2);
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #fff; color: var(--brand); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
    .practice-grid, .values-grid, .news-grid, .article-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .team-lawyers, .lawyer-grid { grid-template-columns: repeat(3, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 44px; }
    .contact-grid { grid-template-columns: 1fr; gap: 44px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .section { padding: 96px 0; }
}
@media (max-width: 640px) {
    :root { --section-pad: 80px; --gutter: 20px; }
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: var(--nav-h); left: 0; right: 0;
        background: #fff; flex-direction: column; align-items: stretch; height: auto;
        padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line);
        transform: translateY(-120%); transition: transform .3s ease; display: none;
    }
    .nav-menu.active { transform: translateY(0); display: flex; }
    .nav-menu li { height: auto; }
    .nav-link { height: 48px; padding: 0 4px; font-size: 16px; border-bottom: 1px solid var(--line-soft); width: 100%; }
    .nav-link.active::after { display: none; }
    .nav-link.active { color: var(--accent); }
    .hero { padding: 132px 0 96px; }
    .hero-title, .hero-title-sub { font-size: 38px; letter-spacing: 2px; }
    .hero-desc { font-size: 16px; }
    .practice-grid, .values-grid, .news-grid, .article-grid, .cases-grid, .media-grid { grid-template-columns: 1fr; }
    .team-lawyers, .lawyer-grid { grid-template-columns: repeat(2, 1fr); }
    .team-lawyer-photo-wrap { width: 104px; height: 130px; }
    .form-row { grid-template-columns: 1fr; }
    .about-stats { gap: 28px; }
    .stat-number { font-size: 32px; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 28px; }
}
