:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--text-color);
    line-height: 1.6;
}

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

/* 头部样式 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);

}

.logo-icon {
    margin-right: 10px;
    font-size: 28px;
    background: url(/static/images/logo_b2.png) 0 0 no-repeat;
    width: 70px;
    height: 50px;
}

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

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

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

.user-actions {
    display: flex;
    align-items: center;
}

.btn {
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    margin-right: 10px;
}

.btn-outline:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* 英雄区域样式 */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hero .btn {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #27ae60;
}

/* 功能区域样式 */
.features {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-card p {
    color: #666;
    margin-bottom: 20px;
}

.feature-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.feature-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.feature-link:hover i {
    transform: translateX(3px);
}

/* 统计数据样式 */
.stats {
    padding: 60px 0;
    background-color: white;
}

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

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 16px;
}

/* 底部样式 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

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

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

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

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

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

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 0;
    }

    .nav-links {
        margin: 20px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }
}

/* 登录弹框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: var(--transition);
    overflow: hidden;
}

.modal-overlay.active .login-modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 22px;
    color: var(--dark-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

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

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

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

.form-control.error {
    border-color: var(--accent-color);
}

.error-message {
    color: var(--accent-color);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
}

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

.divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
    color: var(--text-light);
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 20px;
}

.social-btn.wechat {
    color: #09bb07;
}

.social-btn.wechat:hover {
    background: #09bb07;
    color: white;
    border-color: #09bb07;
}

.social-btn.qq {
    color: #12b7f5;
}

.social-btn.qq:hover {
    background: #12b7f5;
    color: white;
    border-color: #12b7f5;
}

.social-btn.weibo {
    color: #e6162d;
}

.social-btn.weibo:hover {
    background: #e6162d;
    color: white;
    border-color: #e6162d;
}

.social-btn.user {
    color: #e6162d;
}

.social-btn.user:hover {
    background: #e6162d;
    color: white;
    border-color: #e6162d;
}


.register-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

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

.register-link a:hover {
    text-decoration: underline;
}

.f_t {
    color: #777;
    line-height: 33px;
    /*float: left;*/
    margin-right: 9px;
}

 /* 微信登录弹框 */
.wechat-qrcode-modal {
    text-align: center;
    padding: 20px;
}

.wechat-qrcode-modal h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.qrcode-container {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    display: inline-block;
}

.qrcode-placeholder {
    width: 200px;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border: 1px dashed #ddd;
}

.qrcode-tip {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 15px;
}

/* 咨询悬浮按钮样式 */
.consultation-widget {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
}

.consultation-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #09bb07, #07a806);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(9, 187, 7, 0.3);
    transition: var(--transition);
    border: none;
    position: relative;
    animation: pulse 2s infinite;
}

.consultation-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(9, 187, 7, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(9, 187, 7, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(9, 187, 7, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(9, 187, 7, 0.3);
    }
}

.consultation-btn::after {
    content: '在线咨询';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.consultation-btn:hover::after {
    opacity: 1;
    right: 75px;
}

/* 咨询弹框样式 */
.consultation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.consultation-modal.active {
    opacity: 1;
    visibility: visible;
}

.consultation-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: var(--transition);
    overflow: hidden;
    text-align: center;
}

.consultation-modal.active .consultation-content {
    transform: translateY(0);
}

.consultation-header {
    background: linear-gradient(135deg, #09bb07, #07a806);
    color: white;
    padding: 20px;
}

.consultation-header h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.consultation-header p {
    font-size: 14px;
    opacity: 0.9;
}

.consultation-body {
    padding: 25px;
}

.qrcode-container {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    display: inline-block;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border: 1px solid #eee;
    margin: 0 auto;
    font-size: 14px;
}

.consultation-tip {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 15px;
    line-height: 1.5;
}

.consultation-contact {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-color);
}

.contact-item i {
    margin-right: 8px;
    color: #09bb07;
}

.close-consultation {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.close-consultation:hover {
    color: rgba(255, 255, 255, 0.7);
}
