/* Style system for Cylink (次元链接) - Purple & White Anime Theme */

:root {
    --bg-dark: #0a0612;
    --bg-card: rgba(22, 12, 38, 0.7);
    --border-color: rgba(157, 78, 221, 0.2);
    --border-glow: rgba(157, 78, 221, 0.45);
    --primary-red: #9d4edd; /* primary purple */
    --primary-pink: #c77dff; /* accent purple */
    --primary-rose: #e0aaff; /* light purple / lavender */
    --text-white: #ffffff;
    --text-muted: #d5c8e2;
    --accent-glow: 0 0 20px rgba(157, 78, 221, 0.4);
    --font-family: 'Outfit', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

body {
    background: linear-gradient(135deg, rgba(16, 8, 30, 0.88) 0%, rgba(10, 6, 18, 0.95) 100%), url('../images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-white);
    font-family: var(--font-family);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Canvas Layer */
#sakura-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-pink);
}

/* Gradients & Text Styles */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 20%, var(--primary-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.glass-panel:hover {
    border-color: var(--primary-pink);
    box-shadow: 0 12px 40px 0 rgba(157, 78, 221, 0.3);
}

/* Navbar */
header.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 6, 18, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(157, 78, 221, 0.15);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-white);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

.register-btn {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-pink));
    color: var(--text-white);
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: var(--accent-glow);
    transition: all 0.3s ease;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(157, 78, 221, 0.65);
}

/* Main Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 120px 8% 80px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}

.hero-content {
    flex: 1.2;
    max-width: 650px;
}

h1.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(157, 78, 221, 0.15);
    border-color: var(--primary-pink);
}

/* Node Coverage Widget */
.hero-widget {
    flex: 0.8;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 450px;
}

.widget-title {
    font-size: 1.25rem;
    color: var(--primary-rose);
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.live-users {
    font-size: 0.85rem;
    color: #a2d2ff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #a2d2ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #a2d2ff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(162, 210, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(162, 210, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(162, 210, 255, 0); }
}

.nodes-coverage-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.node-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

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

.flag-emoji {
    font-size: 1.2rem;
}

.node-name {
    font-size: 0.95rem;
    font-weight: 500;
}

.node-tag {
    font-size: 0.75rem;
    background: rgba(157, 78, 221, 0.2);
    color: var(--primary-pink);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(157, 78, 221, 0.3);
}

.node-latency {
    font-size: 0.85rem;
    color: #50fa7b;
    font-family: monospace;
}

/* H2 Section: Review and Speedtest */
.reviews-speed-section {
    padding: 80px 8%;
}

.section-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    position: relative;
    max-height: 480px;
}

.reviews-slider-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: verticalScroll 30s linear infinite;
}

.reviews-slider-inner:hover {
    animation-play-state: paused;
}

@keyframes verticalScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.review-card {
    padding: 25px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-pink);
}

.user-name {
    font-weight: bold;
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.rating {
    color: #ffb703;
    font-size: 0.9rem;
}

.review-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Speed Tester Widget */
.speedtest-widget {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.speed-title {
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
    padding-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.speed-indicator {
    font-size: 0.8rem;
    background: rgba(80, 250, 123, 0.15);
    color: #50fa7b;
    padding: 2px 10px;
    border-radius: 20px;
}

.speedtest-nodes-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.speedtest-node-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.speedtest-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.speedtest-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.speedtest-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-pink), #50fa7b);
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.speedtest-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* H3 Section: Sliding Packages */
.pricing-section {
    padding: 80px 8%;
    text-align: center;
    position: relative;
}

.section-header {
    margin-bottom: 40px;
}

.section-tag {
    color: var(--primary-pink);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-main-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.carousel-container {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    text-align: left;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.pricing-card {
    min-width: 300px;
    flex: 1 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary-pink);
    box-shadow: 0 8px 32px 0 rgba(157, 78, 221, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-pink));
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 15px;
    border-radius: 20px;
    box-shadow: var(--accent-glow);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-rose);
    margin-bottom: 5px;
    display: flex;
    align-items: baseline;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: normal;
    margin-left: 5px;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    min-height: 40px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 35px;
    text-align: left;
}

.plan-features li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.plan-features li::before {
    content: "✦";
    color: var(--primary-pink);
    font-size: 0.9rem;
}

.buy-now-btn {
    margin-top: auto;
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.popular .buy-now-btn {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-pink));
    color: white;
    box-shadow: var(--accent-glow);
}

