/* 企师兄官网样式 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    color: #2563eb;
    font-size: 24px;
    margin-bottom: 2px;
}

.logo span {
    color: #666;
    font-size: 14px;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2563eb;
}

/* 主Banner */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

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

.hero .subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: #fff;
    color: #667eea;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* 服务介绍 */
.services {
    padding: 80px 0;
    background: #fff;
}

.services h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #333;
}

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

.service-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-card .icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.learn-more {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.learn-more:hover {
    color: #1d4ed8;
}

/* 核心优势 */
.advantages {
    padding: 80px 0;
    background: #f8f9fa;
}

.advantages h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #333;
}

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

.advantage-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.advantage-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.advantage-item p {
    color: #666;
    font-size: 14px;
}

/* 最新政策 */
.policy {
    padding: 80px 0;
    background: #fff;
}

.policy h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #333;
}

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

.policy-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
}

.policy-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #2563eb;
}

.policy-item p {
    color: #666;
    line-height: 1.8;
}

.update-time {
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 咨询区域 */
.consult {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
}

.consult h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.consult p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.consult-info {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 12px;
    display: inline-block;
}

.consult-info p {
    margin: 10px 0;
    font-size: 16px;
}

/* 页脚 */
footer {
    background: #1a1a2e;
    color: #c0c0d0;
    padding: 50px 0 0;
    font-size: 14px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-brand .logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}
.footer-brand .tagline {
    font-size: 13px;
    color: #8890a0;
    margin-bottom: 16px;
}
.footer-brand .desc {
    color: #8890a0;
    line-height: 1.7;
    margin-bottom: 8px;
    font-size: 13px;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: #8890a0;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-links a:hover { color: #ffffff; }

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: #8890a0;
    font-size: 13px;
    line-height: 1.6;
}
.footer-contact .contact-item .label {
    color: #667eea;
    font-weight: 600;
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-contact .contact-phone {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}
.footer-contact .contact-wechat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    color: #a5b4fc;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.footer-contact .contact-wechat:hover {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 18px 0;
    text-align: center;
    font-size: 12px;
    color: #6a7080;
}
.footer-bottom a {
    color: #6a7080;
    text-decoration: none;
}
.footer-bottom a:hover { color: #a5b4fc; }

/* ── QR hover tooltip ── */
.footer-qr-trigger {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    color: #a5b4fc;
    font-size: 13px;
    transition: background 0.2s, border-color 0.2s;
}
.footer-qr-trigger:hover {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
}
.footer-qr-trigger:hover .footer-qr-popup { display: block !important; }
.footer-qr-popup {
    display: none;
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    z-index: 100;
    white-space: nowrap;
}
.footer-qr-popup img {
    display: block;
    border-radius: 8px;
}
.footer-qr-popup p {
    color: #666;
    font-size: 11px;
    margin-top: 6px;
    margin-bottom: 0;
    text-align: center;
}
.footer-qr-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffffff;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 30px;
    }
    footer { padding-top: 36px; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero .subtitle {
        font-size: 16px;
    }
    
    .nav-links {
        display: none;
    }
    
    .service-grid,
    .advantage-grid,
    .policy-content {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* 指南页面样式 */
.guide-page {
    background: #fff;
    padding: 60px 0;
}

.guide-page h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.guide-page .meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 40px;
}

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

.guide-content h2 {
    font-size: 24px;
    margin: 40px 0 20px;
    color: #333;
    border-left: 4px solid #2563eb;
    padding-left: 15px;
}

.guide-content h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: #333;
}

.guide-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #444;
}

.guide-content ul,
.guide-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.guide-content li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #444;
}

.guide-content .step-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #2563eb;
}

.guide-content .step-box h4 {
    color: #2563eb;
    margin-bottom: 10px;
}

.guide-content .warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.guide-content .warning h4 {
    color: #856404;
    margin-bottom: 10px;
}

.guide-content .tip {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.guide-content .tip h4 {
    color: #0c5460;
    margin-bottom: 10px;
}

/* FAQ页面样式 */
.faq-page {
    background: #fff;
    padding: 60px 0;
}

.faq-page h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.faq-page .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

.faq-item {
    max-width: 800px;
    margin: 0 auto 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.faq-item h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    cursor: pointer;
}

.faq-item .answer {
    color: #666;
    line-height: 1.8;
}

.faq-item .answer p {
    margin-bottom: 10px;
}

/* 移动端汉堡菜单 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        gap: 15px;
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    
    .navbar .container {
        position: relative;
    }
    
    /* 触摸优化 */
    .btn {
        padding: 18px 40px;
        min-height: 50px;
    }
    
    .service-card,
    .advantage-item,
    .policy-item,
    .faq-item {
        padding: 25px 20px;
    }
    
    /* 面包屑导航移动端 */
    .breadcrumb {
        padding: 10px 0;
    }
    
    .breadcrumb span {
        font-size: 13px;
    }
}

/* ── 企业微信二维码 hover 弹出 ── */
.wechat-qr-trigger { transition: background 0.2s; position: relative; cursor: pointer; }
.wechat-qr-trigger:hover { background: rgba(255,255,255,0.25); }
.wechat-qr-trigger:hover .qr-popup { display: block !important; }
.qr-popup { display: none; }
.qr-popup img { display: block; }

/* Sidebar variant */
.wechat-qr-trigger-sidebar { position: relative; cursor: pointer; }
.wechat-qr-trigger-sidebar:hover .qr-popup-sidebar { display: block !important; }
.qr-popup-sidebar { display: none; }

/* CTA variant */
.wechat-qr-trigger-cta { position: relative; cursor: pointer; }
.wechat-qr-trigger-cta:hover .qr-popup-cta { display: block !important; }
.qr-popup-cta { display: none; }
