/* ========================================
   湖南圣优律师事务所 - 网站样式表
   深红色主题 | 响应式设计 | 大气商务风格
   ======================================== */

/* ===== CSS 变量 ===== */
:root {
    --color-primary: #8B1A1A;
    --color-primary-dark: #6B1313;
    --color-primary-light: #A82828;
    --color-accent: #C5A55A;
    --color-accent-light: #D4B86A;
    --color-text: #1a1a1a;
    --color-text-light: #555;
    --color-text-muted: #888;
    --color-bg: #ffffff;
    --color-bg-light: #f8f6f3;
    --color-bg-gray: #f0ede8;
    --color-border: #e0ddd6;
    --color-white: #ffffff;
    --color-overlay: rgba(139, 26, 26, 0.85);
    --color-overlay-dark: rgba(20, 10, 10, 0.75);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 72px;
}

/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ===== 通用容器 ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--color-bg-light);
}

.section-dark {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

/* ===== 标题样式 ===== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 12px auto 0;
}

.section-title p {
    color: var(--color-text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-title h2 {
    color: var(--color-white);
}

.section-dark .section-title h2::after {
    background: var(--color-accent);
}

.section-dark .section-title p {
    color: rgba(255,255,255,0.7);
}

/* ===== 顶部信息栏 ===== */
.top-bar {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    padding: 6px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    margin-right: 24px;
}

.top-bar-left i {
    margin-right: 6px;
    color: var(--color-accent);
}

.top-bar-right a {
    color: rgba(255,255,255,0.85);
    margin-left: 16px;
}

.top-bar-right a:hover {
    color: var(--color-accent);
}

/* ===== 导航栏 ===== */
.header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
}

.logo-text {
    line-height: 1.3;
}

.logo-text .name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
}

.logo-text .sub {
    font-size: 0.6rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu > li > a {
    display: block;
    padding: 0 16px;
    line-height: var(--header-height);
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--color-primary);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 30px;
}

/* 下拉菜单 */
.nav-menu .has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 8px 0;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    border-left: 3px solid transparent;
}

.dropdown li a:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero 区域 ===== */
.hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(26,8,8,0.62), rgba(0,0,0,0.32)), url('../smallimg/1.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(0,0,0,0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(0,0,0,0.1) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.06;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.1) 35px, rgba(255,255,255,0.1) 36px);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    background: rgba(197,165,90,0.2);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero h1 .highlight {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(197,165,90,0.1);
}

.btn-gold {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.btn-gold:hover {
    background: var(--color-accent-light);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 44px;
    font-size: 1rem;
}

/* Hero 统计数据 */
.hero-stats {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat .num {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-accent);
}

.hero-stat .label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin-top: 4px;
}

/* ===== 快速咨询浮动按钮 ===== */
.float-consult {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-consult a {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    font-size: 1.5rem;
}

.float-consult .phone-btn {
    background: var(--color-primary);
    color: var(--color-white);
}

.float-consult .phone-btn:hover {
    background: var(--color-primary-dark);
    transform: scale(1.1);
}

.float-consult .top-btn {
    background: var(--color-bg-gray);
    color: var(--color-text);
}

.float-consult .top-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: scale(1.1);
}

/* ===== 核心业务领域 ===== */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.practice-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 36px 28px;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.practice-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: transparent;
}

.practice-card:hover::before {
    transform: scaleX(1);
}

.practice-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-white);
}

.practice-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.practice-card p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.practice-card .more-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* ===== 关于我们区域 ===== */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 律所简介图片轮播 */
.about-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.about-slider .about-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.about-slider .about-slide.active {
    opacity: 1;
}

.about-slider .about-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.about-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.about-slider-dot.active {
    background: #fff;
    transform: scale(1.25);
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c1010, #8B1A1A);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-image-placeholder::after {
    content: '律所实景';
    color: rgba(255,255,255,0.3);
    font-size: 1.2rem;
    letter-spacing: 4px;
}

.about-image-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 24px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.about-image-badge .year {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-accent);
}

.about-image-badge .text {
    font-size: 0.8rem;
    margin-top: 4px;
}

