/* 全局样式 */
* {
    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 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #1a365d;
    color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #a0c4ff;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 移动端导航菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-menu-content {
    width: 90%;
    max-width: 400px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu-header h2 {
    color: #1a365d;
    font-size: 20px;
}

.mobile-menu-close {
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #1a365d;
}

/* 首页 */
.home {
    background-color: #1a365d;
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.home-content {
    position: relative;
    z-index: 2;
}

.home-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.home-content p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.home-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.home .btn-secondary {
    color: #fff;
}

.home .btn-secondary:hover {
    background-color: #fff;
    color: #1a365d;
}



/* 按钮样式 */
.btn-primary {
    background-color: #1a365d;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #2a4a7d;
}

.btn-secondary {
    background-color: transparent;
    color: #1a365d;
    padding: 12px 30px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #1a365d;
    color: #fff;
}

/* 通用章节样式 */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #1a365d;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #1a365d;
}

/* 关于我们 */
.about {
    background-color: #fff;
}

.about-content {
    margin-bottom: 60px;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}



/* 律所环境图片 */
.about-gallery {
    margin-top: 40px;
}

.about-gallery h3 {
    color: #1a365d;
    margin-bottom: 30px;
    font-size: 20px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 律师团队图片 */
.team-member-img {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.team-member-img:hover {
    transform: scale(1.05);
}

.team-member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder {
    color: #6c757d;
    font-style: italic;
}

/* 专业领域 */
.practice {
    background-color: #f8f9fa;
}

.practice-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.practice-area {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.practice-area:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.practice-area i {
    font-size: 48px;
    color: #1a365d;
    margin-bottom: 20px;
}

.practice-area h3 {
    font-size: 20px;
    color: #1a365d;
    margin-bottom: 15px;
}

.practice-area p {
    font-size: 16px;
    line-height: 1.6;
}

/* 律师团队 */
.team {
    background-color: #fff;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .team-members {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-member {
    text-align: center;
}

.team-member-img {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.team-member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 20px;
    color: #1a365d;
    margin-bottom: 10px;
}

.team-member p {
    font-size: 16px;
    color: #666;
}

/* 成功案例 */
.cases {
    background-color: #f8f9fa;
}

.case-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.case-item h3 {
    font-size: 20px;
    color: #1a365d;
    margin-bottom: 15px;
}

.case-item p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.case-client {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* 法律资讯 */
.news {
    background-color: #fff;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-item h3 {
    font-size: 20px;
    color: #1a365d;
    margin-bottom: 15px;
}

.news-item p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-date {
    font-size: 14px;
    color: #666;
}

/* 联系我们 */
.contact {
    background-color: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
}

.contact-info h3 {
    font-size: 20px;
    color: #1a365d;
    margin-bottom: 20px;
    text-align: center;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.contact-info li {
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: flex-start;
}

.contact-info li i {
    color: #1a365d;
    margin-right: 10px;
    font-size: 18px;
    margin-top: 2px;
}

.contact-info a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #1a365d;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
}

.contact-form h3 {
    font-size: 20px;
    color: #1a365d;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a365d;
}

.form-group textarea {
    resize: vertical;
}



/* 底部 */
.footer {
    background-color: #1a365d;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    flex: 1;
    min-width: 250px;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 16px;
    line-height: 1.6;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #a0c4ff;
}

.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.footer-contact li i {
    margin-right: 10px;
    font-size: 16px;
    margin-top: 2px;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #a0c4ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* 底部固定咨询悬浮窗 */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 900;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #1a365d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 24px;
}

.floating-btn:hover {
    background-color: #2a4a7d;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 微信二维码弹窗 */
.wechat-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
}

.wechat-modal-content {
    width: 90%;
    max-width: 400px;
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.wechat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.wechat-modal-header h3 {
    color: #1a365d;
    font-size: 20px;
}

.wechat-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.wechat-qr img {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

.wechat-qr p {
    font-size: 16px;
    color: #333;
}

/* 高德地图容器 */
.map-container {
    margin-top: 40px;
    padding: 25px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.map-container h3 {
    color: #1a365d;
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.map-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f5f5f5;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    min-height: 350px;
    object-fit: cover;
}

.map-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #1a365d;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.map-link:hover {
    background-color: #1a365d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
}

.map-link i {
    font-size: 14px;
}

.map-info {
    margin-top: 20px;
    padding: 15px 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #1a365d;
}

.map-info p {
    margin: 8px 0;
    font-size: 15px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-info i {
    color: #1a365d;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .home-content h2 {
        font-size: 36px;
    }

    .home-content p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .floating-contact {
        bottom: 20px;
        right: 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .home-content h2 {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .practice-area,
    .case-item,
    .news-item {
        padding: 20px;
    }

    .contact-form {
        padding: 20px;
    }

    .floating-contact {
        bottom: 15px;
        right: 15px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1a365d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a4a7d;
}