/* ========================================
   信达律师事务所官网 - 全局样式
   ======================================== */

/* CSS变量定义 */
:root {
    --primary-color: #1a365d;
    --primary-light: #2c5282;
    --accent-color: #c9a227;
    --accent-light: #d4af37;
    --dark-bg: #0f1419;
    --dark-secondary: #1a2332;
    --light-bg: #f7f8fa;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    --gradient-accent: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
    --box-shadow: 0 10px 40px rgba(26, 54, 93, 0.15);
    --transition: all 0.3s ease;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* 页面区块 */
.section {
    padding: 100px 0;
}

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ========================================
   导航栏样式
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 28px;
    color: var(--accent-color);
}

.navbar .nav-list {
    display: flex;
    gap: 35px;
}

.navbar .nav-list a {
    font-size: 15px;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.navbar .nav-list a:hover,
.navbar .nav-list a.active {
    color: var(--primary-color);
}

.navbar .nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.navbar .nav-list a:hover::after,
.navbar .nav-list a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1479142506502-19b3a3b7ff33?w=1920') center/cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.92) 0%, rgba(15, 20, 25, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll i {
    font-size: 28px;
    color: var(--accent-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   业务领域
   ======================================== */
.practice-section {
    background: var(--light-bg);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.practice-card {
    background: white;
    border-radius: 10px;
    padding: 35px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow);
}

.practice-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 32px;
    color: white;
}

.practice-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.practice-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   关于我们预览
   ======================================== */
.about-preview {
    background: white;
}

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

.about-content h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 16px;
}

.about-list i {
    color: var(--accent-color);
    font-size: 18px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* ========================================
   数据统计
   ======================================== */
.stats {
    background: var(--gradient-primary);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ========================================
   律师团队预览
   ======================================== */
.team-preview {
    background: var(--light-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-member {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow);
}

.member-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.member-info {
    padding: 25px;
}

.member-info h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.member-info .position {
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 12px;
}

.member-info .bio {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   客户评价
   ======================================== */
.testimonials {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 35px;
    position: relative;
}

.quote-icon {
    font-size: 40px;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 15px;
}

.quote-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.quote-author {
    display: flex;
    flex-direction: column;
}

.quote-author strong {
    color: var(--primary-color);
    font-size: 15px;
}

.quote-author span {
    color: var(--text-light);
    font-size: 13px;
}

/* ========================================
   法律资讯
   ======================================== */
.news-section {
    background: var(--light-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow);
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 10px;
}

.news-date i {
    margin-right: 5px;
}

.news-content h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.news-content > p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-link {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
}

.news-link:hover {
    color: var(--accent-light);
}

/* ========================================
   CTA 区域
   ======================================== */
.cta {
    background: var(--gradient-primary);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 15px;
}

.cta-content > p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta .btn-secondary {
    color: white;
    border-color: white;
}

.cta .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--dark-bg);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--accent-color);
}

.footer-col > p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-color);
}

.footer-col h4 {
    font-size: 16px;
    color: white;
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* ========================================
   律师团队页面样式
   ======================================== */

.team-section {
    background: white;
}

.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow);
}

.team-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.team-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-info h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-info .position {
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.team-info .specialty {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.team-info .bio {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.team-contact {
    margin-top: auto;
}

.contact-link {
    color: var(--primary-color);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent-color);
}

/* 页面标题 */
.page-header {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1576903689037-f91a6f1ed419?w=1920') center/cover;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(15, 20, 25, 0.8) 100%);
}

.page-header .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    color: white;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
}

/* 加入我们 */
.join-us {
    background: var(--light-bg);
    text-align: center;
}

.join-content h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.join-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 16px;
}

/* ========================================
   案例页面样式
   ======================================== */

/* 案例筛选 */
.case-filter {
    background: var(--light-bg);
    padding: 30px 0;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 24px;
    background: white;
    border: 1px solid var(--text-light);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-tab.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
}

/* 案例列表 */
.cases-section {
    background: white;
}

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

.case-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.case-header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px;
}

.case-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.case-header h3 {
    font-size: 20px;
    margin: 0;
}

.case-content {
    padding: 25px;
}

.case-info {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.case-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text-secondary);
}

.case-label i {
    color: var(--accent-color);
}

.case-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-result {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 15px;
}

.case-result h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.case-result p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .practice-grid,
    .team-grid,
    .testimonials-grid,
    .news-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-tabs {
        gap: 10px;
    }
    
    .filter-tab {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .navbar .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .navbar .nav-list.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .practice-grid,
    .team-grid,
    .testimonials-grid,
    .news-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-tab {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .case-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .case-header h3 {
        font-size: 18px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .page-header p {
        font-size: 16px;
    }
}
