/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 专业律师主题配色 - 更权威的深色系 */
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #dc2626;
    --accent-light: #ef4444;
    --gold-color: #fbbf24;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --background-dark: #0f172a;
    --border-color: #e2e8f0;
    --border-dark: #334155;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 4px 14px 0 rgba(251, 191, 36, 0.3);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-white);
    /* 默认渐变背景，可被JavaScript动态覆盖 */
    background-image: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.8) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
}

/* 当设置了自定义背景图时的样式 */
body.has-background-image {
    background-color: #000 !important; /* 深色背景作为fallback */
}

/* 确保背景图能够覆盖整个页面 */
body.has-background-image {
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

/* 为有背景图的页面调整文字对比度 - 适配背景图直显 */
body.has-background-image .hero-title {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 1px 1px 4px rgba(0, 0, 0, 0.9);
}

body.has-background-image .hero-subtitle {
    color: var(--gold-color) !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 1px 1px 3px rgba(0, 0, 0, 0.9);
}

body.has-background-image .hero-description {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8), 0px 0px 2px rgba(0, 0, 0, 0.9);
}

/* 统计框在背景图上的样式 - 完全透明 */
body.has-background-image .hero-stats {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.has-background-image .stat-number {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

body.has-background-image .stat-label {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 - 更专业的深色设计 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 80px;
}

/* 当body有背景图时，导航栏更透明 */
body.has-background-image .navbar {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    flex-wrap: wrap;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.nav-logo i {
    margin-right: 12px;
    font-size: 2.5rem;
    color: var(--accent-color);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    font-size: 1.1rem;
}

.nav-link:hover {
    color: var(--gold-color);
    background: rgba(251, 191, 36, 0.15);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-color), var(--accent-color));
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--gold-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* 语言切换器样式 */
.language-switcher {
    position: relative;
    margin-left: 2rem;
}

.language-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-current:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.current-lang {
    font-size: 1.2rem;
}

.language-current i {
    font-size: 0.8rem;
    color: var(--gold-color);
    transition: var(--transition);
}

.language-switcher:hover .language-current i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
    margin-top: 0.5rem;
}

.language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(251, 191, 36, 0.1);
    color: var(--gold-color);
}

.language-option .flag {
    font-size: 1.2rem;
}

.language-option .lang-name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.language-option:hover .lang-name {
    color: var(--gold-color);
}

/* 主页横幅 - 更震撼的视觉效果 */
.hero {
    padding: 140px 0 100px;
    background: transparent;
    color: white;
    position: relative;
    overflow: hidden;
}

/* 当body有背景图时，hero完全透明 */
body.has-background-image .hero {
    background: transparent;
}

/* 当body没有背景图时，hero使用默认深色背景 */
body:not(.has-background-image) .hero {
    background: transparent;
}

/* 当body没有背景图时，使用原有的装饰效果 */
body:not(.has-background-image) .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, var(--gold-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--gold-color);
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
    color: var(--gold-color);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--gold-color);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.btn-secondary:hover {
    background: var(--gold-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lawyer-photo {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid rgba(251, 191, 36, 0.2);
    box-shadow: 
        0 0 60px rgba(251, 191, 36, 0.2),
        0 20px 50px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lawyer-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 30%, 
        rgba(255, 255, 255, 0.05) 70%, 
        transparent 100%);
    border-radius: 50%;
    z-index: 1;
    animation: ghostEffect 4s ease-in-out infinite;
}

@keyframes ghostEffect {
    0%, 100% { 
        opacity: 0.3; 
    }
    50% { 
        opacity: 0.6; 
    }
}

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

.lawyer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.lawyer-photo:hover img {
    transform: scale(1.1);
}

.photo-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.3) 0%, 
        rgba(30, 41, 59, 0.4) 50%, 
        rgba(15, 23, 42, 0.2) 100%);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.photo-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 30%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 70%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.02); 
    }
}

.photo-placeholder i {
    font-size: 6rem;
    color: rgba(251, 191, 36, 0.7);
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
    position: relative;
    z-index: 1;
    animation: breathe 4s ease-in-out infinite;
}

.photo-placeholder p {
    color: rgba(251, 191, 36, 0.8);
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    opacity: 0.7;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

@keyframes breathe {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.9; 
        transform: scale(1.05);
    }
}

/* 通用部分样式 */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 关于我 - 更专业的布局 */
/* 关于我 - 背景透明 */
.about {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    position: relative;
    padding-left: 20px;
}

.about-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(180deg, var(--accent-color), var(--gold-color));
    border-radius: 2px;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 400;
}

.about-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.lawyer-portrait {
    width: 280px;
    height: 280px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.08),
        0 0 40px rgba(251, 191, 36, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    border: 4px solid rgba(251, 191, 36, 0.4);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lawyer-portrait::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        transparent 40%, 
        rgba(255, 255, 255, 0.04) 100%);
    z-index: 1;
    animation: portraitGlow 6s ease-in-out infinite;
}

@keyframes portraitGlow {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.01);
    }
}

.lawyer-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.lawyer-portrait:hover img {
    transform: scale(1.05);
}

