/* style.css - 整合版主样式 */
/* 图片加载状态 */
img:not([src]) {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[src] {
    opacity: 1;
}


:root {
    --primary-color: #4a6cf7; /* 主色调整为蓝紫色，接近原站风格 */
    --secondary-color: #7c3aed;
    --dark-color: #1a202c;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --light-bg: #f0f9ff; /* 原站首页的浅蓝背景 */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'Source Han Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* 英雄区域 */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 85vh;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    line-height: 1.2;
    font-weight: 700;
}

.hero-content > p {
    font-size: 1.25rem;
    color: var(--gray-color);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.download-note {
    font-size: 0.95rem;
    color: #94a3b8;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #3a56d6;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 108, 247, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* 通用区块 */
.section-padding {
    padding: 5.5rem 0;
}

.section-title, .section-header h2 {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header p {
    color: var(--primary-color);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* 服务网格 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
}

.service-card i {
    color: var(--primary-color);
    margin-bottom: 1.8rem;
    font-size: 2.8rem;
}

.service-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.service-card p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* 产品核心特性 */
.core-products {
    background-color: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.8rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-item i {
    color: var(--primary-color);
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1.08rem;
    line-height: 1.6;
}

/* ==================== 原生图片轮播样式 ==================== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 520px; /* 固定高度，可根据图片比例调整 */
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例并填充容器 */
    display: block;
}

/* 轮播按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 自动播放控制 */
.carousel-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.control-btn {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* ==================== 原生价格表样式 ==================== */
.price-table-container {
    overflow-x: auto;
    margin-bottom: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: white;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px; /* 增加最小宽度，提供更多空间 */
    table-layout: fixed; /* 固定布局，确保列宽稳定 */
}

.price-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* 列宽分配：第一列30%，后三列各15%，最后一列25% */
.price-table th.col-module,
.price-table td:first-child {
    width: 30%; /* 显著增加第一列宽度 */
    min-width: 200px; /* 设置最小宽度保证内容不换行 */
}

.price-table th.col-pc {
    width: 45%; /* PC版三列总宽度 */
}

.price-table th.col-remark,
.price-table td:last-child {
    width: 25%; /* 备注列宽度 */
}

/* PC版内部三列平均分配 */
.price-table th.col-pc + th,
.price-table td:nth-child(2),
.price-table td:nth-child(3),
.price-table td:nth-child(4) {
    width: 15%; /* 每列15% */
}

.price-table th {
    padding: 18px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    white-space: nowrap; /* 标题不换行 */
}

.price-table tbody tr {
    border-bottom: 1px solid #eef2f7;
    transition: background-color 0.2s ease;
}

.price-table tbody tr:nth-child(even) {
    background-color: #f9fafc;
}

.price-table tbody tr:hover {
    background-color: #f0f7ff;
}

.price-table td {
    padding: 16px 10px;
    text-align: center;
    vertical-align: middle;
    color: var(--dark-color);
    word-wrap: break-word; /* 允许单词内换行 */
    hyphens: auto; /* 自动断字（支持多语言） */
}

/* 第一列特殊处理 */
.price-table td:first-child {
    min-width: 200px !important;
    width: 30% !important;
    max-width: 300px !important;
    white-space: normal !important;
    line-height: 1.6 !important;
    padding: 15px 20px !important;
    font-weight: 500;

    /* font-weight: 500;
    text-align: left;
    padding-left: 20px;
    padding-right: 15px;
    line-height: 1.5; */
    /* 防止文字换行，使用省略号... 
    white-space: normal;  允许换行，但控制行数 
    max-height: 4.5em;  大约3行高度 
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;  最多显示3行 
    -webkit-box-orient: vertical;
*/
    
}

/* 价格单元格特殊样式 */
.price-table .price-cell {
    font-weight: 700;
    color: #e53e3e;
    font-size: 1.1rem;
    white-space: nowrap; /* 价格不换行 */
}

/* 配置要求 */
.config-requirements {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.config-requirements h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    text-align: center;
    font-size: 1.5rem;
}

.config-requirements ul {
    list-style: none;
    padding: 0;
}

.config-requirements li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8fafc;
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.config-requirements li:hover {
    transform: translateX(5px);
    background: #f0f9ff;
}

/* ==================== 图片加载状态样式 ==================== */
.loading-image {
    opacity: 0.5;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loaded-image {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.error-image {
    border: 2px dashed #ff6b6b;
    padding: 5px;
}

.bg-image-loaded {
    background-size: cover !important;
    background-position: center !important;
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3.5rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.4rem;
    margin-bottom: 1.8rem;
    color: #e2e8f0;
    font-weight: 600;
}

.footer-section p {
    color: #cbd5e1;
    margin-bottom: 1.2rem;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.footer-section i {
    margin-top: 0.3rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.footer-section a {
    color: #63b3ed;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.wechat-qr {
    margin-top: 1.5rem;
}

.wechat-qr img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 1px solid #4a5568;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid #2d3748;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #a0aec0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .hero {
        text-align: center;
        padding: 3rem 1.5rem;
        min-height: 75vh;
    }
    .hero-content > p {
        max-width: 100%;
    }
    .button-group {
        justify-content: center;
    }
    
    /* 轮播 */
    .carousel {
        height: 300px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .prev-btn {
        left: 10px;
    }
    .next-btn {
        right: 10px;
    }
    .carousel-indicators {
        bottom: 10px;
    }
    .carousel-controls {
        bottom: 10px;
        right: 10px;
    }
    
    /* 价格表 */
    .price-table td:first-child {
        min-width: 150px !important;
        width: 35% !important;
        padding: 12px 15px !important;
        font-size: 14px;

        /* min-width: 150px;
        padding-left: 10px;
        padding-right: 10px; */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .section-padding {
        padding: 4rem 0;
    }
}

@media (max-width: 576px) and (orientation: landscape) {
    .price-table {
        min-width: 750px;
    }
}

#product-price .icon-cross{
    color:#ff4645;
}

#product-price .icon-check{
    color:#63ca31;
}