.popular .buy-now-btn:hover {
    box-shadow: 0 0 25px rgba(157, 78, 221, 0.7);
    transform: translateY(-2px);
}

.regular-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: white;
}

.regular-btn:hover {
    background: rgba(157, 78, 221, 0.15);
    border-color: var(--primary-pink);
    transform: translateY(-2px);
}

/* Slider Controls */
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.slider-arrow {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.slider-arrow:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: var(--accent-glow);
}

/* H4 Section: Articles with Tech Timeline */
.articles-section {
    padding: 80px 8%;
}

.articles-timeline-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding-left: 30px;
    border-left: 2px solid rgba(157, 78, 221, 0.25);
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -39px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 3px solid var(--primary-pink);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-pink);
    z-index: 2;
    transition: all 0.3s;
}

.timeline-item:hover::before {
    background: var(--primary-rose);
    box-shadow: 0 0 18px var(--primary-rose);
    transform: scale(1.2);
}

.timeline-content {
    flex: 1;
    padding: 25px;
}

.article-meta {
    font-size: 0.8rem;
    color: var(--primary-rose);
    margin-bottom: 8px;
    font-family: monospace;
    letter-spacing: 1px;
}

.article-title-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    margin-bottom: 12px;
    display: inline-block;
    transition: color 0.2s;
}

.article-title-link:hover {
    color: var(--primary-pink);
}

.article-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.read-more-link {
    font-size: 0.85rem;
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more-link:hover {
    color: white;
    text-decoration: underline;
}

/* H5 Section: FAQ Side-by-Side Horizontal Scroll */
.faq-section {
    padding: 80px 8%;
    text-align: center;
}

.faq-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    text-align: left;
}

.faq-carousel::-webkit-scrollbar {
    display: none;
}

.faq-card {
    min-width: 320px;
    flex: 1 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    padding: 30px;
}

.faq-q {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.faq-q span {
    color: var(--primary-pink);
    font-weight: 800;
}

.faq-a {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* H6 Section: Stream & AI Showcase */
.showcase-section {
    padding: 60px 8%;
    text-align: center;
}

.showcase-text {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.showcase-icons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.showcase-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.showcase-icon:hover {
    transform: translateY(-8px);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.showcase-icon:hover .icon-box {
    border-color: var(--primary-pink);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
    background: rgba(157, 78, 221, 0.1);
}

.icon-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer & PBN Weight Link */
footer {
    padding: 40px 8%;
    background: rgba(10, 6, 18, 0.92);
    border-top: 1px solid rgba(157, 78, 221, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-copy {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pbn-container {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: rgba(201, 188, 204, 0.5);
}

.pbn-link {
    color: rgba(199, 125, 255, 0.6); /* Purple integrated with lower opacity */
    text-decoration: none;
    transition: color 0.2s;
}

.pbn-link:hover {
    color: var(--primary-rose);
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .pricing-card, .faq-card {
        flex: 1 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    header.navbar {
        padding: 15px 5%;
    }
    .nav-links {
        display: none;
    }
    .hero-section {
        flex-direction: column;
        padding-top: 100px;
        text-align: center;
        gap: 30px;
    }
    h1.hero-title {
        font-size: 2.4rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-widget {
        max-width: 100%;
        width: 100%;
    }
    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pricing-card, .faq-card {
        flex: 1 0 100%;
    }
    .showcase-icons-container {
        gap: 20px;
    }
    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
