:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(37, 99, 235, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

#bgParticles {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

header,
section,
footer {
    position: relative;
    z-index: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #fff;
    color: var(--primary);
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.btn-icon-gitee {
    width: 20px;
    height: 20px;
}

/* 导航栏 */
header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 99;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray);
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

/* 头部横幅 */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 60%, #6366f1 100%);
    color: #fff;
    padding: 100px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.hero .container {
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    fill: #fbbf24;
}

.hero h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.hero p {
    font-size: 18px;
    max-width: 720px;
    margin: 0 auto 36px;
    opacity: 0.92;
    line-height: 1.8;
}

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

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

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

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #6366f1);
    border-radius: 2px;
    margin: 12px auto 0;
}

.section-desc {
    color: var(--gray);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
}

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

.feature-card {
    background: #fff;
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.15);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-light), #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--primary);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}

/* 数据源表格 */
.ds-table-wrap {
    overflow-x: auto;
    margin-top: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.ds-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

.ds-table th,
.ds-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.ds-table th {
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

.ds-table td:first-child,
.ds-table th:first-child {
    text-align: left;
    font-weight: 600;
}

.ds-table tbody tr:last-child td {
    border-bottom: none;
}

.ds-table tbody tr:hover {
    background: #f8fafc;
}

.ds-table .planned {
    color: var(--gray);
    font-style: italic;
}

.ds-check {
    color: #16a34a;
    font-weight: 700;
}

.bg-white {
    background: #fff;
}

/* 界面预览 */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.screenshot-item {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.screenshot-item h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.screenshot-item h3 svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

.screenshot-item img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* 安装部署 */
.install-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.install-method {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.install-method h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.install-method h3 svg {
    width: 22px;
    height: 22px;
    fill: var(--primary);
}

.install-method .code-block {
    margin: 0;
    max-width: none;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
}

.code-block {
    background: #0f172a;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    white-space: pre-line;
}

/* 社区 */
.community {
    text-align: center;
    font-size: 16px;
    color: var(--gray);
}

.community-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.community-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    color: var(--dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.community-pill svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
    flex-shrink: 0;
}

.community-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.qrcode-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 36px;
}

.qrcode-item {
    text-align: center;
    background: #fff;
    padding: 24px 28px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease;
}

.qrcode-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.qrcode-item img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 8px;
}

.qrcode-item p {
    margin-top: 14px;
    font-size: 14px;
    color: var(--dark);
    font-weight: 600;
}

/* 页脚 */
footer {
    background: var(--dark);
    color: #fff;
    text-align: center;
    padding: 36px 0;
}

footer p {
    opacity: 0.7;
    font-size: 14px;
}

.footer-company {
    margin-top: 8px;
}

/* 文档手册页 */
.docs-page {
    background: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.docs-page header,
.docs-page .docs-main,
.docs-page footer {
    position: relative;
    z-index: 1;
}

.docs-main {
    flex: 1;
    padding: 60px 0 80px;
}

.docs-hub {
    max-width: 900px;
    margin: 0 auto;
}

.docs-hub-header {
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: 48px 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 32px;
}

.docs-hub-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-light), #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.docs-hub-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--primary);
}

.docs-hub-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.docs-hub-header p {
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 28px;
}

.docs-hub-btn {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.docs-hub-btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.docs-hub-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.docs-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.docs-link-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.25s ease;
    color: var(--dark);
}

.docs-link-card:hover {
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.docs-link-card > svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.docs-link-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.docs-link-card p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

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

    .docs-hub-header {
        padding: 32px 20px;
    }
}

/* 移动端适配 */
@media (max-width: 992px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .install-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 2px;
        font-size: 13px;
    }

    .nav-links a {
        padding: 6px 8px;
    }

    .hero {
        padding: 70px 0 60px;
    }

    .hero h1 {
        font-size: 28px;
    }

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

    .section {
        padding: 60px 0;
    }

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

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

    .qrcode-item img {
        width: 140px;
        height: 140px;
    }
}
