/* ============================================================
   万能遥控产品主页样式（home.css）
   - Stage 2: 基础脚手架（body / nav / footer / 通用 section）
   - Stage 4: 7 屏细节、动画、响应式增强
   ============================================================ */


/* ===== 1. CSS 变量（设计令牌） ===== */

:root {
    /* 颜色 */
    --color-primary: #FF6B35;
    --color-primary-dark: #E85A2C;
    --color-primary-light: #FF8F66;
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF4500 100%);
    --color-accent: #4361EE;
    --color-warn: #FFC107;
    --color-success: #4CAF50;
    /* 背景 */
    --bg-dark-1: #0B0E14;
    --bg-dark-2: #1A1D26;
    --bg-dark-3: #232735;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-card-hover: rgba(255, 107, 53, 0.4);
    /* 文字 */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    /* 间距 */
    --container-max: 1200px;
    --section-py: 80px;
    --section-py-mobile: 48px;
    --container-px: 24px;
    /* 圆角 */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    /* 阴影 */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-cta: 0 8px 30px rgba(255, 107, 53, 0.4);
    --shadow-cta-hover: 0 12px 40px rgba(255, 107, 53, 0.6);
    /* 字体 */
    --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --nav-height: 72px;
}


/* ===== 2. Reset & 基础 ===== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background: linear-gradient(180deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%);
    background-attachment: fixed;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}


/* ===== 3. 容器 & 通用节 ===== */

.home-section {
    padding: var(--section-py) var(--container-px);
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
}


/* ===== 4. 顶部导航 ===== */

.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(11, 14, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s, box-shadow 0.3s;
}

.home-nav.scrolled {
    background: rgba(11, 14, 20, 0.92);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    padding: 0 var(--container-px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-logo-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.5));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.nav-cta {
    padding: 10px 20px !important;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: #fff !important;
    font-weight: 600;
    box-shadow: var(--shadow-cta);
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-cta-hover);
    color: #fff !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ===== 5. Footer ===== */

.home-footer {
    background: var(--bg-dark-1);
    border-top: 1px solid var(--border-card);
    padding: 60px var(--container-px) 24px;
    margin-top: 60px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.footer-col h5 {
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-card);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}


/* ===== 6. 通用工具类 ===== */

.text-primary {
    color: var(--color-primary);
}

.text-warn {
    color: var(--color-warn);
}

.text-success {
    color: var(--color-success);
}

.text-muted {
    color: var(--text-muted);
}


/* ===== 7. 滚动渐入动画 ===== */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===== 8. 响应式（移动端优先补充）===== */

@media (max-width: 768px) {
     :root {
        --section-py: var(--section-py-mobile);
    }
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px var(--container-px) 24px;
        background: rgba(11, 14, 20, 0.98);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-card);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s, padding 0.3s;
    }
    .nav-menu.active {
        max-height: 500px;
    }
    .nav-menu li {
        border-bottom: 1px solid var(--border-card);
    }
    .nav-menu a {
        display: block;
        padding: 14px 0;
        font-size: 16px;
    }
    .nav-cta-li {
        border-bottom: none !important;
        margin-top: 12px;
    }
    .nav-cta {
        text-align: center;
        display: block;
    }
    .section-title {
        font-size: 26px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* ====================================================================
   Stage 4: 7 屏细节样式
   ==================================================================== */


/* ===== 按钮系统 ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 17px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-cta);
    flex-direction: column;
    gap: 4px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cta-hover);
    color: #fff;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    color: #fff;
}

.btn-price {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.play-icon {
    color: var(--color-primary);
    font-size: 14px;
}


/* ===== 文字渐变 ===== */

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}


/* ===== ① Hero ===== */

.hero-section {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 100px;
    color: var(--color-primary-light);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 36px;
}

.hero-sub-mini {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--border-card);
}

.hero-trust-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-trust-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary-light);
}

.hero-trust-label {
    font-size: 12px;
    color: var(--text-muted);
}

.hero-trust-divider {
    width: 1px;
    height: 32px;
    background: var(--border-card);
}

