/* =============================================================
 * home.css — 首页全部营销区块
 * 区块顺序：Hero → 信任数据条 → 核心优势 → 能力展示 → 对比传统建站
 *           → 定价 → 三步上线 → 视频教程 → 售后保障 → FAQ → 动态 → CTA
 * ============================================================= */

/* ==================== Hero 主视觉 ==================== */
.hero {
    position: relative;
    padding: 88px 0 96px;
    background:
        radial-gradient(900px 460px at 84% -8%, rgba(18, 184, 127, 0.12), transparent 60%),
        radial-gradient(700px 380px at 4% 12%, rgba(47, 125, 225, 0.07), transparent 55%),
        var(--c-bg);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: var(--r-pill);
    background: var(--c-primary-50);
    color: var(--c-primary-active);
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 22px;
}
.hero-badge .icon { width: 16px; height: 16px; }
.hero h1 {
    font-size: clamp(34px, 4.6vw, 54px);
    line-height: 1.16;
    font-weight: 800;
    color: var(--c-heading);
    letter-spacing: -0.02em;
}
.hero h1 .hl {
    position: relative;
    color: var(--c-primary);
    white-space: nowrap;
}
.hero h1 .hl::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 12px;
    background: var(--c-primary-100);
    z-index: -1;
    border-radius: 4px;
}
.hero-slogan {
    margin-top: 20px;
    font-size: clamp(18px, 2.1vw, 23px);
    line-height: 1.6;
    font-weight: 700;
    color: var(--c-heading);
    letter-spacing: 0.01em;
}
.hero-slogan .slogan-hl {
    background: linear-gradient(90deg, var(--c-primary) 0%, #34d399 45%, #2f7de1 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: slogan-flow 5s ease-in-out infinite;
}
@keyframes slogan-flow {
    0%, 100% { background-position: 0% 0; }
    50% { background-position: 100% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slogan .slogan-hl { animation: none; }
}
.hero-sub {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--c-muted);
    max-width: 560px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 30px;
    font-size: 13.5px;
    color: var(--c-caption);
}
.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.hero-trust .icon { width: 16px; height: 16px; color: var(--c-primary); }

/* Hero 右侧插画 */
.hero-visual {
    position: relative;
}
.hero-visual img,
.hero-visual svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(11, 31, 38, 0.16));
}
.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-md);
    font-size: 13px;
    font-weight: 700;
    color: var(--c-heading);
    animation: floaty 4.2s ease-in-out infinite;
}
.hero-float-card .icon { width: 20px; height: 20px; }
.hero-float-card small { display: block; font-size: 11.5px; font-weight: 500; color: var(--c-muted); }
.hero-float-card--cert { top: 6%; left: -4%; }
.hero-float-card--cert .icon { color: var(--c-primary); }
.hero-float-card--speed { bottom: 10%; right: -3%; animation-delay: 1.4s; }
.hero-float-card--speed .icon { color: var(--c-gold); }
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==================== 信任数据条 ==================== */
.stats-bar {
    background: var(--c-dark);
    padding: 46px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-num {
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.stat-num .unit { font-size: 0.55em; font-weight: 700; color: #5fd9a7; margin-left: 2px; }
.stat-label {
    margin-top: 8px;
    font-size: 14.5px;
    color: #9bb7af;
}

/* ==================== 核心优势卡片 ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    padding: 32px 28px;
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-md);
    border-color: var(--c-primary-200);
}
.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, var(--c-primary-50), #dff6ec);
    color: var(--c-primary);
    margin-bottom: 20px;
}
.feature-icon .icon { width: 27px; height: 27px; }
.feature-card h3 {
    font-size: 18.5px;
    font-weight: 700;
    color: var(--c-heading);
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--c-muted);
}

/* ==================== 能力交替展示行 ==================== */
.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 96px;
}
.showcase-row:last-child { margin-bottom: 0; }
.showcase-row--reverse .showcase-media { order: 2; }
.showcase-media {
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--sh-lg);
    border: 1px solid var(--c-line);
    background: #fff;
}
.showcase-media svg,
.showcase-media img { width: 100%; display: block; }
.showcase-tag { margin-bottom: 12px; }
.showcase-text h3 {
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.3;
    font-weight: 800;
    color: var(--c-heading);
    margin-bottom: 16px;
}
.showcase-text > p {
    font-size: 16px;
    color: var(--c-muted);
    line-height: 1.85;
    margin-bottom: 22px;
}
.show-case-points {
    display: grid;
    gap: 16px;
}
.show-case-points li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.show-case-points .point-dot {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    background: var(--c-primary-50);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.show-case-points .point-dot .icon { width: 19px; height: 19px; }
.show-case-points strong {
    display: block;
    font-size: 15px;
    color: var(--c-heading);
    font-weight: 700;
    margin-bottom: 2px;
}
.show-case-points span { font-size: 14px; color: var(--c-muted); line-height: 1.65; }

/* ==================== 对比传统建站 ==================== */
.compare-wrap {
    border: 1px solid var(--c-line);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    background: #fff;
}
.compare-table {
    font-size: 14.5px;
    min-width: 720px;
}
.compare-table th,
.compare-table td {
    padding: 18px 22px;
    text-align: center;
    border-bottom: 1px solid var(--c-line);
}
.compare-table thead th {
    background: var(--c-bg-soft);
    font-size: 16px;
    font-weight: 800;
    color: var(--c-heading);
}
.compare-table thead th.col-best {
    background: linear-gradient(150deg, var(--c-primary), #0a7d58);
    color: #fff;
    position: relative;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:first-child,
.compare-table th:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--c-heading);
    background: var(--c-bg-soft);
}
.compare-table .yes {
    color: var(--c-primary);
    font-weight: 700;
}
.compare-table .no { color: #97a5ad; }
.compare-table .partial { color: var(--c-gold); font-weight: 600; }
.compare-table .yes .icon,
.compare-table .no .icon {
    width: 15px;
    height: 15px;
    vertical-align: -2px;
    margin-right: 5px;
}
.compare-table td.col-best { background: rgba(14, 159, 110, 0.045); }
.compare-scroll { overflow-x: auto; border-radius: var(--r-xl); }
.compare-foot {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* ==================== 定价 ==================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 920px;
    margin: 0 auto;
}
.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 36px;
    background: #fff;
    border: 1.5px solid var(--c-line);
    border-radius: var(--r-xl);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.price-card--featured {
    border-color: var(--c-primary);
    box-shadow: var(--sh-md);
}
.price-card--featured:hover { box-shadow: var(--sh-lg); }
.price-recommend {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 18px;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, #f7b733, #f5970b);
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 16px rgba(245, 166, 35, 0.4);
}
.price-card-head { text-align: center; padding-bottom: 26px; border-bottom: 1px dashed var(--c-line-strong); }
.price-plan-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--c-heading);
}
.price-plan-name .icon { width: 22px; height: 22px; color: var(--c-primary); }
.price-plan-desc {
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--c-muted);
}
.price-amount {
    margin-top: 22px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    color: var(--c-heading);
}
.price-amount .cny { font-size: 22px; font-weight: 700; }
.price-amount .num { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.price-amount .per { font-size: 15px; color: var(--c-muted); }
.price-original {
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--c-caption);
    text-decoration: line-through;
}
.price-monthly {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 14px;
    border-radius: var(--r-pill);
    background: var(--c-primary-50);
    color: var(--c-primary-active);
    font-size: 13px;
    font-weight: 700;
}
.price-features {
    margin: 28px 0;
    display: grid;
    gap: 13px;
    flex: 1;
}
.price-features li {
    position: relative;
    padding-left: 30px;
    font-size: 14.5px;
    color: #3a4c56;
}
.price-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--c-primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e9f6e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.price-note {
    text-align: center;
    margin-top: 34px;
    font-size: 13.5px;
    color: var(--c-muted);
}
.price-note a { color: var(--c-primary); font-weight: 700; }
.price-note a:hover { text-decoration: underline; }
.price-addon {
    margin-top: 22px;
    padding: 16px 20px;
    border-radius: var(--r-md);
    background: var(--c-bg-soft);
    font-size: 13px;
    color: var(--c-muted);
    line-height: 1.7;
    text-align: center;
}