.about-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.about-text .subtitle {
    color: var(--color-primary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    font-weight: 500;
}

.about-text p {
    color: var(--color-text-light);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.area-content {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.area-content p {
    color: var(--color-text-light);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.area-content h3,
.area-content h4 {
    color: var(--color-text);
    margin: 20px 0 10px;
}

.area-content ul,
.area-content ol {
    margin: 0 0 16px 20px;
    padding: 0;
}

.area-content li {
    margin-bottom: 8px;
}

.area-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.area-content a {
    color: var(--color-primary);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-text);
}

.about-feature i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* ===== 律师团队预览 ===== */
.team-slider-wrap {
    position: relative;
    overflow: hidden;
}

/* 团队横滑指示点（仅小屏显示） */
.team-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.team-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d9d9d9;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.team-dots .dot.active {
    background: var(--color-primary);
    transform: scale(1.25);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.team-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.team-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.team-photo {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #e8e0d4, #d4c8b8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.team-photo-placeholder {
    font-size: 3rem;
    color: var(--color-text-muted);
    opacity: 0.4;
}

.team-card .team-photo-link {
    display: block;
}

.team-card .team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-info .title {
    font-size: 0.82rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.team-info .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.team-info .tag {
    font-size: 0.72rem;
    background: var(--color-bg-gray);
    color: var(--color-text-light);
    padding: 3px 10px;
    border-radius: 12px;
}

/* ===== 成功案例 ===== */
.case-slider-wrap {
    position: relative;
    overflow: hidden;
}

.case-slider {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
}

.case-card {
    min-width: calc(33.333% - 16px);
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.case-card:hover {
    box-shadow: var(--shadow-md);
}

.case-banner {
    display: block;
    height: 8px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transition: var(--transition);
}
.case-banner:hover {
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
}

.case-content {
    padding: 28px;
}

.case-tag {
    display: inline-block;
    background: var(--color-bg-gray);
    color: var(--color-primary);
    font-size: 0.78rem;
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.case-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}

.case-card p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.case-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-card h3 a:hover {
    color: var(--color-primary);
}

.case-result a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.case-result a:hover {
    text-decoration: underline;
}

.case-result {
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 500;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--color-primary);
    width: 30px;
    border-radius: 5px;
}

/* ===== 圣优资讯预览 ===== */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
}

.news-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.news-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.news-image i {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.3);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-date {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.9);
    border-radius: 4px;
    padding: 6px 12px;
    text-align: center;
    font-size: 0.75rem;
}

.news-date .day {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    line-height: 1;
}

.news-date .month {
    color: var(--color-text-muted);
}

.news-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    font-size: 0.78rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--color-text);
}

.news-card p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.7;
    flex: 1;
}

.news-card .read-more {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* ===== 常见问题 ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--color-primary-light);
}

.faq-item.active {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px 28px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
    user-select: none;
}

