/* ========================================
   重庆博志律师事务所 - 完整样式�?v2.0
   ======================================== */

/* CSS Variables */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-700: #1d4ed8;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-300: #93c5fd;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --secondary: #001852;
    --secondary-light: #1e3a8a;
    --secondary-700: #000f31;
    --accent: #b8d2c7;
    --accent-50: #f0f7f4;
    --accent-100: #e9f3ef;
    --accent-200: #d3e7df;
    --accent-300: #c0dcd0;
    --accent-400: #a7cfbf;
    --accent-500: #b8d2c7;
    --accent-600: #8fb5a3;
    --accent-700: #6b9880;
    --sand: #f5e8c8;
    --sand-50: #fefdf8;
    --sand-100: #fdfbf1;
    --sand-200: #fbf7e3;
    --sand-300: #f5e8c8;
    --cream: #e7dbc3;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    --container-max: 1200px;
    --header-height: 80px;
}

/* ========================================
   Global Reset
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--secondary);
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

img, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--secondary);
}

/* ========================================
   Layout
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section.pt-sm {
    padding-top: 2.5rem;
}

.section.py-sm {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.w-full { width: 100%; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

.text-center { text-align: center; }
.text-left { text-align: left; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-primary { color: var(--primary); }
.text-white { color: #fff; }
.text-gray { color: var(--gray-500); }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.border-t { border-top: 1px solid var(--gray-200); }

/* ========================================
   Backgrounds
   ======================================== */
.bg-white { background-color: #fff; }
.bg-sand-50 { background-color: var(--sand-50); }
.bg-sand-100 { background-color: var(--sand-100); }
.bg-accent-100 { background-color: var(--accent-100); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }

.bg-cream-gradient {
    background: linear-gradient(180deg, #fff 0%, var(--sand-50) 100%);
}

.gradient-bg {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Top Bar (顶部信息�?
   ======================================== */
.top-bar {
    background-color: var(--sand-100);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.topbar-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.topbar-item svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.topbar-item a {
    color: var(--gray-600);
    transition: var(--transition);
}

.topbar-item a:hover {
    color: var(--primary);
}

/* ========================================
   Navbar (导航�?
   ======================================== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--gray-200);
}

.navbar-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary);
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-phone-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.navbar-phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.navbar-phone-btn svg {
    width: 16px;
    height: 16px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 999;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu .nav-link {
    display: block;
    padding: 1rem 0.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--gray-100);
    border-radius: 0;
}

.mobile-menu .nav-link::after {
    display: none;
}

.mobile-menu .navbar-phone-btn {
    margin-top: 1.5rem;
    justify-content: center;
    width: 100%;
}

/* ========================================
   Hero Section (英雄区域)
   ======================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #fff 0%, var(--sand-50) 50%, var(--sand-100) 100%);
    overflow: hidden;
}

.hero-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
}

.hero-blur-1 {
    top: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: var(--primary);
    opacity: 0.15;
}

.hero-blur-2 {
    bottom: -100px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: var(--accent-300);
    opacity: 0.2;
}

.hero-blur-3 {
    top: 40%;
    right: 30%;
    width: 300px;
    height: 300px;
    background: var(--sand-300);
    opacity: 0.3;
}

.hero-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: calc(var(--header-height) + 2rem) 1.5rem 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.hero-left {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--accent-100);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title-line1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-title-line2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Hero Stats (4列内联网�? */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Hero Services (4列服务图�? */
.hero-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-service-item {
    text-align: center;
    padding: 1.25rem 0.75rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--accent-200);
    transition: var(--transition);
}

.hero-service-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.hero-service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: var(--accent-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.hero-service-icon svg {
    width: 24px;
    height: 24px;
}

.hero-service-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.125rem;
}

.hero-service-desc {
    font-size: 0.7rem;
    color: var(--gray-500);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual (右侧装饰) */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.hero-visual-card {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-100) 100%);
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    transform: rotate(15deg);
    animation: float 6s ease-in-out infinite;
}

.hero-visual-icon {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.hero-visual-icon svg {
    width: 60px;
    height: 60px;
}

.hero-visual-text {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
    text-align: center;
}

.hero-visual-text h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.hero-visual-text p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

@keyframes float {
    0%, 100% { transform: rotate(15deg) translateY(0); }
    50% { transform: rotate(15deg) translateY(-20px); }
}

/* ========================================
   Section Title
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--accent-100);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   About Section (关于我们)
   ======================================== */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #fff 0%, var(--sand-50) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    color: var(--gray-600);
    line-height: 1.85;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.about-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 2.25rem 0 1rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--primary);
}

.about-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 1.75rem 0 0.75rem;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 1rem;
}

.about-link:hover {
    gap: 0.75rem;
}

.about-link svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

/* About Features (3列横排卡�? */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.about-feature-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--sand-200);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}

.about-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-feature-icon svg {
    width: 24px;
    height: 24px;
}

.about-feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.about-feature-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Services Section (服务领域)
   ======================================== */
.services-section {
    padding: 6rem 0;
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--sand-200);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    background: var(--accent-100);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-card-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.service-card-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.125rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.service-card-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-card-list {
    text-align: left;
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.8;
}

.service-card-list li {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.service-card-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.services-more {
    text-align: center;
    margin-top: 3rem;
}

/* Service page grid classes (no inline styles) */
.services-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.service-subitems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.service-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* ========================================
   Cases Section (案例展示)
   ======================================== */
.cases-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #fff 0%, var(--sand-50) 100%);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.case-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--sand-200);
    overflow: hidden;
    transition: var(--transition);
}
a.case-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.case-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.case-card-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-100) 0%, var(--sand-100) 100%);
    transition: var(--transition);
}

