/* 通用样式 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

.hero-gradient {
    background: linear-gradient(135deg, #0072f5 0%, #00c3ff 100%);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.text-gradient {
    background: linear-gradient(90deg, #0072f5, #00c3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #0072f5;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.active-nav::after {
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu.active {
        display: flex;
    }
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* 文章卡片样式 */
.article-card {
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 标签样式 */
.tag {
    transition: all 0.2s ease;
}

.tag:hover, .tag.active {
    background-color: #0072f5;
    color: white;
}

/* 搜索框样式 */
.search-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 10;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-results.active {
    display: block;
}

/* 特性卡片样式 */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 案例卡片样式 */
.case-card {
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: scale(1.02);
}

/* 数据流动画 */
.data-flow {
    position: relative;
    overflow: hidden;
}

.data-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #00c3ff;
    border-radius: 50%;
    opacity: 0;
}

/* 智能信息采集流程动画 */
.digitization-process {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    padding: 24px;
}

.process-step {
    position: absolute;
    width: 150px;
    text-align: center;
    transition: all 0.5s ease;
    z-index: 1;
}

.digitization-process .process-step h3 {
    color: #0f172a;
    font-weight: 700;
}

.digitization-process .process-step p {
    color: #1f2937;
    font-weight: 500;
}

.digitization-process .process-step,
.digitization-process .process-step * {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

.process-line {
    position: absolute;
    height: 2px;
    background-color: #0072f5;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 连接线样式 */
.connection-line {
    stroke: #0072f5;
    stroke-width: 2;
    stroke-dasharray: 5,5;
    animation: dash 1.5s linear infinite;
}

@keyframes dash {
    to { stroke-dashoffset: 20; }
}

/* 架构图节点样式 */
.architecture-node {
    transition: all 0.3s ease;
    cursor: pointer;
}

.architecture-node:hover {
    transform: scale(1.05);
}

.architecture-node rect {
    fill: white;
    stroke: #0072f5;
    stroke-width: 2;
    rx: 6;
    ry: 6;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.architecture-node text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    fill: #333;
}

/* 加载动画 */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 114, 245, 0.1);
    border-left-color: #0072f5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 结果卡片动画 */
.result-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 业务流程图动画 */
.business-flow {
    position: relative;
    overflow: hidden;
}

.flow-item {
    transition: all 0.5s ease;
}

.flow-connector {
    position: absolute;
    height: 3px;
    background-color: #0072f5;
    transform-origin: left center;
    transition: all 0.8s ease;
}

/* 演示区域样式 */
.demo-area {
    background-color: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 20px;
}

/* 流程图样式 */
.process-flow-diagram {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
}

/* 加载指示器 */
.loading-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 114, 245, 0.3);
    border-radius: 50%;
    border-top-color: #0072f5;
    animation: spin 1s ease-in-out infinite;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .digitization-process {
        height: 500px;
    }
    
    .process-step {
        position: relative;
        width: 100%;
        margin-bottom: 40px;
    }
}

/* 3D智能信息采集展示 */
#digitization-canvas {
    width: 100%;
    height: 400px;
    background-color: #f8fafc;
    border-radius: 10px;
    position: relative;
}
/* About 页面专用样式 */
.ai-architecture {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.ai-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #0072f5 0%, #00c3ff 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 0 60px rgba(0, 195, 255, 0.6);
    z-index: 3;
}

.ai-layer {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed #cbd5e0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.layer-1 {
    width: 350px;
    height: 350px;
}

.layer-2 {
    width: 480px;
    height: 480px;
}

.business-application {
    position: absolute;
    width: 160px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    color: #4a5568;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-geo {
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.app-ocr {
    bottom: 30px;
    left: 20%;
    transform: translateX(-50%);
}

.app-lims {
    bottom: 30px;
    right: 20%;
    transform: translateX(50%);
}

.tech-capability {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    background: linear-gradient(135deg, #0072f5 0%, #005bc4 100%);
}

.capability-nlp {
    top: 120px;
    left: 25%;
    transform: translateX(-50%);
}

.capability-cv {
    top: 120px;
    right: 25%;
    transform: translateX(50%);
}

.capability-ml {
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
}

/* 限定为非 SVG 的连接线样式 */
div.connection-line {
    position: absolute;
    background-color: #cbd5e0;
    transform-origin: 0 0;
    z-index: 1;
}

/* 响应式调整（About 页面） */
@media screen and (max-width: 768px) {
    .ai-architecture { height: 700px; }
    .ai-core { width: 180px; height: 180px; top: 35%; }
    .layer-1 { width: 280px; height: 280px; }
    .layer-2 { width: 400px; height: 400px; }
    .business-application { width: 140px; }
    .app-geo { top: 20px; }
    .app-ocr { bottom: 200px; left: 50%; transform: translateX(-120px); }
    .app-lims { bottom: 200px; right: 50%; transform: translateX(120px); }
    .tech-capability { width: 100px; height: 100px; }
    .capability-nlp { top: 280px; left: 30%; }
    .capability-cv { top: 280px; right: 30%; }
    .capability-ml { bottom: 320px; }
}

/* AI 技术卡片样式 */
.ai-tech-card {
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    overflow: hidden;
    position: relative;
}

.ai-tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0072f5, #00c3ff);
    transition: 0.5s;
}

.ai-tech-card:hover::before { left: 0; }
.ai-tech-card:hover { transform: translateY(-5px); }

/* 锚点导航通用样式 */
#anchor-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#anchor-nav.scrolled { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); }
.anchor-nav .container { max-width: 1200px; }

.anchor-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    margin: 0 0.25rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    background: #ffffff;
}

.anchor-nav-link .nav-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.anchor-nav-link:hover {
    color: #0f172a;
    border-color: #e5e7eb;
    background: #f8fafc;
}

.anchor-nav-link.active {
    color: #0b3aa4;
    border-color: #c7d2fe;
    background: #eef2ff;
}

/* 产品版本卡片样式 */
#versions .version-card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    border: 1px solid #e5e7eb;
}

#versions .version-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}

#versions .version-card.featured {
    border-color: #93c5fd;
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.15);
}

#versions .featured-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: #1e40af;
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 9999px;
    box-shadow: 0 4px 10px rgba(30, 64, 175, .25);
}

/* GEO 服务流程样式 */
.service-flow-container { position: relative; }
.service-step { cursor: pointer; transition: all 0.3s ease; }
.service-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.service-step.active { border-color: #0072f5; }