/*
Theme Name: KuaiLian Fast
Theme URI: https://example.com/
Author: Antigravity
Author URI: https://example.com/
Description: A precision-engineered, dark-mode WordPress theme designed for speed and SEO. Replicates a high-tech UI with 100% fidelity.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kuailianfast
*/

:root {
    /* Color Palette */
    --bg-body: #05080f;
    /* Deepest Void */
    --bg-section: #0a0f1c;
    --bg-card: #0f1623;
    --bg-card-hover: #151e30;

    --color-primary: #00f0ff;
    /* Neon Cyan */
    --color-primary-glow: rgba(0, 240, 255, 0.4);
    --color-secondary: #0066ff;
    /* Deep Blue */

    --text-main: #ffffff;
    --text-muted: #8892b0;
    --text-dark: #0a0f1c;

    /* Typo */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Effects */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-glow: 0 0 20px var(--color-primary-glow);
    --transition-fast: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-primary {
    color: var(--color-primary);
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.grid {
    display: grid;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

/* Components */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--color-primary);
    z-index: -1;
    transition: var(--transition-fast);
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: var(--bg-body);
    box-shadow: var(--shadow-glow);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--bg-body);
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--color-primary-glow);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(5, 8, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo span {
    color: var(--color-primary);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.main-nav a:hover,
.main-nav .current_page_item a {
    color: var(--color-primary);
}

/* Sections Common */
section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
    display: block;
}

/* ... Header Styles above ... */

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 100px;
    background: radial-gradient(circle at 50% 20%, #1a233a 0%, var(--bg-body) 70%);
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* Hero Visual Mockup */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    perspective: 1000px;
}

.glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    filter: blur(100px);
    opacity: 0.2;
    z-index: 0;
}

.ui-mockup {
    background: rgba(15, 22, 35, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    transform: rotateX(10deg);
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.dot:nth-child(1) {
    background: #ff5f56;
}

.dot:nth-child(2) {
    background: #ffbd2e;
}

.dot:nth-child(3) {
    background: #27c93f;
}

.status-indicator {
    background: rgba(39, 201, 63, 0.1);
    color: #27c93f;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.speed-graph {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--color-secondary), var(--color-primary));
    border-radius: 2px;
    opacity: 0.8;
}

/* Stats Section */
.stats-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-section);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.stat-info h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.stat-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: var(--transition-fast);
    text-align: center;
}

.feature-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-item h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Nodes Section */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.check-list i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.nodes-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2;
}

.node-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.node-row:last-child {
    border-bottom: none;
}

.status.green {
    color: #27c93f;
}

.status.yellow {
    color: #ffbd2e;
}

.map-circle {
    position: absolute;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.c1 {
    width: 300px;
    height: 300px;
}

.c2 {
    width: 450px;
    height: 450px;
    border-style: dashed;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.pricing-card.popular {
    background: linear-gradient(145deg, #162035 0%, #0f1623 100%);
    border-color: var(--color-primary);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--bg-body);
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0.5rem;
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
}

.plan-features {
    margin-bottom: 2rem;
}

.plan-features li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    gap: 10px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.faq-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .features-grid,
    .grid-2-col,
    .pricing-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-card.popular {
        transform: none;
    }

    .hero-visual {
        display: none;
    }

    /* Hide heavy visual on mobile for speed */
    .site-header {
        position: relative;
    }

    /* sticky on desktop only maybe? or keep sticky */
    .site-header .container {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }

    .main-nav {
        display: none;
    }

    /* Use simple mobile menu in V2, currently hidden logic */
}

/* --------------------------------------
   Internal Page Styles
   -------------------------------------- */

/* Page Header (Minimal) */
.page-header-minimal {
    padding-top: 120px;
    padding-bottom: 60px;
    background: linear-gradient(to bottom, #0f1623, var(--bg-body));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.breadcrumbs-mock {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.breadcrumbs-mock .current {
    color: var(--color-primary);
}

.post-meta-header {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-primary);
    opacity: 0.8;
}

/* Page Content Layout */
.page-content-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.grid-content-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* Article Card Style */
.tech-card-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.post-thumbnail img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Typography for Entry Content */
.entry-content {
    color: #cdd6e0;
    /* Slightly lighter than muted for reading */
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--text-main);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.entry-content h2 {
    font-size: 1.8rem;
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Article List (Index) */
.post-list-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-fast);
}

.post-list-item:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateX(5px);
}

.post-list-item .entry-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-list-item .entry-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 1rem;
}

/* Sidebar Widgets */
.site-sidebar .widget {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
    color: var(--text-main);
}

.widget-categories ul li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.widget-categories ul li a {
    color: var(--text-muted);
}

.widget-categories ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.widget-cta .cta-box {
    text-align: center;
}

.widget-cta h4 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.widget-cta p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.pagination .current,
.pagination .page-numbers:hover {
    background: var(--color-primary);
    color: var(--bg-body);
    font-weight: bold;
    border-color: var(--color-primary);
}

/* Responsive Internal */
@media (max-width: 900px) {
    .grid-content-sidebar {
        grid-template-columns: 1fr;
    }

    .tech-card-content {
        padding: 1.5rem;
    }
}