.case-card:hover .case-card-image-bg {
    transform: scale(1.05);
}

.case-card-image svg {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    color: var(--primary);
    opacity: 0.4;
}

.case-card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.case-card-date {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--secondary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
}

.case-card-content {
    padding: 1.5rem;
}

.case-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-card-summary {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cases-more {
    text-align: center;
    margin-top: 3rem;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.cta-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Footer (页脚)
   ======================================== */
.footer {
    background: var(--sand-50);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 1.1fr 1.3fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-brand .footer-logo .logo-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-brand .footer-logo .logo-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--accent-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-col h3 {
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-left: 0.75rem;
    position: relative;
}

.footer-col h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1em;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--gray-600);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 4px solid transparent;
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.footer-links a:hover::before {
    opacity: 1;
    border-left-color: var(--primary);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* 业务部门两列布局 */
.footer-links-dept {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.75rem;
    row-gap: 0.625rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ========================================
   友情链接（仅首页）
   ======================================== */
.footer-friendlinks {
    border-top: 1px solid var(--gray-200);
    padding-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.footer-friendlinks-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.25rem 1.5rem;
}

.footer-friendlinks-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-right: 0.25rem;
}

.footer-friendlinks-inner a {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
}

.footer-friendlinks-inner a:hover {
    color: var(--primary);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.footer-bottom a {
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary);
}

.footer-links-inline {
    display: flex;
    gap: 1.5rem;
}

/* ========================================
   Floating Buttons (浮动按钮)
   ======================================== */
.floating-buttons {
    position: fixed;
    right: 1.5rem;
    bottom: 2rem;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.floating-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    position: relative;
    text-decoration: none;
}

.floating-btn svg {
    width: 22px;
    height: 22px;
}

.floating-btn-wechat {
    background: #07c160;
}

.floating-btn-wechat:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(7, 193, 96, 0.4);
}

.floating-btn-phone {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.floating-btn-phone:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.floating-btn-location {
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
}

.floating-btn-location:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(167, 207, 191, 0.5);
}

.floating-btn .tooltip {
    position: absolute;
    right: calc(100% + 0.75rem);
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary);
    color: #fff;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.floating-btn:hover .tooltip {
    opacity: 1;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 9.5rem;
    width: 44px;
    height: 44px;
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--primary);
}

.btn-white:hover {
    background: var(--sand-50);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    padding: 6rem 0;
    background: var(--sand-50);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    transition: var(--transition);
    user-select: none;
    gap: 1rem;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--primary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-icon svg {
    width: 20px;
    height: 20px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.25rem;
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
    padding: 1rem 0;
    background: var(--sand-50);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-500);
    flex-wrap: wrap;
}

.breadcrumb-list a {
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-list a:hover {
    color: var(--primary);
}

.breadcrumb-list .separator {
    color: var(--gray-300);
    font-size: 0.8rem;
}

.breadcrumb-list .current {
    color: var(--secondary);
    font-weight: 500;
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    padding: calc(var(--header-height) + 2rem) 0 calc(var(--header-height) + 2rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, var(--sand-50) 100%);
}

/* When combined with gradient-bg, the blue gradient wins */
.page-header.gradient-bg {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
}

.page-header.gradient-bg h1,
.page-header.gradient-bg p {
    color: #fff;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Timeline
   ======================================== */
.timeline {
    position: relative;
    padding-left: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent-200));
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid var(--primary);
    border-radius: 50%;
    transform: translateX(-7px);
}

.timeline-content {
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--accent-200);
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.timeline-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* About Advantages Grid */
.about-advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--accent-200);
    box-shadow: var(--shadow-md);
}

.stats-item .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stats-item .stat-label {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
}

.contact-info-content h3 {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.contact-info-content p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--sand-200);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Lawyers Grid
   ======================================== */
.lawyers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.lawyer-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.lawyer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 58, 138, 0.10);
    border-color: #b8cce4;
}

/* ---- 卡片顶部：圆形头�?+ 姓名/职位/资历 ---- */
.lawyer-card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
}

.lawyer-avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e8ecf1, #f0f4f8);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.lawyer-avatar-circle .lawyer-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lawyer-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.lawyer-avatar-placeholder span {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.lawyer-card-head {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.lawyer-card-head .lawyer-name {
    font-size: 1rem;
    font-weight: 700;
    color: #001852;
    margin: 0;
    line-height: 1.3;
}

.lawyer-card-head .lawyer-name:hover {
    color: var(--primary);
}

.lawyer-card-head .lawyer-title {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

.lawyer-exp-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #3b82f6;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    margin-top: 2px;
}

/* ---- 数据统计�?---- */
.lawyer-stats-row {
    display: flex;
    margin: 0 1.25rem;
    padding: 0.75rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    gap: 0;
}

.lawyer-stat-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.lawyer-stat-item + .lawyer-stat-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: #e8ecf1;
}

.lawyer-stat-num {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.3;
}

.lawyer-stat-label {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ---- 擅长领域标签 ---- */
.lawyer-expertise {
    padding: 0.75rem 1.25rem 0;
}

.lawyer-expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.expertise-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    line-height: 1.4;
    white-space: nowrap;
    transition: all 0.2s;
}

.expertise-tag:hover {
    color: #1e3a8a;
    background: #eff6ff;
    border-color: #93c5fd;
}

/* ---- 预约咨询按钮 ---- */
.lawyer-consult-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.75rem 1.25rem 1.25rem;
    padding: 0.55rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s;
}

.lawyer-consult-btn:hover {
    background: linear-gradient(135deg, #152c6b, #2563eb);
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.25);
    transform: translateY(-1px);
    color: #fff;
}