/* ==================== 三步上线 ==================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    counter-reset: step;
}
.step-card {
    position: relative;
    padding: 36px 30px 32px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
}
.step-card::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--c-primary);
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}
.step-card .step-illu {
    height: 120px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-card .step-illu svg { width: 130px; height: auto; }
/* 无插画时使用的图标圆牌 */
.step-medallion {
    width: 84px;
    height: 84px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, var(--c-primary-50), #dff6ec);
    color: var(--c-primary);
}
.step-medallion .icon { width: 40px; height: 40px; }
.step-card h3 { font-size: 19px; font-weight: 700; color: var(--c-heading); margin-bottom: 8px; text-align: center; }
.step-card p { font-size: 14.5px; color: var(--c-muted); line-height: 1.75; text-align: center; }
/* 步骤之间的连接线 */
.step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 62px;
    right: -26px;
    width: 24px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14' fill='none' stroke='%230e9f6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h21M16 2l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.55;
}

/* ==================== 视频教程 ==================== */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.tutorial-card {
    display: block;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tutorial-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.tutorial-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.tutorial-cover svg,
.tutorial-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tutorial-play {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(11, 31, 38, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}
.tutorial-play::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--c-primary);
}
.tutorial-card:hover .tutorial-play { transform: scale(1.1); background: #fff; }
.tutorial-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 2px 9px;
    border-radius: 6px;
    background: rgba(11, 31, 38, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.tutorial-body { padding: 20px 22px 24px; }
.tutorial-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 8px;
}
.tutorial-body h3 {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--c-heading);
    line-height: 1.5;
}
.tutorial-body p {
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--c-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tutorial-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    border: 1.5px dashed var(--c-line-strong);
    border-radius: var(--r-lg);
    color: var(--c-muted);
    font-size: 14.5px;
}
/* 已渲染教程卡时自动隐藏空态提示（兄弟选择器，兼容空集合无法条件判断的场景） */
.tutorials-grid .tutorial-card ~ .tutorial-empty-fallback { display: none; }