.portrait-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.4) 0%, 
        rgba(30, 41, 59, 0.5) 50%, 
        rgba(15, 23, 42, 0.3) 100%);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.portrait-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        transparent 40%, 
        rgba(255, 255, 255, 0.04) 100%);
    animation: fadeWave 5s ease-in-out infinite;
}

@keyframes fadeWave {
    0%, 100% { 
        opacity: 0.4; 
    }
    50% { 
        opacity: 0.8; 
    }
}

.portrait-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: rgba(251, 191, 36, 0.7);
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

.portrait-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(251, 191, 36, 0.8);
    position: relative;
    z-index: 1;
    opacity: 0.7;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
}

.credential-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.credential-item i {
    font-size: 2rem;
    color: var(--accent-color);
    width: 40px;
    text-align: center;
}

.credential-item span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* 专业领域 - 更专业的卡片设计 */
/* 专业领域 - 背景透明 */
.services {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2.5rem;
    justify-items: center;
}

.service-card {
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem 2rem 1.5rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

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

/* 移除独立的service-icon样式，图标现在在标题内 */

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    min-height: 50px;
}

.service-card h3 .service-icon-alt {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

/* 备用FontAwesome样式 */
.service-card h3 i {
    font-size: 1.4rem;
    color: var(--gold-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
    font-weight: 900;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.service-card p.expanded{
    -webkit-line-clamp:unset;
    overflow:visible;
}

/* 成功案例 - 更突出的展示 */
/* 成功案例 - 背景透明 */
.cases {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.cases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
}

.case-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border-left: 6px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(251, 191, 36, 0.05));
    opacity: 0;
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.case-card:hover::before {
    opacity: 1;
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.case-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.case-result {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-result.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.case-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.case-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.case-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* 联系我 - 更专业的表单设计 */
/* 联系我 - 背景透明 */
.contact {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-top: 0.25rem;
    width: 40px;
    text-align: center;
}

.contact-item h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
}

/* 微信卡片样式 */
.wechat-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #07C160, #05A050); /* 微信APP绿色，不随主题 */
    border: none;
    color: white;
}

.wechat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.wechat-card:hover::before {
    left: 100%;
}

.wechat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(7, 193, 96, 0.4);
}

.wechat-card i {
    color: white;
    font-size: 2.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.wechat-card h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.wechat-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

/* 独立颜色卡片：LinkedIn / WhatsApp / Line */
.contact-item.linkedin {
    background: linear-gradient(135deg, #0A66C2, #004182);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.contact-item.linkedin h4, .contact-item.linkedin p, .contact-item.linkedin i { color:#ffffff; }

/* LinkedIn卡片动态效果 */
.contact-item.linkedin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.contact-item.linkedin:hover::before {
    left: 100%;
}

.contact-item.linkedin:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(10, 102, 194, 0.4);
}

.contact-item.linkedin i {
    animation: pulse 2s ease-in-out infinite;
}

.contact-item.whatsapp {
    background: linear-gradient(135deg, #07C160, #05A050);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.contact-item.whatsapp h4, .contact-item.whatsapp p, .contact-item.whatsapp i { color:#ffffff; }

/* WhatsApp卡片动态效果 */
.contact-item.whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.contact-item.whatsapp:hover::before {
    left: 100%;
}

.contact-item.whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(7, 193, 96, 0.4);
}

.contact-item.whatsapp i {
    animation: pulse 2s ease-in-out infinite;
}

.contact-item.line {
    background: linear-gradient(135deg, #07C160, #05A050);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.contact-item.line h4, .contact-item.line p, .contact-item.line i { color:#ffffff; }

/* Line卡片动态效果 */
.contact-item.line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.contact-item.line:hover::before {
    left: 100%;
}

.contact-item.line:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(7, 193, 96, 0.4);
}

.contact-item.line i {
    animation: pulse 2s ease-in-out infinite;
}

.wechat-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wechat-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 微信弹窗样式 */
.wechat-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wechat-modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wechat-modal-header {
    background: linear-gradient(135deg, #07C160, #05A050);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.wechat-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.wechat-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.wechat-close:hover {
    color: white;
}

.wechat-modal-body {
    padding: 30px;
    text-align: center;
}

.wechat-qr-container {
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-qr-placeholder {
    color: #94a3b8;
    text-align: center;
}

.wechat-qr-placeholder i {
    font-size: 4rem;
    color: #25d366;
    margin-bottom: 15px;
    display: block;
}

.wechat-qr-placeholder p {
    margin: 0;
    font-size: 1rem;
    color: #6b7280;
}

.wechat-modal-body p {
    color: #374151;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.wechat-modal-btn {
    background: linear-gradient(135deg, #07C160, #05A050);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(7, 193, 96, 0.3);
}

.wechat-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(7, 193, 96, 0.4);
}

.contact-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* 咨询表单头部 */
.consultation-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.consultation-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--gold-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    box-shadow: var(--shadow-gold);
}

.consultation-icon i {
    font-size: 1.8rem;
    color: white;
}

.consultation-title h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.consultation-title p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* 咨询表单特色 */
.consultation-features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.feature-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 表单标签 */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* 提交按钮 */
.consultation-submit-btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border: none;
    border-radius: var(--border-radius);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-medium);
}

.consultation-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
}

.consultation-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 咨询表单底部 */
.consultation-footer {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
}

.consultation-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
}

.contact-form h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    text-align: center;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--background-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    background: white;
}

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

/* 页脚 - 白色背景 */
.footer {
    background: white;
    color: var(--text-primary);
    padding: 80px 0 30px;
    position: relative;
}

/* 当body有背景图时，页脚使用白色背景 */
body.has-background-image .footer {
    background: white;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* 当body没有背景图时，页脚也使用白色背景 */
body:not(.has-background-image) .footer {
    background: white;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-section p,
.footer-section li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 400;
}

.footer-section a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 64px;
    height: 64px;
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

/* 覆盖底色为微信绿，但图标颜色保持当前主题（不强制白色）*/
.social-links a.linkedin,
.social-links a.whatsapp,
.social-links a.line,
.social-links a.wechat {
    background: #07C160 !important; /* 微信绿底 */
    border-color: rgba(0,0,0,.06) !important;
}
.social-links a.linkedin:hover,
.social-links a.whatsapp:hover,
.social-links a.line:hover,
.social-links a.wechat:hover {
    filter: brightness(0.95);
    box-shadow: 0 10px 25px rgba(7,193,96,0.35);
}

.social-links a i { font-size: 24px; }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

/* 通知系统样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    color: white;
    border-left: 4px solid;
}

.notification-message {
    flex: 1;
    margin-right: 1rem;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 通知类型样式 */
.notification-success .notification-content {
    background: linear-gradient(135deg, #10b981, #059669);
    border-left-color: #10b981;
}

.notification-error .notification-content {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-left-color: #ef4444;
}

.notification-warning .notification-content {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-left-color: #f59e0b;
}

.notification-info .notification-content {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-left-color: #3b82f6;
}

/* 自动滚动按钮样式 */
.auto-scroll-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-heavy);
    transition: all 0.3s ease;
    z-index: 1000;
}

.auto-scroll-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.4);
}