/* ---- 响应�?---- */

@media (max-width: 992px) {
    .lawyers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .top-bar {
        display: none;
    }
    .hero {
        min-height: auto;
    }
    .hero-container {
        padding: calc(var(--header-height) + 1.5rem) 1rem 3rem;
    }
    .hero-title-line1,
    .hero-title-line2 {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1.5rem 1rem;
    }
    .hero-stat-number {
        font-size: 1.75rem;
    }
    .hero-stat-label {
        font-size: 0.7rem;
    }
    .hero-services {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .hero-service-item {
        padding: 1rem 0.5rem;
    }
    .hero-service-icon {
        width: 40px;
        height: 40px;
    }
    .hero-service-icon svg {
        width: 20px;
        height: 20px;
    }
    .hero-service-title {
        font-size: 0.75rem;
    }
    .hero-service-desc {
        display: none;
    }
    .section {
        padding: 3.5rem 0;
    }
    .section.pt-sm {
        padding-top: 1.75rem;
    }
    .section.py-sm {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .section-subtitle {
        font-size: 0.95rem;
    }
    .about-section,
    .services-section,
    .cases-section,
    .faq-section {
        padding: 3.5rem 0;
    }
    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .about-advantages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .services-list-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .service-process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .cases-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .cta-section {
        padding: 3.5rem 0;
    }
    .cta-title {
        font-size: 1.75rem;
    }
    .cta-subtitle {
        font-size: 1rem;
    }
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .cta-actions .btn {
        width: 100%;
    }
    .lawyers-grid {
        grid-template-columns: 1fr;
    }
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    .stats-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
    .stats-item .stat-number {
        font-size: 2rem;
    }
    .page-header h1 {
        font-size: 1.75rem;
    }
    .page-header p {
        font-size: 0.95rem;
    }
    .floating-buttons {
        right: 0.75rem;
        bottom: 1.5rem;
    }
    .floating-btn {
        width: 44px;
        height: 44px;
    }
    .floating-btn svg {
        width: 18px;
        height: 18px;
    }
    .back-to-top {
        right: 0.75rem;
        bottom: 8.5rem;
        width: 40px;
        height: 40px;
    }
    .navbar-logo .logo-text .logo-sub {
        display: none;
    }
    .navbar-logo .logo-name {
        font-size: 1rem;
    }
    .navbar-logo .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .breadcrumb {
        padding: 0.5rem 0;
    }
    .contact-form {
        padding: 1.5rem;
    }

    .lawyers-grid {
        grid-template-columns: 1fr;
    }

    .article-hero {
        height: 250px;
    }
    .article-hero-title {
        font-size: 1.5rem;
    }
    .article-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .article-related-grid {
        grid-template-columns: 1fr;
    }
    .article-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .article-body-container {
        padding: 0 1rem;
    }
    .article-nav {
        flex-direction: column;
    }
    .article-nav-item {
        max-width: 100%;
    }
}
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-visual {
        display: none;
    }
    .hero-title-line1,
    .hero-title-line2 {
        font-size: 2.75rem;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-services {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
    .about-advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}
@media (max-width: 767px) {
    .navbar-menu {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .mobile-menu {
        display: block;
    }
    .navbar-actions .navbar-phone-btn {
        display: none;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-hero {
        height: 300px;
    }
    .article-hero-title {
        font-size: 2rem;
    }
    .article-hero-content {
        padding-bottom: 2rem;
    }

    .knowledge-detail-layout {
        grid-template-columns: 1fr;
    }
    .knowledge-detail-side {
        position: static;
    }
    .knowledge-detail-main {
        padding: 1.5rem;
        min-width: 0;
        overflow: hidden;
    }
    .knowledge-detail-header h1 {
        font-size: 1.35rem;
    }
    .knowledge-detail-container {
        padding: 0 1rem;
    }
}

/* ========================================
   Knowledge Grid
   ======================================== */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.knowledge-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--sand-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.knowledge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.knowledge-card-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--accent-100), var(--sand-100));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.knowledge-card-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.knowledge-card-image svg {
    width: 48px;
    height: 48px;
    color: var(--primary);
    opacity: 0.3;
}

.knowledge-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.knowledge-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.knowledge-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.knowledge-card-summary {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.knowledge-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-400);
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

/* ========================================
   Form Styles
   ======================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    color: var(--secondary);
    background: #fff;
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    color: var(--secondary);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.form-success.visible {
    display: block;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ========================================
   Responsive: Tablet (768px - 1024px)
   ======================================== */

/* ========================================
   Responsive: Mobile (< 768px)
   ======================================== */

/* ========================================
   Utility Classes
   ======================================== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.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;
}

@media print {
    .navbar, .floating-buttons, .back-to-top, .mobile-menu {
        display: none !important;
    }
}

/* ========================================
   Article Detail Page (文章详情�?
   ======================================== */

/* Article Hero */
.article-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: var(--header-height);
}

.article-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #0f172a 100%);
}

.article-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 40%, transparent 100%);
}

.article-hero-bg::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    filter: blur(80px);
}

.article-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.article-breadcrumb a:hover {
    color: #fff;
}

.article-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.article-breadcrumb .current {
    color: #fff;
    font-weight: 500;
}

.article-category-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.article-meta-item svg {
    width: 16px;
    height: 16px;
}

.article-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.02em;
    max-width: 900px;
}

/* Article Body */
.article-body {
    background: #fff;
    padding: 3rem 0;
}

.article-body-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.article-author-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.article-author-avatar svg {
    width: 24px;
    height: 24px;
}

.article-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.article-author-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
}

