/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.logo p {
    font-size: 14px;
    opacity: 0.9;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 首页横幅 */
.banner {
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.9) 0%, rgba(44, 82, 130, 0.9) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%231a3a5c" width="1200" height="400"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.banner-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-primary {
    display: inline-block;
    background-color: #e6a23c;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 162, 60, 0.3);
}

.btn-primary:hover {
    background-color: #d4911f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 162, 60, 0.4);
}

/* 通用section样式 */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h3 {
    font-size: 36px;
    color: #1a3a5c;
    margin-bottom: 10px;
    font-weight: bold;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    font-style: italic;
}

/* 个人简介部分 */
.about-section {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: start;
}

.lawyer-avatar {
    width: 280px;
    height: 350px;
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(26, 58, 92, 0.2);
}

.about-text h4 {
    font-size: 28px;
    color: #1a3a5c;
    margin-bottom: 20px;
    font-weight: bold;
}

.lawyer-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #1a3a5c;
    margin-bottom: 25px;
    line-height: 2;
}

.about-text p:last-child {
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* 业务领域部分 */
.business-section {
    background-color: #f8f9fa;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.business-item {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.business-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.business-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.business-item h4 {
    font-size: 22px;
    color: #1a3a5c;
    margin-bottom: 15px;
    font-weight: bold;
}

.business-item p {
    color: #666;
    line-height: 1.7;
}

/* 主要经历部分 */
.experience-section {
    background-color: white;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #1a3a5c, #2c5282);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-date {
    flex-shrink: 0;
    width: 150px;
    text-align: right;
    padding-right: 40px;
    font-weight: bold;
    color: #1a3a5c;
    font-size: 18px;
}

.timeline-content {
    flex: 1;
    background: #f8f9fa;
    padding: 25px 30px;
    border-radius: 8px;
    margin-left: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 30px;
    width: 16px;
    height: 16px;
    background: #1a3a5c;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #1a3a5c;
}

.timeline-content h4 {
    font-size: 22px;
    color: #1a3a5c;
    margin-bottom: 12px;
    font-weight: bold;
}

.timeline-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    padding: 5px 0 5px 25px;
    position: relative;
    color: #666;
}

.timeline-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1a3a5c;
    font-weight: bold;
}

/* 社会活动部分 */
.social-section {
    background-color: #f8f9fa;
}

.social-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.social-item {
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 25px;
    align-items: start;
    transition: all 0.3s ease;
}

.social-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.social-badge {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.social-item h4 {
    font-size: 20px;
    color: #1a3a5c;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.4;
}

.social-item p {
    color: #666;
    line-height: 1.7;
}

/* 联系我部分 */
.contact-section {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
    color: white;
}

.contact-section .section-header h3,
.contact-section .section-subtitle {
    color: white;
}

.contact-section .section-subtitle {
    opacity: 0.9;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: start;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-item p {
    opacity: 0.95;
    line-height: 1.6;
}

.contact-note {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #e6a23c;
}

.contact-note h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #e6a23c;
    font-weight: bold;
}

.contact-note p {
    line-height: 1.8;
    opacity: 0.95;
}

/* 页脚 */
.footer {
    background-color: #0f2439;
    color: white;
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.3fr;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-left h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-left p {
    opacity: 0.85;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-center p,
.footer-right p {
    opacity: 0.85;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 14px;
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .about-content {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .lawyer-avatar {
        width: 240px;
        height: 300px;
        font-size: 40px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-date {
        width: 90px;
        font-size: 16px;
        padding-right: 20px;
    }

    .timeline-content {
        margin-left: 20px;
    }

    .social-list {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .banner-content h2 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 18px;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 16px;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h3 {
        font-size: 28px;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-date {
        text-align: left;
        padding-right: 0;
        padding-left: 45px;
        width: auto;
    }

    .timeline-content {
        margin-left: 0;
        margin-top: 10px;
    }

    .social-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选择文本颜色 */
::selection {
    background-color: #1a3a5c;
    color: white;
}
