/* ===== 性能优化样式 ===== */

/* 字体加载优化 */
body {
    font-display: swap; /* 提升字体加载性能 */
}

/* 字体加载完成后的优化 */
.fonts-loaded body {
    font-family: var(--font-family);
}

/* 图片加载优化 */
img {
    content-visibility: auto; /* 优化渲染性能 */
    contain-intrinsic-size: 300px; /* 避免布局偏移 */
}

/* 动画性能优化 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* GPU 加速优化 */
.floating-card,
.demo-img,
.product-card {
    transform: translateZ(0); /* 启用硬件加速 */
    will-change: transform; /* 提示浏览器优化 */
}

/* 滚动优化 */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

/* ===== 原有样式开始 ===== */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 舒适的蓝色系 */
    --primary-color: #4A90E2;
    --primary-dark: #357ABD;
    --primary-light: #E8F2FF;
    
    /* 辅助色 */
    --secondary-color: #6B73FF;
    --accent-color: #50E3C2;
    --warning-color: #F5A623;
    
    /* 中性色调 */
    --text-primary: #2C3E50;
    --text-secondary: #5A6C7D;
    --text-muted: #8492A6;
    --border-color: #E1E8ED;
    --background-light: #F8FAFC;
    --white: #FFFFFF;
    
    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #4A90E2 0%, #6B73FF 100%);
    --gradient-accent: linear-gradient(135deg, #50E3C2 0%, #4A90E2 100%);
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.16);
    
    /* 字体 */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    
    /* 动画 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-brand i {
    color: var(--primary-color);
    font-size: 24px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-link:hover::after {
    width: 100%;
}

/* 英雄区域 */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%234A90E2" stop-opacity="0.05"/><stop offset="100%" stop-color="%234A90E2" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="120" fill="url(%23a)"/><circle cx="400" cy="700" r="80" fill="url(%23a)"/></svg>');
    pointer-events: none;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* 浮动卡片动画 */
.hero-visual {
    position: relative;
    height: 400px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: float 6s ease-in-out infinite;
    transition: var(--transition);
}

.floating-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.floating-card i {
    font-size: 24px;
    color: var(--primary-color);
}

.floating-card span {
    font-weight: 600;
    color: var(--text-primary);
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 20%;
    right: 20%;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.card-4 {
    bottom: 20%;
    right: 10%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 通用区域样式 */
section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

/* 产品概述 */
.overview {
    background: var(--white);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.overview-item {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.overview-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.overview-icon i {
    font-size: 28px;
    color: white;
}

.overview-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.overview-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 产品矩阵 */
.products {
    background: var(--background-light);
}

.product-section {
    margin-bottom: 80px;
}

.product-section:last-of-type {
    margin-bottom: 60px;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 60px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.product-content.reverse {
    direction: ltr;
}

.product-content.reverse .product-info {
    order: 2;
}

.product-content.reverse .product-demo {
    order: 1;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.product-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-icon i {
    font-size: 28px;
    color: white;
}

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

.product-tagline {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature i {
    color: var(--accent-color);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.feature span {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

.product-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 450px;
}

.demo-images {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    object-fit: contain;
}

.demo-img-single {
    width: 100%;
    height: auto;
}

.demo-img-main {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
}

.demo-img-overlay {
    position: absolute;
    z-index: 2;
    width: 90%;
    height: auto;
    bottom: 15px;
    right: -8px;
    opacity: 0.95;
    transform: rotate(2deg);
}

.demo-images:hover .demo-img-main {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.demo-images:hover .demo-img-overlay {
    transform: rotate(3deg) translateY(8px) scale(1.03);
    opacity: 1;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

/* 移除旧的产品卡片样式 */
.products-grid {
    display: none;
}

.product-card {
    display: none;
}

/* 即将上线 */
.coming-soon {
    background: var(--gradient-primary);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    color: white;
}

.coming-soon h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.coming-soon-items {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.coming-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.coming-item i {
    font-size: 18px;
}

/* 文献数据库 */
.database {
    background: white;
}

.database-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

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

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

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.disciplines h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
}

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

.discipline-category h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.discipline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* 合作优势 */
.advantages {
    background: var(--background-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.advantage-category h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.advantage-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.advantage-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 4px;
}

.advantage-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.advantage-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 联系我们 */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--background-light);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-method:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}

.contact-method i {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 4px;
}

.contact-method h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

/* 联系表单 */
.contact-form {
    background: var(--background-light);
    padding: 40px;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-family);
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* 页脚 */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 16px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

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

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .product-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
    }
    
    .product-content.reverse .product-info,
    .product-content.reverse .product-demo {
        order: unset;
    }
    
    .product-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .product-title h3 {
        font-size: 24px;
    }
    
    .product-demo {
        height: 350px;
    }
    
    .demo-images {
        height: 350px;
    }
    
    .demo-img-main {
        width: 100%;
    }
    
    .demo-img-overlay {
        width: 90%;
        bottom: 15px;
        right: -8px;
        transform: rotate(2deg);
    }
    
    .demo-img-single {
        width: 100%;
    }
    
    .database-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .discipline-categories {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .coming-soon-items {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .product-content {
        padding: 24px 16px;
    }
    
    .product-demo {
        height: 300px;
    }
    
    .product-icon {
        width: 56px;
        height: 56px;
    }
    
    .product-icon i {
        font-size: 24px;
    }
    
    .product-title h3 {
        font-size: 20px;
    }
    
    .product-tagline {
        font-size: 14px;
    }
    
    .feature span {
        font-size: 14px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .product-demo {
        height: 300px;
    }
    
    .demo-images {
        height: 300px;
    }
    
    .demo-img-main {
        width: 100%;
    }
    
    .demo-img-overlay {
        width: 90%;
        bottom: 10px;
        right: -5px;
        transform: rotate(1deg);
    }
    
    .demo-img-single {
        width: 100%;
    }
} 