/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-color: #1a3c6e;
    --secondary-color: #c9a96e;
    --accent-color: #b51f1f;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --gray-color: #6c757d;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    color: var(--dark-color);
    line-height: 1.6;
    background-color: #fff;
}

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

/* 头部样式 */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo i {
    font-size: 28px;
    margin-right: 10px;
    color: var(--secondary-color);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.logo span {
    color: var(--secondary-color);
}

.contact-header {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 4px;
    position: relative;
}

.contact-header:hover .qrcode-popup {
    display: block;
}

.contact-header i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.phone-number {
    font-weight: 600;
    font-size: 18px;
}

.qrcode-popup {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    width: 220px;
    margin-top: 10px;
    z-index: 1001;
}

.qrcode-popup:before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

.qrcode-title {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.qrcode-container {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.qrcode-item {
    text-align: center;
    padding: 0 5px;
}

.qrcode-item img {
    width: 85px;
    height: 85px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.qrcode-item p {
    font-size: 12px;
    color: var(--dark-color);
}

/* 导航样式 */
nav {
    background-color: rgba(26, 60, 110, 0.95);
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 18px 25px;
    display: block;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    background-color: rgba(201, 169, 110, 0.2);
    color: var(--secondary-color);
}

.nav-menu a.active {
    color: var(--secondary-color);
    background-color: rgba(201, 169, 110, 0.1);
}

/* 浮动咨询按钮 */
.floating-consult-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.floating-consult-btn:hover {
    background-color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.floating-consult-btn .btn-text {
    position: absolute;
    top: 50%;
    right: 70px;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.floating-consult-btn .btn-text:after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-left: 5px solid var(--primary-color);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.floating-consult-btn:hover .btn-text {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* 主要内容区域样式 */
section {
    padding: 60px 0;
}

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

.section-title h2 {
    font-size: 32px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 按钮样式 */
.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    margin-top: 10px;
}

.cta-button:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 13px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 14.5px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* 底部样式 */
footer {
    background-color: #1c2b40;
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 25px;
}

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

.footer-column h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 35px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(rgba(26, 60, 110, 0.85), rgba(26, 60, 110, 0.9)), url('https://pic1.zhimg.com/v2-d4095a58279e575f4b41756cd4631ce6_1440w.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 律师简介样式 */
.profile-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.profile-image {
    flex: 0 0 280px;
}

.profile-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.profile-text {
    flex: 1;
}

.profile-text h3 {
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.profile-text p {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--dark-color);
}

.expertise {
    margin-top: 25px;
}

.expertise h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.expertise-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.expertise-item {
    background-color: var(--light-color);
    padding: 12px 15px;
    border-radius: 4px;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
}

.expertise-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.expertise-icon {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 2px;
}

.expertise-item h5 {
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 16px;
}

.expertise-item p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--gray-color);
}

/* 服务领域样式 */
.services {
    background-color: #f8f9fa;
    padding: 50px 0;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

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

.service-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.service-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.service-header i {
    font-size: 24px;
    margin-right: 12px;
    color: var(--secondary-color);
}

.service-header h3 {
    font-size: 18px;
    margin: 0;
}

.case-list {
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
}

.case-list::-webkit-scrollbar {
    width: 6px;
}

.case-list::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.case-item {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: var(--transition);
    min-height: 62px;
}

.case-item:last-child {
    border-bottom: none;
}

.case-item:hover {
    background-color: #f8f9fa;
}

.case-content {
    flex: 1;
    overflow: hidden;
    margin-right: 12px;
}

.case-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
    font-size: 14.5px;
}

.case-date {
    color: var(--gray-color);
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

.more-link {
    display: block;
    text-align: center;
    padding: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-top: 1px solid #f0f0f0;
    transition: var(--transition);
    font-size: 14px;
}

.more-link:hover {
    background-color: rgba(26, 60, 110, 0.05);
    color: var(--secondary-color);
}

/* 联系方式样式 */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.contact-info {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 8px;
}

.contact-info h3 {
    font-size: 26px;
    margin-bottom: 20px;
    color: white;
}

.contact-details {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.contact-item i {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--secondary-color);
    font-size: 16px;
}

/* 微信二维码区域 */
.wechat-qr-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.wechat-qr-section h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: white;
}

.qr-codes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.qr-code-box {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 6px;
}

.qr-code-box h5 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.qr-code-box img {
    width: 110px;
    height: 110px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.qr-code-box p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.contact-form {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
}

.contact-form h3 {
    color: var(--primary-color);
    font-size: 26px;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .profile-content {
        flex-direction: column;
    }

    .profile-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 350px;
        margin: 0 auto 30px;
    }

    .expertise-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .qr-codes-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu a {
        padding: 14px 18px;
        font-size: 14px;
    }

    .hero {
        padding: 70px 0;
    }

    .hero h2 {
        font-size: 30px;
    }

    .expertise-list {
        grid-template-columns: 1fr;
    }

    section {
        padding: 45px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .contact-header {
        padding: 10px 12px;
    }

    .qrcode-popup {
        width: 200px;
        right: -30px;
    }

    .qrcode-container {
        flex-direction: column;
        align-items: center;
    }

    .qrcode-item {
        margin-bottom: 8px;
    }

    .floating-consult-btn {
        right: 20px;
        bottom: 20px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 26px;
    }

    .hero p {
        font-size: 16px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .floating-consult-btn {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .floating-consult-btn .btn-text {
        font-size: 12px;
        padding: 6px 12px;
    }
}