/* ═══════════════════════════════════════════════════
   琢巧小栈 — Landio 暗色科技风主题
   ═══════════════════════════════════════════════════ */

/* ── 基础变量 ── */
:root {
    --bg-primary: #04070d;
    --bg-card: #0a0f1a;
    --bg-card-hover: #0e1424;
    --border-color: #1a2035;
    --border-glow: #a6daff;
    --text-heading: #ffffff;
    --text-body: #d5dbe6;
    --text-muted: #7a8599;
    --accent: #a6daff;
    --accent-dim: rgba(166, 218, 255, 0.15);
    --accent-glow: rgba(166, 218, 255, 0.3);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    background: var(--bg-primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: rgba(166, 218, 255, 0.2);
    color: #fff;
}

[x-cloak] { display: none !important; }

/* ── 滚动条 ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1a2035; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2a3555; }

/* ── 导航栏 ── */
.nav-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.nav-bar.scrolled {
    background: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.nav-brand {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-heading);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-pill {
    display: flex;
    gap: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 999px;
    padding: 4px;
}
.nav-pill a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    padding: 6px 16px;
    border-radius: 999px;
    transition: all .2s;
    font-weight: 500;
}
.nav-pill a:hover {
    color: var(--text-heading);
    background: rgba(255,255,255,0.06);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 999px;
    background: var(--text-heading);
    color: var(--bg-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s;
}
.nav-cta:hover {
    box-shadow: 0 0 20px rgba(166, 218, 255, 0.3);
    transform: translateY(-1px);
}

/* ── Section 通用 ── */
.section {
    padding: 100px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--accent-dim);
    border: 1px solid rgba(166, 218, 255, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.section-badge svg {
    width: 14px;
    height: 14px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}
.section-title .italic-accent {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
}

/* ── Hero Section ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 2rem 100px;
    overflow: hidden;
}

/* 透视网格背景 */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(166, 218, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(166, 218, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
    perspective: 500px;
    transform: rotateX(35deg);
    transform-origin: center top;
}

/* 径向蓝色光晕 */
.hero-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    background: radial-gradient(circle, rgba(166, 218, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
}
.hero-icon-inner {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--bg-card), #111827);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.hero-icon-inner svg {
    width: 36px;
    height: 36px;
    color: var(--accent);
}
.hero-icon-pulse {
    position: absolute;
    inset: -12px;
    border-radius: 32px;
    background: rgba(166, 218, 255, 0.08);
    animation: hero-pulse 3s ease-in-out infinite;
}
@keyframes hero-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.08); }
}

.hero .section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.25rem;
}
.hero .section-subtitle {
    margin: 0 auto 2.5rem;
    max-width: 480px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    background: var(--text-heading);
    color: var(--bg-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s;
    position: relative;
}
.hero-cta:hover {
    box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(166, 218, 255, 0.1);
    transform: translateY(-2px);
}
.hero-cta svg {
    width: 16px;
    height: 16px;
    transition: transform .2s;
}
.hero-cta:hover svg {
    transform: translateX(3px);
}

.hero-socials {
    display: flex;
    gap: 16px;
    margin-top: 3rem;
}
.hero-socials a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all .2s;
}
.hero-socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}
.hero-socials svg { width: 18px; height: 18px; }

/* ── Feature 卡片 ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(166, 218, 255, 0.15), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(166, 218, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(166, 218, 255, 0.05);
}
.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}
.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Process 步骤 ── */
.process-steps {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    max-width: 640px;
}

.process-step {
    display: flex;
    gap: 2rem;
    position: relative;
    padding-bottom: 3rem;
}
.process-step:last-child { padding-bottom: 0; }

.process-step-line {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48px;
    flex-shrink: 0;
}
.process-step-num {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}
.process-step-connector {
    width: 1px;
    flex: 1;
    background: linear-gradient(to bottom, var(--border-color), transparent);
    margin-top: 8px;
}

.process-step-content {
    padding-top: 10px;
}
.process-step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}
.process-step-content p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Stats 横条 ── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 60px 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}
.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-number .stat-suffix {
    color: var(--accent);
}
.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ── Pricing 卡片 ── */
.pricing-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2rem 0 3rem;
}
.pricing-toggle span {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}
.pricing-toggle span.active {
    color: var(--text-heading);
}

.toggle-switch {
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: var(--border-color);
    position: relative;
    cursor: pointer;
    transition: background .2s;
}
.toggle-switch.on {
    background: var(--accent);
}
.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-heading);
    top: 3px;
    left: 3px;
    transition: transform .2s;
}
.toggle-switch.on::after {
    transform: translateX(22px);
}

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

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: all .35s;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(166, 218, 255, 0.08);
}

.pricing-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pricing-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}
.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}
.pricing-card .price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
}
.pricing-card .price-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--text-body);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.pricing-features li:last-child { border: none; }
.pricing-features li svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-heading);
    cursor: pointer;
}
.pricing-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(166, 218, 255, 0.1);
}
.pricing-card.popular .pricing-btn {
    background: var(--text-heading);
    color: var(--bg-primary);
    border-color: transparent;
}
.pricing-card.popular .pricing-btn:hover {
    box-shadow: 0 0 25px var(--accent-glow);
}

/* ── Blog 卡片 ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 3rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all .35s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-color: rgba(166, 218, 255, 0.15);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0e1424, #141c30);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.blog-card-body {
    padding: 1.75rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}
.blog-tag {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.blog-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.blog-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.blog-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Contact ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all .3s;
}
.contact-info-card:hover {
    border-color: rgba(166, 218, 255, 0.2);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}
.contact-info-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 4px;
}
.contact-info-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-heading);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.form-input::placeholder {
    color: var(--text-muted);
}
.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(166, 218, 255, 0.08);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    background: var(--text-heading);
    color: var(--bg-primary);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all .3s;
    align-self: flex-start;
}
.form-submit:hover {
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-1px);
}

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 2rem 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    padding: 4px 0;
    transition: color .2s;
}
.footer-col a:hover {
    color: var(--accent);
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}
.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all .2s;
    padding: 0;
}
.footer-socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}
.footer-socials svg { width: 16px; height: 16px; }

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-pill { display: none; }
    .section { padding: 60px 1.25rem; }
    .hero { padding: 120px 1.25rem 80px; }

    .features-grid,
    .pricing-grid,
    .blog-grid,
    .contact-grid { grid-template-columns: 1fr; }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 40px 1.25rem;
    }

    .footer-top { grid-template-columns: 1fr; }
    .contact-form-row { grid-template-columns: 1fr; }
}

/* ── 数字计数动画 ── */
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.stat-number.animated {
    animation: count-up .6s ease-out forwards;
}
