/* ================================================================
   全局重置 + 科幻深色主题 + 全屏无空白
   ================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background: #0a0e17;
    color: #e2e8f0;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ======== 星空 Canvas 背景 ======== */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* 所有内容在星空之上 */
nav, main, .container, section {
    position: relative;
    z-index: 1;
}

/* ======== 容器 — 全屏无空白 ======== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ======== 标题 ======== */
h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: #f1f5f9;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
}

/* ======== 导航栏 ======== */
nav {
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 2px;
    text-shadow: 0 0 40px rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

    .logo .cat-icon {
        font-size: 30px;
        line-height: 1;
        display: inline-block;
        animation: catGlow 2.5s ease-in-out infinite;
    }

@keyframes catGlow {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.2));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.5));
        transform: scale(1.05);
    }
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    flex-wrap: wrap;
}

    .nav-links li {
        cursor: pointer;
        padding: 6px 14px;
        border-radius: 6px;
        transition: all 0.3s;
        font-size: 15px;
        color: #94a3b8;
    }

        .nav-links li:hover {
            background: rgba(56, 189, 248, 0.08);
            color: #38bdf8;
            box-shadow: 0 0 20px rgba(56, 189, 248, 0.05);
        }

        .nav-links li.active {
            background: rgba(56, 189, 248, 0.15);
            color: #38bdf8;
            font-weight: 600;
            box-shadow: 0 0 30px rgba(56, 189, 248, 0.08);
        }

/* ======== 页面切换 ======== */
.page {
    display: none;
}

    .page.active-page {
        display: block;
    }

/* ======== 第1部分：Hero ======== */
.hero {
    background: radial-gradient(ellipse at 50% 30%, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
    padding: 100px 0 80px;
    text-align: center;
    border-bottom: 1px solid rgba(56, 189, 248, 0.05);
}

    .hero h1 {
        font-size: 56px;
        font-weight: 800;
        color: #38bdf8;
        text-shadow: 0 0 60px rgba(56, 189, 248, 0.15);
        letter-spacing: 2px;
    }

    .hero .subtitle {
        font-size: 20px;
        color: #94a3b8;
        margin: 12px 0 24px;
    }

.version-tags {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 20px 0 16px;
}

.tag {
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

    .tag.install {
        background: rgba(56, 189, 248, 0.15);
        color: #38bdf8;
        border: 1px solid rgba(56, 189, 248, 0.25);
    }

    .tag.source {
        background: rgba(251, 191, 36, 0.12);
        color: #fbbf24;
        border: 1px solid rgba(251, 191, 36, 0.2);
    }

.hero .desc {
    font-size: 18px;
    color: #64748b;
}

/* ======== 第2部分：价格 ======== */
.pricing {
    padding: 80px 0;
    background: rgba(15, 23, 42, 0.3);
    border-bottom: 1px solid rgba(56, 189, 248, 0.05);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(56, 189, 248, 0.08);
    transition: all 0.4s;
    position: relative;
}

    .pricing-card:hover {
        transform: translateY(-6px);
        border-color: rgba(56, 189, 248, 0.2);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    }

    .pricing-card.popular {
        border-color: rgba(56, 189, 248, 0.25);
        background: rgba(30, 41, 59, 0.6);
    }

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #38bdf8;
    color: #0a0e17;
    padding: 2px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-size: 22px;
    margin: 8px 0 12px;
    color: #f1f5f9;
}

.price {
    font-size: 34px;
    font-weight: 700;
    color: #38bdf8;
    margin: 12px 0 16px;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    padding: 0 16px;
    margin: 16px 0 24px;
}

    .pricing-card ul li {
        padding: 4px 0;
        font-size: 14px;
        color: #cbd5e1;
    }

.pricing-card button {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0a0e17;
    border: none;
    padding: 10px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
}

    .pricing-card button:hover {
        transform: scale(1.04);
        box-shadow: 0 8px 40px rgba(56, 189, 248, 0.35);
    }

.pricing-card.popular button {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
}

    .pricing-card.popular button:hover {
        box-shadow: 0 8px 40px rgba(251, 191, 36, 0.35);
    }

/* ======== 第3部分：Showcase ======== */
.showcase {
    padding: 80px 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.05);
    background: radial-gradient(ellipse at 30% 50%, rgba(56, 189, 248, 0.03), transparent 70%);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.showcase-text h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #38bdf8;
}

