/* ==========================================================================
   邻语 LinYu 官网首页专属样式（page.css）
   依赖 base.css 的 CSS 变量
   ========================================================================== */

/* ---------- 通用 section ---------- */
.section {
    padding: 88px 0;
    position: relative;
}

.section-alt {
    background-color: var(--color-bg-soft);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.section-title .accent {
    color: var(--color-primary);
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding: 4px 12px;
    background-color: var(--color-accent-soft);
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 17px;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 48px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ---------- 首页 Hero ---------- */
.hero {
    padding: 96px 0 80px;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 176, 122, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(107, 191, 89, 0.10) 0%, transparent 40%),
        linear-gradient(180deg, var(--color-primary-soft) 0%, var(--color-bg) 100%);
    text-align: center;
    overflow: hidden;
    position: relative;
}

/* 地图等高线背景纹理 */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 50%, transparent 0, transparent 60px, rgba(255, 140, 66, 0.05) 60px, rgba(255, 140, 66, 0.05) 61px, transparent 61px),
        radial-gradient(circle at 50% 50%, transparent 0, transparent 120px, rgba(255, 140, 66, 0.04) 120px, rgba(255, 140, 66, 0.04) 121px, transparent 121px),
        radial-gradient(circle at 50% 50%, transparent 0, transparent 200px, rgba(255, 140, 66, 0.03) 200px, rgba(255, 140, 66, 0.03) 201px, transparent 201px),
        radial-gradient(circle at 50% 50%, transparent 0, transparent 300px, rgba(255, 140, 66, 0.025) 300px, rgba(255, 140, 66, 0.025) 301px, transparent 301px);
    background-size: 600px 600px;
    background-position: center;
    pointer-events: none;
    opacity: 0.9;
}

.hero-inner {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background-color: rgba(255, 140, 66, 0.10);
    color: var(--color-primary);
    border: 1px solid rgba(255, 140, 66, 0.20);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    animation: badgePulse 3s ease-in-out infinite;
}

.hero-badge .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent);
    box-shadow: 0 0 0 0 rgba(107, 191, 89, 0.6);
    animation: liveDot 2s infinite;
}

@keyframes liveDot {
    0% { box-shadow: 0 0 0 0 rgba(107, 191, 89, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(107, 191, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(107, 191, 89, 0); }
}

@keyframes badgePulse {
    0%, 100% { border-color: rgba(255, 140, 66, 0.20); }
    50% { border-color: rgba(255, 140, 66, 0.40); }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 900;
    color: var(--color-text);
    line-height: 1.1;
    margin-bottom: 22px;
    letter-spacing: -1.5px;
}

.hero-title .accent {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.hero-title .accent::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 8px;
    background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
    opacity: 0.40;
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.hero-subtitle .accent {
    color: var(--color-primary);
}

.hero-desc {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* Hero 雷达脉冲视觉 */
.hero-radar {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
    margin-bottom: 24px;
}

.hero-radar .ring {
    position: absolute;
    inset: 0;
    border: 1.5px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    animation: radarRing 3.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

.hero-radar .ring:nth-child(1) { animation-delay: 0s; }
.hero-radar .ring:nth-child(2) { animation-delay: 1.1s; }
.hero-radar .ring:nth-child(3) { animation-delay: 2.2s; }

@keyframes radarRing {
    0% { transform: scale(0.25); opacity: 0; border-color: var(--color-primary); }
    20% { opacity: 0.7; }
    100% { transform: scale(1); opacity: 0; border-color: var(--color-accent); }
}

.hero-radar .core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    box-shadow: 0 8px 24px rgba(255, 140, 66, 0.40);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    z-index: 2;
}

.hero-radar .core::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 140, 66, 0.30);
    animation: coreBreath 2s ease-in-out infinite;
}

@keyframes coreBreath {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0; }
}

/* ---------- 场景示例区 ---------- */
.scene-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.scene-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.scene-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.scene-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-tint);
}

.scene-card:hover::before {
    transform: scaleX(1);
}

.scene-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--color-primary-soft) 0%, var(--color-bg-card) 100%);
    border-bottom: 1px solid var(--color-border-light);
}

.scene-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.25);
}

.scene-title {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}

.scene-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.scene-meta .dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: var(--color-success);
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: middle;
    box-shadow: 0 0 0 3px rgba(107, 191, 89, 0.20);
    animation: liveDot2 2s infinite;
}

