/* ==================== 全局通用样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: #2c5282;
    color: white;
}

.btn-primary:hover {
    background: #234369;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #e2e8f0;
    color: #2c5282;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-outline {
    border: 1px solid #2c5282;
    color: #2c5282;
    background: transparent;
}

.btn-outline:hover {
    background: #2c5282;
    color: white;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #2c5282;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 3rem;
}

/* ==================== 语言切换样式 ==================== */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
}

.lang-btn.active {
    background: #2c5282;
    color: white;
    border-color: #2c5282;
}

/* ==================== 每日一言样式 ==================== */
.daily-wisdom {
    background: #2c5282;
    color: white;
    padding: 1rem 0;
}

.wisdom-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wisdom-box i {
    font-size: 1.5rem;
    color: #94a3b8;
}

.wisdom-text {
    flex: 1;
}

.refresh-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

/* ==================== 顶部信息栏样式 ==================== */
.top-bar {
    background: #1e3a5f;
    color: white;
    padding: 0.8rem 0;
    font-size: 0.9rem;
}

.top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-links {
    display: flex;
    gap: 15px;
}

.top-links a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-links a:hover {
    color: #94a3b8;
}

/* ==================== 头部导航样式 ==================== */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 99;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
    color: #2c5282;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: #2c5282;
}

.logo-text p {
    font-size: 0.8rem;
    color: #64748b;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-list a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
    position: relative;
}

.nav-list a.active {
    color: #2c5282;
    font-weight: 500;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c5282;
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
    z-index: 999;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #2c5282;
    cursor: pointer;
}

