/* 全局样式 */
:root {
    --primary-color: #6c5ce7; /* 亮紫色更适合深色背景 */
    --primary-dark: #a29bfe;
    --secondary-color: #1e1e2f;
    --text-main: #f0f0f5;
    --text-muted: #a0a0b5;
    --bg-light: #161625;
    --bg-white: #0f0f1a;
    --border-color: #2a2a40;
    --card-bg: rgba(30, 30, 47, 0.6);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 15px 40px rgba(108, 92, 231, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: radial-gradient(circle at 50% 0%, #1a1a3a 0%, #080812 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 95, 239, 0.3);
    color: white;
}

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

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

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

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

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

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

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

/* 英雄区域 */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 全局动态背景点缀 */
.global-bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 12s infinite ease-in-out alternate;
}

.circle-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -150px;
    background: linear-gradient(45deg, var(--primary-color), #00d2ff);
}

.circle-2 {
    width: 450px;
    height: 450px;
    bottom: -100px;
    right: -100px;
    background: linear-gradient(45deg, #ff007a, var(--primary-color));
    animation-delay: -4s;
    animation-duration: 18s;
}

.circle-3 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--primary-dark), transparent);
    animation: pulse 8s infinite alternate;
}

.circle-4 {
    width: 300px;
    height: 300px;
    top: 60%;
    left: -50px;
    background: linear-gradient(45deg, #00d2ff, var(--primary-color));
    animation-delay: -2s;
    animation-duration: 14s;
}

.circle-5 {
    width: 400px;
    height: 400px;
    bottom: 20%;
    right: 20%;
    background: radial-gradient(circle, #ff007a, transparent);
    animation: pulse 12s infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 100px) scale(1.1); }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

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

.bg-light {
    background-color: transparent;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 50px;
}

/* 网格系统 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* 核心优势卡片 */
.advantage-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.advantage-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.advantage-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

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

/* 节点状态 */
.status-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

.node-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.node-info .flag {
    font-size: 1.5rem;
}

.node-info .node-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.node-metrics {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ping {
    font-family: monospace;
    font-weight: 600;
}

.ms-low { color: #28a745; }
.ms-med { color: #ffc107; }
.ms-high { color: #dc3545; }

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.online {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

/* 套餐价格 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: stretch;
}

.pricing-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

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

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

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
}

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

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
}

.pricing-features li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 用户评价 */
.review-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.stars {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.review-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 20px;
}

.reviewer {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.faq-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.faq-question {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

/* 知识库 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.article-card {
    display: block;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.article-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.article-card h4 {
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.article-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: #080812;
    color: var(--text-muted);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* 动画类 */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}
