/* 首页特有样式：Hero、信任数据、优势卡片、GEO、流程、模板、产品、为什么选我们、CTA等区域具体内容 */

/* ========== Hero 首屏具体内容 ========== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary-light);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}
.hero-badge .sparkle { font-size: 14px; }
.hero h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 540px;
}
.hero-subtitle strong {
    color: var(--gray-700);
    font-weight: 600;
}
.hero-value-props {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.value-prop {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-600);
}
.value-prop .check {
    width: 20px; height: 20px;
    background: var(--success);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 11px; flex-shrink: 0;
}
.hero-cta { display: flex; gap: 14px; align-items: center; }

/* Hero 右侧 - AI引用可视化 */
.hero-visual { position: relative; }
.ai-chat-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}
.ai-chat-header {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-avatar {
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}
.ai-chat-header span {
    font-size: 13px;
    font-weight: 500;
}
.ai-chat-body {
    padding: 20px;
}
.user-question {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--gray-700);
}
.user-question .label {
    font-size: 11px;
    color: var(--gray-400);
    margin-bottom: 4px;
    font-weight: 500;
}
.ai-answer {
    background: white;
    border: 1px solid var(--secondary-light);
    border-radius: var(--radius-md);
    padding: 14px;
    position: relative;
}
.ai-answer .label {
    position: absolute;
    top: -10px;
    left: 14px;
    background: white;
    padding: 0 8px;
    font-size: 11px;
    color: var(--secondary);
    font-weight: 600;
}
.ai-answer p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 8px;
}
.ai-source {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--primary-lighter);
    border-radius: 6px;
    margin-top: 8px;
    border-left: 3px solid var(--primary);
}
.ai-source-icon {
    width: 24px; height: 24px;
    background: var(--primary);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 10px; font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.ai-source-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ai-source-text {
    font-size: 11px;
    color: var(--primary-dark);
    font-weight: 500;
}
.ai-source-text span {
    display: block;
    font-weight: 600;
    font-size: 12px;
}

/* 浮动标签 */
.floating-tag {
    position: absolute;
    background: white;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 4s ease-in-out infinite;
}
.floating-tag.tag1 {
    top: -15px;
    right: -10px;
    animation-delay: 0s;
}
.floating-tag.tag2 {
    bottom: 30px;
    left: -25px;
    animation-delay: 1.5s;
}
.floating-tag .tag-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.tag1 .tag-icon { background: var(--warning-light); color: var(--warning); }
.tag2 .tag-icon { background: var(--success-light); color: var(--success); }
.floating-tag .tag-text { font-size: 12px; line-height: 1.4; }
.floating-tag .tag-text strong {
    display: block;
    font-size: 13px;
    color: var(--gray-800);
}
.floating-tag .tag-text span { color: var(--gray-500); }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========== 信任数据区 ========== */
.trust-label {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.trust-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}
.trust-stat { text-align: center; }
.trust-stat .num {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.trust-stat .label {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}
.trust-partners {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
}
.trust-partners-label {
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 14px;
}
.trust-partners-logos {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    align-items: center;
}
.partner-logo {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-400);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.partner-logo:hover { opacity: 1; color: var(--gray-600); }

/* ========== GEO区具体内容 ========== */
.geo-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.35;
}
.geo-content h2 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.geo-content > p {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 20px;
    line-height: 1.8;
}
.geo-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.geo-feature {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
}
.geo-feature-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--secondary-light);
    color: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.geo-feature h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
}
.geo-feature p {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}

/* ========== 优势卡片区 ========== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.adv-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}
.adv-card:nth-child(1) .adv-icon { background: var(--secondary-light); color: var(--secondary); }
.adv-card:nth-child(2) .adv-icon { background: var(--primary-light); color: var(--primary); }
.adv-card:nth-child(3) .adv-icon { background: var(--success-light); color: var(--success); }
.adv-card:nth-child(4) .adv-icon { background: var(--warning-light); color: var(--warning); }
.adv-card:nth-child(5) .adv-icon { background: #fce7f3; color: #db2777; }
.adv-card:nth-child(6) .adv-icon { background: #e0e7ff; color: #4f46e5; }

.adv-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
}
.adv-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}
.adv-card .adv-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.2s ease;
}
.adv-card .adv-link:hover { gap: 8px; }

/* ========== 建站流程 ========== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.step-number {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
    margin: 0 auto 14px;
}
.process-step h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
}
.process-step p {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

/* ========== 模板展示 ========== */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.template-preview-img {
    height: 160px;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}