.article-author-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.article-author-badge svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

/* Article Prose */
.article-prose {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 1rem;
}

.article-prose p {
    margin-bottom: 1rem;
}

.article-prose strong {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.05rem;
}

.article-prose h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-prose ol,
.article-prose ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-prose ol li,
.article-prose ul li {
    margin-bottom: 0.5rem;
    list-style: decimal;
}

.article-prose ul li {
    list-style: disc;
}

/* Article CTA Box */
.article-cta-box {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border: 1px solid var(--primary-300);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.article-cta-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.article-cta-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
}

.article-cta-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Article Related */
.article-related {
    background: var(--gray-50);
    padding: 4rem 0;
}

.article-related-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-related-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.article-related-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.article-related-subtitle {
    font-size: 0.95rem;
    color: var(--gray-500);
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.article-related-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--sand-200);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.article-related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.article-related-card .card-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--accent-100), var(--sand-100));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.article-related-card .card-image svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
    opacity: 0.4;
}

.article-related-card .card-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.2rem 0.625rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

.article-related-card .card-body {
    padding: 1.25rem;
}

.article-related-card .card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article Nav (prev/next) */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.article-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    color: var(--gray-600);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    max-width: 48%;
}

.article-nav-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

.article-nav-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.article-nav-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    display: block;
    margin-bottom: 0.125rem;
}

.article-nav-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   Responsive: Article Detail Page
   ======================================== */

/* ========================================
   Knowledge/Cases Detail Page (knowledge-detail-*)
   ======================================== */
.knowledge-detail-page {
    padding: 40px 0 4rem;
    background: var(--gray-50);
}

.knowledge-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Breadcrumb */
.knowledge-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}

.knowledge-breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

.knowledge-breadcrumb a:hover {
    color: var(--primary);
}

.knowledge-breadcrumb span:last-child {
    color: var(--secondary);
    font-weight: 600;
}

/* Two Column Layout */
.knowledge-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

/* Main Content Column */
.knowledge-detail-main {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.knowledge-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.knowledge-detail-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.knowledge-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.knowledge-detail-meta .meta-date {
    color: var(--gray-600);
}

/* Article Content */
.knowledge-detail-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--gray-800);
}

.knowledge-detail-content p {
    margin-bottom: 1.25rem;
}

.knowledge-detail-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 2.5rem 0 1rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--primary);
    line-height: 1.3;
}

.knowledge-detail-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 2rem 0 0.75rem;
    line-height: 1.4;
}

.knowledge-detail-content strong {
    color: var(--secondary);
}

.article-crosslinks {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}

.crosslinks-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.crosslinks-col {
    flex: 1;
    min-width: 160px;
}

.crosslinks-col h3 {
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.crosslinks-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crosslinks-col ul li {
    margin-bottom: 0.35rem;
}

.crosslinks-col ul li a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.crosslinks-col ul li a:hover {
    color: var(--primary-700);
}

.article-author-box {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--primary);
    font-size: 0.85rem;
    color: var(--gray-700);
    line-height: 1.8;
}

.article-author-box strong {
    color: var(--secondary);
}

/* Prev/Next Nav */
.knowledge-detail-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

.knowledge-detail-nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.knowledge-detail-nav a:hover {
    color: var(--primary-dark);
}

/* Sidebar Column */
.knowledge-detail-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.side-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.side-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.side-card p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.side-btn {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.side-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

.side-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.side-list a {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-700);
    text-decoration: none;
    line-height: 1.5;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-50);
    transition: color 0.2s;
}

.side-list a:hover {
    color: var(--primary);
}


/* ══════════════════════════════════════════════════
   律师详情页（复用 knowledge-detail 框架�?   ══════════════════════════════════════════════════ */

/* 律师顶部：照�?+ 基本信息 */
/* ========================================
   律师详情 Hero 卡片（照片+信息）
   ======================================== */
.lawyer-profile-hero {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 6px 24px rgba(0,0,0,.04);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* 左列：照片 */
.lph-photo-col {
    flex-shrink: 0;
    width: 220px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

.lph-photo {
    width: 150px;
    height: 190px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
}

.lph-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lph-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff, #dbeafe);
    font-size: 4rem;
    font-weight: 800;
    color: #1e3a8a;
}

/* 右列：信息 */
.lph-info-col {
    flex: 1;
    min-width: 0;
    padding: 1.75rem 2rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lph-name-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.lph-name {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: .5px;
    line-height: 1.25;
}

.lph-title {
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    padding: 3px 12px;
    border-radius: 5px;
    margin: 0;
    line-height: 1.5;
    white-space: nowrap;
}

.lph-exp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    font-weight: 500;
    color: #64748b;
    margin: 0;
}

.lph-exp svg { flex-shrink: 0; color: #94a3b8; }

.lph-license {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: #94a3b8;
    margin: 0;
}

.lph-license svg { flex-shrink: 0; }

/* 数据卡 */
.lph-stats {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.lph-stat {
    flex: 1;
    max-width: 120px;
    text-align: center;
    padding: 14px 10px 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    transition: background .2s, border-color .2s;
}

.lph-stat:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.lph-stat-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
}

.lph-stat-lbl {
    display: block;
    font-size: .72rem;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 3px;
}

/* ===================== 手机端 ===================== */
@media (max-width: 768px) {
    .lawyer-profile-hero {
        flex-direction: column;
        border-radius: 10px;
    }

    .lph-photo-col {
        width: 100%;
        padding: 1.25rem;
        background: #fff;
    }

    .lph-photo {
        width: 110px;
        height: 140px;
    }

    .lph-photo--placeholder { font-size: 3rem; }

    .lph-info-col {
        padding: 1.25rem 1.25rem 1.5rem;
        align-items: center;
        text-align: center;
    }

    .lph-name-row {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .lph-name { font-size: 1.35rem; }

    .lph-stats { justify-content: center; gap: 10px; width: 100%; }

    .lph-stat { max-width: none; flex: 0 1 100px; }
}

/* Section �?*/
.lawyer-section {
    margin-bottom: 2rem;
}
.lawyer-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--primary);
}
.lawyer-section-text {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--gray-700);
}
.lawyer-section-text p { margin: 0 0 0.75rem; }
.lawyer-section-text p:last-child { margin-bottom: 0; }

