/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
}

body {
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #0f4c81;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0a3a63;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.2);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #0f4c81;
    font-weight: 700;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #0f4c81;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 头部导航样式 - 移除律师团队下拉菜单 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 12px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #0f4c81;
    font-weight: 700;
}

.logo span {
    font-size: 0.9rem;
    color: #666;
    margin-left: 8px;
}

.nav-menu {
    display: flex;
}

.nav-item {
    margin: 0 15px;
    position: relative;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    padding: 8px 0;
    display: inline-block;
}

.nav-link:hover {
    color: #0f4c81;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0f4c81;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 下拉菜单样式（仅保留法律服务） */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 20px;
}

.dropdown-link {
    font-size: 0.95rem;
    color: #333;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    color: #0f4c81;
    background-color: #f5f7fa;
    padding-left: 25px;
}

/* 英雄区样式 */
.hero {
    background: linear-gradient(rgba(15, 76, 129, 0.8), rgba(15, 76, 129, 0.9)), url("img/banner1.jpg") no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* 服务板块样式 */
.services {
    padding: 100px 0;
    background-color: #fff;
}

.services-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background-color: #f8f9fa;
    padding: 40px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-radius: 8px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: #0f4c81;
    margin-bottom: 25px;
}

.service-title {
    font-size: 1.5rem;
    color: #0f4c81;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-desc {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

/* 更多按钮统一样式 */
.more-btn-wrap {
    text-align: center;
    margin-top: 30px;
}

/* 关于我们板块样式 */
.about {
    padding: 100px 0;
    background-color: #f5f7fa;
    display: flex;
    align-items: center;
}

.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.about-title {
    font-size: 2rem;
    color: #0f4c81;
    margin-bottom: 25px;
    font-weight: 700;
}

.about-desc {
    color: #333;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-list {
    margin-bottom: 30px;
}

.about-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #333;
}

.about-list-item i {
    color: #0f4c81;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* 律师团队板块样式 */
.team {
    padding: 100px 0;
    background-color: #fff;
}

.team-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.team-card {
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 3px solid #0f4c81;
}

.team-name {
    font-size: 1.3rem;
    color: #0f4c81;
    margin: 20px 0 8px;
    font-weight: 600;
}

.team-position {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.team-desc {
    padding: 0 20px 25px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 联系我们（首页仅入口） */
.contact-entrance {
    padding: 100px 0;
    background-color: #f5f7fa;
    text-align: center;
}

/* 法律服务二级页详情样式 */
.service-detail {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-detail-wrap {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    align-items: center;
    padding: 0 20px;
}

.service-detail-icon {
    font-size: 4rem;
    color: #0f4c81;
    text-align: center;
}

.service-detail-content h3 {
    font-size: 1.8rem;
    color: #0f4c81;
    margin-bottom: 20px;
    font-weight: 600;
}

.service-detail-content p {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

.service-detail-content .service-case {
    background-color: #f5f7fa;
    padding: 20px;
    border-left: 4px solid #0f4c81;
    border-radius: 4px;
    margin-top: 25px;
}

.service-detail-content .service-case h4 {
    color: #0f4c81;
    margin-bottom: 10px;
    font-weight: 600;
}

/* 律师团队二级页详情样式 */
.lawyer-detail {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.lawyer-detail-wrap {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    align-items: center;
    padding: 0 20px;
}

.lawyer-detail-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid #0f4c81;
}

.lawyer-detail-content h3 {
    font-size: 1.8rem;
    color: #0f4c81;
    margin-bottom: 10px;
    font-weight: 600;
}

.lawyer-detail-content .lawyer-position {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.lawyer-detail-content p {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

.lawyer-detail-content .lawyer-expertise {
    background-color: #f5f7fa;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.lawyer-detail-content .lawyer-expertise h4 {
    color: #0f4c81;
    margin-bottom: 10px;
    font-weight: 600;
}

.lawyer-detail-content .lawyer-expertise ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lawyer-detail-content .lawyer-expertise li {
    background-color: #0f4c81;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 联系我们二级页样式 */
.contact-detail {
    padding: 100px 0;
    background-color: #f5f7fa;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-info-title {
    font-size: 1.8rem;
    color: #0f4c81;
    margin-bottom: 30px;
    font-weight: 600;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-item i {
    color: #0f4c81;
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-info-text h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-info-text p {
    color: #666;
    font-size: 0.95rem;
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-title {
    font-size: 1.8rem;
    color: #0f4c81;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0f4c81;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* 返回首页按钮 */
.back-home {
    text-align: center;
    padding: 40px 0 80px;
}

/* 页脚样式 - 添加联系方式与微信二维码 */
footer {
    background-color: #0f4c81;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #fff;
    opacity: 0.8;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 页脚联系方式与二维码 */
.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-contact-info {
    text-align: left;
}

.footer-contact-info h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-contact-info p {
    margin-bottom: 8px;
    opacity: 0.9;
}

.footer-qrcode {
    text-align: center;
}

.footer-qrcode img {
    width: 120px;
    height: 120px;
    background-color: #fff;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.footer-qrcode p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .about-wrap, .contact-wrap {
        grid-template-columns: 1fr;
    }

    .about-title, .contact-info-title, .contact-form-title {
        font-size: 1.5rem;
    }

    .hero {
        padding: 80px 0;
    }

    .services, .about, .team, .contact-entrance {
        padding: 70px 0;
    }

    .service-detail-wrap, .lawyer-detail-wrap {
        grid-template-columns: 1fr;
    }

    .service-detail-icon {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .lawyer-detail-img {
        max-width: 300px;
        margin: 0 auto 20px;
    }

    .footer-contact {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact-info {
        text-align: center;
    }
}