/* ================================================================
 * 盛松律师事务所官网样式（Lawyer.md 7 屏结构）
 * 设计：明亮简洁现代科技感（参考江苏大学官网 www.ujs.edu.cn）
 * 主色：科技蓝 + 白 + 浅蓝灰；PC 整屏滚动 / 移动端原生滚动
 * GEO 要点：内容可静态读取，无纯图片文字，核心资质结构化展示
 * ================================================================ */

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

:root {
    /* 主色：明亮科技蓝（江苏大学风格：白底 + 蓝 + 浅灰，扁平现代） */
    --primary: #1a6dd4;
    --primary-dark: #0f4fa8;
    --primary-light: #e8f1fd;
    --accent: #00a6d6;
    --dark: #16324f;
    --dark-2: #1e3f63;
    --dark-3: #0c2240;
    --text: #34475e;
    --text-light: #5d7188;
    --text-muted: #93a5b8;
    --bg: #ffffff;
    --bg-alt: #f4f8fd;
    --bg-dark-alt: #16324f;
    --border: #e2ecf6;
    --shadow: 0 4px 20px rgba(26, 109, 212, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 79, 168, 0.16);
    --radius: 8px;
    --transition: 0.35s cubic-bezier(.4, 0, .2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
    /* 防止整屏滚动引发横向滚动条 */
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

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

/* ================= 按钮（浅蓝灰主题） ================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: linear-gradient(135deg, #dce8f4, #c3d6e8);
    color: #2c4158;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(90, 120, 150, 0.18);
    letter-spacing: 1px;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #cfdfef, #b3cade);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(90, 120, 150, 0.28);
}
.btn-lg { padding: 16px 42px; font-size: 17px; }

/* 首页「法律咨询」主按钮：恢复蓝色（醒目 CTA） */
.btn-blue {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 6px 16px rgba(26, 109, 212, 0.28);
}
.btn-blue:hover {
    background: linear-gradient(135deg, #1b7ae8, var(--primary-dark));
    box-shadow: 0 10px 26px rgba(26, 109, 212, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border: 2px solid rgba(90, 120, 150, 0.45);
    color: #3a5570;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition);
    letter-spacing: 1px;
    backdrop-filter: blur(2px);
}
.btn-outline:hover {
    background: #dce8f4;
    border-color: #c3d6e8;
    color: #2c4158;
    transform: translateY(-2px);
}

.btn-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    transition: color var(--transition);
}
.btn-link:hover { color: var(--primary-dark); }

/* ================= 顶部导航 ================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition);
    padding: 16px 0;
    border-bottom: 1px solid rgba(26, 109, 212, 0.1);
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    padding: 10px 0;
    box-shadow: 0 4px 18px rgba(22, 50, 79, 0.08);
    border-bottom-color: var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-size: 20px;
    font-weight: bold;
    transition: color var(--transition);
}
.site-header.scrolled .logo { color: var(--dark); }

.logo-icon {
    font-size: 28px;
    color: var(--primary);
    line-height: 1;
    display: flex;
    align-items: center;
}
.logo-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}
.main-nav a {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: color var(--transition);
    /* 关键：不允许 flex 压缩、不允许文字折行。
       否则可用宽度不足时每个链接会被压窄，中文标题被拆成两行（如「关于我/们」），
       表现为导航「错行」。宽度不足由下方媒体查询收紧，而不是让链接折行。 */
    flex: 0 0 auto;
    white-space: nowrap;
}
.site-header.scrolled .main-nav a { color: var(--text); }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* 993–1200px：容器内容宽不足，收紧 logo 与导航的字号/间距，
   保证「首页…联系我们」10 项在 1024/1152/1280 等常见宽度下依然单行不折行。 */
@media (min-width: 993px) and (max-width: 1200px) {
    .logo { font-size: 17px; gap: 8px; }
    .logo-icon { font-size: 24px; }
    .logo-icon img { width: 30px; height: 30px; }
    .main-nav { gap: 13px; }
    .main-nav a { font-size: 14px; }
}

.hamburger {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    justify-content: space-between;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}
.site-header.scrolled .hamburger span { background: var(--dark); }
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-nav {
    display: none;
    background: #fff;
    padding: 20px 28px 30px;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid var(--border);
}
.mobile-nav a {
    padding: 10px 0;
    color: var(--text);
    font-size: 16px;
    border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ================= 屏幕通用：7 屏 100vh 结构 ================= */
.screen {
    position: relative;
    /* PC 端整屏，允许内容溢出时自动撑高（移动端由媒体查询覆盖） */
    min-height: 100vh;
    padding: 110px 0 90px;
    overflow: hidden;
}
.screen-inner { position: relative; }

.section-head {
    text-align: center;
    margin-bottom: 54px;
}
.section-en {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    letter-spacing: 4px;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    padding: 0 24px;
}
.section-en::before,
.section-en::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 18px;
    height: 1px;
    background: var(--primary);
    opacity: 0.6;
}
.section-en::before { left: 0; }
.section-en::after { right: 0; }

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: 2px;
}
.section-desc {
    color: var(--text-light);
    font-size: 15px;
}

/* 区块底部「更多」入口：文本链接、靠右 */
.section-more {
    text-align: right;
    margin-top: 20px;
}
.section-more .btn-outline {
    background: none;
    border: none;
    color: #3a5570;
    padding: 4px 0;
    font-size: 14px;
    box-shadow: none;
    backdrop-filter: none;
}
.section-more .btn-outline:hover {
    background: none;
    border: none;
    color: #1a6dd4;
    transform: none;
}

/* ================= 第一屏：首页幻灯片（明亮科技感） ================= */
.screen-1 {
    padding: 0 0 130px;
    background: linear-gradient(180deg, #e6f1fd 0%, #f3f9fe 55%, #ffffff 100%);
}

.slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
    background: linear-gradient(160deg, #dbeafe 0%, #eef6ff 60%, #f8fbff 100%);
}
.slide-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #e6f1fd;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s ease, visibility 1.1s ease, transform 6s ease;
    transform: scale(1.08);
}
.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.slide-empty {
    background: linear-gradient(160deg, #dbeafe, #eef6ff) !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: var(--text-light);
    justify-content: center;
}
.slide-content {
    max-width: 900px;
    color: var(--dark-3);
    position: relative;
    z-index: 2;
    padding-top: 80px;
}
.slide-badge {
    display: inline-block;
    padding: 7px 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(26, 109, 212, 0.4);
    border-radius: 999px;
    color: var(--primary-dark);
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 22px;
    backdrop-filter: blur(4px);
    animation: slideUp 0.8s ease both;
    box-shadow: 0 2px 10px rgba(26, 109, 212, 0.08);
}
.slide-title {
    font-size: 58px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-3);
    margin-bottom: 22px;
    text-shadow: 0 2px 14px rgba(255, 255, 255, 0.6);
    animation: slideUp 0.9s ease 0.15s both;
}
.slide-subtitle {
    font-size: 21px;
    color: var(--text);
    margin-bottom: 42px;
    opacity: 0.95;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.5);
    animation: slideUp 0.9s ease 0.3s both;
    transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

/* ===== 幻灯片标题文字颜色（黑 / 白 / 金 / 红 / 蓝 / 橙 / 青 七选）+ 副标题背景（无色 / 白 / 蓝 / 浅灰） ===== */
/* 说明：金 / 红 / 橙为暖亮色，蓝 / 青为冷亮色，这 5 种在明亮或浅色蒙版较重的照片上
   天生对比度不足，统一采用「1px 深色描边 + 大范围深色外发光」双层阴影，
   靠轮廓而非亮度差建立可读性。 */
/* --- 主标题文字颜色 --- */
.slide-title.t-c-dark  { color: #0c2240; text-shadow: 0 2px 14px rgba(255, 255, 255, 0.62); }
.slide-title.t-c-light { color: #ffffff; text-shadow: 0 2px 16px rgba(12, 34, 64, 0.62); }
.slide-title.t-c-gold  { color: #f0c33c; text-shadow: 0 1px 2px rgba(58, 38, 0, 0.9), 0 3px 22px rgba(58, 38, 0, 0.6); }
.slide-title.t-c-red   { color: #e5322c; text-shadow: 0 1px 2px rgba(84, 8, 8, 0.8), 0 3px 22px rgba(84, 8, 8, 0.5); }
.slide-title.t-c-blue  { color: #4fa8ff; text-shadow: 0 1px 2px rgba(6, 30, 64, 0.92), 0 3px 22px rgba(6, 30, 64, 0.6); }
.slide-title.t-c-orange{ color: #ff9a3c; text-shadow: 0 1px 2px rgba(66, 30, 0, 0.92), 0 3px 22px rgba(66, 30, 0, 0.58); }
.slide-title.t-c-cyan  { color: #35d6c8; text-shadow: 0 1px 2px rgba(0, 44, 44, 0.92), 0 3px 22px rgba(0, 44, 44, 0.58); }

/* --- 副标题文字颜色 --- */
.slide-subtitle.sub-c-dark  { color: #0c2240; text-shadow: 0 1px 8px rgba(255, 255, 255, 0.55); }
.slide-subtitle.sub-c-light { color: #ffffff; text-shadow: 0 2px 12px rgba(12, 34, 64, 0.6); }
.slide-subtitle.sub-c-gold  { color: #f0c33c; text-shadow: 0 1px 2px rgba(58, 38, 0, 0.9), 0 1px 12px rgba(58, 38, 0, 0.55); }
.slide-subtitle.sub-c-red   { color: #cf2b25; text-shadow: 0 1px 3px rgba(64, 4, 4, 0.92), 0 2px 14px rgba(64, 4, 4, 0.55); }
.slide-subtitle.sub-c-blue  { color: #6ab4ff; text-shadow: 0 1px 3px rgba(6, 30, 64, 0.92), 0 2px 14px rgba(6, 30, 64, 0.52); }
.slide-subtitle.sub-c-orange{ color: #ffa94d; text-shadow: 0 1px 3px rgba(66, 30, 0, 0.92), 0 2px 14px rgba(66, 30, 0, 0.52); }
.slide-subtitle.sub-c-cyan  { color: #5ee0d4; text-shadow: 0 1px 3px rgba(0, 44, 44, 0.92), 0 2px 14px rgba(0, 44, 44, 0.52); }

/* --- 文字背景：无色 / 透明，保持原样 --- */
.slide-subtitle.sub-bg-none {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* --- 文字背景：白 / 蓝 / 浅灰，内联块让底色贴合文字宽度 --- */
.slide-subtitle.sub-bg-white,
.slide-subtitle.sub-bg-blue,
.slide-subtitle.sub-bg-gray {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 10px;
    opacity: 1;
}
.slide-subtitle.sub-bg-white {
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(12, 34, 64, 0.14);
}
.slide-subtitle.sub-bg-blue {
    background: var(--primary);
    box-shadow: 0 6px 24px rgba(26, 109, 212, 0.3);
}
.slide-subtitle.sub-bg-gray {
    background: #eef2f7;
    box-shadow: 0 6px 24px rgba(12, 34, 64, 0.12);
}

/* --- 对比度兜底：任意「文字颜色 × 背景」组合都保持可读 --- */
/* 浅底（白 / 浅灰）+ 白字：补深色描边阴影 */
.slide-subtitle.sub-bg-white.sub-c-light,
.slide-subtitle.sub-bg-gray.sub-c-light {
    text-shadow: 0 1px 5px rgba(12, 34, 64, 0.7);
}
/* 浅底 + 金字：加深金色描边，避免金发灰 */
.slide-subtitle.sub-bg-white.sub-c-gold,
.slide-subtitle.sub-bg-gray.sub-c-gold {
    color: #b8891b;
    text-shadow: 0 1px 4px rgba(70, 48, 0, 0.7);
}
/* 蓝底 + 黑 / 红 / 金字：补浅色描边阴影；红、金提亮以保证亮度对比 */
.slide-subtitle.sub-bg-blue.sub-c-dark {
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.85);
}
.slide-subtitle.sub-bg-blue.sub-c-red {
    color: #ff8a80;
    text-shadow: 0 1px 6px rgba(90, 12, 10, 0.55);
}
.slide-subtitle.sub-bg-blue.sub-c-gold {
    color: #f5dd86;
    text-shadow: 0 1px 6px rgba(70, 48, 0, 0.5);
}
/* 浅底 + 蓝 / 橙 / 青：亮色在浅底上会「发飘」，统一压深成同色系深色 */
.slide-subtitle.sub-bg-white.sub-c-blue,
.slide-subtitle.sub-bg-gray.sub-c-blue {
    color: #1a6dd4;
    text-shadow: 0 1px 4px rgba(6, 30, 64, 0.35);
}
.slide-subtitle.sub-bg-white.sub-c-orange,
.slide-subtitle.sub-bg-gray.sub-c-orange {
    color: #c2660a;
    text-shadow: 0 1px 4px rgba(66, 30, 0, 0.35);
}
.slide-subtitle.sub-bg-white.sub-c-cyan,
.slide-subtitle.sub-bg-gray.sub-c-cyan {
    color: #0f9b90;
    text-shadow: 0 1px 4px rgba(0, 44, 44, 0.35);
}
/* 蓝底 + 蓝 / 橙 / 青：提亮以保证与品牌蓝底的亮度差 */
.slide-subtitle.sub-bg-blue.sub-c-blue {
    color: #d6eaff;
    text-shadow: 0 1px 6px rgba(6, 30, 64, 0.6);
}
.slide-subtitle.sub-bg-blue.sub-c-orange {
    color: #ffc98a;
    text-shadow: 0 1px 6px rgba(66, 30, 0, 0.45);
}
.slide-subtitle.sub-bg-blue.sub-c-cyan {
    color: #b6f4ec;
    text-shadow: 0 1px 6px rgba(0, 44, 44, 0.45);
}
/* 仅供爬虫与读屏器读取的隐藏图片（幻灯片是 CSS 背景图，本身没有 alt） */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.slide-actions {
    display: flex;
    gap: 16px;
    animation: slideUp 0.9s ease 0.45s both;
    flex-wrap: wrap;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border: none;
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary);
    font-size: 22px;
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition);
    z-index: 5;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 16px rgba(22, 50, 79, 0.12);
}
.slider-arrow:hover { background: var(--primary); color: #fff; }
.slider-arrow.prev { left: 34px; }
/* 右切箭头左移，避开右侧悬浮工具栏（工具栏宽约 83px，右缘 14px） */
.slider-arrow.next { right: 118px; }

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(26, 109, 212, 0.3);
    cursor: pointer;
    transition: all var(--transition);
}
.dot.active {
    background: var(--primary);
    width: 38px;
    border-radius: 6px;
}

/* 首屏内联系方式卡片 */
.home-contact-card {
    position: relative;
    margin-top: -80px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 26px 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
    z-index: 10;
    border-top: 3px solid var(--primary);
}
.hc-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.hc-icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.hc-text { display: flex; flex-direction: column; }
.hc-label { font-size: 12px; color: var(--text-light); }
.hc-value { font-size: 16px; font-weight: 700; color: var(--dark); }
.hc-cta { justify-content: flex-end; }
.hc-cta .btn-primary { white-space: nowrap; }

/* ================= 第二屏：业务领域（明亮色块卡片） ================= */
.screen-2 { background: #fff; }

.practice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    grid-auto-rows: 215px;
}
.practice-block {
    position: relative;
    background: linear-gradient(160deg, color-mix(in srgb, var(--pa-color) 9%, #ffffff) 0%, #ffffff 70%);
    border: 1px solid color-mix(in srgb, var(--pa-color) 22%, #ffffff);
    color: var(--dark);
    padding: 32px 26px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
    box-shadow: 0 6px 18px rgba(22, 50, 79, 0.05);
}
.practice-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, color-mix(in srgb, var(--pa-color) 8%, transparent) 100%);
    pointer-events: none;
    transition: all var(--transition);
}
.practice-block:hover {
    transform: translateY(-8px);
    background: linear-gradient(160deg, color-mix(in srgb, var(--pa-color) 15%, #ffffff) 0%, #ffffff 72%);
    border-color: color-mix(in srgb, var(--pa-color) 55%, #ffffff);
    box-shadow: 0 18px 40px color-mix(in srgb, var(--pa-color) 18%, rgba(22, 50, 79, 0.1));
}
.practice-block .pa-index {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    color: var(--pa-color);
    opacity: 0.4;
    position: relative;
}
.practice-block h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    position: relative;
}
.practice-block p {
    font-size: 14px;
    color: var(--text-light);
    opacity: 1;
    margin-bottom: 16px;
    position: relative;
    flex: 1;
}
/* 八大业务模块统一版式：4 列 2 行排列（「其他业务」与其余模块同尺寸，不再跨行） */

/* ================= 第三屏：6 大服务优势 ================= */
.screen-3 { background: var(--bg-alt); }
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.adv-card {
    background: #fff;
    padding: 40px 34px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 3px solid transparent;
    transition: all var(--transition);
    text-align: left;
}
.adv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary);
}
.adv-icon {
    width: 64px; height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(26, 109, 212, 0.12), rgba(26, 109, 212, 0.05));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 22px;
    overflow: hidden;
}
/* 标题上方图标：后台可配置图片（iconUrl）或数字（iconChar） */
.adv-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.adv-icon .adv-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    font-family: "Consolas", "PingFang SC", sans-serif;
    letter-spacing: 1px;
    line-height: 1;
}
.adv-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}
.adv-card p { color: var(--text-light); font-size: 15px; }

/* ================= 第四屏：律师风采 ================= */
.screen-4 { background: #fff; }
.lawyers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.lawyer-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 26px;
    background: var(--bg-alt);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.lawyer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.lawyer-photo {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, var(--primary), var(--dark-3));
    overflow: hidden;
}
.lawyer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.lawyer-card:hover .lawyer-photo img { transform: scale(1.05); }

.lawyer-info {
    padding: 28px 28px 26px 0;
}
.lawyer-info h3 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 4px;
    font-weight: 700;
}
.lawyer-role {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 2px;
}
.lawyer-license {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
}
.license-label { color: var(--text-light); flex-shrink: 0; }
.license-num {
    color: var(--dark);
    font-weight: 600;
    font-family: "Consolas", monospace;
    letter-spacing: 0.5px;
    word-break: break-all;
}
.lawyer-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    margin-bottom: 16px;
}
.meta-item {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}
.meta-label { color: var(--text-light); font-size: 12px; }
.meta-item b { color: var(--dark); font-weight: 600; }

.lawyer-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.area-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(26, 109, 212, 0.1);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}
.lawyer-brief {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================= 第五屏：本所案例 ================= */
.screen-5 { background: var(--bg-alt); }
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}
.case-card {
    background: #fff;
    padding: 30px 30px 26px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: all var(--transition);
    position: relative;
    overflow-wrap: break-word;
    word-break: break-word;
}
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* 案例卡片整卡可点击（点击查看全文） */
.case-card-link { cursor: pointer; }
.case-card h3 a {
    color: var(--dark);
    transition: color var(--transition);
}
.case-card h3 a:hover { color: var(--primary); }
.case-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.case-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(26, 109, 212, 0.1);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.case-year {
    color: var(--text-muted);
    font-size: 13px;
}
.case-card h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 14px;
    line-height: 1.6;
    font-weight: 700;
    overflow-wrap: break-word;
    word-break: break-word;
}
.case-number-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-alt);
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 13px;
    flex-wrap: wrap;
}
.cn-label {
    color: var(--text-light);
    flex-shrink: 0;
    font-weight: 500;
}
.cn-value {
    font-family: "Consolas", monospace;
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: 0.5px;
    word-break: break-all;
    overflow-wrap: anywhere;
    flex: 1;
    min-width: 0;
}
.case-meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 6px;
}
.meta-court { color: var(--text); }
.meta-result { color: var(--primary-dark); font-weight: 600; }
.case-focus, .case-summary {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.75;
    overflow-wrap: break-word;
    word-break: break-word;
}
.case-focus b, .case-summary b {
    color: var(--dark);
    margin-right: 2px;
}
.case-summary { color: var(--text-light); margin-bottom: 14px; }
.case-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
}
.case-lawyer { color: var(--text-light); }

/* ================= 第六屏：判例法规研究 ================= */
.screen-6 { background: #fff; }
.research-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.research-item {
    display: grid;
    grid-template-columns: 100px 1fr 180px 130px;
    gap: 20px;
    padding: 20px 28px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.research-item:last-child { border-bottom: none; }
.research-item:hover { background: var(--bg-alt); }
.research-item-link { cursor: pointer; }
.research-item-link:hover h4 a { color: var(--primary); }
.research-item h4 a {
    color: var(--dark);
    transition: color var(--transition);
}
.research-item.invalid { opacity: 0.65; background: #fdf6f6; }
.ri-type {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ri-type > span:first-child {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}
.research-item.regulation .ri-type > span:first-child {
    background: rgba(108, 99, 255, 0.1);
    color: #6c63ff;
}
.research-item.case .ri-type > span:first-child {
    background: rgba(26, 109, 212, 0.1);
    color: var(--primary-dark);
}
.invalid-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 11px;
    border-radius: 4px;
    font-weight: 600;
}
.ri-content h4 {
    font-size: 16px;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
}
.research-item.invalid .ri-content h4::after {
    content: '【已废止/已替代】';
    color: #b91c1c;
    font-weight: 700;
    margin-left: 8px;
    font-size: 12px;
}
.ri-sub {
    font-size: 13px;
    color: var(--text-light);
    overflow-wrap: break-word;
    word-break: break-word;
}
.ri-tag {
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.ri-date {
    color: var(--text-muted);
    font-size: 13px;
    text-align: right;
    font-family: "Consolas", monospace;
}

/* ================= 第七屏：律所动态（位于判例法规研究下方） ================= */
.screen-news { background: var(--bg-alt); }
.news-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.news-item {
    display: grid;
    grid-template-columns: 110px 1fr 130px;
    gap: 20px;
    padding: 22px 28px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--bg-alt); }
.news-item-link { cursor: pointer; }
.news-item-link:hover h4 a { color: var(--primary); }
.news-item h4 a {
    color: var(--dark);
    transition: color var(--transition);
}
.ni-cat > span {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}
/* 动态类型配色：所内新闻-蓝 / 活动公告-青 / 专业分享-紫 / 荣誉喜报-橙 */
.news-item.cat-所内新闻 .ni-cat > span {
    background: rgba(26, 109, 212, 0.1);
    color: var(--primary-dark);
}
.news-item.cat-活动公告 .ni-cat > span {
    background: rgba(14, 154, 167, 0.12);
    color: #0b7f89;
}
.news-item.cat-专业分享 .ni-cat > span {
    background: rgba(124, 58, 237, 0.1);
    color: #5b21b6;
}
.news-item.cat-荣誉喜报 .ni-cat > span {
    background: rgba(232, 134, 45, 0.14);
    color: #c06a18;
}
.ni-content h4 {
    font-size: 16px;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.55;
    overflow-wrap: break-word;
    word-break: break-word;
}
.ni-summary {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    overflow-wrap: break-word;
    word-break: break-word;
}
.ni-date {
    color: var(--text-muted);
    font-size: 13px;
    text-align: right;
    font-family: "Consolas", monospace;
    white-space: nowrap;
}
.empty-tip {
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
    padding: 40px 0;
}

/* ================= 第八屏：品牌语 + 联系我们 + 备案 ================= */
.screen-7 {
    padding: 110px 0 0;
    background: linear-gradient(180deg, var(--dark-3) 0%, #0a1d3a 100%);
    color: #fff;
}
.brand-slogan {
    text-align: center;
    padding: 40px 0 80px;
    background: linear-gradient(135deg, rgba(26, 109, 212, 0.16), transparent);
    border-radius: 10px;
    margin-bottom: 40px;
}
.slogan-main {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 10px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #8dbdf2, #3a86e8, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.slogan-sub {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 3px;
    margin-bottom: 36px;
}
.slogan-main .btn-primary { margin-top: 20px; }

.contact-section {
    background: var(--dark-2);
    padding: 56px 50px 50px;
    border-radius: 10px 10px 0 0;
}
.contact-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
}
.contact-title::after {
    content: '';
    display: block;
    width: 46px;
    height: 3px;
    background: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 44px;
}
.contact-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: all var(--transition);
}
.contact-item:hover {
    transform: translateY(-4px);
    border-color: rgba(26, 109, 212, 0.5);
    background: rgba(26, 109, 212, 0.1);
}
.ci-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 18px;
}
.ci-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
}
.ci-value {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    word-break: break-all;
}
.ci-value:hover { color: #8dbdf2; }

/* 留言表单（深色区块内） */
.consult-form {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 34px 36px;
}
.consult-form h4 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #fff;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}
.consult-form input,
.consult-form select,
.consult-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all var(--transition);
}
.consult-form input::placeholder,
.consult-form textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.consult-form select { appearance: none; cursor: pointer; }
.consult-form select option { background: var(--dark-2); color: #fff; }
.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(26, 109, 212, 0.18);
}
.consult-form textarea { resize: vertical; min-height: 120px; }
.consult-form button[type="submit"] { margin-top: 8px; }
.form-tip {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

/* ================= 咨询弹窗（模态框，明亮风格） ================= */
.consult-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.consult-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 34, 64, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.consult-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 36px 38px 30px;
    box-shadow: 0 24px 80px rgba(12, 34, 64, 0.32);
    animation: modalIn 0.32s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.consult-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: none;
    background: var(--bg-alt);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.consult-modal-close:hover { background: var(--primary); color: #fff; }
.consult-modal-head {
    text-align: center;
    margin-bottom: 24px;
}
.consult-modal-head h3 {
    font-size: 22px;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 6px;
}
.consult-modal-head p {
    font-size: 13px;
    color: var(--text-light);
}
.consult-modal-body .form-row { margin-bottom: 14px; }
.consult-modal-body input,
.consult-modal-body select,
.consult-modal-body textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all var(--transition);
}
.consult-modal-body input::placeholder,
.consult-modal-body textarea::placeholder { color: var(--text-muted); }
.consult-modal-body select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235d7188' d='M5 6L0 0h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.consult-modal-body input:focus,
.consult-modal-body select:focus,
.consult-modal-body textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 109, 212, 0.12);
}
.consult-modal-body textarea { resize: vertical; min-height: 110px; }
.consult-modal-body button[type="submit"] { width: 100%; margin-top: 6px; }
.consult-modal-body .form-tip {
    color: var(--text-muted);
    text-align: center;
}

/* 页脚（浅蓝灰配色） */
.site-footer {
    background: #e6eef7;
    padding: 26px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #d3e0ec;
}
.footer-text {
    color: #4a6078;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.footer-statement {
    color: #6b8198;
    font-size: 12px;
    line-height: 1.8;
}

/* 页脚站内导航（提升内链密度，便于搜索引擎与 AI 爬虫发现深层页面） */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin-bottom: 14px;
}
.footer-links a {
    color: #3f5a75;
    font-size: 13px;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }

/* ================= 右侧悬浮工具栏 ================= */
.float-toolbar {
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    overflow: visible;      /* 允许 ch-pop 悬停卡片向右侧弹出，不能被裁剪 */
    border: 1px solid var(--border);
}
.float-toolbar .float-item:first-child { border-radius: 8px 8px 0 0; }
.float-toolbar .float-item:last-child { border-radius: 0 0 8px 8px; }
.float-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 68px;
    padding: 12px 6px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}
