/* ===== 基础样式 ===== */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #c9a227;
    --light-bg: #f7fafc;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    --gradient-accent: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===== 导航栏 ===== */
.navbar {
    padding: 1rem 0;
    background: transparent;
    transition: all 0.4s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(26, 54, 93, 0.98);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
}

.navbar-brand i {
    color: var(--accent-color);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--white);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero 区域 ===== */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.hero-avatar {
    width: 240px;
    height: 320px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center top;
    border: 4px solid var(--accent-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.hero-avatar:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 50px rgba(201,162,39,0.4);
}

.avatar-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 256px;
    height: 336px;
    border-radius: 16px;
    border: 2px solid rgba(201,162,39,0.3);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-text {
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-btns .btn {
    padding: 0.8rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.4s ease;
}

.hero-btns .btn-primary {
    background: var(--gradient-accent);
    border: none;
    color: var(--primary-color);
}

.hero-btns .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.4);
}

.hero-btns .btn-outline-light {
    border: 2px solid var(--white);
}

.hero-btns .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* 动画 */
.animate-fadeInUp {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== 通用区域样式 ===== */
.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-header {
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== 关于我 ===== */
.about-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-accent);
    transition: height 0.4s ease;
}

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

.about-card:hover::before {
    height: 100%;
}

.about-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.about-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-light);
}

/* 统计数字 */
.stats-container {
    display: flex;
    justify-content: space-around;
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 50px 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Noto Serif SC', serif;
    color: var(--accent-color);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 5px;
}

/* ===== 专业领域 ===== */
.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-hover-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.service-card:hover .service-hover-icon {
    opacity: 1;
    transform: translateX(0);
}

.service-hover-icon i {
    color: var(--accent-color);
}

