/* 探数融合分析平台样式 */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #22c55e;
    --accent-color: #f59e0b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-en {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: var(--shadow-hover);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* 移动端导航 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

/* 英雄区域 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #3730a3 100%);
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

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

.hero-content {
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 22px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 16px;
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* 可视化图形 */
.hero-visual {
    position: relative;
}

.visual-graph {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.node i {
    font-size: 24px;
    color: #fff;
}

.node-1 { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.node-2 { top: 25%; right: 0; animation-delay: 0.3s; }
.node-3 { bottom: 25%; right: 0; animation-delay: 0.6s; }
.node-4 { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.9s; }
.node-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
}

.lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: #fff;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

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

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

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

.section-header h2 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* 核心能力 */
.capabilities-section {
    background: var(--bg-light);
}

.capabilities-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.capability-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    min-width: 180px;
}

.capability-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.capability-icon i {
    font-size: 28px;
    color: #fff;
}

.capability-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.capability-item p {
    color: var(--text-light);
    font-size: 14px;
}

.flow-arrow {
    color: var(--primary-color);
    font-size: 24px;
}

/* 产品模块 */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.module-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.module-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.module-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.module-icon i {
    font-size: 28px;
    color: #fff;
}

.module-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.module-card > p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.module-features {
    list-style: none;
    margin-bottom: 20px;
}

.module-features li {
    padding: 6px 0;
    color: var(--text-light);
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.module-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.module-link {
    font-weight: 500;
    font-size: 14px;
}

.module-link:hover {
    color: var(--primary-dark);
}

/* 开源版与商业版对比 */
.compare-section {
    background: var(--bg-light);
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.compare-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
}

.compare-card.enterprise {
    border: 2px solid var(--primary-color);
}

.compare-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.compare-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.compare-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.compare-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.compare-features {
    list-style: none;
    margin-bottom: 30px;
}

.compare-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.compare-features li:last-child {
    border-bottom: none;
}

.compare-features i {
    font-size: 16px;
}

.compare-features .fa-check {
    color: var(--secondary-color);
}

.compare-features .fa-times {
    color: var(--text-muted);
}

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

.compare-card .btn {
    width: 100%;
}

.compare-card.opensource .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.compare-card.opensource .btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 应用场景 */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.scenario-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: var(--transition);
}

.scenario-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.scenario-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.scenario-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.scenario-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* 页脚 */
.footer {
    background: var(--bg-dark);
    color: #fff;
    padding: 60px 0 30px;
}

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

.footer-brand h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-brand p {
    opacity: 0.7;
    margin-bottom: 5px;
    font-size: 14px;
}

.footer-domain {
    font-size: 14px;
    opacity: 0.5;
}

.footer-links h4,
.footer-company h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-company p {
    opacity: 0.7;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-company a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-company a:hover {
    color: #fff;
}

.footer-sites {
    margin-top: 15px;
}

.footer-sites a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.5;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
        display: none;
    }

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

    .nav-menu li {
        padding: 10px 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

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

    .hero-btns {
        flex-direction: column;
    }

    .capabilities-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .modules-grid,
    .compare-grid,
    .scenarios-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-header h2 {
        font-size: 28px;
    }
}
