/* ==================== 全局变量 & 基础重置 ==================== */
:root {
    --bg-deep: #060d17;
    --bg-card: rgba(14, 22, 36, 0.75);
    --bg-card-hover: rgba(22, 32, 50, 0.9);
    --border-soft: #1e2d40;
    --border-glow: rgba(12, 230, 181, 0.22);
    --text-primary: #edf2f9;
    --text-secondary: #8899b4;
    --accent-teal: #0ce6b5;
    --accent-amber: #f0a500;
    --accent-purple: #8b5cf6;
    --gradient-hero: linear-gradient(135deg, #0ce6b5 0%, #6dd5ed 50%, #8b5cf6 100%);
    --gradient-subtle: linear-gradient(160deg, #080f1a 0%, #0c1522 100%);
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-glow-teal: 0 0 24px rgba(12, 230, 181, 0.25);
    --shadow-glow-amber: 0 0 20px rgba(240, 165, 0, 0.2);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

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

/* ==================== 导航栏 ==================== */
header {
    background: rgba(6, 13, 23, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-glow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 14px 0;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.7rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.brand-accent {
    color: var(--accent-teal);
    -webkit-text-fill-color: var(--accent-teal);
}

.brand-tagline {
    font-size: 0.68rem;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    margin-top: 1px;
}

.nav-menu {
    display: flex;
    gap: 1.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #b0c0d4;
    position: relative;
    padding: 4px 0;
    transition: color 0.25s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: width 0.28s;
    box-shadow: var(--shadow-glow-teal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-teal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: #b0c0d4;
    border-radius: 2px;
    transition: all 0.3s;
}

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

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

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

/* ==================== Hero 首屏 ==================== */
.hero-section {
    padding: 60px 0 44px;
    overflow: hidden;
    position: relative;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 44px;
}

.hero-text {
    flex: 1;
    min-width: 280px;
    position: relative;
    z-index: 2;
}

.hero-chip {
    display: inline-block;
    background: rgba(12, 230, 181, 0.1);
    border: 1px solid rgba(12, 230, 181, 0.3);
    border-radius: 100px;
    padding: 5px 16px;
    font-size: 0.78rem;
    color: var(--accent-teal);
    margin-bottom: 22px;
    letter-spacing: 0.3px;
}

.hero-heading {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.14;
    margin-bottom: 18px;
    color: #f0f6ff;
    letter-spacing: -0.4px;
}

.hero-highlight {
    background: linear-gradient(to right, #0ce6b5, #6dd5ed, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 30px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-metrics {
    display: flex;
    gap: 26px;
}

.metric-item {
    border-left: 2px solid var(--accent-teal);
    padding-left: 14px;
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 按钮系统 */
.btn-primary {
    background: var(--gradient-hero);
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 700;
    color: #061018;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    display: inline-block;
    text-align: center;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(12, 230, 181, 0.3);
    letter-spacing: 0.2px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(12, 230, 181, 0.45);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-teal);
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    color: var(--accent-teal);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.25s;
    font-size: 0.95rem;
}

.btn-outline:hover {
    background: var(--accent-teal);
    color: #061018;
    box-shadow: var(--shadow-glow-teal);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 10px 26px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.25s;
    font-size: 0.9rem;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-primary-lg {
    padding: 14px 38px;
    font-size: 1.05rem;
}

/* Hero 视觉元素 */
.hero-visual {
    flex: 0 0 280px;
    height: 280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(12, 230, 181, 0.25);
    animation: ringPulse 4s ease-in-out infinite;
}

.visual-ring-1 {
    width: 240px;
    height: 240px;
    animation-delay: 0s;
}

.visual-ring-2 {
    width: 180px;
    height: 180px;
    border-color: rgba(240, 165, 0, 0.3);
    animation-delay: 0.8s;
}

.visual-ring-3 {
    width: 110px;
    height: 110px;
    border-color: rgba(139, 92, 246, 0.35);
    animation-delay: 1.6s;
}

.visual-core {
    width: 56px;
    height: 56px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 40px rgba(12, 230, 181, 0.5);
    animation: coreGlow 3s ease-in-out infinite;
}

.visual-icon {
    font-size: 1.8rem;
    animation: iconSpin 8s linear infinite;
}

.visual-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(8px);
}

.visual-orb-a {
    width: 20px;
    height: 20px;
    background: var(--accent-amber);
    top: 30px;
    right: 40px;
    animation: orbFloat 5s ease-in-out infinite;
}

.visual-orb-b {
    width: 14px;
    height: 14px;
    background: var(--accent-purple);
    bottom: 50px;
    left: 30px;
    animation: orbFloat 6s ease-in-out infinite 1s;
}

.visual-orb-c {
    width: 10px;
    height: 10px;
    background: var(--accent-teal);
    bottom: 30px;
    right: 55px;
    animation: orbFloat 4.5s ease-in-out infinite 2s;
}

@keyframes ringPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes coreGlow {
    0%,
    100% {
        box-shadow: 0 0 30px rgba(12, 230, 181, 0.4);
    }
    50% {
        box-shadow: 0 0 55px rgba(12, 230, 181, 0.7);
    }
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    33% {
        transform: translateY(-14px) scale(1.3);
    }
    66% {
        transform: translateY(8px) scale(0.8);
    }
}

/* ==================== 通用区块 ==================== */
.section {
    padding: 56px 0;
}

.section-alt {
    background: var(--gradient-subtle);
    border-radius: var(--radius-xl);
    margin: 28px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(to right, #e2e8f0, #8899b4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* 三大核心模块卡片 */
.triple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
}

.triple-card {
    background: var(--bg-card);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
}

.triple-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 3px 3px 0 0;
}

.triple-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    box-shadow: 0 14px 28px -8px rgba(0, 0, 0, 0.55);
}

.triple-card:hover::before {
    opacity: 1;
}

.triple-card-featured {
    border-color: rgba(240, 165, 0, 0.35);
    box-shadow: var(--shadow-glow-amber);
}

.triple-card-featured:hover {
    border-color: var(--accent-amber);
    box-shadow: 0 14px 32px -6px rgba(240, 165, 0, 0.25);
}

.triple-badge {
    display: inline-block;
    background: rgba(12, 230, 181, 0.12);
    color: var(--accent-teal);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 40px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.triple-icon-wrap {
    margin-bottom: 14px;
}

.triple-icon {
    font-size: 2.6rem;
}

.triple-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 10px;
}

.triple-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.92rem;
}

.triple-feats {
    list-style: none;
    margin-bottom: 22px;
}

.triple-feats li {
    padding: 5px 0;
    font-size: 0.85rem;
    color: #c0d0e0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.triple-feats li::before {
    content: "▹";
    color: var(--accent-teal);
    font-weight: bold;
}

.triple-link {
    font-weight: 600;
    color: var(--accent-teal);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
    font-size: 0.9rem;
}

.triple-link:hover {
    gap: 8px;
}


/* 轻量对比 */
.compare-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.compare-mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 24px 20px;
    position: relative;
    transition: all 0.3s;
}

.compare-mini-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-3px);
}

.compare-mini-win {
    border-color: rgba(12, 230, 181, 0.4);
    box-shadow: 0 0 20px rgba(12, 230, 181, 0.1);
}

.compare-ribbon {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--gradient-hero);
    color: #061018;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.compare-mini-card h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 14px;
    font-weight: 700;
}

.compare-mini-card ul {
    list-style: none;
    margin-bottom: 16px;
}

.compare-mini-card ul li {
    padding: 5px 0;
    font-size: 0.85rem;
    color: #c0d0e0;
}

.compare-mini-link {
    display: inline-block;
    font-weight: 700;
    color: var(--accent-teal);
    font-size: 0.9rem;
    transition: gap 0.2s;
}

.compare-mini-link:hover {
    text-decoration: underline;
}

.compare-tag {
    display: inline-block;
    background: rgba(240, 165, 0, 0.15);
    color: var(--accent-amber);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.compare-conclusion {
    text-align: center;
    background: rgba(12, 230, 181, 0.08);
    padding: 14px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    color: #c8d6e5;
    margin-top: 12px;
}

/* 最新教程卡片流 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 22px 20px;
    transition: all 0.3s;
    position: relative;
}

.post-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.post-date {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.post-cat {
    display: inline-block;
    background: rgba(12, 230, 181, 0.12);
    color: var(--accent-teal);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.post-cat-hot {
    background: rgba(240, 165, 0, 0.18);
    color: var(--accent-amber);
}

.post-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.post-card h4 a {
    color: #f1f5f9;
    transition: color 0.2s;
}

.post-card h4 a:hover {
    color: var(--accent-teal);
}

.post-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}

.post-link {
    font-weight: 600;
    color: var(--accent-teal);
    font-size: 0.85rem;
    transition: gap 0.2s;
}

.post-link:hover {
    text-decoration: underline;
}

/* ==================== CTA 号召区域 ==================== */
.cta-banner {
    position: relative;
    background: linear-gradient(135deg, #0a1620 0%, #110d28 100%);
    border-radius: var(--radius-xl);
    margin: 50px 0 36px;
    overflow: hidden;
    padding: 56px 0;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 26px;
    position: relative;
    z-index: 2;
}

.cta-text h2 {
    font-size: 1.9rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 700;
}

.cta-text p {
    color: #c0d0e0;
    max-width: 500px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.cta-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cta-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    filter: blur(35px);
}

.cta-dot-1 {
    width: 180px;
    height: 180px;
    top: -40px;
    right: -30px;
    background: var(--accent-teal);
}

.cta-dot-2 {
    width: 140px;
    height: 140px;
    bottom: -25px;
    left: 8%;
    background: var(--accent-amber);
}

.cta-dot-3 {
    width: 90px;
    height: 90px;
    top: 45%;
    left: 58%;
    background: var(--accent-purple);
}

/* ==================== 页脚 ==================== */
footer {
    background: #030a12;
    border-top: 1px solid #1a2a3a;
    padding: 50px 0 24px;
    margin-top: 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 36px;
}

.footer-col h4 {
    color: #f1f5f9;
    margin-bottom: 16px;
    font-size: 0.95rem;
    font-weight: 700;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.6;
}

.footer-col a {
    display: block;
    color: #8899b4;
    font-size: 0.85rem;
    margin-bottom: 7px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-teal);
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}

.footer-bottom {
    text-align: center;
    padding-top: 36px;
    color: #4a5568;
    font-size: 0.75rem;
    border-top: 1px solid #1a2a3a;
    margin-top: 32px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 18px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(6, 13, 23, 0.98);
        backdrop-filter: blur(20px);
        margin-top: 14px;
        padding: 14px 0;
        gap: 10px;
        border-radius: 14px;
    }

    .nav-menu--open {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-heading {
        font-size: 2.1rem;
    }

    .hero-grid {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-metrics {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        flex: 0 0 200px;
        height: 200px;
        margin: 0 auto;
    }

    .visual-ring-1 {
        width: 170px;
        height: 170px;
    }
    .visual-ring-2 {
        width: 130px;
        height: 130px;
    }
    .visual-ring-3 {
        width: 80px;
        height: 80px;
    }
    .visual-core {
        width: 42px;
        height: 42px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .triple-grid,
    .scene-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .compare-mini-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 26px;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 1.7rem;
    }
    .hero-desc {
        font-size: 0.9rem;
    }
    .hero-visual {
        flex: 0 0 150px;
        height: 150px;
    }
    .visual-ring-1 {
        width: 130px;
        height: 130px;
    }
    .visual-ring-2 {
        width: 95px;
        height: 95px;
    }
    .visual-ring-3 {
        width: 60px;
        height: 60px;
    }
    .visual-core {
        width: 34px;
        height: 34px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}