/* 
 * 前端样式文件
 * 现代简洁设计风格
 */

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

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
}

.logo img {
    height: 32px;
    width: auto;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s;
    font-size: 14px;
}

.nav-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

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

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.mobile-nav-link {
    padding: 12px 0;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Hero 区域 */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--bg-light) 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-light);
   /* margin-bottom: 30px;*/
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* 轮播图 */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* 服务特性区域 */
.features {
    padding: 50px 0;
    background: var(--bg-color);
}

.section-header {
    text-align: center;
   margin-bottom: 30px;
}
.section-headerk {
    text-align: center;
   /*margin-bottom: 60px;*/
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* 亮点区域 */
.highlights {
    padding: 60px 0;
    background: var(--bg-light);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.highlight-item {
    padding: 20px;
}

.highlight-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.highlight-subtitle {
    font-size: 14px;
    color: var(--text-light);
}

/* 功能展示区域 */
.showcases {
    padding: 50px 0;
    background: var(--bg-color);
}

.showcases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.showcase-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}

.showcase-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.showcase-image {
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-info {
    padding: 20px;
}

.showcase-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.showcase-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* 价格套餐区域 */
.pricing {
    padding: 30px 0;
    background: var(--bg-light);
}

.pricing-with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.pricing-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
    z-index: 0;
}

.pricing-with-bg > .container {
    position: relative;
    z-index: 1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.pricing-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.pricing-price .currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

.pricing-price .amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.pricing-price .unit {
    font-size: 14px;
    color: var(--text-light);
}

.pricing-features {
    margin-bottom: 24px;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-light);
}

.pricing-feature svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

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

/* 咨询区域 */
.contact {
    padding: 50px 0;
    background: #ffffff;
    text-align: center;
}

.contact-actions {
   /* display: flex;*/
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
}

/* 页脚 */
.footer {
    background: #ffffff;
    padding: 24px 0;
    border-top: 1px solid #f2f2f2;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-content p {
    font-size: 14px;
    color: var(--text-light);
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: var(--bg-color);
    color: var(--text-light);
    transition: all 0.2s;
}

.footer-icon:hover {
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .showcases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        width: 100%;
    }

    .hero-carousel {
        width: 100%;
    }

    .hero-title {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* 768px以下：保持4列横向布局 + 缩小字体/间距 */
    .highlights-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px; /* 缩小间距适配横向布局 */
    }
    .highlight-item {
        padding: 10px 5px; /* 减少内边距 */
    }
    .highlight-title {
        font-size: 20px; /* 大幅缩小标题字体 */
    }
    .highlight-subtitle {
        font-size: 12px; /* 缩小副标题字体 */
        line-height: 1.4; /* 优化行高 */
    }
    
    .showcases-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 30px;
    }

    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .feature-card {
        padding: 24px 20px;
    }
    
    /* 480px以下：进一步缩小字体/间距，适配小屏手机 */
    .highlights-grid {
        gap: 5px;
    }
    .highlight-item {
        padding: 8px 3px;
    }
    .highlight-title {
        font-size: 16px; /* 小屏手机标题字体 */
    }
    .highlight-subtitle {
        font-size: 10px; /* 小屏手机副标题字体 */
    }
    
    .pricing-price .amount {
        font-size: 36px;
    }
}