@keyframes liveDot2 {
    0%, 100% { box-shadow: 0 0 0 3px rgba(107, 191, 89, 0.20); }
    50% { box-shadow: 0 0 0 5px rgba(107, 191, 89, 0.08); }
}

.scene-bubbles {
    padding: 22px 24px 24px;
    background-color: var(--color-bg-soft);
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.bubble {
    display: flex;
    gap: 11px;
    align-items: flex-start;
}

.bubble-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.22);
}

.bubble-body {
    flex: 1;
    min-width: 0;
}

.bubble-author {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 5px;
}

.bubble-author .name {
    color: var(--color-text-light);
    font-weight: 600;
    margin-right: 8px;
}

.bubble-text {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    padding: 11px 15px;
    border-radius: 4px 14px 14px 14px;
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.65;
    position: relative;
    box-shadow: var(--shadow-xs);
}

.bubble-text::before {
    content: "";
    position: absolute;
    top: 9px;
    left: -5px;
    width: 8px;
    height: 8px;
    background-color: var(--color-bg-card);
    border-left: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    transform: rotate(45deg);
}

/* ---------- 功能特性卡片 ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--color-primary-soft) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-tint);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    box-shadow: 0 6px 16px rgba(255, 140, 66, 0.28);
    position: relative;
    z-index: 1;
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.feature-desc {
    font-size: 14.5px;
    color: var(--color-text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ---------- 频道类型展示 ---------- */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.channel-item {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.channel-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    border-color: var(--color-primary-tint);
    background-color: var(--color-primary-soft);
}

.channel-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 6px 16px rgba(201, 112, 58, 0.18);
}

.channel-icon.c1 { background: linear-gradient(135deg, #FF8C42 0%, #FFB07A 100%); }
.channel-icon.c2 { background: linear-gradient(135deg, #6BBF59 0%, #8DD678 100%); }
.channel-icon.c3 { background: linear-gradient(135deg, #C9703A 0%, #E8A572 100%); }
.channel-icon.c4 { background: linear-gradient(135deg, #E74C3C 0%, #F07B6E 100%); }
.channel-icon.c5 { background: linear-gradient(135deg, #F4A261 0%, #F8C58A 100%); }
.channel-icon.c6 { background: linear-gradient(135deg, #8B7355 0%, #B09A7D 100%); }

.channel-name {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 5px;
}

.channel-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ---------- 下载区 ---------- */
.download-section {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 176, 122, 0.45) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(107, 191, 89, 0.22) 0%, transparent 45%),
        linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 88px 0;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, transparent 0, transparent 80px, rgba(255, 255, 255, 0.04) 80px, rgba(255, 255, 255, 0.04) 81px, transparent 81px);
    background-size: 200px 200px;
    pointer-events: none;
}

.download-section .section-title {
    color: #fff;
}

.download-section .section-subtitle {
    color: rgba(255, 255, 255, 0.88);
}

.download-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
}

.download-buttons .btn-download {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 240px;
    padding: 14px 24px;
    text-align: left;
    background-color: #fff;
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: all 0.25s ease;
    font-weight: 600;
}

.download-buttons .btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
    color: var(--color-primary-dark);
}

.download-buttons .btn-download .ico {
    font-size: 26px;
    line-height: 1;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-buttons .btn-download .ico svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.download-buttons .btn-download .label {
    line-height: 1.2;
}

.download-buttons .btn-download .label strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.download-buttons .btn-download .label small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 3px;
    font-family: var(--font-mono);
}

.download-qr {
    background-color: #fff;
    padding: 18px 18px 14px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.qr-code {
    width: 138px;
    height: 138px;
    display: block;
    margin: 0 auto;
}

.qr-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-primary-dark);
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .hero {
        padding: 64px 0 56px;
    }

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

    .hero-subtitle {
        font-size: 19px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-radar {
        width: 180px;
        height: 180px;
    }

    .section {
        padding: 60px 0;
    }

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

    .scene-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .channel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .download-wrap {
        gap: 32px;
    }

    .hero-actions .btn,
    .download-actions .btn-download {
        width: 100%;
        max-width: 320px;
    }

    .download-buttons .btn-download {
        min-width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .channel-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-radar .ring,
    .hero-badge,
    .hero-radar .core::after,
    .scene-meta .dot {
        animation: none;
    }
}
