/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 朱红配色方案 */
    --primary-blue: #c0392b;
    --secondary-blue: #e74c3c;
    --light-blue: #ffebee;
    
    /* 金色配色方案 */
    --primary-gold: #d4af37;
    --secondary-gold: #f6e05e;
    --light-gold: #fefcbf;
    
    /* 中性色 */
    --white: #ffffff;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-600: #718096;
    --gray-800: #2d3748;
    --black: #1a202c;
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* 过渡效果 */
    --transition: all 0.3s ease;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

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

/* ==================== 顶部导航栏样式 ==================== */
.header {
    background-color: var(--primary-blue);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-gold);
}

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

.nav-list a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

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

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: var(--transition);
}

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

/* ==================== 轮播banner样式 ==================== */
.banner {
    margin-top: -5px;
    position: relative;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
    max-width: 800px;
}

.carousel-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-gold);
}

.carousel-content p {
    font-size: 20px;
    opacity: 0.9;
}

/* 轮播按钮样式 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 轮播指示器样式 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--primary-gold);
    transform: scale(1.2);
}

.indicator:hover {
    background-color: var(--primary-gold);
}

/* ==================== 通用板块样式 ==================== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.section-title p {
    font-size: 18px;
    color: var(--gray-600);
}

/* ==================== 业务领域板块样式 ==================== */
.services {
    background-color: var(--gray-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-gold);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.service-card h3 {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.8;
}

/* ==================== 成功案例板块样式 ==================== */
.cases {
    background-color: var(--white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    height: 200px;
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    font-size: 22px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.case-content p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 15px;
}

.case-tag {
    display: inline-block;
    background-color: var(--light-blue);
    color: var(--primary-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 10px;
}

.case-link {
    display: inline-block;
    color: var(--primary-gold);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.case-card:hover .case-link {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* ==================== 法律文书下载板块样式 ==================== */
.documents {
    background-color: var(--gray-100);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.document-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--gray-200);
}

.document-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
}

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

.document-card h3 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.document-card p {
    color: var(--gray-600);
    margin-bottom: 20px;
    font-size: 14px;
}

.download-btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.download-btn:hover {
    background-color: var(--primary-gold);
    color: var(--primary-blue);
}

/* ==================== 联系我们板块样式 ==================== */
.contact {
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.contact-icon {
    font-size: 32px;
    min-width: 50px;
    text-align: center;
}

.contact-text h4 {
    font-size: 18px;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--gray-600);
    line-height: 1.8;
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    min-height: 300px;
    position: relative;
}

.map-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.map-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(192, 57, 43, 0.9);
    color: white;
    padding: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.map-link:hover .map-overlay {
    background: rgba(192, 57, 43, 1);
}

.map-icon {
    font-size: 18px;
}

.map-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: var(--light-blue);
    padding: 20px;
    min-height: 300px;
}

.map-fallback svg {
    width: 180px;
    height: 135px;
}

.map-fallback-text {
    color: var(--gray-800);
}

.map-fallback-text p {
    margin: 5px 0;
    font-size: 14px;
}

.map-placeholder p:first-child {
    font-size: 24px;
    margin-bottom: 10px;
}

/* ==================== 案例详情页面样式 ==================== */
.case-detail {
    padding: 120px 0 60px;
    background-color: var(--white);
}

.back-link {
    margin-bottom: 30px;
}

.back-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-link a:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

.case-header {
    margin-bottom: 30px;
}

.case-header h1 {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.case-image-large {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.case-image-large img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.case-info {
    max-width: 800px;
    margin: 0 auto;
}

.case-info h2 {
    font-size: 24px;
    color: var(--primary-blue);
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-gold);
}

.case-info p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 15px;
}

.case-info ul,
.case-info ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.case-info ul li,
.case-info ol li {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 10px;
}

.case-info ul {
    list-style: disc;
}

.case-info ol {
    list-style: decimal;
}

.case-meta {
    background-color: var(--gray-100);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.case-meta p {
    margin-bottom: 10px;
}

.case-meta p:last-child {
    margin-bottom: 0;
}

/* ==================== 底部页脚样式 ==================== */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 24px;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-gold);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ==================== 响应式设计 - 平板设备 (768px - 1199px) ==================== */
@media screen and (max-width: 1199px) {
    .container {
        padding: 0 15px;
    }
    
    .carousel-content h2 {
        font-size: 36px;
    }
    
    .carousel-content p {
        font-size: 16px;
    }
    
    .services-grid,
    .cases-grid,
    .documents-grid {
        gap: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==================== 响应式设计 - 手机设备 (≤767px) ==================== */
@media screen and (max-width: 767px) {
    /* 导航栏响应式 */
    .header .container {
        flex-direction: column;
        padding: 10px 15px;
    }
    
    .logo h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .nav-list {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-list a {
        font-size: 14px;
    }
    
    /* 轮播响应式 */
    .banner {
        margin-top: 120px;
    }
    
    .carousel {
        height: 350px;
    }
    
    .carousel-content h2 {
        font-size: 28px;
    }
    
    .carousel-content p {
        font-size: 14px;
    }
    
    .carousel-btn {
        padding: 10px 15px;
        font-size: 18px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    /* 板块响应式 */
    section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .section-title p {
        font-size: 16px;
    }
    
    /* 业务领域响应式 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    /* 成功案例响应式 */
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .case-content h3 {
        font-size: 18px;
    }
    
    /* 法律文书响应式 */
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .document-card h3 {
        font-size: 18px;
    }
    
    /* 联系我们响应式 */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .contact-icon {
        font-size: 24px;
    }
    
    /* 页脚响应式 */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 20px;
    }
}

/* ==================== 平滑滚动效果 ==================== */
html {
    scroll-behavior: smooth;
}

/* ==================== 链接样式重置 ==================== */
a {
    text-decoration: none;
    color: inherit;
}

/* ==================== 图片响应式 ==================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== 按钮样式重置 ==================== */
button {
    font-family: inherit;
    border: none;
    outline: none;
    cursor: pointer;
}

/* ==================== 列表样式重置 ==================== */
ul, ol {
    list-style: none;
}