/* ==========================================================================
   全局重置与变量
   ========================================================================== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Kaiti SC', 'Kaiti TC', 'STKaiti', 'KaiTi', '楷体', serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

/* ==========================================================================
   极简导航栏
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: padding var(--transition-speed);
}

.navbar .logo {
    position: absolute;
    left: 50px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
}

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

.nav-links li a {
    font-size: 18px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* ==========================================================================
   全屏动态背景 (图1替代方案或叠加)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--white);
    padding: 100px 20px 80px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 50px;
}

.hero-left {
    flex: 1;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

.hero-tags {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags .tag {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.85rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
}

.hero-left h1 {
    font-size: 3.2rem;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: bold;
    color: #f8fafc;
}

.hero-desc {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    background-color: var(--accent-color);
    border: none;
    border-radius: 30px;
    color: var(--white);
    transition: all var(--transition-speed);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

.btn-orange:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: white;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
}

.btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #e2e8f0;
    transition: all var(--transition-speed);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: #64748b;
}

.hero-stats strong {
    color: #e8b010;
}

/* 右侧客户端模拟 */
.hero-right {
    flex: 1;
    max-width: 450px;
    animation: fadeInUp 1.2s ease-out;
}

.mockup-window {
    background: #111827;
    border-radius: 15px;
    border: 1px solid #1f2937;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mockup-header {
    background: #1f2937;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #374151;
}

.mac-dots {
    display: flex;
    gap: 8px;
}

.mac-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.mac-dots span:nth-child(1) { background: #ff5f56; }
.mac-dots span:nth-child(2) { background: #ffbd2e; }
.mac-dots span:nth-child(3) { background: #27c93f; }

.mockup-title {
    flex: 1;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    padding-right: 44px; /* 平衡圆点宽度 */
}

.mockup-body {
    padding: 25px;
}

.mockup-status {
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.connected {
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 5px;
}

.mockup-globe {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border: 2px solid #10b981;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.btn-connected {
    width: 100%;
    padding: 12px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-connected:hover {
    background: #059669;
}

.mockup-nodes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.m-node {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.m-node-name {
    color: #d1d5db;
    font-size: 0.9rem;
}
.m-badge {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    color: #9ca3af;
}

.m-node-ping {
    font-size: 0.85rem;
}

.mockup-speeds {
    display: flex;
    gap: 15px;
}

.speed-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.speed-label {
    display: block;
    color: #9ca3af;
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.speed-value {
    font-size: 1.3rem;
    font-weight: bold;
}

/* ==========================================================================
   区块通用样式
   ========================================================================== */
section {
    padding: 100px 50px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 20px auto 0;
}

/* ==========================================================================
   网格悬停效果 (核心优势)
   ========================================================================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.grid-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.grid-item p {
    color: #666;
}

/* ==========================================================================
   套餐价格 (图2)
   ========================================================================== */
.pricing {
    background-color: var(--white);
}

.pricing-image {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s;
}
.pricing-image img:hover {
    transform: scale(1.02);
}

.pricing-action {
    text-align: center;
    margin-top: 40px;
}

.pricing-action .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.pricing-action .btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   节点列表表格样式
   ========================================================================== */
.node-table-container {
    max-width: 1000px;
    margin: 40px auto 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.node-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.node-table th, .node-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.node-table tbody tr:hover {
    background-color: #fcfcfc;
}

.node-name {
    font-weight: bold;
    color: var(--secondary-color);
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    background-color: #e8f5e9;
    color: #4caf50;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-badge::before {
    content: '●';
    margin-right: 5px;
}

.ping-time {
    color: #4caf50;
    font-weight: bold;
}

/* ==========================================================================
   文章教程列表
   ========================================================================== */
.article-list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
}

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

.article-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

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

.article-content h3 a:hover {
    color: var(--accent-color);
}

.article-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.article-excerpt {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    align-self: flex-start;
    color: var(--accent-color);
    font-weight: bold;
}

/* ==========================================================================
   常见问题 FAQ
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px 30px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: #555;
}

.faq-item.active .faq-answer {
    padding: 0 30px 20px;
    max-height: 300px;
}

/* ==========================================================================
   页脚
   ========================================================================== */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
}

footer p {
    margin-bottom: 10px;
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: #bbb;
    margin: 0 10px;
    font-size: 0.9rem;
}

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

/* ==========================================================================
   动画与响应式
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .nav-links { display: none; /* 移动端这里可扩展汉堡菜单 */ }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    section { padding: 60px 20px; }
}

/* 文章页面独立样式 */
.article-page {
    padding-top: 120px;
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.article-body {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    font-size: 1.15rem;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 40px 0 20px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
}

.article-body p {
    margin-bottom: 20px;
}