.float-item:last-child { border-bottom: none; }
.float-item:hover {
    background: var(--primary);
    color: #fff;
}
.fi-icon {
    font-size: 20px;
    line-height: 1;
}
.fi-label {
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0.5px;
}
.float-item.top-btn { background: rgba(26, 109, 212, 0.06); color: var(--primary-dark); font-weight: 700; }
.float-item.top-btn:hover { background: var(--primary); color: #fff; }

/* ===== 悬浮渠道悬停/点击弹出卡片 ch-pop：号码、邮箱、二维码等仅在悬停时展示 ===== */
.ch-pop {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    z-index: 160;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 172px;
    max-width: 240px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    text-align: center;
    white-space: normal;
    word-break: break-all;
}
.float-item:hover .ch-pop,
.float-item:focus-within .ch-pop {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}
/* 微信等带二维码的渠道：卡片更宽一些 */
.ch-pop.is-wx { min-width: 206px; }
.ch-pop-name {
    display: block;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}
.ch-pop-qr {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: contain;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
}
.ch-pop-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    max-width: 100%;
}
.ch-pop.is-wx .ch-pop-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.ch-pop-hint {
    display: inline-block;
    font-style: normal;
    font-size: 11px;
    color: var(--primary-dark);
    background: rgba(26, 109, 212, 0.09);
    padding: 3px 12px;
    border-radius: 20px;
    line-height: 1.6;
    white-space: nowrap;
}