/* ==================== 英雄区域样式 ==================== */
.hero {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    color: white;
    padding: 5rem 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight {
    color: #93c5fd;
}

.subtitle {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat .number {
    font-size: 2rem;
    font-weight: 700;
    color: #93c5fd;
}

.stat .label {
    font-size: 0.9rem;
    color: #e2e8f0;
}

.hero-image {
    flex: 1;
}

.image-box {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.floating-text {
    background: white;
    color: #2c5282;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

.floating-text i {
    font-size: 2rem;
    color: #93c5fd;
    position: absolute;
    top: -15px;
    right: -15px;
}

.en-text {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* ==================== 服务区域样式 ==================== */
.services {
    padding: 6rem 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    color: #2c5282;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c5282;
}

.service-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.en-desc {
    font-size: 0.8rem;
}

.service-link {
    color: #2c5282;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.service-link:hover {
    color: #1e3a5f;
}

/* ==================== 留言板样式 ==================== */
.guestbook {
    padding: 6rem 0;
    background: #f8f9fa;
}

.guestbook-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.message-input {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.char-count {
    font-size: 0.9rem;
    color: #64748b;
}

.message-input textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    resize: none;
    margin-bottom: 1rem;
    font-family: inherit;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nickname-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nickname-box input {
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 200px;
}

.emoji-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #64748b;
}

.messages-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.sort-buttons {
    display: flex;
    gap: 10px;
}

.sort-btn {
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
}

.sort-btn.active {
    background: #2c5282;
    color: white;
    border-color: #2c5282;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 2rem;
    max-height: 500px;
    overflow-y: auto;
}

.message-item {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.message-content p {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
}

.message-actions {
    display: flex;
    gap: 10px;
}

.like-btn, .reply-btn, .wechat-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
}

.like-btn:hover {
    color: #2c5282;
}

.reply-btn:hover {
    color: #07C160;
}

.wechat-btn:hover {
    color: #07C160;
}

.load-more {
    text-align: center;
}

/* ==================== 微信咨询区域样式 ==================== */
.wechat-consult {
    padding: 6rem 0;
    background: linear-gradient(135deg, #07C160 0%, #06ad56 100%);
    color: white;
}

.wechat-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.wechat-text {
    flex: 1;
}

.wechat-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.wechat-text .subtitle {
    color: #e8f5e9;
    margin-bottom: 2rem;
    text-align: left;
}

.wechat-features {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 2rem;
}

.wechat-features li {
    margin-bottom: 10px;
}

.wechat-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
}

.wechat-id {
    font-size: 1.2rem;
    font-weight: 700;
}

.wechat-image {
    flex: 1;
    text-align: center;
}

.qr-display {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    display: inline-block;
    cursor: pointer;
}

.qr-preview {
    margin-bottom: 1rem;
}

/* ==================== 关于我们样式 ==================== */
.about {
    padding: 6rem 0;
    background: white;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #64748b;
}

.quote-box {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    position: relative;
}

.quote-box i {
    font-size: 2rem;
    color: #2c5282;
    position: absolute;
}

.quote-box .fas.fa-quote-left {
    top: 1rem;
    left: 1rem;
}

.quote-box .fas.fa-quote-right {
    bottom: 1rem;
    right: 1rem;
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #2c5282;
    margin-bottom: 1rem;
    padding: 0 2rem;
}

.quote-en {
    font-size: 0.9rem;
    color: #64748b;
    padding: 0 2rem;
}

.about-image {
    flex: 1;
}

.image-placeholder {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    color: #2c5282;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ==================== 咨询表单样式 ==================== */
.consult {
    padding: 6rem 0;
    background: #f8f9fa;
}

.consult-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.wechat-card .contact-icon {
    color: #07C160;
}

.phone-card .contact-icon {
    color: #2c5282;
}

.email-card .contact-icon {
    color: #ef4444;
}

.qq-card .contact-icon {
    color: #1677ff;
}

.contact-card h4 {
    margin-bottom: 0.5rem;
    color: #2c5282;
}

.en-title {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.contact-card p {
    margin-bottom: 1rem;
    color: #64748b;
}

.contact-btn {
    padding: 8px 15px;
    border-radius: 8px;
    background: #2c5282;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-card a {
    display: inline-block;
}

.contact-btn:hover {
    background: #1e3a5f;
}

.consult-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.consult-form h3 {
    margin-bottom: 2rem;
    color: #2c5282;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c5282;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
}

.btn-block {
    width: 100%;
}

.form-tip {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

/* ==================== 页脚样式 ==================== */
.footer {
    background: #1e3a5f;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
    color: #93c5fd;
}

.footer-logo h3 {
    font-size: 1.3rem;
}

.footer-wisdom {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #93c5fd;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul a:hover {
    color: #93c5fd;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.social-link.wechat {
    border-left: 4px solid #07C160;
}

.social-link.qq {
    border-left: 4px solid #1677ff;
}

.social-link.email {
    border-left: 4px solid #ef4444;
}

.social-link.message {
    border-left: 4px solid #2c5282;
}

.business-hours {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem;
}

.business-hours h5 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-bottom a {
    color: #93c5fd;
}

/* ==================== 浮动按钮样式 ==================== */
.float-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    transition: transform 0.3s ease;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-btn.phone {
    background: #2c5282;
}

.float-btn.qq {
    background: #1677ff;
}

.float-btn.message {
    background: #64748b;
}

.float-btn.top {
    background: #1e3a5f;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tooltip {
    position: absolute;
    right: 60px;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.float-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* ==================== 微信二维码样式（你原有的代码，已整合） ==================== */
.wechat-qr-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.wechat-qr-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.close-qr {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-qr:hover {
    background: #f5f5f5;
    color: #333;
}

.qr-code-img {
    width: 260px;
    height: 260px;
    margin: 20px auto;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fafafa;
}

.qr-code-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

/* 微信相关按钮样式 */
.btn-wechat {
    background: #07C160;
    color: white;
    border: none;
}

.btn-wechat:hover {
    background: #06ad56;
}

.btn-wechat-large {
    background: #07C160;
    color: white;
    padding: 15px 30px;
    font-size: 16px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
}

.btn-wechat-large:hover {
    background: #06ad56;
    transform: translateY(-2px);
}

/* 浮动微信按钮 */
.float-btn.wechat {
    background: #07C160;
    color: white;
}

.float-btn.wechat:hover {
    background: #06ad56;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .wechat-qr-content {
        padding: 20px;
    }
    
    .qr-code-img {
        width: 220px;
        height: 220px;
    }
}

/* ==================== 响应式适配样式 ==================== */
@media (max-width: 992px) {
    .hero-content, .wechat-content, .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .guestbook-container, .consult-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 1rem;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .lang-switcher {
        top: 10px;
        right: 10px;
        z-index: 9999;
    }
    
    .nickname-box {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nickname-box input {
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .wechat-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .message-input, .messages-box {
        padding: 1.5rem;
    }
}