/* 擅长领域标签 */
.lawyer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.lawyer-tags span {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: var(--primary-50);
    color: var(--primary-dark);
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 500;
}

/* 底部 CTA */
.lawyer-bottom-cta {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #eff6ff, #e0e7ff);
    border-radius: var(--radius-lg);
    text-align: center;
}
.lawyer-bottom-cta p {
    font-size: 1.05rem;
    color: var(--secondary);
    font-weight: 600;
    margin: 0 0 1rem;
}
.lawyer-bottom-cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 侧边�?- 律所联系列表 */
.lawyer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lawyer-contact-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--gray-50);
    font-size: 0.825rem;
    color: var(--gray-700);
}
.lawyer-contact-list li:last-child { border-bottom: none; }
.lawyer-contact-list li span:first-child { color: var(--gray-400); flex-shrink: 0; margin-right: 0.5rem; }


/* ── 其他律师（侧边栏卡片）── */
.side-card-lawyers {
    padding: 0;
    overflow: hidden;
}
.side-card-lawyers-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.9rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-50);
    margin: 0;
}
.side-card-lawyers-title svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* 列表容器：卡片式堆叠 */
.side-lawyers-list {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* 单行律师 */
.side-lawyer-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.7rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, box-shadow 0.2s;
}
.side-lawyer-row:hover {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.side-lawyer-row:last-child {
    border-bottom: none;
}

/* 头像 */
.side-lawyer-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.side-lawyer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.side-lawyer-avatar-fb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

/* 文本区 */
.side-lawyer-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.side-lawyer-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.side-lawyer-meta {
    font-size: 0.7rem;
    color: var(--gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 右箭头 */
.side-lawyer-arrow {
    flex-shrink: 0;
    color: var(--gray-250, #d4d4d8);
    transition: transform 0.2s, color 0.2s;
}
.side-lawyer-row:hover .side-lawyer-arrow {
    transform: translateX(2px);
    color: var(--primary);
}

/* 底栏"查看全部" */
.side-lawyer-row-more {
    justify-content: center;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    padding: 0.7rem;
    margin-top: 0.15rem;
}
.side-lawyer-row-more:hover {
    box-shadow: none;
    background: #f8faff;
}

/* 侧边�?- 咨询卡（强调�?*/
.side-card-accent {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
}
.side-card-accent h3 { color: #fff; border-color: rgba(255,255,255,.2); }
.side-card-accent p { color: rgba(255,255,255,.85); }
.side-card-accent .side-btn { background: #fff; color: #1e3a8a; }
.side-card-accent .side-btn:hover { background: #f0f4ff; }

/* 响应�?*/

/* ══════════════════════════════════════════════════
   案例 - 关联律师 & 律师 - 关联案例
   ══════════════════════════════════════════════════ */

/* 案例详情�?- 代理律师卡片 */
.case-lawyer-box {
    margin-top: 2.5rem;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #dbeafe;
}
.case-lawyer-box-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}
.case-lawyer-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.case-lawyer-card:hover {
    background: #dbeafe;
}
.case-lawyer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}
.case-lawyer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.case-lawyer-avatar span {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}
.case-lawyer-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.case-lawyer-info strong {
    font-size: 0.95rem;
    color: var(--secondary);
}
.case-lawyer-info em {
    font-size: 0.8rem;
    color: var(--primary);
    font-style: normal;
    font-weight: 500;
}
.case-lawyer-info span {
    font-size: 0.78rem;
    color: var(--gray-500);
}
.case-lawyer-arrow {
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 300;
}

/* 律师详情�?- 关联案例网格 */
.lawyer-cases-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.lawyer-case-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.lawyer-case-item:hover {
    background: var(--primary-50);
    color: var(--primary);
}
.lawyer-case-date {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: var(--gray-400);
    min-width: 5rem;
}
.lawyer-case-title {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-800);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lawyer-case-item:hover .lawyer-case-title {
    color: var(--primary);
}
.lawyer-case-arrow {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--gray-300);
}
.lawyer-case-item:hover .lawyer-case-arrow {
    color: var(--primary);
}

/* ══════════════════════════════════════════════════
   律师卡片 - 擅长领域标签
   ══════════════════════════════════════════════════ */
.lawyer-expertise {
    margin: 0.5rem 0;
}
.lawyer-expertise-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}
.lawyer-expertise-label::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 14px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 2px;
}
.lawyer-expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}
.expertise-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: #1e3a8a;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    line-height: 1.5;
    white-space: nowrap;
    transition: all 0.2s;
}
.expertise-tag:hover {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
}
/* ── 分页组件 ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--gray-600);
    background: #fff;
    border: 1px solid var(--gray-200);
    text-decoration: none;
    transition: all 0.2s;
}
.pagination .page-numbers:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.pagination .page-numbers.active,
.pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
}
.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    color: var(--gray-400);
}
.pagination .page-numbers.dots:hover {
    background: transparent;
    color: var(--gray-400);
}
.pagination .next,
.pagination .prev {
    font-weight: 500;
}


/* ══════════════════════════════════════════════════
   Inline Style Migration
   ══════════════════════════════════════════════════ */
