/* style.css */
:root {
    --primary-color: #0070f3;
    --primary-hover: #005bb5;
    --bg-light: #ffffff; /* 统一为纯白，消除区块间的色差 */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.bg-light {
    background-color: var(--bg-light);
}

/* Header */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    border-radius: 100px; /* 标志性的椭圆/胶囊形态 */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    padding: 0 12px 0 30px; /* 内部安全边距，右侧给按钮留位 */
}

.nav-container .btn {
    border-radius: 100px; /* 按钮样式圆滑呼应 */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

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

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 150px 20px 80px 20px; /* 增加顶部内边距，避开悬浮的椭圆导航 */
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dynamic-card {
    position: relative;
    width: 250px;
    height: 250px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--primary-color);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Grids */
.grid-3, .grid-2 {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr); /* 强制占满3列，消除 auto-fit 带来的右侧塌陷 */
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

/* Cards */
.card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.features .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.pricing-card {
    text-align: center;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

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

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 20px 0;
}

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

.pricing-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-card ul li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.pricing-card ul li::before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 8px;
    font-weight: bold;
}

/* Articles Section */
.article-card {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
}
.article-card:hover {
    text-decoration: underline;
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    margin-bottom: 10px;
}

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

/* Testimonials */
.testimonials .user {
    margin-top: 15px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0070f3 0%, #003a8c 100%); /* 添加疾风云主题色渐变，告别死板黑 */
    color: #ffffff;
    padding: 70px 0 30px 0;
    margin-top: 100px; /* 增加巨大的呼吸空间，不再黏着上面的卡片 */
    text-align: left;
}

.footer-grid {
    display: flex;
    justify-content: space-between; /* 完美向两端对齐，彻底消除右侧留白 */
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 0 1 360px; /* 控制左侧品牌区宽度 */
}

.footer-brand .footer-logo {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.footer-brand p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.footer-col {
    flex: 1;
    min-width: 140px;
}

.footer-col:last-child {
    text-align: right; /* 让最后一列靠右对齐，填补右侧边缘空隙 */
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.15rem;
    letter-spacing: 1px;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s;
}

.footer-col ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.pbn-links a {
    color: #a7f3d0 !important; /* 给合作伙伴链接换一个清新的翠绿色，增加层次感 */
    font-weight: 600;
}

.pbn-links a:hover {
    color: #ffffff !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile behavior */
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 40px 20px;
    }
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