.hero-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at center, rgba(255, 107, 53, 0.4) 0%, transparent 60%);
    filter: blur(40px);
    z-index: 0;
    animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    from {
        transform: scale(1);
        opacity: 0.7;
    }
    to {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-title {
        font-size: 42px;
    }
    .hero-visual {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: calc(var(--nav-height) + 32px);
        min-height: auto;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .hero-cta-group .btn {
        flex: 1;
        min-width: 0;
    }
    .hero-trust {
        flex-wrap: wrap;
        gap: 16px;
    }
}


/* ===== ② Features ===== */

.features-section {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 107, 53, 0.03) 50%, transparent 100%);
}

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

.feature-card {
    padding: 36px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-card-hover);
}

.feature-image-wrap {
    margin: -36px -32px 24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(0, 212, 255, 0.05));
}

.feature-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-image {
    transform: scale(1.04);
}

.feature-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.3));
}

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

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

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-card {
        padding: 28px 24px;
    }
    .feature-image-wrap {
        margin: -28px -24px 20px;
    }
}


/* ===== ③ Devices ===== */

.devices-section {
    background: var(--bg-dark-1);
}

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

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

.device-group:hover {
    border-color: var(--border-card-hover);
}

.device-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary-light);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-card);
}

.device-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: var(--color-primary);
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.device-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.device-item {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    transition: background 0.2s, color 0.2s;
}

.device-item:hover {
    background: rgba(255, 107, 53, 0.08);
    color: var(--text-primary);
}

.device-empty {
    grid-column: 1 / -1;
    padding: 60px 24px;
    text-align: center;
    background: var(--bg-card);
    border: 1px dashed var(--border-card);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}

.device-empty p {
    margin: 8px 0;
}

.device-empty-sub {
    font-size: 13px;
}

.devices-cta {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
}

.devices-cta p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 14px;
}

.devices-cta-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.devices-cta-link:hover {
    color: var(--color-primary-light);
}

@media (max-width: 768px) {
    .devices-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== ④ Steps ===== */

.steps-section {
    background: linear-gradient(180deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
}

.step-card {
    position: relative;
    padding: 40px 28px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

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

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

.steps-note {
    text-align: center;
    padding: 16px 24px;
    background: rgba(67, 97, 238, 0.08);
    border: 1px solid rgba(67, 97, 238, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== ⑤ Tips ===== */

.tips-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--color-success);
    border-radius: var(--radius-sm);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.tip-item.tip-warn {
    border-left-color: var(--color-warn);
    background: rgba(255, 193, 7, 0.06);
}

.tip-icon {
    font-size: 18px;
    line-height: 1.4;
    flex-shrink: 0;
}

.tip-text {
    flex: 1;
}

@media (max-width: 768px) {
    .tips-card {
        padding: 20px;
    }
    .tip-item {
        font-size: 14px;
        padding: 12px 14px;
    }
}


/* ===== ⑥ Stats ===== */

.stats-section {
    background: var(--bg-dark-1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 48px 32px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(67, 97, 238, 0.05) 100%);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.stat-item {
    text-align: center;
    padding: 0 8px;
    border-right: 1px solid var(--border-card);
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stats-cta {
    text-align: center;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 32px 16px;
    }
    .stat-item {
        border-right: none;
    }
    .stat-item:nth-child(odd) {
        border-right: 1px solid var(--border-card);
    }
    .stat-value {
        font-size: 28px;
    }
}


/* ===== ⑦ Final CTA ===== */

.cta-section {
    padding-top: 40px;
    padding-bottom: 100px;
}

.cta-card {
    position: relative;
    padding: 80px 48px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 69, 0, 0.1) 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 24px;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(255, 107, 53, 0.3) 0%, transparent 60%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.cta-title,
.cta-desc,
.cta-buttons {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 768px) {
    .cta-card {
        padding: 48px 24px;
    }
    .cta-title {
        font-size: 28px;
    }
    .cta-buttons .btn {
        flex: 1;
        min-width: 0;
    }
}