/* common.css - 统一页头页尾样式 */
/* 使用免费字体和图标，确保无版权问题 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    font-size: 14px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: #2e86c1;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a5276;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

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

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

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: #1a5276;
    text-decoration: none;
}

.logo-text span {
    color: #e74c3c;
}

.contact-info {
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 20px; /* 使用 gap 替代 margin */
}

.contact-info div {
    display: flex;
    align-items: center;
    white-space: nowrap; /* 防止文字换行 */
}

.contact-info i {
    margin-right: 5px;
    color: #2e86c1;
}

/* 页头电话颜色为黑色 */
.contact-info a {
    color: #333; /* 页头电话为黑色 */
}

.contact-info a:hover {
    color: #2e86c1;
}

/* 页脚联系信息样式 - 始终垂直排列 */
.footer-section .contact-info {
    display: block; /* 覆盖页头的 flex 布局 */
}

.footer-section .contact-info p {
    margin-bottom: 8px;
    display: block;
}

.footer-section .contact-info i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* 页脚电话颜色与链接相同 */
.footer-section .contact-info a {
    color: #d6eaf8; /* 与页脚链接相同的颜色 */
}

.footer-section .contact-info a:hover {
    color: white; /* hover时变为白色 */
}

/* 导航样式 */
nav {
    background-color: #1a5276;
}

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

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #2e86c1;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* 主要内容区基础样式 */
.main-content {
    padding: 40px 0;
    min-height: 500px;
}

.page-content {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-title {
    font-size: 28px;
    color: #1a5276;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.page-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.section-title {
    font-size: 24px;
    color: #1a5276;
    margin: 40px 0 20px;
    text-align: center;
}

/* 页脚样式 */
footer {
    background-color: #1a5276;
    color: white;
    padding: 30px 0 10px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #aed6f1;
}

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

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

.footer-links a {
    color: #d6eaf8;
    text-decoration: none;
    transition: color 0.3s;
}

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2e86c1;
    font-size: 14px;
}

.copyright a {
    color: #d6eaf8;
}

.copyright a:hover {
    color: white;
}

.social-links {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2e86c1;
    color: white;
    margin-right: 10px;
    font-size: 20px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    background-color: #e74c3c;
}

.social-link.wechat {
    background-color: #07c160;
}

.social-link.taobao {
    background-color: #ff4e00;
}

.social-link.phone {
    background-color: #28a745;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        margin-top: 15px;
        flex-direction: column; /* 手机上垂直排列 */
        gap: 10px;
        align-items: center;
    }
    
    .contact-info div {
        margin: 0;
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .nav-menu {
        flex-direction: column;
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #1a5276;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .page-content {
        padding: 20px 15px;
    }
    
    /* 页脚联系信息在手机上保持垂直排列 */
    .footer-section .contact-info {
        text-align: center;
    }
}

/* 移动端优化增强 */
@media (max-width: 768px) {
    .mobile-optimized {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 增大点击区域 */
    .cta-button, .contact-button {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 微信内优化 */
    .wechat-optimized {
        -webkit-overflow-scrolling: touch;
    }
}

/* 微信浏览器检测样式 */
.wechat-browser .social-link.wechat {
    background-color: #07c160;
    transform: scale(1.1);
}

/* 转化引导样式 */
.conversion-funnel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.funnel-step {
    background: linear-gradient(135deg, #1a5276, #2e86c1);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.funnel-step h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 20px;
}

.wechat-btn, .taobao-btn {
    display: inline-block;
    background-color: white;
    color: #1a5276;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s;
}

.wechat-btn:hover, .taobao-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.taobao-btn {
    background-color: #ff4e00;
    color: white;
}