/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --secondary-color: #c9a227;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--bg-white);
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.logo-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* 头部横幅 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    padding-top: 80px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero-title {
    font-size: 24px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.hero-firm {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2d4a7c;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 54, 93, 0.3);
}

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

.photo-placeholder {
    width: 350px;
    height: 450px;
    background: linear-gradient(135deg, #e0e5ec 0%, #d0d5dc 100%);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.photo-placeholder span {
    color: #999;
    font-size: 18px;
}

.lawyer-photo {
    width: 350px;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* 通用区块样式 */
.section {
    padding: 100px 0;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 20px auto 0;
}

/* 关于我 */
.about {
    background: var(--bg-white);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Noto Serif SC', serif;
}

.stat-label {
    display: block;
    font-size: 16px;
    color: var(--text-light);
    margin-top: 10px;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 2;
}

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

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

.practice-item {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.practice-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.practice-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.practice-item h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.practice-item p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 教育背景 */
.education {
    background: var(--bg-white);
}

.education-timeline {
    max-width: 600px;
    margin: 0 auto 50px;
}

.edu-item {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.edu-item:last-child {
    border-bottom: none;
}

.edu-year {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    min-width: 100px;
}

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

.edu-content p {
    font-size: 15px;
    color: var(--text-light);
}

.credentials {
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 8px;
}

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

.credentials ul {
    list-style: none;
}

.credentials li {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* 经典案例 */
.cases {
    background: var(--bg-light);
}

.cases-list {
    display: grid;
    gap: 30px;
}

.case-item {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.case-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.case-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.case-item h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.case-item p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 联系方式 */
.contact {
    background: var(--bg-white);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 28px;
    min-width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 15px;
    color: var(--text-light);
}

/* 页脚 */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 24px;
    margin-bottom: 5px;
}

.footer-info p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }

.contact-item p a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item p a:hover {
    color: var(--secondary-color);
}

/* 页脚 */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .lawyer-photo {
        width: 280px;
        height: 360px;
    }

    .photo-placeholder {
        width: 280px;
        height: 360px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 36px;
    }

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

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .edu-item {
        flex-direction: column;
        gap: 10px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 32px;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 14px;
    }

    .case-item {
        padding: 25px;
    }
}
