/* 基础重置 */
:root {
    --primary-color: #0066ff;
    --primary-hover: #0052cc;
    --bg-color: #f8f9fa;
    --text-main: #333;
    --text-muted: #666;
    --card-bg: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    padding-top: 70px; /* 为顶部导航留出空间 */
}

/* 顶部导航 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* 通用容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

h1, h2, h3, h4 {
    color: #111;
    line-height: 1.3;
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

/* 按钮通用 */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-large {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
}

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

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

/* 头部区 / Hero Section */
.hero {
    background: linear-gradient(135deg, #001f3f, #0066ff);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 3rem 0 6rem;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 2rem 0;
}

.hero-content {
    flex: 1;
    text-align: left;
    z-index: 2;
}

.hero-content h1 {
    color: white;
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-graphics {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* 动态图卡 / Floating Cards */
.floating-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    position: absolute;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    animation: float 6s ease-in-out infinite;
    width: 280px;
    transition: transform 0.3s ease;
}

.floating-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05) !important;
}

.floating-card .icon-small {
    font-size: 2.2rem;
}

.floating-card .info strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: #fff;
}

.floating-card .info span {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* 动态悬浮定位与动画 */
.card-1 {
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 40%;
    right: 0%;
    animation-delay: -2s;
}

.card-3 {
    bottom: 10%;
    left: 15%;
    animation-delay: -4s;
}

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

/* 响应式调整 */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        text-align: center;
    }
    .hero-graphics {
        width: 100%;
        height: auto;
        min-height: 350px;
    }
    .floating-card {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 15px auto;
        animation: none; /* 移动端保持整洁取消浮动 */
        transform: none;
    }
    .nav-links {
        display: none; /* 移动端简单隐藏导航链接 */
    }
}

/* 卡片网格系统 */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .features .card-grid, .reviews .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
}

/* 价格区 */
.pricing-card {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    position: relative;
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

@media (max-width: 767px) {
    .pricing-card.popular {
        transform: none;
    }
    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
}

.pricing-card.popular::before {
    content: '🔥 最受欢迎';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 1.5rem 0;
}

.price span {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: normal;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-card li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.pricing-card li:last-child {
    border-bottom: none;
}

/* 评价区 */
.review-card {
    font-style: italic;
    position: relative;
}

.review-card p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1.5rem;
}

.reviewer {
    font-weight: bold;
    color: var(--text-main);
    font-style: normal;
}

/* 博客/SEO文章区 */
.seo-articles {
    background-color: var(--bg-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.blog-img {
    height: 180px;
    background: linear-gradient(135deg, #001f3f, #0066ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 4rem;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.blog-content h3 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    align-self: flex-start;
}

.read-more:hover {
    text-decoration: underline;
}

/* FAQ区 */
.faq-item {
    background: var(--card-bg);
    padding: 1.8rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.faq-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.faq-item p {
    color: var(--text-muted);
}

/* 页脚 */
footer {
    background: #1a1a1a;
    color: #999;
    text-align: center;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* 通用附属页面样式 */
.page-header {
    background: #001f3f;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-top: -3rem;
    position: relative;
}

.page-content h2 {
    text-align: left;
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.page-content p {
    margin-bottom: 1rem;
    color: #555;
}

.page-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.page-content li {
    margin-bottom: 0.5rem;
}