/* ── SVG Icons ── */
.icon-xs { width: 15px; height: 15px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 18px; height: 18px; }
.icon-lg { width: 20px; height: 20px; }
.icon-xl { width: 32px; height: 32px; }
.icon-2xl { width: 40px; height: 40px; }
.icon-3xl { width: 64px; height: 64px; }
.icon-inline-sm { width: 14px; height: 14px; display: inline-block; vertical-align: middle; margin-right: 2px; }
.icon-inline { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-link { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; vertical-align: middle; }

/* ── Text helpers ── */
.text-white-85 { color: rgba(255,255,255,0.85) !important; }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }

/* ── Icon Circle (blue bg + centered icon) ── */
.icon-circle { width: 80px; height: 80px; background: var(--primary-50); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--primary); }
.service-icon { border-radius: var(--radius-xl); margin: 0; }

/* ── Card variants (from inline patterns) ── */
.card-stat { background: #fff; padding: 2rem; border-radius: var(--radius-xl); border: 1px solid var(--sand-200); box-shadow: var(--shadow-sm); transition: var(--transition); }
.card-service { padding: 2rem; border: 2px solid transparent; transition: var(--transition); }
.card-process { padding: 1.5rem; text-align: center; height: 100%; background: #fff; border-radius: var(--radius-xl); border: 1px solid var(--sand-200); box-shadow: var(--shadow-sm); }

/* ── Page sections ── */
.page-intro { padding: 3rem 0; }
.page-intro-text { text-align: center; color: var(--gray-600); max-width: 800px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; }

/* ── FAQ ── */
.faq-info-box { background: #fff; border-left: 4px solid var(--primary); border-radius: var(--radius-md); padding: 1rem 1.5rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.faq-q-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--primary-100); color: var(--primary); border-radius: 50%; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.faq-a-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--accent-100); color: var(--primary); border-radius: 50%; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; margin-bottom: 0.5rem; }
.faq-disclaimer { color: var(--gray-600); font-size: 0.9rem; }

/* ── 办公环境 Gallery ── */
.office-gallery { display: flex; flex-direction: column; gap: 12px; }
.office-gallery-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.office-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.office-img-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
}
.office-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.office-img-wrap:hover img { transform: scale(1.04); }
.office-img-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .5px;
}

@media (max-width: 768px) {
    .office-gallery-main { grid-template-columns: 1fr; }
    .office-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .office-gallery { gap: 8px; }
    .office-gallery-main { gap: 8px; }
    .office-img-label { padding: 8px 12px; font-size: .78rem; }
}

/* ── 荣誉锦旗 Gallery ── */
.honor-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.honor-item {
    text-align: center;
}
.honor-img {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #f1f5f9;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}
.honor-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.honor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.honor-desc {
    margin: 10px 0 0;
    font-size: .88rem;
    font-weight: 600;
    color: #334155;
}

@media (max-width: 768px) {
    .honor-gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .honor-desc { font-size: .8rem; }
}

/* ── 404 Error ── */
.error-404-number { font-size: 6rem; font-weight: 800; color: var(--primary-100); margin-bottom: 1rem; }
.error-404-title { font-size: 1.5rem; color: var(--secondary); margin-bottom: 0.5rem; }
.error-404-desc { color: var(--gray-500); margin-bottom: 2rem; }
.error-404-box { text-align: center; padding: 4rem 0; }
.error-404-search { margin-top: 3rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── Contact Form ── */
.form-msg { display: none; padding: 0.75rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.form-hint { font-size: 0.75rem; color: var(--gray-400); text-align: center; margin-top: 1rem; }
.form-full-btn { width: 100%; }
.contact-info-title { font-size: 1.5rem; font-weight: 700; color: var(--secondary); margin-bottom: 1rem; }
.contact-info-desc { color: var(--gray-600); margin-bottom: 2rem; }
.contact-map-wrap { margin-top: 2rem; }
.contact-map-iframe { aspect-ratio: 16/9; border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.08); border: 1px solid var(--gray-200); }
.contact-map-iframe iframe { border: 0; width: 100%; height: 100%; }
.contact-map-footer { text-align: center; margin-top: 0.75rem; font-size: 0.85rem; color: var(--gray-400); }
.contact-map-link { color: var(--primary); text-decoration: none; }
.contact-faq-section { background: var(--gray-50); padding: 5rem 0; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 800px; margin: 0 auto; }
.faq-card { padding: 1.5rem; }
.faq-card h3 { font-size: 1rem; font-weight: 600; color: var(--secondary); margin-bottom: 0.5rem; }
.faq-card p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; }

/* ── Search Page ── */
.search-empty { text-align: center; padding: 4rem 0; }
.search-empty-title { font-size: 1.5rem; color: var(--gray-600); margin-bottom: 0.5rem; }
.search-empty-hint { color: var(--gray-400); }
.search-empty-actions { margin-top: 2rem; }

/* ── Empty State ── */
.grid-empty { grid-column: 1 / -1; text-align: center; padding: 3rem; }
.grid-empty-text { color: var(--gray-500); font-size: 1.1rem; }
.no-results-text { text-align: center; color: var(--gray-500); }

/* ── Step Process Number ── */
.step-number { font-size: 2.5rem; font-weight: 800; color: var(--primary-100); margin-bottom: 1rem; }

/* ── Misc Layout ── */
.flex-center { display: flex; gap: 1rem; justify-content: center; }
.flex-inline-gap { display: flex; align-items: center; gap: 0.75rem; }
.flex-item-gap { display: flex; align-items: center; gap: 0.75rem; }

/* ── Footer / Logo ── */
.footer-logo-sub { font-size: 0.75rem; color: var(--gray-500); }
.logo-img-full { width: 100%; height: 100%; object-fit: contain; }

/* ── Service item check ── */
.service-check-text { color: var(--gray-700); }

/* ── Lawyer profile ── */
.lawyer-profile-license { font-size: 0.85rem; color: var(--gray-500); margin-top: 4px; }

/* ── Contact workhours ── */
.contact-workhours { font-size: 0.85rem; color: var(--gray-400); }

/* ── Required star ── */
.form-req-star { color: #ef4444; }

@media (max-width: 768px) {
    .lawyer-bottom-cta-btns { flex-direction: column; align-items: center; }
    .lawyer-bottom-cta { padding: 1.25rem 1rem; }

    .case-lawyer-card {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .case-lawyer-arrow {
        display: none;
    }
    .lawyer-case-date {
        min-width: 4rem;
        font-size: 0.72rem;
    }
    .lawyer-case-title {
        font-size: 0.825rem;
    }
}
/* ========================================
   FAQ List �?question link
   ======================================== */
.faq-question-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}
.faq-question-link:hover { color: var(--primary); }

/* ========================================
   FAQ Detail Page �?Q&A Layout
   ======================================== */

/* Body wrapper */
.faq-detail-body {
    padding: 2.5rem 0 2rem;
    background: #fff;
}

/* Q block �?left column header */
.faq-detail-q-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.faq-detail-q-badge {
    flex-shrink: 0;
    margin-top: 4px;
}
.faq-detail-q-text {
    flex: 1;
    min-width: 0;
}
.faq-detail-question {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.4;
    margin: 0 0 0.5rem;
}
.faq-detail-q-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.faq-detail-q-date {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}
.faq-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-100);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Q→A divider */
.faq-detail-divider-line {
    height: 2px;
    background: linear-gradient(90deg, var(--primary-200), transparent);
    margin-bottom: 1.5rem;
}

/* Answer body */
.faq-detail-body {
    padding: 2.5rem 0 3.5rem;
    background: #fff;
}
.faq-detail-body-inner {
    max-width: 800px;
    margin: 0 auto;
}
.faq-detail-a-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-100);
}
.faq-detail-a-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}
.faq-detail-a-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.02em;
}