/* ================= 底部悬浮联系方式 ================= */
.bottom-float {
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    z-index: 140;
    background: rgba(22, 50, 79, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 24px rgba(12, 34, 64, 0.3);
    padding: 12px 0;
    transform: translateY(100%);
    transition: transform var(--transition);
    border-top: 1px solid rgba(26, 109, 212, 0.35);
}
body.scrolled-bottom .bottom-float,
.bottom-float.show { transform: translateY(0); }

.bf-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.bf-text {
    color: #fff;
    font-size: 14px;
}
.bf-text b { color: #8dbdf2; letter-spacing: 1px; font-size: 15px; }
.bf-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 1px;
    padding: 8px 22px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    transition: all var(--transition);
}
.bf-phone:hover { background: var(--primary); }
.bf-icon { color: #8dbdf2; font-size: 20px; }
.bf-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    transition: all var(--transition);
    letter-spacing: 1px;
}
.bf-btn:hover { background: linear-gradient(135deg, #1b7ae8, var(--primary-dark)); }

/* ================= 响应式适配：平板 + 手机 ================= */
@media (max-width: 1100px) {
    .practice-grid { grid-template-columns: repeat(3, 1fr); }
    .slogan-main { font-size: 44px; letter-spacing: 6px; }
    .slide-title { font-size: 46px; }
    .section-title { font-size: 34px; }
}

@media (max-width: 992px) {
    /* 非 PC 端：原生滚动，不做整屏 wheel 截流 */
    .screen { min-height: auto; padding: 80px 0 70px; }
    .screen-1 { padding: 0 0 100px; }
    .slider { min-height: 560px; height: 90vh; }
    .slide-title { font-size: 38px; }
    .slide-subtitle { font-size: 17px; }

    /* ===== 首屏标题避让左右切换箭头 =====
       症状：首屏 H1 的**首字被左箭头圆钮盖住**（390px 手机截图里 "专业法律服务 守护您的权益"
       的"专"整字看不见），偶尔连末字一起被盖。
       根因：.slide-content 是普通块（非 flex），标题左对齐；桌面端它有 max-width:900px 且居中，
       左右余量大所以没事；但 ≤992px 时 900px 列宽 ≈ 视口宽，标题就顶到了视口左边，
       而箭头是绝对定位固定在 left:34 / right:118（垂直居中，正好压在标题那一行）。
       实测 390 / 576 / 640 / 768 / 992 五个宽度**全部命中**（水平相交 34~54px）。
       修法：按箭头实际占位给标题留左右内边距（结构性避让），而不是缩小字号 ——
       这样后台把标题改长也只是换行，不会重新压到箭头上。
       数值：左 34+54+8=96、右 118+54+8=180（8px 为安全间隙），减去 .container 的 28px 内边距 → 68 / 152。 */
    .slide-title { padding-left: 68px; padding-right: 152px; }

    .main-nav { display: none; }
    .hamburger { display: flex; }
    .mobile-nav { display: flex; }

    .home-contact-card {
        grid-template-columns: repeat(2, 1fr);
        padding: 22px;
    }
    .hc-cta { grid-column: 1 / 3; justify-content: center; }

    .practice-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .lawyers-grid { grid-template-columns: 1fr; }
    .cases-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    /* 动态列表移动端：弹性布局，标签/日期自动换行左对齐，标题占满余宽 */
    .research-item,
    .news-item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 16px;
        padding: 16px 20px;
    }
    .ri-type, .ni-cat { flex: 0 0 auto; }
    .ri-content, .ni-content { flex: 1 1 260px; min-width: 200px; }
    .ri-tag, .ri-date, .ni-date { flex: 0 0 auto; text-align: left; }
    .ri-tag { order: 3; }
    .ri-date { order: 4; }
    .ni-date { order: 3; }

    .slogan-main { font-size: 36px; letter-spacing: 4px; }

    .float-toolbar {
        right: 8px;
        transform: none;
        top: auto;
        bottom: 90px;
    }
    .float-item { width: 54px; padding: 9px 4px; }
    .fi-icon { font-size: 17px; }
    .fi-label { font-size: 10px; }
    .ch-pop { min-width: 150px; max-width: calc(100vw - 120px); }
    .ch-pop.is-wx { min-width: 176px; }

    .bottom-float { transform: translateY(0); }
    .bf-inner { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .bf-text { width: 100%; text-align: center; }
    .bf-phone { font-size: 17px; padding: 7px 14px; }
    .bf-btn { padding: 10px 22px; }
}

@media (max-width: 576px) {
    .container { padding: 0 16px; }
    .site-header { padding: 14px 0; }
    .site-header.scrolled { padding: 10px 0; }
    /* 移动端：logo 图标 + 律所名称同时显示（原设计仅显示图标，导致名称缺失） */
    .logo { font-size: 15px; gap: 8px; min-width: 0; flex: 1 1 auto; }
    .logo-icon { font-size: 22px; flex: 0 0 auto; }
    .logo-icon img { width: 28px; height: 28px; }
    .logo-text {
        display: inline-block;
        font-size: 15px;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .slider { min-height: 500px; height: 82vh; }
    .slide-content { padding-top: 60px; }
    .slide-title { font-size: 27px; line-height: 1.3; }
    .slide-subtitle { font-size: 15px; margin-bottom: 28px; }
    .slide-actions { gap: 10px; }
    .btn-primary, .btn-outline { padding: 10px 20px; font-size: 14px; }
    .slider-arrow { width: 40px; height: 40px; font-size: 17px; }
    .slider-arrow.prev { left: 10px; }
    .slider-arrow.next { right: 10px; }

    .section-head { margin-bottom: 36px; }
    .section-title { font-size: 26px; letter-spacing: 1px; }

    .home-contact-card {
        grid-template-columns: 1fr;
        padding: 20px;
        margin-top: -60px;
        gap: 16px;
    }
    .hc-cta { grid-column: auto; }

    .practice-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .practice-block { min-height: 175px; padding: 26px 22px; }

    .advantages-grid { grid-template-columns: 1fr; gap: 16px; }
    .adv-card { padding: 28px 24px; }

    .lawyer-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .lawyer-photo { min-height: 260px; }
    .lawyer-info { padding: 24px 22px; }
    .lawyer-meta { grid-template-columns: 1fr; }

    .case-card { padding: 22px 18px; }
    .case-card h3 { font-size: 16px; }
    .case-meta-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .case-foot { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* 动态列表移动端：单列上下堆叠，标签/日期独立成行，易读 */
    .research-item,
    .news-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 16px 18px;
    }
    .ri-type, .ri-content, .ri-tag, .ri-date,
    .ni-cat, .ni-content, .ni-date { flex: none; width: 100%; }
    .ri-tag, .ri-date, .ni-date { text-align: left; order: 0; }
    .ri-content h4, .ni-content h4 { font-size: 15px; }
    .ri-sub, .ni-summary { font-size: 12px; }
    .ri-date, .ni-date { font-size: 12px; }

    .slogan-main { font-size: 28px; letter-spacing: 3px; }
    .slogan-sub { font-size: 14px; letter-spacing: 1px; }
    .contact-section { padding: 40px 22px; }
    .consult-form { padding: 22px; }
    .form-row { grid-template-columns: 1fr; }

    .consult-modal-panel { padding: 28px 22px 24px; }
    .consult-modal-body .form-row { grid-template-columns: 1fr; }

    .float-toolbar { display: none; }

    /* ===== 手机端：标题避让箭头（覆盖上面 ≤992 的 68/152）=====
       手机上箭头缩到 40px 且贴边（left/right:10）、.container 内边距降到 16px，
       故标题只需左右各让 58-16=42px 即可（58 = 10+40+8）。
       字号同时降到 22px：让当前 13 字的标题在 274px 可用宽度内**单行放下**
       （实测 27px 时文本宽 332px，22px 约 271px），避免中文逐字折行把词组切断
       （CJK 允许字间换行，不控字号会出现 "…守护您 / 的权益" 这种难看的断法）。 */
    .slide-title { padding-left: 42px; padding-right: 42px; font-size: 22px; }
}


/* ============ 悬浮渠道增强（channel-tools.js 使用） ============ */
.float-item { cursor: pointer; }
.float-item .fi-icon img, .float-item .fi-icon svg { max-width: 20px; max-height: 20px; vertical-align: middle; }
