/* 全局样式 - 保证SEO友好，加载极速，无冗余代码 */
:root {
    --primary-color: #00A4FF;
    --secondary-color: #0081CC;
    --text-color: #333333;
    --light-text: #666666;
    --bg-color: #F7F9FA;
    --white: #FFFFFF;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

/* 导航头部 */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
}

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

/* 英雄区 Hero Section */
.hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    padding: 80px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #0f172a;
}

.hero-text h2 strong {
    color: var(--primary-color);
}

.hero-text .subtitle {
    font-size: 24px;
    color: #334155;
    margin-bottom: 20px;
}

.hero-text .desc {
    font-size: 16px;
    color: #475569;
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none !important;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 164, 255, 0.3);
}

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

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-left: 15px;
}

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

.version-info {
    margin-top: 20px;
    font-size: 14px;
    color: #64748b;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 特性区 Features */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #1e293b;
}

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

.feature-card {
    padding: 30px;
    background: #f8fafc;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.feature-card .icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0f172a;
}

.feature-card p {
    color: #64748b;
    font-size: 15px;
}

/* 资讯区 News */
.news-section {
    padding: 80px 0;
}

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

.news-item {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.news-item h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.news-item p {
    color: var(--light-text);
    margin-bottom: 15px;
    font-size: 15px;
}

.news-item .date {
    font-size: 13px;
    color: #94a3b8;
}

/* 内页通用样式 */
.page-main {
    padding: 60px 20px;
    background-color: var(--white);
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.page-content h2, .news-list-page h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

.page-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #0f172a;
}

.page-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.news-post {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.news-post h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.post-meta {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.news-post p {
    margin-bottom: 15px;
}

/* 页脚 Footer */
.main-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-seo-links, .footer-about {
    flex: 1;
    min-width: 300px;
}

.footer-seo-links h4, .footer-about h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}

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

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

.footer-seo-links a {
    color: #94a3b8;
}

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

.footer-about p {
    line-height: 1.8;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #334155;
    padding-top: 20px;
    font-size: 14px;
}

.footer-bottom a {
    color: #94a3b8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-image {
        text-align: center;
        margin-top: 30px;
    }
    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    .footer-content {
        flex-direction: column;
    }
}