/* Rich content */
.faq-detail-content {
    color: var(--gray-700);
    line-height: 1.85;
    font-size: 1rem;
}
.faq-detail-content h2 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin: 1.75rem 0 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--primary);
}
.faq-detail-content h3 {
    font-size: 1.05rem;
    color: var(--secondary);
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
}
.faq-detail-content p {
    margin: 0.6rem 0;
}
.faq-detail-content ul, .faq-detail-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}
.faq-detail-content li {
    margin: 0.35rem 0;
}
.faq-detail-content strong {
    color: var(--secondary);
}

/* Disclaimer */
.faq-detail-disclaimer {
    margin-top: 2.5rem;
    padding: 1rem 1.25rem;
    background: var(--sand-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
}
.faq-detail-disclaimer svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

/* Related Q&A */
.faq-detail-related {
    padding: 3rem 0 1.5rem;
    background: var(--sand-50);
}
.faq-detail-related-header {
    margin: 0 0 1.25rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.faq-detail-related-header h2 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin: 0;
}
.faq-detail-related-all {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.faq-detail-related-all:hover {
    color: var(--primary-dark);
    gap: 0.5rem;
}
.faq-detail-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.faq-detail-related-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.faq-detail-related-card:hover {
    box-shadow: var(--shadow-md);
    color: var(--primary);
    transform: translateX(4px);
}
.faq-detail-related-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--primary-100);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.faq-detail-related-title {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}
.faq-detail-related-arrow {
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s;
    color: var(--primary);
}
.faq-detail-related-card:hover .faq-detail-related-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── Tablet ── */
@media (max-width: 992px) {
    .faq-detail-related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile ── */
@media (max-width: 767px) {
    /* Knowledge/Case generic overrides */
    .knowledge-detail-layout { display: grid; grid-template-columns: 1fr; }
    .knowledge-detail-side { position: static; }
    .knowledge-detail-main { padding: 1.5rem; }
    .knowledge-detail-container { padding: 0 1rem; }
    .knowledge-detail-header h1 { font-size: 1.35rem; }

    /* FAQ-specific */
    .faq-detail-body .knowledge-detail-main { padding: 1.25rem; }

    .faq-detail-body {
        padding: 1.5rem 0 2rem;
    }

    /* Q block */
    .faq-detail-q-block {
        flex-direction: row;
        gap: 0.5rem;
        margin-bottom: 1rem;
        align-items: center;
    }
    .faq-detail-q-badge {
        margin-top: 0;
        flex-shrink: 0;
    }
    .faq-detail-question {
        font-size: 1rem;
        line-height: 1.4;
    }
    .faq-detail-q-meta {
        gap: 0.5rem;
    }
    .faq-detail-q-date {
        font-size: 0.75rem;
    }
    .faq-detail-category {
        font-size: 0.72rem;
        padding: 0.15rem 0.5rem;
    }

    /* Divider */
    .faq-detail-divider-line {
        margin-bottom: 1rem;
    }

    /* A header */
    .faq-detail-a-header {
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    .faq-detail-a-badge {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    .faq-detail-a-label {
        font-size: 1rem;
    }

    /* Content */
    .faq-detail-content {
        font-size: 0.95rem;
        line-height: 1.75;
    }
    .faq-detail-content h2 {
        font-size: 1.1rem;
        margin: 1.25rem 0 0.5rem;
        padding-left: 0.5rem;
    }
    .faq-detail-content h3 {
        font-size: 1rem;
        margin: 1rem 0 0.4rem;
    }
    .faq-detail-content ul,
    .faq-detail-content ol {
        padding-left: 1.25rem;
    }

    /* Disclaimer */
    .faq-detail-disclaimer {
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.85rem 1rem;
        font-size: 0.8rem;
        margin-top: 1.5rem;
    }

    /* Bottom related */
    .faq-detail-related {
        padding: 2rem 0 1rem;
    }
    .faq-detail-related-header {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    .faq-detail-related-header h2 {
        font-size: 1.1rem;
    }
    .faq-detail-related-all {
        font-size: 0.82rem;
    }
    .faq-detail-related-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .faq-detail-related-card {
        padding: 0.75rem 0.85rem;
    }
    .faq-detail-related-q {
        width: 22px;
        height: 22px;
        font-size: 0.68rem;
        border-radius: 5px;
    }
    .faq-detail-related-title {
        font-size: 0.85rem;
    }
    .faq-detail-related-arrow {
        opacity: 0.5;
    }
}


/* ����������������������������������������������������������������������������������
   FAQ ����ɸѡ��
   ���������������������������������������������������������������������������������� */
.faq-filter-bar {
    padding: 1.5rem 0;
    background: var(--sand-50);
    border-bottom: 1px solid var(--sand);
}
.faq-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}
.faq-filter-tag {
    padding: 0.45rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    background: #fff;
    font-size: 0.85rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.faq-filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.faq-filter-tag.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ����������������������������������������������������������������������������������
   FAQ ��Ƭ��
   ���������������������������������������������������������������������������������� */
.faq-card-section {
    padding: 3rem 0;
    background: var(--sand-50);
}
.faq-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.faq-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
}
.faq-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.faq-card-body {
    padding: 1.75rem 1.75rem 1rem;
    flex: 1;
}
.faq-card-q {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.faq-card-q-badge {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 2px;
}
.faq-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.45;
    margin: 0;
}
.faq-card-title a {
    color: inherit;
    text-decoration: none;
}
.faq-card-title a:hover {
    color: var(--primary);
}
.faq-card-a {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-left: 0.25rem;
}
.faq-card-a-badge {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--accent);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 1px;
}
.faq-card-answer {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}
.faq-card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.75rem;
    border-top: 1px solid var(--gray-50);
    font-size: 0.78rem;
}
.faq-card-cat {
    background: var(--primary-50);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.72rem;
}
.faq-card-date {
    color: var(--gray-400);
    margin-left: auto;
}
.faq-card-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}
.faq-card-more:hover {
    color: var(--primary-dark);
}

/* Disclaimer bar */
.faq-disclaimer-bar {
    padding: 1.5rem 0 3rem;
    background: var(--sand-50);
}

/* ����������������������������������������������������������������������������������
   Responsive �� FAQ cards
   ���������������������������������������������������������������������������������� */
@media (max-width: 992px) {
    .faq-card-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}
@media (max-width: 767px) {
    .faq-filter-tags {
        gap: 0.35rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }
    .faq-filter-tag {
        flex-shrink: 0;
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem;
    }
    .faq-card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .faq-card-body {
        padding: 1.25rem 1.25rem 0.75rem;
    }
    .faq-card-footer {
        padding: 0.5rem 1.25rem;
    }
    .faq-card-title {
        font-size: 1rem;
    }
    .faq-card-answer {
        font-size: 0.85rem;
    }
}

/* ����������������������������������������������������������������������������������
   FAQ Pagination
   ���������������������������������������������������������������������������������� */
.faq-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}
.faq-pagination-prev,
.faq-pagination-next {
    padding: 0.5rem 1.25rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}
