/* 浏览器兼容性重置 */
/* 确保在所有浏览器（包括搜狗、360等国产浏览器）中显示一致 */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 全局样式 */
:root {
    --primary-color: #1e3a5f; /* 深蓝色 */
    --secondary-color: #2c5282;
    --accent-color: #c9a961; /* 金色 */
    --accent-red: #8b2635; /* 暗红色 */
    --bg-light: #f7f8f9; /* 浅灰色 */
    --text-dark: #2d3748;
    --text-light: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-width: 320px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', 'SimSun', 'Times New Roman', serif;
    font-weight: normal;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 58, 95, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 1.4rem;
    font-weight: bold;
}

.logo i {
    font-size: 2rem;
}

.nav-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
}

.cta-button {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #b89652;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

/* 首屏英雄区域 */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f7f8f9 0%, #e8eef5 100%);
    margin-top: 70px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 60px 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    -ms-grid-column-gap: 60px;
    align-items: center;
    -ms-grid-rows: auto;
}

.hero-content {
    animation: fadeInLeft 1s ease;
}

.hero-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.8;
    text-indent: 2em;
}

.hero-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--secondary-color);
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--accent-red);
    color: var(--text-light);
}

.btn-secondary:hover {
    background: #a02d3a;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-image {
    animation: fadeInRight 1s ease;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* exact 16:9 to match 1920x1080 */
    max-height: 90vh; /* larger, more visible */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.placeholder-image i {
    font-size: 5rem;
    margin-bottom: 20px;
}

.placeholder-image p {
    font-size: 1.5rem;
}

/* 真实图片样式 */
.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fill frame; no blank edges */
    background: transparent;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--text-light);
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--text-light);
    width: 30px;
    border-radius: 6px;
}

/* 关于我板块 */
.about {
    padding: 120px 0 100px 0;
    background: var(--text-light);
}

.about-content {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 60px 1.5fr;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    -ms-grid-column-gap: 60px;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #4a5568;
}

.about-paragraph {
    text-indent: 2em;
}

.highlights {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 20px 1fr;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.highlight-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
}

.highlight-item:hover {
    background: var(--primary-color);
    color: var(--text-light);
    -webkit-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    transform: translateY(-3px);
}

.highlight-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

/* 专业领域板块 */
.services {
    padding: 120px 0 100px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: left;
}

.section-title.centered {
    text-align: center;
}

.services-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 30px 1fr 30px 1fr 30px 1fr;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--text-light);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.service-card:hover {
    -webkit-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--text-light);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* AI法律助手板块 */
.ai-assistant {
    padding: 120px 0 80px 0;
    background: var(--text-light);
}

.disclaimer {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 5px;
    color: #856404;
    display: flex;
    align-items: start;
    gap: 15px;
}

.disclaimer i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-light);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    display: flex;
    gap: 15px;
    animation: slideIn 0.3s ease;
}

.ai-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: var(--accent-color);
}

.message-content {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 10px;
    line-height: 1.6;
}

.ai-message .message-content {
    background: #e8ecf1;
    color: var(--text-dark);
}

.user-message .message-content {
    background: var(--primary-color);
    color: var(--text-light);
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.chat-input-container {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: var(--text-light);
    border-top: 1px solid #e2e8f0;
}

.chat-input {
    flex: 1;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: var(--primary-color);
}

.chat-send {
    padding: 15px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.chat-send:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.chat-suggestions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: var(--text-light);
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.suggestion-tag {
    padding: 8px 15px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.ai-cta {
    text-align: center;
    margin-top: 30px;
}

/* 联系我们板块 */
.contact {
    padding: 120px 0 80px 0;
    background: var(--bg-light);
}

.contact-content {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 60px 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    -ms-grid-column-gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    background: var(--text-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: var(--text-light);
    padding: 0 5px;
    font-size: 0.9rem;
    color: #4a5568;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* 页脚 */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 50px 0 30px;
}

.social-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.social-link {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    -webkit-transform: translateY(-5px) scale(1.05);
    -ms-transform: translateY(-5px) scale(1.05);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 微信图标 - 微信绿 */
.social-link#wechat {
    background: linear-gradient(135deg, #09bb07 0%, #00d100 100%);
    color: white;
}

.social-link#wechat:hover {
    background: linear-gradient(135deg, #07a306 0%, #00bb00 100%);
    color: white;
}

/* 小红书图标 - 小红书红 */
.social-link.xiaohongshu {
    background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
    color: white;
}

.social-link.xiaohongshu:hover {
    background: linear-gradient(135deg, #e61e3a 0%, #ff5252 100%);
    color: white;
}

.xiaohongshu-icon {
    font-size: 1.6rem;
    font-weight: bold;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1;
}

/* 微博图标 - 微博橙红 */
.social-link.weibo {
    background: linear-gradient(135deg, #e6162d 0%, #ff8200 100%);
    color: white;
}

.social-link.weibo:hover {
    background: linear-gradient(135deg, #cc0e24 0%, #e67300 100%);
    color: white;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--text-light);
    padding: 40px;
    border-radius: 10px;
    position: relative;
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-color);
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.qr-code-container {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* 保留旧样式以防万一 */
.qr-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.qr-placeholder i {
    font-size: 4rem;
    margin-bottom: 10px;
}

/* 动画 */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 - 已禁用，所有设备显示桌面版 */
/* 如果需要重新启用移动端响应式，取消下面注释即可 */
/*
@media (max-width: 768px) {
    .nav-links,
    .cta-button {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-container,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .highlights {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .chat-messages {
        height: 300px;
    }

    .carousel-container {
        aspect-ratio: 16 / 9;
        max-height: 40vh;
    }
}
*/