.auto-scroll-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .language-switcher {
        margin-left: 1rem;
    }
    
    /* 针对法语等长文本的优化 */
    .nav-container {
        padding: 10px 20px;
    }
    
    .nav-link {
        min-width: -webkit-fill-available;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
    
    .nav-logo i {
        font-size: 2rem;
        margin-right: 8px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.85);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-heavy);
        padding: 2rem 0;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
        position: relative;
    }

    .language-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(15, 23, 42, 0.85);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-heavy);
        border: 1px solid rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        min-width: 150px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
        z-index: 1001;
        margin-top: 0.5rem;
    }

    .language-switcher.active .language-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .language-option {
        justify-content: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 12px 16px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-stats {
        justify-content: center;
        flex-direction: column;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-photo {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .lawyer-photo {
        width: 300px;
        height: 300px;
    }

    .lawyer-portrait {
        width: 220px;
        height: 220px;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .auto-scroll-btn {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .refresh-cache-btn {
        bottom: 140px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* 移动端强制刷新按钮样式 */
    @media (max-width: 768px) {
        .refresh-cache-btn {
            bottom: 120px;
            right: 15px;
            width: 40px;
            height: 40px;
            font-size: 0.9rem;
        }
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .service-card,
    .case-card,
    .contact-form {
        padding: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .lawyer-photo {
        width: 250px;
        height: 250px;
    }

    .lawyer-portrait {
        width: 180px;
        height: 180px;
    }

    .credentials {
        gap: 1rem;
    }

    .credential-item {
        padding: 1rem 1.5rem;
    }

    .auto-scroll-btn {
        bottom: 70px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-color), var(--gold-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-light), var(--accent-color));
}

/* 表单错误状态样式 */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input.error-field,
.form-group select.error-field,
.form-group textarea.error-field {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    background-color: #fff5f5 !important;
}

.form-group input.error-field:focus,
.form-group select.error-field:focus,
.form-group textarea.error-field:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 输入框聚焦时的错误状态 */
.form-group input:focus.error-field,
.form-group select:focus.error-field,
.form-group textarea:focus.error-field {
    outline: none;
    border-color: #dc3545;
} 

.service-icon { display: none !important; }

.service-card { min-height: auto !important; } 

.multiline{white-space:pre-line;} 

.service-card p,
.case-card p{
    display:-webkit-box;
    -webkit-line-clamp:4; /* 最多显示4行 */
    -webkit-box-orient:vertical;
    overflow:hidden;
} 

.logo-text{line-height:1.1;} 

.toggle-btn{
    background:linear-gradient(135deg,#17c3a2,#83e7d0);
    color:#fff;
    border:none;
    border-radius:25px;
    padding:6px 16px;
    font-size:0.9rem;
    transition:.3s;
    box-shadow:0 4px 10px rgba(0,0,0,.1);
}
.toggle-btn:hover{transform:translateY(-2px);box-shadow:0 6px 14px rgba(0,0,0,.15);} 