/* ===== 联系方式 ===== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.contact-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.contact-card h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-card h4 i {
    color: var(--accent-color);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-card a {
    color: var(--secondary-color);
    font-weight: 500;
}

.contact-card a:hover {
    color: var(--accent-color);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 266px;
}

#map {
    width: 100%;
    height: 100%;
}

/* 联系表单 */
.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-title {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.form-title i {
    color: var(--accent-color);
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 15px;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.form-hint {
    color: var(--text-light);
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.4);
}

textarea.form-control {
    resize: none;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-brand {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-brand i {
    color: var(--accent-color);
}

.footer p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer h5 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

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

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

.footer-links a {
    opacity: 0.8;
    transition: all 0.3s ease;
}

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

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-contact i {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== 滚动动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式设计 ===== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-avatar {
        width: 220px;
        height: 220px;
    }
    
    .avatar-ring {
        width: 250px;
        height: 250px;
    }
    
    .stats-container {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .stat-item {
        flex: 1 1 40%;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-content .row {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-avatar {
        width: 200px;
        height: 200px;
    }
    
    .avatar-ring {
        width: 230px;
        height: 230px;
    }
    
    .hero-text {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-btns .btn {
        width: 100%;
    }
    
    .about-card {
        padding: 30px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 576px) {
    .stat-item {
        flex: 1 1 100%;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links,
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ===== 照片背景样式 ===== */

/* Hero 区域律师办公室背景 */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/lawyer_office_0.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

/* 关于我区域背景装饰 */
.about-section {
    position: relative;
    background: linear-gradient(180deg, var(--white) 0%, #f8f9fa 100%);
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background-image: url('images/lawyer_office_1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    border-radius: 0 0 0 100%;
    z-index: 0;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

/* 专业领域区域会议室背景 */
.services-section {
    position: relative;
    background: var(--light-bg);
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background-image: url('images/conference_room_0.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

/* 服务卡片悬停图片效果 */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 54, 93, 0.9), transparent);
    transition: all 0.4s ease;
    opacity: 0;
    z-index: 0;
}

.service-card:hover::after {
    bottom: 0;
    opacity: 1;
}

/* 关于我区域卡片背景装饰 */
.about-card-decoration {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    background-image: url('images/lawyer_office_1.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 0;
}

.about-card:hover .about-card-decoration {
    opacity: 0.15;
}

/* 统计区域背景 */
.stats-container {
    position: relative;
    overflow: hidden;
}

.stats-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('images/conference_room_1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    animation: slowMove 30s linear infinite;
}

@keyframes slowMove {
    0% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
    100% { transform: translate(0, 0); }
}

/* 联系方式区域 */
.contact-section {
    position: relative;
    background: var(--gradient-primary);
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/conference_room_1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

/* 页面底部装饰 */
.footer-decoration {
    position: relative;
    overflow: hidden;
}

.footer-decoration::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 200px;
    background-image: url('images/lawyer_office_0.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    border-radius: 100% 0 0 0;
    z-index: 0;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .about-section::before {
        width: 200px;
        height: 200px;
    }
    
    .hero-bg-image {
        opacity: 0.1;
    }
}

@media (max-width: 768px) {
    .about-section::before {
        display: none;
    }
    
    .footer-decoration::after {
        width: 150px;
        height: 100px;
    }
}


/* ===== 代表性案例卡片 ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
}

.case-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.case-card .case-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #d4af37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.case-card .case-icon i {
    color: #fff;
    font-size: 20px;
}

.case-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.case-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ===== 在线案件风险评估 ===== */
.risk-assessment {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    border-radius: 15px;
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.risk-assessment::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(201,162,39,0.1) 0%, transparent 70%);
}

.risk-assessment h3 {
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.risk-assessment p {
    opacity: 0.9;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.assessment-form {
    position: relative;
    z-index: 1;
}

.assessment-form .form-group {
    margin-bottom: 15px;
}

.assessment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.assessment-form select,
.assessment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255,255,255,0.95);
    color: #333;
}

.assessment-form textarea {
    min-height: 100px;
    resize: vertical;
}

.assessment-form button {
    background: linear-gradient(135deg, #c9a227, #d4af37);
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201,162,39,0.4);
}

.assessment-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,162,39,0.5);
}

.assessment-result {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: none;
}

.assessment-result.show {
    display: block;
}

/* ===== 联系方式标题白色 ===== */
.contact-section .section-title {
    color: #fff !important;
}

.contact-section .section-tag {
    color: rgba(255,255,255,0.8);
}

.contact-section .section-line {
    background: rgba(255,255,255,0.5);
}

/* ===== 免责声明 ===== */
.disclaimer-text {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 10px;
    line-height: 1.6;
}


/* ===== AI法律咨询 ===== */
.ai-chat-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.ai-chat-header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c9a227, #d4af37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-avatar i {
    font-size: 24px;
    color: #fff;
}

.ai-info h4 {
    color: #fff;
    margin: 0;
    font-size: 1.2rem;
}

.ai-status {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

.ai-status i {
    color: #28a745;
    font-size: 8px;
    margin-right: 5px;
}

.ai-chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.ai-message {
    margin-bottom: 15px;
    display: flex;
}

.ai-message.ai-user {
    justify-content: flex-end;
}

.ai-message.ai-bot {
    justify-content: flex-start;
}

.ai-message-content {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ai-user .ai-message-content {
    background: linear-gradient(135deg, #1a365d, #2c5282);
    color: #fff;
    border-bottom-right-radius: 5px;
}

.ai-bot .ai-message-content {
    background: #fff;
    color: #333;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.ai-chat-input {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

.ai-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ai-input-wrapper textarea {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.95rem;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

.ai-input-wrapper textarea:focus {
    border-color: #1a365d;
}

.ai-input-wrapper button {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c9a227, #d4af37);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(201,162,39,0.4);
}

.ai-input-wrapper button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(201,162,39,0.5);
}

.ai-quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ai-quick-questions span {
    color: #718096;
    font-size: 0.85rem;
}

.ai-quick-questions button {
    padding: 6px 14px;
    background: #f0f4f8;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #1a365d;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-quick-questions button:hover {
    background: #1a365d;
    color: #fff;
    border-color: #1a365d;
}

.ai-disclaimer {
    padding: 12px 20px;
    background: #fff3cd;
    color: #856404;
    font-size: 0.8rem;
    text-align: center;
}

.ai-disclaimer i {
    margin-right: 5px;
}

/* AI加载动画 */
.ai-typing {
    display: flex;
    gap: 4px;
    padding: 12px 18px;
}

.ai-typing span {
    width: 8px;
    height: 8px;
    background: #1a365d;
    border-radius: 50%;
    animation: typing 1s infinite;
}

.ai-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

/* 响应式 */
@media (max-width: 768px) {
    .ai-chat-messages {
        height: 300px;
    }
    
    .ai-message-content {
        max-width: 90%;
    }
    
    .ai-quick-questions {
        justify-content: center;
    }
}