:root {
    --primary-color: #532599;
    --primary-light: #7a4cb9;
    --secondary-color: #ffc107;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --gray-color: #e9ecef;
    --text-color: #333;
    --text-light: #6c757d;
    --white: #ffffff;
    --success-color: #28a745;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Heiti SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none !important;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col {
    flex: 1;
    padding: 0 1rem;
}

.col-12 {
    flex: 0 0 100%;
}

.col-md-6 {
    flex: 0 0 50%;
}

.col-lg-4 {
    flex: 0 0 33.333%;
}

.col-xl-3 {
    flex: 0 0 25%;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #e0a800;
    color: var(--dark-color);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-light {
    color: var(--text-light);
}

.text-white {
    color: var(--white);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 3rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-10 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.px-3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.shadow {
    box-shadow: var(--shadow);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.rounded {
    border-radius: var(--border-radius);
}

.rounded-lg {
    border-radius: 12px;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* 导航栏样式 */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.navbar-logo img {
    height: 60px;
}

.navbar-logo span {
    font-size: 1.5rem;
    font-weight: 600;
    color: orangered;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    text-decoration: none;
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--primary-color);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--white);
    z-index: 2000;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-color);
}

.mobile-menu-link:hover {
    color: var(--primary-color);
}

/* 英雄区域 */
.hero {
    position: relative;
    background-image: url('../images/banner3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 150px 0 100px;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 服务特点 */
.features {
    padding: 4rem 0;
    background-color: var(--white);
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-icon img {
    height: 60px;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* 关于我们 */
.about {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.about-features {
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.about-feature-icon {
    margin-right: 1rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

/* 团队展示 */
.team {
    padding: 5rem 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* 轮播图容器样式 */
.carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem 0;
}

/* 律师卡片基础样式 */
.lawyer-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex: 0 0 calc(33.333% - 2rem);
    min-width: 250px;
    max-width: 350px;
    background: var(--white);
}

/* 特色律师卡片样式 */
.lawyer-card.featured {
    flex: 0 0 calc(50% - 2rem);
    max-width: 450px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

/* 轮播指示器样式 - 隐藏指示器 */
.carousel-indicators {
    display: none;
}

/* 轮播控制按钮样式 - 垂直居中 */
.carousel-control-prev,
.carousel-control-next {
    width: 15%;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    height: 100%;
    opacity: 1;
    transition: var(--transition);
    padding: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* 团队卡片样式 */
.team-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 团队图片样式 */
.team-image {
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-color);
}

/* 圆形头像样式 */
.team-image.rounded-circle-wrapper {
    width: 200px;
    height: 200px;
    margin: 2rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--secondary-color);
    background: var(--white);
}

.team-image.rounded-circle-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-image img {
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

/* 团队信息样式 */
.team-info {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 律师简介样式 */
.team-bio {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-top: 1rem;
}

.team-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.team-position {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.team-contact {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .lawyer-card {
        flex: 0 0 calc(50% - 1.5rem);
    }

    .lawyer-card.featured {
        flex: 0 0 100%;
        max-width: none;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .lawyer-card {
        flex: 0 0 100%;
        margin: 0 auto;
    }

    .carousel-indicators {
        bottom: -40px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

/* 服务类型 */
.services {
    padding: 5rem 0;
    background-color: var(--light-color);
    background-image: url('../images/map-bg.png');
    background-size: cover;
    background-position: center;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-info {
    padding: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-list {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* 流程步骤 */
.process {
    padding: 5rem 0;
    background-color: var(--white);
}

.process-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.process-step {
    flex: 1;
    min-width: 250px;
    position: relative;
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    background-color: var(--light-color);
}

.process-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--text-light);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* 客户评价 */
.testimonials {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-content {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: left;
}

.testimonial-amount {
    color: var(--text-color);
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.2;
}

.testimonial-type {
    color: var(--text-light);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.testimonial-solution {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.testimonial-description {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 成功案例 */
.cases {
    padding: 5rem 0;
    background-color: var(--white);
}

.cases-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-info {
    padding: 1.5rem;
}

.case-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.case-content {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.case-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

.case-author {
    display: flex;
    align-items: center;
}

.case-author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.5rem;
}

.case-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA 区域 */
.cta {
    position: relative;
    background-image: url('../images/banner_about.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 600;
    color: orangered;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-heading {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-policies {
    display: flex;
    gap: 1.5rem;
}

.footer-policies a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-policies a:hover {
    color: var(--white);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-toggle {
        display: block;
    }
}

@media (max-width: 768px) {

    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .services-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .navbar-logo img {
        height: 50px;
    }
}