:root {
    --primary: #1e6ee3;
    --primary-dark: #1557b5;
    --secondary: #00a896;
    --accent: #ff6b6b;
    --dark: #2d3748;
    --darker: #1a202c;
    --light: #f7fafc;
    --gray: #718096;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f8fafc;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 - 使用全局组件样式 */
/* 已移除本地header样式规则，避免与全局header组件冲突 */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a.active:after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: none;
    font-size: 15px;
}

.btn-outline {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(30, 110, 227, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 110, 227, 0.4);
}

.btn-outline:hover {
    background: rgba(30, 110, 227, 0.05);
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #1e6ee3 0%, #1557b5 100%);
    color: white;
    padding: 170px 0 100px 0; /* 增加顶部padding，为固定页头留出空间 */
    position: relative;
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
}

/* 调整header-placeholder元素和hero区域的关系 */
#header-placeholder {
    height: 70px; /* 设置与页头相同的高度，确保布局一致性 */
    overflow: hidden;
}

/* 确保页头在移动端正常显示 */
@media (max-width: 900px) {
    .hero {
        margin-top: 0;
        padding-top: 120px; /* 为移动端固定页头留出足够空间 */
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 480px) {
    .hero {
        margin-top: 0;
        padding-top: 110px; /* 为小屏移动端固定页头留出足够空间 */
        position: relative;
        z-index: 1;
    }
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L1000,0 L1000,1000 L0,1000 Z"><animate attributeName="d" dur="20s" repeatCount="indefinite" values="M0,0 L1000,0 L1000,1000 L0,1000 Z; M0,0 L1000,0 L1000,800 L0,1000 Z; M0,0 L1000,0 L1000,1000 L0,800 Z; M0,0 L1000,0 L1000,1000 L0,1000 Z"/></path></svg>');
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-outline {
    border: 1.5px solid white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: var(--primary);
    font-weight: 600;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.btn-transparent {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-transparent:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 内容区域样式 */
.section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.4rem;
    color: var(--dark);
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* 左右图文布局 */
.feature-block {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    gap: 60px;
}

.feature-block:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 1.9rem;
    margin-bottom: 22px;
    color: var(--dark);
    line-height: 1.3;
}

.feature-text p {
    margin-bottom: 22px;
    color: var(--gray);
    font-size: 1.05rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
}

.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-list li i {
    color: var(--secondary);
    margin-top: 4px;
    flex-shrink: 0;
}

.feature-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s, box-shadow 0.5s;
}

.feature-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.feature-image:hover img {
    transform: scale(1.05);
}

/* 技术架构区域 */
.tech-architecture {
    background-color: white;
    border-radius: 16px;
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-top: -10px; /* 向上移动50px (40px - 50px = -10px) */
}

.architecture-title {
    text-align: center;
    margin-bottom: 50px;
}

.architecture-title h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.architecture-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tech-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: var(--light);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.tech-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
}

.tech-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.tech-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* 数据可视化区域 */
.data-visualization {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 60px 40px;
}

.data-visualization {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--light);
}

.data-visualization::-webkit-scrollbar {
    height: 6px;
}

.data-visualization::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 3px;
}

.data-visualization::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.data-visualization::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.visualization-table {
    min-width: 640px; /* 确保表格有足够的最小宽度 */
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.visualization-table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
}

.visualization-table td {
    padding: 16px 15px;
    border-bottom: 1px solid var(--border);
}

.visualization-table tr:last-child td {
    border-bottom: none;
}

.visualization-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.visualization-table tr:hover {
    background-color: #e9f7fe;
}

.rating {
    color: #ffc107;
    font-size: 18px;
}

/* CTA区域 */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
    padding: 80px 0;
    border-radius: 16px;
    margin-top: 40px;
}

.cta h2 {
    font-size: 2.3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* 页脚样式 */
footer {
    background-color: #1a2332;
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.footer-column p {
    color: #a0a8b7;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0a8b7;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2a3446;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a8b7;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2a3446;
    color: #a0a8b7;
    font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .tech-grid, .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-block {
        flex-direction: column;
        gap: 40px;
    }
    
    .feature-block:nth-child(even) {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.7rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .nav-links {
        margin: 20px 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .auth-buttons {
        margin-top: 10px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .tech-grid, .footer-content {
        grid-template-columns: 1fr;
    }
    
    .data-visualization {
        padding: 40px 20px;
        margin: 0 -20px; /* 扩展到屏幕边缘，增强滚动体验 */
    }
    
    .visualization-table th,
    .visualization-table td {
        padding: 12px 10px; /* 调整小屏幕上的内边距 */
        font-size: 14px; /* 调整字体大小 */
    }
    
    .rating {
        font-size: 16px; /* 调整评分星星大小 */
    }
    
    .tech-architecture {
        padding: 40px 20px;
    }
}