/* 基础重置与极客暗黑风变量 (Dark Tech Theme) */
:root {
    --primary-color: #10b981; /* 翡翠绿 */
    --primary-hover: #059669;
    --bg-color: #0b1120; /* 极暗蓝黑 */
    --bg-light: #172033; /* 稍亮的区块底色 */
    --text-main: #f8fafc; /* 亮色正文 */
    --text-muted: #94a3b8; /* 灰色次文本 */
    --border-color: #1e293b;
    --radius: 6px; /* 偏锋利的直角风格 */
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

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

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;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* 布局工具 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.text-center {
    text-align: center;
}

/* 按钮组件 */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.23);
}

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

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

.btn-large {
    padding: 16px 45px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 头部导航 */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

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

/* 主视觉区 */
.hero {
    padding: 80px 0 100px;
    background: radial-gradient(circle at top center, #1e293b 0%, var(--bg-color) 70%);
    overflow: hidden;
}

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

.headline {
    font-size: 3.2rem;
    line-height: 1.25;
    margin-bottom: 20px;
    font-weight: 800;
    background: -webkit-linear-gradient(45deg, #f8fafc, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-headline {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 极客终端视觉区 */
.terminal-mock {
    width: 100%;
    max-width: 480px;
    background-color: #0b1120;
    border: 1px solid #1e293b;
    border-radius: 8px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.8), 0 0 40px rgba(16, 185, 129, 0.15);
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    text-align: left;
    position: relative;
    z-index: 2;
}

.terminal-header {
    background-color: #172033;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #1e293b;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}
.dot.close { background-color: #ef4444; }
.dot.min { background-color: #f59e0b; }
.dot.max { background-color: #10b981; }

.term-title {
    color: #64748b;
    font-size: 0.85rem;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-20px);
}

.terminal-body {
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.terminal-body .prompt {
    color: #10b981;
    margin-right: 8px;
    font-weight: bold;
}

.terminal-body .output { color: #94a3b8; }
.terminal-body .success { color: #10b981; font-weight: bold; margin-top: 10px; }
.terminal-body .highlight { color: #fbbf24; margin-top: 5px; }

.blink { animation: blink 1s step-end infinite; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 打字机动画特效 */
.line {
    opacity: 0;
    animation: showLine 0.1s forwards;
}
.line-1 { animation-delay: 0.5s; }
.line-2 { animation-delay: 1.2s; }
.line-3 { animation-delay: 1.8s; }
.line-4 { animation-delay: 2.6s; }
.line-5 { animation-delay: 3.2s; }
.line-6 { animation-delay: 3.5s; }
.line-7 { animation-delay: 4.2s; }

@keyframes showLine {
    to { opacity: 1; }
}
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

/* 网格布局 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* 卡片样式 */
.card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(16, 185, 129, 0.4);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}
.card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.card p { color: var(--text-muted); }

/* 价格表 */
.pricing-card {
    position: relative;
    text-align: center;
    padding: 40px 20px;
}
.pricing-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
    transform: scale(1.05);
    z-index: 2;
}
.pricing-card.featured:hover { transform: scale(1.05) translateY(-5px); }

.badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.price {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 20px 0;
    color: var(--primary-color);
}
.price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: normal;
}

.pricing-features {
    text-align: left;
    margin-bottom: 30px;
}
.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.pricing-features li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* 自然 SEO 文章区块 */
.seo-article {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: radial-gradient(circle at center, #111827 0%, var(--bg-color) 100%);
}
.seo-article p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.9;
}
@media (min-width: 768px) {
    .seo-article .article-body {
        column-count: 2;
        column-gap: 50px;
    }
}

/* 博客卡片 */
.blog-card {
    display: block;
    overflow: hidden;
    text-align: left;
    text-decoration: none;
}
.blog-card:hover h3 { color: var(--primary-color); }
.blog-content { padding: 0; }
.blog-content h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--text-main);
    line-height: 1.4;
    transition: color 0.3s ease;
}
.blog-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.read-more { color: var(--primary-color); font-weight: 600; font-size: 0.9rem;}

/* FAQ与评价 */
.testimonial-card .quote {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 20px;
}
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    margin-bottom: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}
.faq-item h3 { font-size: 1.1rem; margin-bottom: 10px; }
.faq-item p { color: var(--text-muted); }

/* 页脚 */
.footer {
    background-color: #020617;
    color: var(--text-muted);
    padding: 50px 0 40px;
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.footer-links a:hover { color: var(--primary-color); }
.copyright { font-size: 0.9rem; }

/* 移动端响应式 */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .pricing-card.featured { transform: scale(1); }
    .pricing-card.featured:hover { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .headline { font-size: 2.2rem; }
    .hero-visual { height: 320px; }
    .fc-1 { top: 10%; left: 0; }
    .fc-2 { bottom: 10%; right: 0; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .pricing-card.featured { padding: 40px 20px; }
    .article-body { column-count: 1; }
}
