/* c:\Users\USER\Desktop\jiasula.makeup\style.css */
:root {
    --primary-color: #7DF9FF; /* Electric Cyan */
    --primary-hover: #5be0e6;
    --accent-color: #B533FF; /* Quantum Purple */
    --text-main: #e0e6ed;
    --text-muted: #8b9bb4;
    --bg-main: #020205; /* Deep Space Black */
    --bg-card: rgba(10, 15, 30, 0.4);
    --border-color: rgba(125, 249, 255, 0.2);
}

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

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

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Header */
header {
    background: rgba(2, 2, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logo .neon-text {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    margin-left: 5px;
}
.desktop-nav {
    display: flex;
    gap: 30px;
}
.desktop-nav a {
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}
.desktop-nav a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(125, 249, 255, 0.2) inset;
    cursor: pointer;
}
.btn:hover {
    background: rgba(125, 249, 255, 0.1);
    box-shadow: 0 0 20px rgba(125, 249, 255, 0.6), 0 0 15px rgba(125, 249, 255, 0.4) inset;
}
.btn-glow {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    color: #fff !important;
    border: none;
    box-shadow: 0 0 15px var(--accent-color);
}
.btn-glow:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 25px var(--primary-color);
}

/* Marquee Board */
.marquee-board {
    background: rgba(125, 249, 255, 0.05);
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.marquee-content {
    display: inline-block;
    animation: marquee-scroll 20s linear infinite;
    color: var(--primary-color);
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 2px;
}
.marquee-content span {
    margin-right: 50px;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* Hero */
.hero {
    padding: 80px 20px;
    position: relative;
}
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero-text {
    flex: 1;
}
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}
.gradient-text {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(125, 249, 255, 0.3);
}
.hero p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.quantum-core {
    width: 100%;
    max-width: 400px;
    filter: drop-shadow(0 0 20px rgba(125, 249, 255, 0.5));
}

/* Section Common */
section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    font-weight: 700;
    color: var(--text-main);
}
.glow-title {
    text-shadow: 0 0 15px var(--primary-color);
}

/* Cards (Advantages, Streaming, Reviews) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.card {
    background: var(--bg-card);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(125, 249, 255, 0.1), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}
.card:hover::before {
    left: 200%;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(181, 51, 255, 0.2), 0 0 15px rgba(125, 249, 255, 0.3) inset;
    border-color: var(--primary-color);
}
.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
}
.card p {
    color: var(--text-muted);
}

/* Electric border for Pricing */
.electric-border {
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}
.electric-border::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--accent-color), transparent);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 14px;
    animation: electricFlow 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}
.electric-border:hover::after {
    opacity: 1;
}
@keyframes electricFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 400% 400%; }
}

/* Streaming & AI */
.streaming-ai-section {
    background: rgba(10, 15, 30, 0.3);
    border-top: 1px solid rgba(125, 249, 255, 0.1);
    border-bottom: 1px solid rgba(125, 249, 255, 0.1);
}

/* Pricing - 3D setup */
.perspective-container {
    perspective: 1200px;
}
.pricing-card {
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}
.pricing-card .price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
    text-shadow: 0 0 10px rgba(125, 249, 255, 0.5);
    transform: translateZ(30px);
}
.pricing-card .price small {
    font-size: 16px;
    font-weight: normal;
    color: var(--text-muted);
}
.pricing-card ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    transform: translateZ(20px);
}
.pricing-card ul li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
    color: #fff;
}
.pricing-card ul li::before {
    content: "⚡";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 14px;
}
.pricing-card h3, .pricing-card .btn {
    transform: translateZ(40px);
}
.pricing-card .btn {
    margin-top: auto;
}

/* Reviews Marquee (跑马灯评价区) */
.reviews-marquee {
    display: flex;
    gap: 30px;
    animation: reviews-scroll 25s linear infinite;
    width: max-content;
}
.reviews-marquee:hover {
    animation-play-state: paused;
}
@keyframes reviews-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.reviews-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.reviews-wrapper::before, .reviews-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.reviews-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main), transparent);
}
.reviews-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main), transparent);
}
.review-card {
    width: 350px;
    flex-shrink: 0;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
details {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}
details:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(125, 249, 255, 0.1);
}
summary {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: #fff;
}
summary::-webkit-details-marker {
    display: none;
}
summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--primary-color);
}
details[open] summary::after {
    content: "-";
}
details p {
    margin-top: 15px;
    color: var(--text-muted);
}

/* Footer */
footer {
    background-color: rgba(2, 2, 5, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
    position: relative;
    z-index: 10;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-links a {
    color: var(--text-muted);
    font-weight: 500;
}
.footer-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}
.copyright {
    text-align: center;
    font-size: 14px;
    border-top: 1px solid rgba(125, 249, 255, 0.1);
    padding-top: 20px;
    color: #556;
}

/* Subpages Content */
.subpage-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    min-height: 70vh;
}
.subpage-content h1 {
    font-size: 36px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    text-shadow: 0 0 15px var(--primary-color);
}
.subpage-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #fff;
}
.subpage-content p {
    margin-bottom: 15px;
    color: var(--text-muted);
}
.subpage-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    .desktop-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .hero-flex {
        flex-direction: column;
        text-align: center;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .btn {
        display: block;
        width: 100%;
        text-align: center;
    }
    .header-inner .btn {
        width: auto;
    }
    .pricing-card .btn {
        width: 100%;
    }
}

/* Article List Styles */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}
.article-card {
    display: block;
    text-align: left;
    padding: 25px;
    background: rgba(10, 15, 30, 0.4);
    border: 1px solid rgba(125, 249, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s;
    text-decoration: none;
}
.article-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(125, 249, 255, 0.2);
}
.article-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}
.article-card p {
    color: var(--text-muted);
    margin: 0;
}


/* Article List Styles */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}
.article-card {
    display: block;
    text-align: left;
    padding: 25px;
    background: rgba(10, 15, 30, 0.4);
    border: 1px solid rgba(125, 249, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s;
    text-decoration: none;
}
.article-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(125, 249, 255, 0.2);
}
.article-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}
.article-card p {
    color: var(--text-muted);
    margin: 0;
}

/* 覆盖文章列表为 3x3 栅格布局 */
.article-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}
.article-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
/* 响应式：手机端保持单栏 */
@media (max-width: 768px) {
    .article-list {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   Accessibility & UX Fixes
   ========================================= */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: #020205;
    padding: 8px 16px;
    z-index: 1000;
    font-weight: bold;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}
h2, .section-title {
    scroll-margin-top: 100px;
}
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
