/* ========================================
   全局样式
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

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

/* ========================================
   顶部联系栏
   ======================================== */
.top-bar {
    background: #1a1a2e;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .phone {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar .phone i {
    color: #e94560;
}

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

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

.logo a {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.4;
}

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

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #e94560;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e94560;
    transition: width 0.3s;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1a1a2e;
}

/* ========================================
   Banner 样式 - 模板1: 渐变背景
   ======================================== */
.banner-template1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.banner-template1 h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner-template1 p {
    font-size: 20px;
    opacity: 0.9;
}

/* Banner 模板2: 图片背景 */
.banner-template2 {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('../images/bg1.jpg') center/cover;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.banner-template2 h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.banner-template2 p {
    font-size: 18px;
}

/* Banner 模板3: 深色背景 */
.banner-template3 {
    background: #16213e;
    color: #fff;
    padding: 70px 0;
    text-align: center;
}

.banner-template3 h1 {
    font-size: 40px;
    margin-bottom: 15px;
    color: #e94560;
}

.banner-template3 p {
    font-size: 18px;
    color: #ccc;
}

/* Banner 模板4: 蓝色渐变 */
.banner-template4 {
    background: linear-gradient(135deg, #0093E9 0%, #80D0C7 100%);
    color: #fff;
    padding: 90px 0;
    text-align: center;
}

.banner-template4 h1 {
    font-size: 44px;
    margin-bottom: 20px;
}

.banner-template4 p {
    font-size: 19px;
}

/* Banner 模板5: 橙色渐变 */
.banner-template5 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 85px 0;
    text-align: center;
}

.banner-template5 h1 {
    font-size: 42px;
    margin-bottom: 18px;
}

.banner-template5 p {
    font-size: 18px;
}

/* ========================================
   内容区域样式
   ======================================== */
.content-section {
    padding: 60px 0;
    background: #fff;
}

.content-section:nth-child(even) {
    background: #f9f9f9;
}

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

.section-title h2 {
    font-size: 36px;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   卡片样式
   ======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 24px;
}

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

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

/* ========================================
   列表样式
   ======================================== */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: #e94560;
    font-size: 20px;
    margin-top: 3px;
}

.feature-list li h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #1a1a2e;
}

.feature-list li p {
    color: #666;
    margin: 0;
}

/* ========================================
   统计数据样式
   ======================================== */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
}

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

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ========================================
   FAQ 样式
   ======================================== */
.faq-section {
    padding: 60px 0;
    background: #fff;
}

.faq-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-question i {
    color: #e94560;
}

.faq-answer {
    color: #666;
    line-height: 1.8;
    padding-left: 30px;
}

/* ========================================
   页脚样式
   ======================================== */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 30px;
}

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

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #e94560;
}

.footer-col p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #e94560;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 30px;
        transition: right 0.3s;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .banner-template1 h1,
    .banner-template2 h1,
    .banner-template3 h1,
    .banner-template4 h1,
    .banner-template5 h1 {
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   特殊模板样式
   ======================================== */

/* 模板A: 左右布局 */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.split-layout.reverse {
    direction: rtl;
}

.split-layout.reverse > * {
    direction: ltr;
}

/* 模板B: 时间线布局 */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e94560;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 400px;
    margin-right: 30px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: 30px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 20px;
    height: 20px;
    background: #e94560;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px #e94560;
}

/* 模板C: 圆形图标布局 */
.circle-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.circle-icon-item {
    padding: 30px;
}

.circle-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 36px;
}

.circle-icon-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a2e;
}

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

/* 模板D: 表格布局 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.info-table th,
.info-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.info-table th {
    background: #1a1a2e;
    color: #fff;
    font-weight: 600;
}

.info-table tr:hover {
    background: #f9f9f9;
}

/* 模板E: 标签页布局 */
.tabs {
    margin-top: 30px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #e94560;
    border-bottom-color: #e94560;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-right: 0;
        padding-left: 50px;
        justify-content: flex-start;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 50px;
    }
    
    .timeline-content {
        margin-right: 0;
        margin-left: 0;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
}
