/* 基础设置与 CSS 变量 */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #10b981;
    --secondary-hover: #059669;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
}

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

html {
    scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4 {
    margin-bottom: 0.5em;
    color: var(--text-main);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    font-weight: 800;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-sm {
    padding: 8px 24px;
    font-size: 0.95rem;
    border-radius: 50px; /* 椭圆形/药丸形 */
}

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

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

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

/* 顶部导航目录 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    margin: 0 18px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--primary-color);
}

/* 头部主视觉 (左右布局) */
.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 80px 0 100px 0;
    overflow: hidden;
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero-content {
    flex: 1;
    text-align: left;
}
.headline {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: #1e3a8a;
    line-height: 1.2;
}
.subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 40px;
    max-width: 90%;
}
.hero-cta {
    display: flex;
    gap: 15px;
}
.hero-outline-btn {
    background-color: white;
}

/* 动态图卡 (CSS动画) */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}
.floating-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    width: 100%;
    max-width: 380px;
    border: 1px solid rgba(255,255,255,0.5);
    /* 核心悬浮动画 */
    animation: float 5s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-20px) rotateX(2deg); }
    100% { transform: translateY(0px) rotateX(0deg); }
}
.card-header {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--bg-light);
    padding-bottom: 10px;
}
.node-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 15px;
    font-weight: 600;
    transition: background 0.3s;
}
.node-item:hover { background: #e5e7eb; }
.node-item .flag { font-size: 1.5rem; margin-right: 12px; }
.node-item .node-name { font-size: 0.95rem; }
.node-item .ping { 
    margin-left: auto; 
    color: var(--secondary-color); 
    font-size: 0.9rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
}
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 25px;
    font-weight: 500;
}
/* 脉冲点动画 */
.pulse {
    width: 12px;
    height: 12px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 核心优势卡片 */
.features {
    padding: 80px 0;
    background: var(--bg-white);
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

/* 流媒体与 AI */
.media-ai {
    padding: 80px 0;
    background-color: #111827;
    color: #f9fafb;
}
.media-ai .section-title {
    color: #fff;
}
.support-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
}
.support-content p { margin-bottom: 20px; }
.cta-center { margin-top: 40px; }

/* 价格对比 */
.pricing {
    padding: 80px 0;
    background: var(--bg-light);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}
.pricing-card {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    background: var(--bg-white);
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.pricing-card.popular {
    border: 2px solid var(--primary-color);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.1);
    transform: scale(1.05);
}
.badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
}
.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 20px 0;
    letter-spacing: -2px;
}
.price span {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: normal;
    letter-spacing: 0;
}
.pricing-card ul {
    list-style: none;
    margin-bottom: 35px;
}
.pricing-card ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-light);
    color: #4b5563;
}
.pricing-card .btn { width: 100%; }

/* 用户评价 */
.reviews {
    padding: 80px 0;
    background: var(--bg-white);
}
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.review-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
}
.review-text {
    font-style: italic;
    margin-bottom: 15px;
    color: #374151;
}
.review-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* FAQ */
.faq {
    padding: 80px 0;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 30px;
    background: var(--bg-white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.faq-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.faq-item p { color: var(--text-muted); }

/* 页脚 */
footer {
    background: #030712;
    color: #9ca3af;
    padding: 50px 0 30px 0;
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
}
.footer-links a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.footer-links a:hover { color: var(--primary-color); }
.copyright { font-size: 0.9rem; }

/* 其他单页基本样式 (文章与协议页沉浸式阅读优化) */
.page-content {
    padding: 60px 20px;
    min-height: 80vh;
    max-width: 860px; /* 限制阅读宽度，防止文字换行过长 */
    margin: 0 auto;
}
.page-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.35;
    color: #111827;
    text-align: center;
}
.page-content h2 { 
    font-size: 1.6rem;
    margin-top: 3rem; 
    margin-bottom: 1.2rem; 
    color: #1f2937;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 0.5rem;
}
.page-content h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #374151;
}
.page-content p { 
    font-size: 1.125rem;
    line-height: 1.85;
    margin-bottom: 1.5rem; 
    color: #4b5563;
    letter-spacing: 0.02em;
}
.page-content ul, .page-content ol { 
    font-size: 1.125rem;
    line-height: 1.85;
    margin-bottom: 1.5rem; 
    padding-left: 2rem;
    color: #4b5563;
}
.page-content li {
    margin-bottom: 0.5rem;
}
.page-content a:not(.btn) {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}
.page-content a:not(.btn):hover {
    color: var(--primary-hover);
}
.page-content strong {
    color: #111827;
    font-weight: 600;
}
.page-content .btn {
    margin-top: 20px;
    display: inline-flex;
    justify-content: center;
}

/* SEO 文章区 */
.blog {
    padding: 80px 0;
    background: var(--bg-white);
}
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.article-card {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}
.article-img {
    width: 100%;
    height: 180px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}
.article-content {
    padding: 25px;
}
.article-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.5;
}
.article-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}
.article-title a:hover {
    color: var(--primary-color);
}
.article-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-link {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
}
.article-link:hover {
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 900px) {
    .pricing-card.popular { transform: none; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { text-align: center; margin-bottom: 20px; }
    .headline { font-size: 2.5rem; }
    .hero-cta { justify-content: center; flex-wrap: wrap; }
    .floating-card { margin-top: 20px; }
    .section-title { font-size: 1.75rem; }
    .hero { padding: 40px 0 60px 0; }
}
