/* ===========================
   主样式文件
   =========================== */

/* 导入其他CSS文件 */
@import url("themes.css");
@import url("animations.css");

/* 全局重置与基础样式 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "PingFang SC",
        "Hiragino Sans GB",
        "Microsoft YaHei",
        sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

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

/* ===========================
   Glass Morphism 通用类
   =========================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* ===========================
   导航栏
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--nav-shadow);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

/* 导航链接 */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

/* 导航右侧 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===========================
   Hero区域
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(26, 115, 232, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(66, 165, 245, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

/* 按钮 */
.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.4);
}

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

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

/* 粒子画布 */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

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

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

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   实时数据展示
   =========================== */
.stock-data {
    background: var(--bg-secondary);
}

.stock-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stock-tab {
    padding: 12px 24px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.stock-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.stock-tab:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ===========================
   研究报告
   =========================== */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* ===========================
   功能介绍
   =========================== */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

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

.footer-brand p {
    margin-top: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===========================
   页面标题区域
   =========================== */
.page-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.page-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   响应式设计
   =========================== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .hamburger {
        display: flex;
    }

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

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

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

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

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .page-hero h1 {
        font-size: 36px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ===========================
   工具类
   =========================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ===========================
   产品页面专用样式
   =========================== */

/* 产品卡片容器 */
.product-card {
    padding: 60px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.product-card.padding-50 {
    padding: 50px;
}

/* Flex布局容器 */
.flex-container {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.flex-container.gap-40 {
    gap: 40px;
}

.flex-container.align-start {
    align-items: flex-start;
}

.flex-content {
    flex: 1;
    min-width: 300px;
}

/* 功能卡片网格 */
.features-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* 功能卡片 */
.feature-item {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.feature-icon-inline {
    font-size: 32px;
    margin-bottom: 10px;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* CTA区域样式 */
.cta-card {
    padding: 60px 40px;
    border-radius: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.cta-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.cta-button {
    font-size: 18px;
    padding: 16px 40px;
}

/* Footer中的Logo样式 */
.footer-logo {
    margin-bottom: 15px;
}

/* Footer链接样式 */
.footer-link-tertiary {
    color: var(--text-secondary);
}

/* ===========================
   解决方案页面专用样式
   =========================== */

/* 大图标 */
.x-large-icon {
    font-size: 80px;
}

/* 解决方案标题 */
.solution-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* 解决方案描述 */
.solution-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ===========================
   关于我们页面专用样式
   =========================== */

/* 内容容器 */
.content-container {
    max-width: 900px;
    margin: 0 auto;
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 统计卡片 */
.stat-card {
    padding: 30px;
    text-align: center;
    border-radius: 16px;
}

/* 统计数字 */
.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 统计标签 */
.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
}

/* 团队网格 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* 联系信息网格 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* 联系卡片 */
.contact-card {
    padding: 30px;
    border-radius: 16px;
}

/* 联系图标 */
.contact-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* 联系标题 */
.contact-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* 联系信息 */
.contact-info {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 关于页面描述 */
.about-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ===========================
   技术支持页面专用样式
   =========================== */

/* 支持选项网格 */
.support-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* 支持选项卡片 */
.support-option-card {
    padding: 40px 30px;
    text-align: center;
    border-radius: 16px;
    cursor: pointer;
}

/* 支持选项图标 */
.support-option-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

/* 支持选项标题 */
.support-option-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* 支持选项描述 */
.support-option-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ容器 */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* 小按钮 */
.btn-small {
    padding: 10px 24px;
    font-size: 14px;
}

/* 联系支持网格 */
.contact-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* 联系支持卡片 */
.contact-support-card {
    padding: 40px 30px;
    border-radius: 16px;
}

/* 联系支持图标 */
.contact-support-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

/* 联系支持标题 */
.contact-support-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* 联系支持描述 */
.contact-support-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 悬停上浮效果 */
.hover-lift:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* 内联图标 */
.inline-icon {
    display: inline-block;
    margin-right: 8px;
}

/* 文本颜色辅助类 */
.text-secondary {
    color: var(--text-secondary);
}

/* 边距工具类 - 下边距 */
.mb-30 {
    margin-bottom: 30px;
}

/* ===========================
   产品页面补充样式
   =========================== */

/* AI产品卡片基础样式 */
.ai-product-card {
    padding: 60px;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
}

.ai-product-card.mb-40 {
    margin-bottom: 40px;
}

/* AI产品卡片弹性容器 */
.ai-product-flex {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

/* AI产品Logo容器 */
.ai-product-logo {
    flex: 0 0 auto;
}

/* AI产品Logo图片 */
.ai-product-img {
    width: 380px;
    height: 380px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(26, 115, 232, 0.4);
}

/* AI产品内容区域 */
.ai-product-content {
    flex: 1;
    min-width: 300px;
}

/* AI产品标题 */
.ai-product-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* AI产品描述 */
.ai-product-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* AI产品功能网格 */
.ai-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

/* AI产品功能项 */
.ai-feature-item {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

/* AI产品功能标题 */
.ai-feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* AI产品功能描述 */
.ai-feature-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 产品标签 */
.product-tag {
    padding: 8px 16px;
    background: rgba(25, 118, 210, 0.1);
    color: #1976d2;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.product-tag.small {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}

.product-tag.primary {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
}

/* 产品特性卡片 */
.product-feature-card {
    padding: 40px;
    border-radius: 16px;
}

.product-feature-card.mb-30 {
    margin-bottom: 30px;
}

/* 产品特性弹性容器 */
.product-feature-flex {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

/* 产品特性大图标 */
.product-feature-icon-large {
    font-size: 80px;
}

/* 产品特性内容 */
.product-feature-content {
    flex: 1;
    min-width: 250px;
}

/* 产品特性标题 */
.product-feature-title-large {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* 产品特性描述 */
.product-feature-desc {
    line-height: 1.8;
    margin-bottom: 25px;
}

.product-feature-desc.text-secondary {
    color: var(--text-secondary);
}

.product-feature-desc.mb-20 {
    margin-bottom: 20px;
}

/* 产品标签容器 */
.product-tags-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* CTA按钮大号 */
.btn-large {
    font-size: 18px;
    padding: 16px 40px;
}

/* 文本居中 */
.text-center {
    text-align: center;
}

/* 边距工具类 */
.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}