.faq-question .faq-icon {
    width: 28px;
    height: 28px;
    background: var(--color-bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-icon {
    background: var(--color-primary);
    color: var(--color-white);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 28px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 28px 20px;
}

.faq-answer p {
    color: var(--color-text-light);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* ===== 联系/CTA 区域 ===== */
.cta-section {
    background: linear-gradient(rgba(46,6,6,0.62), rgba(98,14,14,0.7)), url('../images/dbg.jpg') center/cover no-repeat;
    color: var(--color-white);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(197,165,90,0.1) 0%, transparent 60%);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
}

.cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 16px 32px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.cta-phone i {
    font-size: 1.4rem;
    color: var(--color-accent);
}

.cta-phone .phone-text {
    text-align: left;
}

.cta-phone .phone-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.cta-phone .phone-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 页脚 ===== */
.footer {
    background: #1a0a0a;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--color-white);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
}

.footer-about .logo {
    margin-bottom: 16px;
}

.footer-about .logo-text .name {
    color: var(--color-white);
}

.footer-about p {
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.footer-qr {
    display: flex;
    gap: 18px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.footer-qr-item {
    text-align: center;
}

.footer-qr-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    background: #fff;
    border: 2px solid rgba(255,255,255,0.18);
    padding: 4px;
}

.footer-qr-item span {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.72);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
}

.footer-contact li i {
    color: var(--color-primary-light);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
    color: var(--color-accent);
}

/* ===== 子页面通用样式 ===== */
.page-banner {
    background: linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.62)), url('../images/b1.jpg') center/cover no-repeat;
    color: var(--color-white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(197,165,90,0.12) 0%, transparent 60%);
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

/* 面包屑导航条（banner 下方） */
.page-breadcrumb {
    background: #f8f5f0;
    border-bottom: 1px solid #e9e1d4;
    padding: 14px 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.page-breadcrumb a {
    color: var(--color-text);
    transition: color 0.3s;
}

.page-breadcrumb a:hover {
    color: var(--color-primary);
}

.page-breadcrumb span {
    margin: 0 10px;
    color: #c9bfae;
}

/* 资讯/常见问题小类导航（banner 下方，可点击） */
.news-cat-nav {
    background: #fff;
    border-bottom: 1px solid #e9e1d4;
    padding: 18px 0;
}
.news-cat-nav .container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.news-cat-nav a {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #ddd2c0;
    border-radius: 30px;
    background: var(--color-white);
    color: var(--color-text);
    font-size: 0.9rem;
    transition: var(--transition);
}
.news-cat-nav a:hover,
.news-cat-nav a.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.breadcrumb {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
}

.breadcrumb a {
    color: rgba(255,255,255,0.6);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.breadcrumb span {
    margin: 0 8px;
}

/* ===== 律所概况页 ===== */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-section img,
.about-section .img-placeholder {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.img-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e8e0d4, #d4c8b8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-item .year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.timeline-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-item p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ===== 专业领域页 ===== */
.practice-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.practice-detail-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.practice-detail-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.practice-detail-card .icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.practice-detail-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.practice-detail-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.practice-detail-card ul {
    padding-left: 0;
}

.practice-detail-card ul li {
    font-size: 0.85rem;
    color: var(--color-text-light);
    padding: 4px 0 4px 20px;
    position: relative;
}

.practice-detail-card ul li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 0.65rem;
    top: 8px;
}

/* ===== 联系我们页 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 36px;
    margin-bottom: 24px;
}

.contact-info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-item .icon {
    width: 44px;
    height: 44px;
    background: var(--color-bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-info-item .info .label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.contact-info-item .info .value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
}

.contact-form-wrap {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 40px;
}

.qr-section {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.qr-item {
    text-align: center;
    background: #faf8f5;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px 18px;
    width: 150px;
    transition: box-shadow .3s;
}

.qr-item:hover {
    box-shadow: 0 6px 16px rgba(139,26,26,0.12);
}

.qr-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin: 0 auto 10px;
}

.qr-item span {
    font-size: 0.88rem;
    color: var(--color-primary);
    font-weight: 600;
}

.contact-form-wrap h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-form-wrap .form-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-group label .required {
    color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.92rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--color-bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(139,26,26,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.map-wrap {
    margin-top: 24px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(rgba(232,224,212,0.15), rgba(212,200,184,0.15)), url('../images/map.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.map-placeholder i {
    font-size: 1.5rem;
    color: var(--color-primary);
    background: rgba(255,255,255,0.65);
    padding: 10px;
    border-radius: 50%;
}

.map-placeholder p {
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255,255,255,0.85);
    padding: 4px 14px;
    border-radius: 20px;
    margin: 0;
}

/* ===== 新闻列表页 ===== */
.news-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.news-list .news-card {
    flex-direction: row;
}

.news-list .news-card .news-image {
    width: 200px;
    min-height: 180px;
    flex-shrink: 0;
    align-self: stretch;
}

.news-list .news-card .news-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.news-list .news-card .news-content {
    padding: 20px;
}

/* ===== 团队页 ===== */
.team-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.team-page-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.team-page-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.team-page-card .team-photo {
    aspect-ratio: 3/4;
}

.team-page-card .team-info {
    padding: 24px;
}

.team-page-card .team-info h3 {
    font-size: 1.2rem;
}

.team-page-card .team-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 12px;
    line-height: 1.7;
}

/* 团队卡片图片（数据库输出 + 链接） */
.team-page-card .team-photo-link {
    display: block;
    position: relative;
}

.team-page-card .team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-page-card .team-photo-link:hover img {
    transform: scale(1.05);
}

.team-page-card .team-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.team-page-card .team-info h3 a:hover {
    color: var(--color-primary);
}

/* ===== 律师详情页 ===== */
.lawyer-detail {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 40px;
}

.lawyer-photo {
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8e0d4, #d4c8b8);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lawyer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lawyer-photo-placeholder {
    font-size: 5rem;
    color: var(--color-text-muted);
    opacity: 0.4;
}

.lawyer-info h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.lawyer-info .title {
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 14px;
	text-align: center;
}

.lawyer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.lawyer-tags .tag {
    font-size: 0.78rem;
    background: var(--color-bg-gray);
    color: var(--color-text-light);
    padding: 4px 14px;
    border-radius: 16px;
}

.lawyer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.lawyer-meta i {
    color: var(--color-primary);
    margin-right: 6px;
}

.lawyer-summary {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    padding: 16px 20px;
    background: var(--color-bg-gray);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 8px 8px 0;
}

.lawyer-content {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    padding-top: 8px;
}

.lawyer-content p {
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.lawyer-content h3 {
    font-size: 1.15rem;
    color: var(--color-text);
    margin: 24px 0 12px;
}

.lawyer-content h4 {
    font-size: 1rem;
    color: var(--color-text);
    margin: 20px 0 10px;
}

.lawyer-content ul,
.lawyer-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.lawyer-content li {
    margin-bottom: 6px;
}

.lawyer-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.lawyer-content a {
    color: var(--color-primary);
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--color-text-light);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .lawyer-detail {
        grid-template-columns: 1fr;
    }
}

/* ===== 资讯详情 ===== */
.article-detail {
    display: block;
    max-width: 860px;
    margin: 0 auto 40px;
}

.article-detail .lawyer-info h2 {
    text-align: center;
}

.article-detail .lawyer-info .title,
.article-detail .lawyer-tags {
    justify-content: center;
}

.article-detail .lawyer-meta {
    justify-content: center;
    margin-bottom: 0;
}

.article-detail .lawyer-photo {
    aspect-ratio: auto;
    background: linear-gradient(135deg, #e8e0d4, #d4c8b8);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 420px;
}

.article-detail .lawyer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .article-detail .lawyer-photo {
        height: 260px;
    }
}

.article-pager {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.article-pager .pager-item {
    flex: 1;
    min-width: 0;
}

.article-pager .pager-item.next {
    text-align: right;
}

.article-pager .pager-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.article-pager .pager-link {
    display: block;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.article-pager .pager-link:hover {
    color: var(--color-primary);
}

.article-pager .pager-link.disabled {
    color: var(--color-text-muted);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .article-pager {
        flex-direction: column;
        gap: 16px;
    }

    .article-pager .pager-item.next {
        text-align: left;
    }
}

/* ===== 案例页 ===== */
.case-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.case-page-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.case-page-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.case-page-card .case-banner {
    height: 6px;
}

.case-page-card .case-content {
    padding: 32px;
}

.case-page-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
}

.case-page-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.case-page-card h3 a:hover {
    color: var(--color-primary);
}

.case-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.case-more:hover {
    color: var(--color-primary-dark);
}

.case-more i {
    font-size: 0.75rem;
    transition: var(--transition);
}

.case-more:hover i {
    transform: translateX(4px);
}

.case-page-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.case-meta {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.case-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination a:hover,
.pagination a.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* ===== 交通指引 ===== */
.traffic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 28px;
}

/* ===== 锦旗荣誉 ===== */
.flag-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.flag-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.flag-item img {
    max-height: 320px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flag-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 小屏：律师团队横向滑动，每屏显示 2 张，可左右划动 */
    .team-slider-wrap {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .team-slider-wrap::-webkit-scrollbar {
        display: none;
    }

    .team-dots {
        display: flex;
    }

    .team-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
    }

    .team-grid .team-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 0;
        scroll-snap-align: center;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .practice-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-card {
        min-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 0;
        transform: translateX(100%);
        transition: var(--transition);
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li > a {
        width: 100%;
        padding: 14px 0;
        line-height: 1.5;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu > li > a::after {
        display: none;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        min-width: auto;
    }

    .has-dropdown:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .hero {
        min-height: 480px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .hero-stat .num {
        font-size: 1.6rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .about-preview {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-badge {
        bottom: -10px;
        right: 10px;
    }

    .practice-grid,
    .flag-grid,
    .traffic-grid,
    .news-grid,
    .practice-detail-grid,
    .case-page-grid {
        grid-template-columns: 1fr;
    }

    /* 手机：律师团队列表一排显示两个图片 */
    .team-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .case-card {
        min-width: 100%;
    }

    .news-list {
        grid-template-columns: 1fr;
    }

    .news-list .news-card {
        flex-direction: column;
    }

    .news-list .news-card .news-image {
        width: 100%;
        height: 180px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* 律所简介、联系方式整行占满；快速导航与业务领域并排一行 */
    .footer-grid .footer-col:nth-child(1),
    .footer-grid .footer-col:nth-child(4) {
        grid-column: 1 / -1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-section {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }

    .page-banner h1 {
        font-size: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .float-consult {
        right: 12px;
        bottom: 20px;
    }

    .float-consult a {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .practice-card,
    .practice-detail-card {
        padding: 28px 20px;
    }

    .contact-form-wrap,
    .contact-info-card {
        padding: 24px;
    }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== 文字工具类 ===== */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
