/* Xianluwan Premium Design System & Stylesheet */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Variables & Design Tokens */
:root {
    --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Theme Colors */
    --color-bg-dark: #07070b;
    --color-bg-card: rgba(20, 20, 30, 0.55);
    --color-border-glass: rgba(255, 255, 255, 0.08);
    --color-border-glow: rgba(168, 85, 247, 0.3);

    /* Brand Gradients */
    --grad-primary: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    --grad-accent: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    --grad-text: linear-gradient(135deg, #ffffff 30%, #e2e8f0 100%);
    --grad-neon-purple: #c084fc;
    --grad-neon-blue: #60a5fa;

    /* Semantic Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    
    /* Layout */
    --container-max: 1200px;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.6);
}

/* Mouse Trail Canvas Styling */
#mouse-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* Cosmic Background Layer */
.cosmic-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-bg-dark);
}

.cosmic-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/cosmic_dial_bg.jpg');
    background-size: 1920px auto;
    background-position: center 10%;
    background-repeat: no-repeat;
    opacity: 0.75; /* Extremely clear glowing lines! */
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 1200px) {
    .cosmic-bg-image {
        background-size: cover;
        background-position: center center;
    }
}

.cosmic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(7, 7, 11, 0) 0%, rgba(7, 7, 11, 0.85) 90%);
    pointer-events: none;
    z-index: 2;
}

/* Layout Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Header & Navigation */
.site-header {
    width: 100%;
    padding: 1.5rem 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 30px;
    height: 30px;
    display: inline-block;
}


.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-text-primary);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.nav-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border-glass);
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: var(--grad-primary);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* Hero Section */
.hero-section {
    padding-top: 10rem;
    padding-bottom: 6rem;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: var(--grad-neon-purple);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: float 4s ease-in-out infinite;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981;
    display: inline-block;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-weight: 400;
}

/* Hero Stats Glass Card */
.stats-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 650px;
    margin: 0 auto 3.5rem auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-item {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--color-border-glass);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item:nth-child(2) .stat-num {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--grad-primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border-glass);
    color: var(--color-text-primary);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-subtext {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Section Common Styling */
.section-title-wrap {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    color: var(--grad-neon-purple);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--color-text-secondary);
    margin-top: 0.75rem;
    font-size: 1.05rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-block {
    padding: 8rem 0;
    position: relative;
}

.section-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0) 0%, rgba(168, 85, 247, 0.15) 50%, rgba(168, 85, 247, 0) 100%);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-glass);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(168, 85, 247, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--grad-neon-purple);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pricing Grid (一排格式) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 一排四个 */
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-glass);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card.popular {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.15);
    transform: scale(1.03);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0% {
        border-color: rgba(168, 85, 247, 0.4);
        box-shadow: 0 15px 35px rgba(168, 85, 247, 0.15), 0 0 10px rgba(168, 85, 247, 0.15);
    }
    50% {
        border-color: rgba(168, 85, 247, 0.85);
        box-shadow: 0 15px 45px rgba(168, 85, 247, 0.45), 0 0 25px rgba(168, 85, 247, 0.6);
    }
    100% {
        border-color: rgba(168, 85, 247, 0.4);
        box-shadow: 0 15px 35px rgba(168, 85, 247, 0.15), 0 0 10px rgba(168, 85, 247, 0.15);
    }
}

.pricing-card.popular::before {
    content: '推荐套餐';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.05em;
    box-shadow: 0 5px 10px rgba(168, 85, 247, 0.3);
}

.pricing-header h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.pricing-desc {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    min-height: 2.5rem;
    margin-bottom: 1.5rem;
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
}

.pricing-price span {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: 400;
    margin-left: 0.25rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--grad-neon-blue);
    font-weight: bold;
}

.pricing-features li.unsupported {
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.pricing-features li.unsupported::before {
    content: '✕';
    color: var(--color-text-muted);
}

.pricing-btn {
    width: 100%;
    padding: 0.8rem;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--color-border-glass);
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.pricing-card.popular .pricing-btn {
    background: var(--grad-primary);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.3);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: rgba(168, 85, 247, 0.6);
}

.pricing-card.popular .pricing-btn:hover {
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.5);
}

.pricing-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-glass);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.article-img {
    height: 180px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--color-border-glass);
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.article-card:hover .article-img img {
    transform: scale(1.08);
}

.article-tag {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: var(--grad-neon-purple);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
    margin-right: 0.5rem;
}

.article-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
}

.article-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-content h3 a:hover {
    color: var(--grad-neon-purple);
}

.article-excerpt {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--grad-neon-blue);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-more:hover {
    gap: 0.5rem;
    color: var(--grad-neon-purple);
}

/* User Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-glass);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.review-card:hover {
    transform: translateY(-3px);
    border-color: rgba(168, 85, 247, 0.2);
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.2rem;
}

.review-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-style: italic;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.2);
}

.reviewer-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.reviewer-info p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* FAQ Accordion Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-glass);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    user-select: none;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    transition: var(--transition-smooth);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.4s ease;
}

/* Active FAQ State */
.faq-item.active {
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--grad-neon-purple);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* arbitrary large enough value */
    padding-bottom: 1.5rem;
}

/* Footer & PBN links section */
.site-footer {
    background: #040407;
    border-top: 1px solid var(--color-border-glass);
    padding: 4rem 0 2rem 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

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

/* Low-key Friend Links Section (页脚 PBN 权重输血区) */
.pbn-links-area {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.pbn-title {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.pbn-links {
    display: flex;
    gap: 1.25rem;
}

.pbn-links a {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
    opacity: 0.75;
}

.pbn-links a:hover {
    color: var(--color-text-secondary);
    opacity: 1;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Mobile Responsiveness Media Queries */
@media (max-width: 1100px) {
    /* Pricing "一排" layout handles gracefully on large tablets but shifts to horizontal scroll / 2x2 grid */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .stats-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 2rem auto;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .nav-links {
        display: none; /* simple responsive header for static layout */
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