.faq-pagination-prev:hover,
.faq-pagination-next:hover {
    background: var(--primary-dark);
    color: #fff;
}
.faq-pagination-prev.disabled,
.faq-pagination-next.disabled {
    background: var(--gray-200);
    color: var(--gray-400);
    pointer-events: none;
}
.faq-pagination-info {
    font-size: 0.9rem;
    color: var(--gray-500);
}
@media (max-width: 767px) {
    .faq-pagination {
        gap: 0.75rem;
    }
    .faq-pagination-prev,
    .faq-pagination-next {
        padding: 0.4rem 0.85rem;
        font-size: 0.82rem;
    }
    .faq-pagination-info {
        font-size: 0.8rem;
    }
}



/* ── 手机端 Knowledge/Cases Grid 单列（放在最后确保覆盖 ── */
@media (max-width: 767px) {
    .knowledge-grid { grid-template-columns: 1fr !important; }
}

/* ── 服务详情页侧栏律师列表 ── */
.side-lawyer-list { display: flex; flex-direction: column; gap: 0.75rem; }
.side-lawyer-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem; border-radius: 8px;
    text-decoration: none; transition: background 0.2s;
}
.side-lawyer-item:hover { background: var(--gray-50); }
.side-lawyer-avatar,
.side-lawyer-avatar-placeholder {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
    flex-shrink: 0;
}
.side-lawyer-avatar-placeholder {
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.875rem;
}
.side-lawyer-info { display: flex; flex-direction: column; line-height: 1.4; }
.side-lawyer-name { font-weight: 600; font-size: 0.875rem; color: var(--secondary); }
.side-lawyer-sub { font-size: 0.75rem; color: var(--gray-500); }
.side-more-link {
    display: inline-block; margin-top: 0.75rem;
    font-size: 0.8125rem; color: var(--primary); text-decoration: none;
}
.side-more-link:hover { text-decoration: underline; }