/* ==================== 售后保障 ==================== */
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.guarantee-card {
    text-align: center;
    padding: 34px 22px;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
}
.guarantee-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(95, 217, 167, 0.14);
    color: #5fd9a7;
}
.guarantee-icon .icon { width: 28px; height: 28px; }
.guarantee-card h3 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.guarantee-card p { font-size: 13.5px; color: #8fb3a9; line-height: 1.7; }

/* ==================== FAQ 手风琴 ==================== */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}
.faq-item {
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item.is-open {
    border-color: var(--c-primary-200);
    box-shadow: var(--sh-sm);
}
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: var(--c-heading);
    line-height: 1.55;
}
.faq-q .faq-q-mark {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--c-primary-50);
    color: var(--c-primary);
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.faq-q .faq-chevron {
    margin-left: auto;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--c-muted);
    transition: transform 0.25s ease;
}
.faq-item.is-open .faq-chevron { transform: rotate(180deg); color: var(--c-primary); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-a-inner {
    display: flex;
    gap: 14px;
    padding: 0 24px 22px 66px;
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--c-muted);
}
.faq-a-inner .faq-a-mark {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--c-bg-muted);
    color: var(--c-muted);
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.faq-more {
    text-align: center;
    margin-top: 36px;
}

/* ==================== 最新动态 ==================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.news-card {
    display: block;
    padding: 28px 26px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sh-md);
    border-color: var(--c-primary-200);
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--c-caption);
    margin-bottom: 14px;
}
.news-meta .news-cat {
    padding: 3px 11px;
    border-radius: var(--r-pill);
    background: var(--c-primary-50);
    color: var(--c-primary-active);
    font-weight: 700;
}
.news-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--c-heading);
    line-height: 1.55;
}
.news-card p {
    margin-top: 10px;
    font-size: 14px;
    color: var(--c-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-primary);
}
.news-more .icon { width: 16px; height: 16px; transition: transform 0.2s; }
.news-card:hover .news-more .icon { transform: translateX(4px); }
.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--c-muted);
    padding: 40px 0;
}

/* ==================== 底部 CTA ==================== */
.cta-band {
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: var(--r-xl);
    padding: 84px 32px;
    background:
        radial-gradient(600px 300px at 15% 0%, rgba(95, 217, 167, 0.22), transparent 60%),
        radial-gradient(560px 320px at 90% 100%, rgba(47, 125, 225, 0.18), transparent 60%),
        linear-gradient(150deg, #0a7d58, #063d30);
    color: #fff;
}
.cta-band h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 800;
    letter-spacing: -0.01em;
}
.cta-band p {
    margin: 16px auto 0;
    max-width: 560px;
    font-size: 16.5px;
    color: #d3efe5;
    line-height: 1.8;
}
.cta-actions {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.cta-band .hero-trust { justify-content: center; }
.cta-band .hero-trust span { color: #bfe3d5; }