.template-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.template-item:hover .template-preview-img img { transform: scale(1.04); }
.tpl-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(2, 6, 23, 0.46);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.template-item:hover .tpl-hover { opacity: 1; }
.tpl-view-btn {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: var(--primary);
    transition: all 0.25s ease;
    white-space: nowrap;
}
.tpl-view-btn:hover { background: #0284c7; }
.tpl-view-btn.outline { background: rgba(255, 255, 255, 0.92); color: #0369a1; }
.tpl-view-btn.outline:hover { background: #fff; }
@media (hover: none), (max-width: 767px) {
    .tpl-hover {
        opacity: 1;
        align-items: flex-end;
        justify-content: center;
        padding: 0 8px 10px;
        background: linear-gradient(to top, rgba(2, 6, 23, 0.6), rgba(2, 6, 23, 0) 48%);
    }
    .tpl-view-btn { display: none; }
    .tpl-view-btn.outline {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 34px;
        min-height: 34px;
        padding: 0 14px;
        border-radius: 999px;
        font-size: 12px;
        line-height: 1;
        box-shadow: 0 2px 8px rgba(2, 6, 23, 0.18);
    }
}
@media (max-width: 767px) {
    /* 手机上卡片变窄，图片按 4:3 显示，避免接近正方形显得拉伸 */
    .template-item .template-preview-img { height: auto; aspect-ratio: 4 / 3; }
    /* 标签文字换行时右侧编号保持顶部对齐，避免悬在行中间 */
    .template-item .template-meta { align-items: flex-start; gap: 6px; }
    .template-item .template-tag { line-height: 1.5; }
    .template-item .template-geo-tag { flex-shrink: 0; }
}
.template-item:nth-child(1) .template-preview-img { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); }
.template-item:nth-child(2) .template-preview-img { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); }
.template-item:nth-child(3) .template-preview-img { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); }
.template-item:nth-child(4) .template-preview-img { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.template-item:nth-child(5) .template-preview-img { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); }
.template-item:nth-child(6) .template-preview-img { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); }
.template-item:nth-child(7) .template-preview-img { background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%); }
.template-item:nth-child(8) .template-preview-img { background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%); }
.template-preview-img .tp-nav {
    position: absolute; top: 10px; left: 10px; right: 10px;
    display: flex; justify-content: space-between; align-items: center;
}
.tp-nav-dot { width: 6px; height: 6px; background: rgba(255,255,255,0.8); border-radius: 50%; }
.tp-nav-menu { display: flex; gap: 6px; }
.tp-nav-menu span { width: 20px; height: 3px; background: rgba(255,255,255,0.7); border-radius: 2px; }
.tp-banner { position: absolute; top: 40px; left: 12px; right: 12px; }
.tp-banner-bar {
    height: 8px; background: rgba(255,255,255,0.6);
    border-radius: 4px; margin-bottom: 6px; width: 70%;
}
.tp-banner-bar.short { width: 40%; }
.tp-btn {
    position: absolute; bottom: 30px; left: 12px;
    width: 50px; height: 20px;
    background: rgba(255,255,255,0.8); border-radius: 4px;
}
.tp-cards {
    position: absolute; bottom: 12px; left: 12px; right: 12px;
    display: flex; gap: 6px;
}
.tp-card { flex: 1; height: 30px; background: rgba(255,255,255,0.5); border-radius: 4px; }
.template-info { padding: 14px 16px; }
.template-info h4 {
    font-size: 14px; font-weight: 600; color: var(--gray-800); margin-bottom: 4px;
}
.template-meta {
    display: flex; justify-content: space-between; align-items: center;
}
.template-tag { font-size: 11px; color: var(--gray-400); }
.template-more { text-align: center; margin-top: 48px; }

/* ========== 产品区 ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 16px;
}
.product-card:nth-child(1) .product-icon { background: var(--secondary-light); color: var(--secondary); }
.product-card:nth-child(2) .product-icon { background: var(--primary-light); color: var(--primary); }
.product-card:nth-child(3) .product-icon { background: var(--success-light); color: var(--success); }
.product-card:nth-child(4) .product-icon { background: var(--warning-light); color: var(--warning); }
.product-card h3 {
    font-size: 16px; font-weight: 600; color: var(--gray-900); margin-bottom: 8px;
}
.product-card p {
    font-size: 13px; color: var(--gray-500);
    margin-bottom: 14px; line-height: 1.6;
}
.product-price {
    font-size: 20px; font-weight: 700; color: var(--secondary);
}
.product-card.featured .product-price { color: var(--secondary); }
.product-price .unit {
    font-size: 12px; font-weight: 400; color: var(--gray-400);
}

/* ========== 为什么选择我们 ========== */
.why-visual-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}
.why-visual-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}
.why-visual-card h4::before {
    content: '';
    width: 4px; height: 18px;
    background: var(--primary);
    border-radius: 2px;
}
.service-items { list-style: none; }
.service-items li {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}
.service-items li:last-child { border-bottom: none; }
.service-items .si-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--primary-lighter);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.service-items .si-text strong {
    display: block;
    font-size: 14px;
    color: var(--gray-800);
    margin-bottom: 2px;
}
.service-items .si-text span {
    font-size: 12px;
    color: var(--gray-500);
}

.why-list { list-style: none; }
.why-list li {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}
.why-list li:last-child { border-bottom: none; }
.why-list .icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.why-list h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}
.why-list p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

/* ========== CTA区域 ========== */
.cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 14px;
    position: relative; z-index: 1;
}
.cta-section p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
    position: relative; z-index: 1;
}
.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    position: relative; z-index: 1;
}