.showcase-text ol {
    padding-left: 20px;
    color: #cbd5e1;
}

    .showcase-text ol li {
        padding: 6px 0;
    }

.mockup-window {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mockup-header {
    background: rgba(30, 41, 59, 0.6);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(56, 189, 248, 0.05);
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

    .dot.red {
        background: #ef4444;
    }

    .dot.yellow {
        background: #eab308;
    }

    .dot.green {
        background: #22c55e;
    }

.mockup-body {
    padding: 30px 20px;
    min-height: 160px;
}

/* ======== 第4部分：案例 ======== */
.cases {
    padding: 80px 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.05);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.case-item {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(56, 189, 248, 0.05);
    transition: border-color 0.3s;
}

    .case-item:hover {
        border-color: rgba(56, 189, 248, 0.15);
    }

.case-img {
    font-size: 48px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.case-item h4 {
    font-size: 18px;
    color: #f1f5f9;
}

.case-item p {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 6px;
}

/* ======== 第5部分：其他产品 ======== */
.other-products {
    padding: 80px 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.05);
    background: rgba(15, 23, 42, 0.2);
}

.other-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.other-item {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(56, 189, 248, 0.05);
    transition: all 0.3s;
}

    .other-item:hover {
        border-color: rgba(56, 189, 248, 0.15);
        transform: translateY(-4px);
    }

    .other-item h4 {
        margin: 8px 0 4px;
        color: #f1f5f9;
    }

    .other-item p {
        color: #64748b;
        font-size: 14px;
    }

/* ======== 第6部分：为什么选择我们 ======== */
.why-us {
    padding: 80px 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.05);
    background: radial-gradient(ellipse at 70% 50%, rgba(56, 189, 248, 0.04), transparent 70%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.why-item {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.05);
    transition: all 0.3s;
}

    .why-item:hover {
        border-color: rgba(56, 189, 248, 0.12);
        background: rgba(56, 189, 248, 0.03);
    }

    .why-item h3 {
        margin: 12px 0 8px;
        color: #f1f5f9;
    }

    .why-item p {
        color: #94a3b8;
        font-size: 14px;
    }

/* ======== 第7部分：底部信息 ======== */
.footer-info {
    padding: 50px 0 30px;
    background: rgba(10, 14, 23, 0.6);
    border-top: 1px solid rgba(56, 189, 248, 0.05);
}

.footer-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

    .footer-info-grid h4 {
        color: #38bdf8;
        margin-bottom: 12px;
        font-size: 16px;
    }

    .footer-info-grid p {
        font-size: 14px;
        color: #94a3b8;
        margin: 4px 0;
    }

/* ======== 第8部分：版权 ======== */
.copyright {
    background: rgba(10, 14, 23, 0.4);
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    color: #475569;
    border-top: 1px solid rgba(56, 189, 248, 0.04);
}

/* ======== 产品页卡片 ======== */
.product-card {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(56, 189, 248, 0.06);
    cursor: pointer;
    transition: all 0.3s;
}

    .product-card:hover {
        transform: translateY(-4px);
        border-color: rgba(56, 189, 248, 0.2);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }

    .product-card h3 {
        font-size: 20px;
        color: #f1f5f9;
    }

    .product-card p {
        color: #64748b;
    }

/* ======== 定制开发卡片 ======== */
.custom-card {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(56, 189, 248, 0.06);
    cursor: pointer;
    transition: all 0.3s;
}

    .custom-card:hover {
        transform: translateY(-4px);
        border-color: rgba(56, 189, 248, 0.2);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }

    .custom-card h3 {
        margin-top: 10px;
        color: #f1f5f9;
    }

/* ======== 文档卡片 ======== */
.doc-card {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.06);
    transition: all 0.3s;
}

    .doc-card:hover {
        border-color: rgba(56, 189, 248, 0.15);
        transform: translateY(-2px);
    }

    .doc-card h3 {
        color: #f1f5f9;
        margin-bottom: 8px;
    }

    .doc-card p {
        color: #94a3b8;
        font-size: 14px;
    }

/* ======== 糖果色块 ======== */
.candy-color-block {
    font-weight: 500;
    user-select: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .candy-color-block:hover {
        transform: scale(1.08);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

/* ======== 文档菜单 ======== */
.doc-menu-item {
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #94a3b8;
    border: 1px solid transparent;
    font-size: 15px;
    user-select: none;
}

    .doc-menu-item:hover {
        background: rgba(56, 189, 248, 0.06);
        color: #e2e8f0;
        border-color: rgba(56, 189, 248, 0.08);
    }

    .doc-menu-item.active {
        color: #38bdf8;
        background: rgba(56, 189, 248, 0.12);
        border-color: rgba(56, 189, 248, 0.15);
        box-shadow: 0 0 30px rgba(56, 189, 248, 0.05);
    }

.doc-content {
    animation: fadeIn 0.3s ease;
}

    .doc-content.active-doc {
        display: block;
    }

/* ======== 博客菜单 ======== */
.blog-menu-item {
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #94a3b8;
    border: 1px solid transparent;
    font-size: 15px;
    user-select: none;
}

    .blog-menu-item:hover {
        background: rgba(167, 139, 250, 0.06);
        color: #e2e8f0;
        border-color: rgba(167, 139, 250, 0.08);
    }

    .blog-menu-item.active {
        color: #a78bfa;
        background: rgba(167, 139, 250, 0.12);
        border-color: rgba(167, 139, 250, 0.15);
        box-shadow: 0 0 30px rgba(167, 139, 250, 0.05);
    }

.blog-content {
    animation: fadeIn 0.3s ease;
}

    .blog-content.active-blog {
        display: block;
    }

/* ======== 工具菜单 ======== */
.tool-menu-item {
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #94a3b8;
    border: 1px solid transparent;
    font-size: 15px;
    user-select: none;
}

    .tool-menu-item:hover {
        background: rgba(56, 189, 248, 0.06);
        color: #e2e8f0;
        border-color: rgba(56, 189, 248, 0.08);
    }

    .tool-menu-item.active {
        color: #38bdf8;
        background: rgba(56, 189, 248, 0.12);
        border-color: rgba(56, 189, 248, 0.15);
        box-shadow: 0 0 30px rgba(56, 189, 248, 0.05);
    }

.tool-content {
    animation: fadeIn 0.3s ease;
}

    .tool-content.active-tool {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======== 响应式 ======== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 16px;
    }

    .showcase-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nav-container {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        justify-content: center;
    }

        .nav-links li {
            font-size: 13px;
            padding: 4px 10px;
        }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .footer-info-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .container {
        padding: 0 16px;
    }

    #page-tools .container > div,
    #page-docs .container > div,
    #page-blog .container > div {
        grid-template-columns: 1fr !important;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .logo .cat-icon {
        font-size: 24px;
    }

    .logo {
        font-size: 20px;
    }
}


/* ======== 博客左侧菜单滚动条样式 ======== */
#blogMenuContainer::-webkit-scrollbar {
    width: 4px;
}

#blogMenuContainer::-webkit-scrollbar-track {
    background: transparent;
}

#blogMenuContainer::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.2);
    border-radius: 4px;
}

    #blogMenuContainer::-webkit-scrollbar-thumb:hover {
        background: rgba(56, 189, 248, 0.4);
    }

/* ======== 博客左侧菜单容器 ======== */
#blogMenuContainer {
    max-height: 800px !important; /* 原来是 600px，扩大到 800px */
    min-height: 500px !important; /* 新增：保证最小高度 */
}