:root {
    /* Matte Dark Palette  这个是之前的色值备份*/
    /* --bg-color: #0B1121;
    --bg-secondary: #111827;
    --card-bg: #1F2937; */
    --bg-color: #131c31;
    --bg-secondary: #1d283e;
    --card-bg: #2a374f;

    /* Text */
    --text-main: #F1F5F9;
    /* Slate 100 */
    --text-muted: #94A3B8;
    /* Slate 400 */
    --text-color: #E2E8F0;
    /* Slate 200 - general text */

    /* Accents - Text Highlight Restore */
    --primary-color: #0066ff;
    /* Vivid Blue Restored */
    --primary-hover: #0052cc;
    /* Darker Vivid Blue */
    --accent-color: #00c6ff;
    /* Cyan Highlight */
    --success-color: #10B981;

    /* Borders & Glass */
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);

    --border-radius: 8px;
    /* More refined radius */
    --container-width: 1400px;
    --transition: all 0.2s ease-in-out;

    /* Effects */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}


/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--primary-color);
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Clean, matte background */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    /* Prevent layout shifts */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Remove Background Glow */
.background-glow {
    display: none;
}

/* --- Typography Helpers --- */
/* --- Typography Helpers --- */
.gradient-text {
    position: relative;
    background: linear-gradient(120deg, #0066ff, #00d2ff);
    /* Vivid Blue to Cyan */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: 900;
    padding: 0 2px;
    z-index: 1;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 12px;
    /* Marker thickness */
    background: rgba(0, 102, 255, 0.15);
    /* Subtle blue marker */
    z-index: -1;
    transform: skewX(-12deg);
    border-radius: 2px;
    pointer-events: none;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    /* For shine effect */
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--text-color);
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.03);
}

.btn-lg {
    padding: 12px 32px;
    font-size: 1rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 17, 33, 0.85);
    /* Dark matte transparency */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-text {
    background: linear-gradient(120deg, #fff 0%, #00c6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 102, 255, 0.3);
}

.logo-dot {
    color: var(--primary-color);
    font-size: 2rem;
    line-height: 0;
    margin-left: 2px;
    text-shadow: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Announcement Section --- */
.announcement-section {
    padding: 30px 0;
    background: transparent;
}

.announcement-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 30px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
}

.announcement-banner:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

.announcement-banner i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.announcement-banner span {
    font-weight: 600;
    line-height: 1.5;
    background: linear-gradient(120deg, #f59e0b, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Hero Section --- */
.hero {
    padding: 160px 0 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 70px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    background: transparent;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    text-shadow: none;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 5px;
    font-weight: 500;
}

/* --- Features Section --- */
.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    /* Increased gap for relaxed layout */
}

@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--card-bg);
    /* Flat matte background */
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 36px;
    /* Increased padding */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    height: 100%;
}

.feature-card::before {
    display: none;
    /* Remove gradient line */
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, var(--card-bg), #1e293b);
}

.feature-card:hover::before {
    display: none;
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    /* Default Blue */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    /* Increased margin */
    border: none;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-left: auto;
    margin-right: auto;
}

/* Icon Colors & Keyword Highlighting */
.icon-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.icon-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.icon-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.feature-card:hover .icon-green {
    background: #10b981;
    color: #fff;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.feature-card:hover .icon-red {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.feature-card:hover .icon-blue {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}


.feature-card h3 {
    font-size: 1.25rem;
    /* Increased font size */
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    /* Relaxed line height */
}

/* Keyword Highlighting within cards */
.card-green p b {
    color: #34d399;
    /* Emerald 400 - slightly brighter for dark text */
    font-weight: 600;
}

.card-red p b {
    color: #f87171;
    /* Red 400 */
    font-weight: 600;
}

.card-blue p b {
    color: #60a5fa;
    /* Blue 400 */
    font-weight: 600;
}




/* --- Solutions Section --- */
/* --- Solutions Section --- */
.solutions-section {
    position: relative;
    padding-bottom: 80px;
}

/* Decor strip */
.solutions-section::before {
    display: none;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.solution-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    transition: var(--transition);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.solution-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease, opacity 0.5s;
    filter: grayscale(100%);
}

/* Abstract Tech Gradients for BG - Made Subtle */
.bg-1 {
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.2), transparent);
}

.bg-2 {
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.2), transparent);
}

.bg-3 {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.2), transparent);
}

.solution-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--hover-shadow);
}

.solution-card:hover .solution-bg {
    transform: scale(1.05);
    opacity: 0.15;
    filter: grayscale(0%);
}

.solution-content {
    position: relative;
    z-index: 1;
}

.solution-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: 600;
}

.solution-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- FAQ Section --- */
.faq-section {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-color);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--text-muted);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.01);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0, 1, 0, 1);
    background: transparent;
}

.faq-item.active .faq-answer {
    padding-bottom: 24px;
    max-height: 200px;
    transition: all 0.3s cubic-bezier(1, 0, 1, 0);
}

/* --- Footer --- */
.footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    /* Dark Navy */
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--primary-color);
    padding-left: 0;
    /* Minimalist - no shift */
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 30px;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
        background: none;
        border-top: none;
    }

    .stat-item {
        background: rgba(255, 255, 255, 0.03);
        padding: 20px;
        border-radius: 8px;
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Pricing Section - Image Based Update */
/* Pricing Section - Image Based Update */
/* Pricing Section - Premium Design */
.pricing-section {
    padding: 100px 0;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 40px 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.pricing-card {
    flex: 1;
    min-width: 300px;
    max-width: 360px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0 0 30px 0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Featured / Flagship Card */
.pricing-card.featured {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 50px -10px rgba(0, 102, 255, 0.2);
    transform: scale(1.08);
    z-index: 10;
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 0 60px -10px rgba(0, 102, 255, 0.3);
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-main);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
    z-index: 20;
    letter-spacing: 1px;
}

/* Header Styling */
.pricing-header {
    padding: 40px 20px 30px;
    color: #fff;
    position: relative;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card.featured .plan-name {
    color: var(--primary-color);
    font-weight: 700;
}

.plan-price {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-card.featured .plan-price {
    background: linear-gradient(to bottom, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.currency {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

.period {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

/* Feature List with Icons */
.feature-list {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
    padding: 0 30px;
    text-align: left;
}

.feature-list li {
    padding: 12px 0;
    color: var(--text-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.feature-list li i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.feature-list li .fa-check {
    color: var(--success-color);
}

.feature-list li .fa-times {
    color: rgba(255, 255, 255, 0.1);
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Disabled styling */
.feature-list li.disabled {
    color: rgba(148, 163, 184, 0.4);
}

/* Card Actions */
.card-actions {
    padding: 0 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.pricing-cta {
    width: 100%;
    padding: 14px 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.pricing-cta:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Featured Button */
.pricing-card.featured .btn-buy {
    background: var(--gradient-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.pricing-card.featured .btn-buy:hover {
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        width: 100%;
        max-width: 400px;
    }

    .pricing-card.featured {
        transform: scale(1);
        order: -1;
        /* Mobile: Show featured first */
        margin: 20px 0;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}



/* --- New Docs Redesign (Reference Image Style) --- */

.docs-body {
    background: var(--bg-color);
    overflow: hidden;
    /* Use internal scrolling */
    height: 100vh;
}

.docs-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
}

/* Sidebar Styling */
.doc-sidebar-new {
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-muted);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(56, 189, 248, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), transparent);
}

.menu-group {
    margin-top: 15px;
}

.menu-title {
    padding: 8px 24px;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-title i {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.submenu {
    padding-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-group.active .submenu {
    max-height: 500px;
    /* Arbitrary large height for transition */
}

/* Icon Rotation */
.menu-title i {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.menu-group.active .menu-title i {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.submenu a {
    display: block;
    padding: 8px 24px 8px 50px;
    /* Indented */
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.submenu a:hover {
    color: var(--text-main);
}

.sidebar-footer {
    padding: 20px 0;
    border-top: 1px solid var(--glass-border);
}

/* Docs Main Area */
.doc-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Top Header */
.doc-header {
    height: 70px;
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-secondary);
    /* Same as sidebar for continuity or glass */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.doc-search {
    position: relative;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    /* Center it */
}

.doc-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.doc-search input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px 15px 10px 40px;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s;
}

.doc-search input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

.header-actions button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-left: 15px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
}

.header-actions button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
}

/* Content Container */
.doc-content-container {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

.doc-article {
    max-width: 800px;
    margin: 0 auto;
}

.doc-article h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.divider {
    height: 1px;
    background: var(--glass-border);
    margin: 20px 0 30px;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.doc-article h2 {
    font-size: 1.6rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.doc-article h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.doc-article p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Feature Check List */
.check-list {
    margin-bottom: 30px;
}

.check-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.check-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.check-list strong {
    color: var(--text-main);
}

/* Info Box Styling - Midnight Tech Style */
.info-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(30, 41, 59, 0.6);
    /* Slate glass */
    border: 1px solid var(--glass-border);
    border-left: 4px solid;
    padding: 20px;
    border-radius: 8px;
    /* Rounded only on right mostly, but 8px all over looks cleaner */
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    transition: transform 0.2s;
}

.info-box:hover {
    transform: translateX(5px);
}

.info-box.blue {
    border-left-color: var(--primary-color);
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.05), transparent);
}

.info-box.cyan {
    border-left-color: var(--success-color);
    /* Using Success/Teal for contrast */
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.05), transparent);
}

.info-box .icon {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.info-box.blue .icon {
    color: var(--primary-color);
}

.info-box.cyan .icon {
    color: var(--success-color);
}

.info-box .content {
    flex: 1;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-box strong {
    color: var(--text-main);
}

/* Step List */
.step-list {
    list-style: decimal inside;
    color: var(--text-muted);
    line-height: 1.8;
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.step-list li {
    margin-bottom: 10px;
}

/* Scrollbar for sidebar/content */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
    .docs-wrapper {
        display: block;
        /* Stack on mobile */
    }

    .doc-sidebar-new {
        display: none;
        /* Hide sidebar, would need toggle */
    }

    .doc-header {
        padding: 0 15px;
    }
}

/* Hero Section for Subpages */
.page-hero {
    padding: 120px 0 30px;
    /* Reduced bottom padding */
    text-align: center;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.08), transparent 50%);
}

.page-hero .hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-hero .hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.search-box-wrapper {
    max-width: 700px;
    margin: 40px auto 0;
    position: relative;
    display: flex;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 10px 10px 45px;
    font-size: 1.1rem;
    color: var(--text-main);
    outline: none;
}

.search-btn {
    border-radius: 40px;
    padding: 10px 40px;
}

/* Q&A Layout */
.qa-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .qa-layout {
        grid-template-columns: 1fr;
    }
}

.qa-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
}


.qa-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.qa-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 80px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    font-size: 0.9rem;
    gap: 5px;
}

.qa-status.solved {
    color: var(--success-color);
    background: rgba(52, 211, 153, 0.1);
}

.qa-status.pending {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.qa-title a {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 600;
}

.qa-title a:hover {
    color: var(--primary-color);
}

.qa-meta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Sidebar */
.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-card h3 {
    color: var(--text-main);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.sidebar-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--primary-color);
    color: #fff;
}

.full-width {
    width: 100%;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #1e293b;
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--text-main);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.input-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s;
}

.input-control:focus {
    border-color: var(--primary-color);
    outline: none;
    background: rgba(0, 0, 0, 0.4);
}

/* Docs Layout */
.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    padding-top: 0px;
    padding-bottom: 20px;
    align-items: start;
}

@media (max-width: 900px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .docs-sidebar {
        width: 100%;
        position: static;
        max-height: 400px;
    }
}

.docs-sidebar {
    position: sticky;
    top: 100px;
}

.nav-group {
    margin-bottom: 30px;
}

.nav-group h3 {
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.nav-item {
    display: block;
    padding: 8px 12px;
    color: var(--text-muted);
    border-left: 2px solid transparent;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    background: rgba(56, 189, 248, 0.05);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--glass-border);
    margin-top: 40px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 25px;
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 12px;
}

.version-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.version-badge.new {
    background: var(--primary-color);
    color: #000;
    font-weight: bold;
}

.version-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 10px;
}

.update-list {
    margin-top: 20px;
    list-style: none;
}

.update-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
}

.tag-feature {
    color: var(--primary-color);
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.tag-fix {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.tag-optimize {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* --- Login Page --- */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

/* Left Brand Panel */
.login-brand {
    background: var(--gradient-main);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 50%);
    pointer-events: none;
}

.brand-content {
    position: relative;
    z-index: 1;
}

.login-brand .logo {
    font-size: 2rem;
    margin-bottom: 30px;
    display: inline-block;
}

.login-brand h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.brand-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 40px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.feature-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Right Form Panel */
.login-form-panel {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-secondary);
}

.form-wrapper {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.link-primary {
    color: var(--primary-color);
    font-weight: 500;
}

.link-primary:hover {
    text-decoration: underline;
}

.login-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
}

.login-form label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.forgot-link {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.forgot-link:hover {
    color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 10px;
    justify-content: center;
}

.divider-text {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--glass-border);
}

.divider-text span {
    background: var(--bg-secondary);
    padding: 0 15px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-login {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.social-btn.wechat:hover {
    border-color: #07c160;
    color: #07c160;
}

.social-btn.qq:hover {
    border-color: #12b7f5;
    color: #12b7f5;
}

.form-footer {
    margin-top: 30px;
    text-align: center;
}

.form-footer a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-footer a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .login-brand {
        display: none;
    }

    .login-form-panel {
        padding: 40px 30px;
    }
}

/* --- Question Submission Form --- */
.submit-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.submit-question-form .form-group {
    margin-bottom: 30px;
}

.submit-question-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
}

.submit-question-form label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.required {
    color: #ef4444;
}

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Visibility Radio Cards */
.visibility-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.radio-card {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.radio-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
}

.radio-card.active {
    border-color: var(--primary-color);
    background: rgba(56, 189, 248, 0.05);
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.radio-content>i {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.radio-card.active .radio-content>i {
    color: var(--primary-color);
}

.radio-text strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 5px;
}

.radio-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-only-option {
    margin-top: 15px;
    padding: 15px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
}

.admin-only-option .checkbox-label {
    color: var(--text-muted);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

@media (max-width: 600px) {
    .visibility-options {
        grid-template-columns: 1fr;
    }

    .submit-form-container {
        padding: 25px;
    }
}

/* Image Upload Area */
.upload-area {
    margin-top: 10px;
}

.upload-placeholder {
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.1);
}

.upload-placeholder:hover {
    border-color: var(--primary-color);
    background: rgba(56, 189, 248, 0.05);
}

.upload-placeholder i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.upload-placeholder:hover i {
    color: var(--primary-color);
}

.upload-placeholder p {
    color: var(--text-main);
    margin-bottom: 5px;
}

.upload-placeholder span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.preview-item .remove-btn:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.preview-item .upload-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    flex-direction: column;
    gap: 5px;
}

.preview-item .upload-progress i {
    font-size: 20px;
}

/* Success Modal */
.success-modal {
    text-align: center;
    max-width: 400px;
    padding: 50px 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.4s ease-out;
}

.success-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.success-modal h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.success-modal p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-modal .btn {
    padding: 14px 30px;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Compact Q&A List --- */
.qa-list.compact {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.qa-item-compact {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 24px 30px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-bottom: none;
    transition: var(--transition);
}

.qa-item-compact:first-child {
    border-radius: 12px 12px 0 0;
}

.qa-item-compact:last-child {
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0 0 12px 12px;
}

.qa-item-compact:hover {
    background: rgba(56, 189, 248, 0.03);
}

.qa-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 4px;
}

.qa-badge.solved {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.qa-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.qa-link {
    flex: 1;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
}

.qa-link:hover {
    color: var(--primary-color);
}


.qa-info {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.qa-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.page-btn,
.page-num {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.page-btn:hover:not(.disabled),
.page-num:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(56, 189, 248, 0.05);
}

.page-num.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-dots {
    color: var(--text-muted);
    padding: 0 4px;
    user-select: none;
}

.page-info {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 15px;
}

/* --- Question Detail Page --- */
.breadcrumb {
    margin-bottom: 30px;
}

.breadcrumb a {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.question-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.question-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.question-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.question-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.question-title {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.4;
}

.question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    /* border-bottom: 1px solid var(--glass-border); */
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.question-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-main);
}

.question-body {
    color: var(--text-muted);
    line-height: 1.8;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.question-body p {
    margin-bottom: 15px;
}

.question-body img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 15px 0;
}

.question-body table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

.question-body pre {
    max-width: 100%;
    overflow-x: auto;
}

.question-body ul,
.question-body ol {
    margin: 15px 0;
    padding-left: 25px;
}

.question-body li {
    margin-bottom: 8px;
}

/* Question Images Grid */
.question-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.question-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.question-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.image-modal-close:hover {
    color: #bbb;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .question-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .question-image {
        height: 150px;
    }
    
    /* 移动端分类标签优化 */
    .qa-filter-tabs {
        flex-wrap: wrap;
        gap: 8px;
        padding-bottom: 12px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .filter-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* 移动端布局优化 */
    .qa-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .container {
        padding: 0 16px;
        max-width: 100%;
    }
    
    .news-card {
        max-width: 100%;
        overflow: hidden;
    }
    
    .news-title {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .news-excerpt {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    /* 资讯详情页移动端优化 */
    .news-detail-card {
        padding: 20px !important;
    }
    
    .article-header {
        padding-bottom: 15px !important;
    }
    
    .article-title {
        font-size: 1.5rem !important;
    }
    
    .article-content {
        font-size: 1rem !important;
        overflow-x: hidden !important;
    }
    
    .article-content pre {
        font-size: 0.7rem !important;
        padding: 10px !important;
        margin: 10px 0 !important;
        max-width: 100% !important;
        overflow-x: auto !important;
    }
    
    .article-content code {
        font-size: 0.8em !important;
    }
    
    .article-content img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 15px 0 !important;
    }
    
    .article-footer {
        flex-direction: column !important;
        gap: 15px;
        align-items: flex-start !important;
    }
}

@media (max-width: 480px) {
    .question-images {
        grid-template-columns: 1fr;
    }
    
    .news-detail-card {
        padding: 16px !important;
    }
    
    .article-title {
        font-size: 1.3rem !important;
    }
}

/* Answers Section */
.answers-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
}

.answer-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
    scroll-margin-top: 100px;
}

.answer-card.best-answer {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(to right, rgba(16, 185, 129, 0.05), transparent);
}

.answer-card.highlight-comment {
    animation: highlightPulse 2s ease-in-out;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

@keyframes highlightPulse {
    0%, 100% {
        background: var(--card-bg);
        transform: scale(1);
    }
    50% {
        background: rgba(0, 102, 255, 0.08);
        transform: scale(1.01);
    }
}

.answer-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 500;
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-name {
    font-weight: 500;
    color: var(--text-main);
}

.author-role {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

.author-role.admin {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-color);
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B4513;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    animation: subtle-glow 2s ease-in-out infinite alternate;
}

.admin-badge i {
    font-size: 0.7rem;
}

@keyframes subtle-glow {
    from {
        box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    }
    to {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    }
}

.answer-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.answer-body {
    color: var(--text-muted);
    line-height: 1.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.answer-body img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 15px 0;
}

.answer-body table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

.answer-body pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
    max-width: 100%;
}

.answer-body code {
    font-family: 'Consolas', monospace;
    color: var(--primary-color);
}

.answer-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.question-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.action-btn,
.delete-question-btn {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.action-btn:hover,
.delete-question-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 点赞按钮已点赞状态 */
.action-btn.zaned {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.action-btn.zaned i {
    color: var(--primary-color);
}

.btn-delete-answer:hover {
    background: #dc3545;
    color: white;
}

.btn-delete-answer:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Reply Form */
.reply-form-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px;
}

.reply-form-card h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.reply-actions {
    margin-top: 15px;
    text-align: right;
}

/* Question Sidebar */
.question-sidebar .sidebar-card {
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list span:first-child {
    color: var(--text-main);
}

.status-text.solved {
    color: #10b981;
}

.related-list {
    list-style: none;
}

.related-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.related-list a:hover {
    color: var(--primary-color);
}

@media (max-width: 900px) {
    .question-detail-layout {
        grid-template-columns: 1fr;
    }

    .qa-item-compact {
        flex-wrap: wrap;
    }

    .qa-info {
        width: 100%;
        margin-top: 8px;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding-top: 20px;
}

.page-btn,
.page-num {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.page-num:hover,
.page-btn:hover:not(.disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-num.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: var(--text-muted);
    padding: 0 5px;
}

/* --- User Center --- */
.user-center-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    min-height: 70vh;
}

/* User Sidebar */
.user-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.user-profile-card {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-main);
    margin: 0 auto 15px;
    display: block;
}

.user-profile-card h3 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.user-profile-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.user-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-muted);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.user-nav-item:hover {
    background: rgba(56, 189, 248, 0.05);
    color: var(--text-main);
}

.user-nav-item.active {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-color);
}

.user-nav-item i {
    width: 20px;
    text-align: center;
}

.user-nav-item .badge {
    position: absolute;
    right: 15px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
}

.user-nav-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.user-nav-item.logout {
    color: #ef4444;
}

.user-nav-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* User Content Area */
.user-content {
    min-height: 400px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.content-header {
    margin-bottom: 25px;
}

.content-header h2 {
    font-size: 1.4rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-header h2 i {
    color: var(--primary-color);
}

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
}

.content-card.no-padding {
    padding: 0;
}

/* Account Info */
.info-row {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    width: 120px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-value {
    flex: 1;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.member-badge {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Password Form */
.password-form .form-group {
    margin-bottom: 25px;
}

.password-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-main);
}

/* My Questions List */
.my-question-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.my-question-item:last-child {
    border-bottom: none;
}

.my-question-item:hover {
    background: rgba(56, 189, 248, 0.03);
}

.my-question-item.private {
    background: rgba(129, 140, 248, 0.03);
}

.qa-badge.private-badge {
    background: rgba(129, 140, 248, 0.15);
    color: var(--accent-color);
}

.question-link {
    flex: 1;
    color: var(--text-main);
    font-weight: 500;
}

.question-link:hover {
    color: var(--primary-color);
}

.question-info {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Messages */
.message-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
}

.message-item:last-child {
    border-bottom: none;
}

.message-item:hover {
    background: rgba(56, 189, 248, 0.03);
}

.message-item.unread {
    background: rgba(56, 189, 248, 0.02);
    font-weight: 500; /* 加粗未读消息标题 */
}

.message-item.unread .message-content p {
    color: var(--text-main);
}


.message-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-icon.reply {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-color);
}

.message-icon.admin {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.message-icon.system {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.message-content {
    flex: 1;
}

.message-content p {
    color: var(--text-main);
    margin-bottom: 5px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.message-item.unread .message-content p::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.7);
}

.message-preview {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
}

.message-link {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.message-time {
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

.admin-badge {
    display: inline-block;
    padding: 1px 5px;
    margin-left: 0px;
    background: #f59e0b;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    vertical-align: middle;
    /* box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3); */
}

/* Authorization Items */
.auth-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.auth-item:last-child {
    border-bottom: none;
}

.auth-item:hover {
    background: rgba(56, 189, 248, 0.03);
}

.auth-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(120deg, #0066ff 0%, #00d2ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-icon i {
    font-size: 24px;
    color: #fff;
}

.auth-info {
    flex: 1;
}

.auth-domain {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.auth-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.auth-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-meta i {
    margin-right: 5px;
}

.auth-note {
    color: var(--primary-color);
}

.auth-status {
    text-align: right;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.status-badge.trial {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.status-badge i {
    margin-right: 5px;
}

.auth-type {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

@media (max-width: 900px) {
    .user-center-layout {
        grid-template-columns: 1fr;
    }

    .user-sidebar {
        position: static;
    }
}

/* --- 问答分类筛选选项卡 --- */
.qa-filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.filter-tab {
    padding: 10px 24px;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 102, 255, 0.05);
}

.filter-tab.active {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

/* 问题项隐藏动画 */
.qa-item-compact.hidden {
    display: none;
}

/* ==================== 文档页面样式 ==================== */

/* 文档布局 */
.docs-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    min-height: calc(100vh - 380px);
    margin-top: 40px;
}

/* 左侧边栏 */
.docs-sidebar {
    width: 350px;
    flex-shrink: 0;
    position: sticky;
    top: 85px;
    max-height: calc(100vh - 105px);
    overflow-y: auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 0;
    backdrop-filter: blur(10px);
}

/* 文档中心标题 */
.docs-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 102, 255, 0.03);
}

.docs-sidebar-header i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.docs-sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* 滚动条美化 */
.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* 搜索框 */
.docs-search-box {
    position: relative;
    margin: 20px 24px;
}

.docs-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.docs-search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-main);
    font-size: 0.9rem;
    transition: var(--transition);
}

.docs-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.docs-search-input::placeholder {
    color: var(--text-muted);
}

/* 导航树 */
.docs-nav-tree {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 16px 20px 16px;
}

.nav-category {
    margin-bottom: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

/* 文档首页 */
.nav-home {
    gap: 10px;
    font-weight: 500;
    margin-bottom: 8px;
}

.nav-home i {
    color: var(--text-main);
    font-size: 1rem;
}

.nav-home:hover {
    background: rgba(0, 102, 255, 0.05);
    color: var(--primary-color);
}

.nav-home:hover i {
    color: var(--primary-color);
}

.nav-home.active {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 9px;
}

/* 导航父级项 */
.nav-parent {
    font-weight: 500;
    gap: 8px;
    user-select: none;
}

.nav-parent:hover {
    background: rgba(0, 102, 255, 0.05);
    color: var(--primary-color);
}

.toggle-icon {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
    flex-shrink: 0;
}

.nav-category.open>.nav-parent .toggle-icon {
    transform: rotate(0deg);
}

/* 子项容器 */
.nav-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 20px;
    padding-left: 12px;
    border-left: 1px solid var(--glass-border);
}

.nav-category.open>.nav-children {
    max-height: 1000px;
}

/* 子导航项 */
.nav-child {
    padding: 8px 12px;
    margin: 2px 0;
    font-weight: 400;
    font-size: 0.88rem;
}

.nav-child:hover {
    background: rgba(0, 102, 255, 0.05);
    color: var(--primary-color);
}

.nav-child.active {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 9px;
    font-weight: 500;
}

/* 链接样式（蓝色文字） */
.nav-child.nav-link-style {
    color: var(--primary-color);
}

.nav-child.nav-link-style:hover {
    text-decoration: underline;
}

/* 二级/三级层级 */
.nav-item.level-2 {
    font-size: 0.85rem;
    padding-left: 8px;
}

.nav-item.level-3 {
    font-size: 0.85rem;
    padding-left: 4px;
}

.sub-category {
    margin-left: 0;
}

.sub-category .nav-children {
    margin-left: 8px;
    padding-left: 8px;
}

/* 搜索高亮 */
.nav-child mark {
    background: rgba(255, 235, 59, 0.4);
    color: var(--text-main);
    padding: 2px 0;
    border-radius: 2px;
}

/* 右侧内容区 */
.docs-content {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 40px;
    backdrop-filter: blur(10px);
    min-height: calc(100vh - 180px);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 105px);
    width: 100%;
    max-width: 100%;
}

/* 文档文章 */
.doc-article {
    display: none;
    animation: fadeIn 0.3s ease;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.doc-article.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 文档标题 */
.doc-article h1 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: var(--text-main);
    font-weight: 700;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 16px;
}

.doc-article h2 {
    font-size: 1.6rem;
    margin: 32px 0 16px;
    color: var(--text-main);
    font-weight: 600;
}

.doc-article h3 {
    font-size: 1.3rem;
    margin: 24px 0 12px;
    color: var(--text-main);
    font-weight: 600;
}

/* 文档内容 */
.doc-article p {
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.doc-article img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.doc-article table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

.doc-article ul,
.doc-article ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-muted);
}

.doc-article li {
    line-height: 1.8;
    margin-bottom: 8px;
}

.doc-article li strong {
    color: var(--text-main);
}

/* 文档元信息 */
.doc-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.doc-meta i {
    margin-right: 6px;
}

/* 文档内容容器 */
.doc-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.doc-content pre {
    max-width: 100%;
    overflow-x: auto;
}

/* 代码块 */
.doc-article pre {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
}

.doc-article code {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.doc-article pre code {
    background: none;
    color: #d4d4d4;
    padding: 0;
}

/* 代码块复制按钮（通用） */
.doc-content .code-block-wrapper,
.doc-article .code-block-wrapper {
    position: relative;
    margin: 16px 0;
}

.doc-content .code-block-wrapper pre,
.doc-article .code-block-wrapper pre {
    margin: 0;
}

.doc-content .code-copy-btn,
.doc-article .code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 5px;
}

.doc-content .code-block-wrapper:hover .code-copy-btn,
.doc-article .code-block-wrapper:hover .code-copy-btn {
    opacity: 1;
}

.doc-content .code-copy-btn:hover,
.doc-article .code-copy-btn:hover {
    background: rgba(0, 102, 255, 0.8);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.doc-content .code-copy-btn.copied,
.doc-article .code-copy-btn.copied {
    background: rgba(16, 185, 129, 0.8);
    border-color: #10b981;
}

.doc-content .code-copy-btn i,
.doc-article .code-copy-btn i {
    font-size: 0.9rem;
}

/* 表格 */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
}

.doc-table thead {
    background: rgba(0, 102, 255, 0.1);
}

.doc-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 2px solid var(--glass-border);
}

.doc-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.doc-table tbody tr:last-child td {
    border-bottom: none;
}

.doc-table tbody tr:hover {
    background: rgba(0, 102, 255, 0.03);
}

/* 提示框 */
.doc-alert {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    border-left: 4px solid;
}

.doc-alert i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.doc-alert.info {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.doc-alert.success {
    background: rgba(0, 200, 83, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.doc-alert.warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: #ff9800;
    color: #ff9800;
}

.doc-alert strong {
    display: block;
    margin-bottom: 4px;
}

.doc-alert p {
    margin: 0;
    color: inherit;
    opacity: 0.9;
}

/* 文档卡片网格 */
.doc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.doc-card {
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.doc-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.doc-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: block;
}

.doc-card h3 {
    font-size: 1rem;
    margin: 8px 0;
    color: var(--text-main);
}

.doc-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .docs-layout {
        flex-direction: column;
    }

    .docs-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        margin-bottom: 24px;
    }

    .docs-content {
        max-height: none;
        padding: 20px;
        overflow-x: hidden;
    }

    .doc-article h1 {
        font-size: 1.8rem;
    }

    .doc-article h2 {
        font-size: 1.4rem;
    }

    /* 移动端强制限制内容宽度 */
    .doc-content {
        padding: 0;
        overflow-x: hidden !important;
    }

    .doc-content pre {
        font-size: 0.7rem;
        padding: 10px;
        margin: 10px 0;
        max-width: 100% !important;
        overflow-x: auto !important;
    }

    .doc-article pre {
        font-size: 0.7rem !important;
        padding: 10px !important;
    }

    .doc-card-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 产品演示页面样式 ==================== */

/* 演示页面主区域 */
.demo-section {
    padding: 100px 0 60px;
    min-height: calc(100vh - 70px);
}

/* 演示容器 */
.demo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

/* 简洁手机边框 */
.phone-frame-simple {
    position: relative;
    width: 400px;
    height: 780px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 10px;
    box-shadow:
        0 0 0 2px #333,
        0 20px 40px -10px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 102, 255, 0.08);
}

/* 顶部状态栏 */
.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: #1a1a1a;
    border-radius: 30px 30px 0 0;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.status-time {
    font-weight: 600;
}

.status-icons {
    display: flex;
    gap: 6px;
    font-size: 11px;
}

/* 屏幕区域 */
.phone-screen-simple {
    width: 100%;
    height: calc(100% - 60px);
    background: #fff;
    border-radius: 0;
    overflow: hidden;
}

.phone-screen-simple iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

/* 底部横条 */
.phone-home-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 30px 30px;
}

.phone-home-bar::after {
    content: '';
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* 提示区域 */
.demo-tips {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tip-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.tip-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.tip-item a:hover {
    text-decoration: underline;
}

/* 响应式适配 */
@media (max-width: 500px) {
    .phone-frame-simple {
        width: 340px;
        height: 660px;
        border-radius: 35px;
        padding: 8px;
    }

    .phone-status-bar {
        padding: 6px 16px;
        font-size: 11px;
    }

    .phone-screen-simple {
        height: calc(100% - 50px);
    }

    .phone-home-bar {
        height: 22px;
    }

    .phone-home-bar::after {
        width: 100px;
    }

    .demo-tips {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* ==================== 产品演示四大板块卡片 ==================== */

/* 卡片网格布局 */
.demo-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

/* 演示卡片 */
.demo-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 102, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.demo-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow:
        0 20px 40px -15px rgba(0, 102, 255, 0.2),
        0 0 0 1px rgba(0, 102, 255, 0.1);
}

.demo-card:hover::before {
    opacity: 1;
}

/* 卡片图标 */
.demo-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(0, 102, 255, 0.15), rgba(0, 102, 255, 0.05));
    border: 1px solid rgba(0, 102, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.demo-card-icon i {
    font-size: 2.2rem;
    color: var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.demo-card:hover .demo-card-icon {
    transform: scale(1.1);
    background: linear-gradient(145deg, rgba(0, 102, 255, 0.25), rgba(0, 102, 255, 0.1));
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.2);
}

.demo-card:hover .demo-card-icon i {
    transform: scale(1.1);
}

/* 微信图标特殊颜色 */
.demo-card-icon.wechat-icon {
    background: linear-gradient(145deg, rgba(7, 193, 96, 0.15), rgba(7, 193, 96, 0.05));
    border-color: rgba(7, 193, 96, 0.2);
}

.demo-card-icon.wechat-icon i {
    color: #07c160;
}

.demo-card:hover .demo-card-icon.wechat-icon {
    background: linear-gradient(145deg, rgba(7, 193, 96, 0.25), rgba(7, 193, 96, 0.1));
    box-shadow: 0 8px 25px rgba(7, 193, 96, 0.2);
}

/* APP 图标特殊颜色 */
.demo-card-icon.app-icon {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    border-color: rgba(139, 92, 246, 0.2);
}

.demo-card-icon.app-icon i {
    color: #8b5cf6;
}

.demo-card:hover .demo-card-icon.app-icon {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.1));
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

/* 卡片标题 */
.demo-card-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

/* 卡片描述 */
.demo-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* 卡片操作提示 */
.demo-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.demo-card-action i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.demo-card:hover .demo-card-action i {
    transform: translateX(4px);
}

/* ==================== 二维码弹窗样式 ==================== */

.qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qr-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.qr-modal {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.qr-modal-overlay.active .qr-modal {
    transform: translateY(0) scale(1);
}

.qr-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transform: rotate(90deg);
}

.qr-modal-content {
    text-align: center;
}

.qr-modal-content img {
    width: 220px;
    height: 220px;
    margin: 0 auto 24px;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qr-modal-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.qr-modal-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 返回链接 */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

.back-link i {
    font-size: 0.85rem;
}

/* 响应式适配 - 四大板块 */
@media (max-width: 768px) {
    .demo-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }

    .demo-card {
        padding: 30px 24px;
    }

    .demo-card-icon {
        width: 70px;
        height: 70px;
    }

    .demo-card-icon i {
        font-size: 1.8rem;
    }

    .demo-card-title {
        font-size: 1.2rem;
    }

    .qr-modal {
        padding: 30px;
    }

    .qr-modal-content img {
        width: 180px;
        height: 180px;
    }
}

/* --- Comparison Table --- */
.comparison-container {
    margin-top: 40px;
    padding-bottom: 60px;
}

.table-wrapper {
    overflow-x: auto;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    color: var(--text-color);
}

.comparison-table th,
.comparison-table td {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.comparison-table th {
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.comparison-table th:first-child {
    text-align: left;
    min-width: 250px;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-main);
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table .highlight {
    background: rgba(0, 102, 255, 0.05);
    position: relative;
    border-left: 1px solid rgba(0, 102, 255, 0.1);
    border-right: 1px solid rgba(0, 102, 255, 0.1);
}

.comparison-table th.highlight {
    color: var(--primary-color);
    background: rgba(0, 102, 255, 0.1);
}

.comparison-table i.success {
    color: var(--success-color);
    font-size: 1.1rem;
}

.comparison-table i.muted {
    color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {

    .comparison-table th,
    .comparison-table td {
        padding: 15px;
        font-size: 0.85rem;
    }

    .comparison-table th:first-child {
        min-width: 150px;
    }
}

/* ============================== */
/* 客服二维码弹窗样式 */
/* ============================== */
.qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qr-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.qr-modal {
    background: linear-gradient(145deg, var(--card-bg), #1a2540);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 16px;
    padding: 32px;
    max-width: 520px;
    width: 90%;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 102, 255, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-modal-overlay.active .qr-modal {
    transform: scale(1) translateY(0);
}

.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.qr-modal-header h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-main);
    background: linear-gradient(120deg, #fff, #00c6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qr-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.qr-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg);
}

.qr-modal-content {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 24px;
}

.qr-code-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.qr-code-item:hover {
    border-color: rgba(0, 102, 255, 0.4);
    background: rgba(0, 102, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(0, 102, 255, 0.3);
}

.qr-code-item img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.qr-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qr-label i {
    font-size: 1.1rem;
}

.qr-code-item:first-child .qr-label i {
    color: #07c160;
    /* 微信绿 */
}

.qr-code-item:last-child .qr-label i {
    color: #12b7f5;
    /* QQ蓝 */
}

.qr-modal-footer {
    text-align: center;
}

.qr-modal-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* 弹窗响应式 */
@media (max-width: 520px) {
    .qr-modal {
        padding: 24px;
    }

    .qr-modal-content {
        flex-direction: column;
        gap: 16px;
    }

    .qr-code-item {
        padding: 16px;
    }

    .qr-code-item img {
        width: 140px;
        height: 140px;
    }
}

/* ============================== */
/* 底部导航栏二维码样式 */
/* ============================== */
/* ============================== */
/* 底部导航栏布局调整 */
/* ============================== */
.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr 1.2fr;
    /* 调整比例：第一列增大，第四列减小，两边平衡 */
    gap: 30px;
}

.footer-col {
    width: auto;
    /* 重置可能存在的宽度限制 */
}

/* ============================== */
/* 底部导航栏二维码样式 */
.footer-qr-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    /* 左对齐，更工整 */
    align-items: flex-start;
    gap: 30px;
    /* 固定间距，避免太分散 */
    margin-top: 20px;
}

.footer-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.footer-qr-item img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    /* 更圆润 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* 更细腻的边框 */
    transition: all 0.3s ease;
    object-fit: cover;
    background: #fff;
    padding: 6px;
    /* 增加白边，像拍立得风格 */
}

.footer-qr-item img:hover {
    transform: translateY(-5px);
    /* 悬浮上移效果 */
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.footer-qr-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    opacity: 0.9;
}

.footer-qr-label i {
    font-size: 1rem;
}

.footer-qr-item:first-child .footer-qr-label i {
    color: #07c160;
}

.footer-qr-item:last-child .footer-qr-label i {
    color: #12b7f5;
}

.footer-qr-tip {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
    opacity: 0.6;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
        /* 手机端居中 */
    }

    .footer-qr-container {
        justify-content: center;
        /* 手机端二维码居中 */
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
        /* 标题下划线居中 */
    }

    .footer-col h4 {
        align-items: center;
    }
}

/* ============================== */
/* 资讯中心样式 (News Center) */
/* ============================== */

/* 顶部搜索框容器 */
.search-box-wrapper {
    position: relative;
    max-width: 600px;
    margin: 30px auto 0;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    /* background: rgba(30, 41, 59, 0.6); */
    /* border: 1px solid var(--border-color); */
    padding: 14px 20px 14px 45px;
    border-radius: 40px;
    /* color: var(--text-color); */
    color: #aaa;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.search-btn {
    white-space: nowrap;
    padding: 0 25px;
}

/* 资讯列表卡片 */
.news-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

.news-card.small {
    padding: 20px;
}

.news-content {
    flex: 1;
}

/* 分类标签 */
.news-category-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-product {
    background: rgba(0, 102, 255, 0.1);
    color: #4da3ff;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.cat-tutorial {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.cat-industry {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.cat-faq {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-main);
    transition: color 0.2s;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.8;
}

.news-meta i {
    margin-right: 5px;
}

/* 文章详情页样式 */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.article-content h4 {
    margin-top: 25px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.article-content table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

.article-content pre {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
}

.article-content code {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.article-content pre code {
    background: none;
    color: #d4d4d4;
    padding: 0;
}

/* 代码块复制按钮 */
.code-block-wrapper {
    position: relative;
    margin: 16px 0;
}

.code-block-wrapper pre {
    margin: 0;
}

.code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 5px;
}

.code-block-wrapper:hover .code-copy-btn {
    opacity: 1;
}

.code-copy-btn:hover {
    background: rgba(0, 102, 255, 0.8);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.code-copy-btn.copied {
    background: rgba(16, 185, 129, 0.8);
    border-color: #10b981;
}

.code-copy-btn i {
    font-size: 0.9rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.article-highlight {
    background: rgba(0, 102, 255, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    color: var(--text-color);
}

/* 亮色模式适配 (News Specific) */
[data-theme="light"] .news-title a {
    color: var(--text-main);
}

[data-theme="light"] .news-title a:hover {
    color: var(--primary-color);
}

[data-theme="light"] .article-content {
    color: #334155;
}

[data-theme="light"] .article-content strong {
    color: #0f172a;
}

/* 亮色模式代码块样式 */
[data-theme="light"] .article-content pre {
    background: #f8fafc;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

[data-theme="light"] .article-content pre code {
    color: #1e293b;
}

[data-theme="light"] .doc-article pre {
    background: #f8fafc;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

[data-theme="light"] .doc-article pre code {
    color: #1e293b;
}

[data-theme="light"] .doc-content pre {
    background: #f8fafc;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

[data-theme="light"] .doc-content pre code {
    color: #1e293b;
}

[data-theme="light"] .cat-product {
    background: rgba(0, 102, 255, 0.1);
    color: #4da3ff;
    /* Darker blue? Maybe #0066ff */
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .cat-tutorial {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(5, 150, 105, 0.2);
}

[data-theme="light"] .cat-industry {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.2);
}

[data-theme="light"] .cat-faq {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.2);
}

/* ==========================================================
   LIGHT THEME COMPREHENSIVE OVERRIDES

   全面的亮色模式覆盖样式 - 解决对比度和美观问题
   ========================================================== */

/* --- 1. 核心变量增强 --- */
[data-theme="light"] {
    /* 背景层次更分明 */
    --bg-color: #e8edf5;
    /* 更深的灰蓝色基底 */
    --bg-secondary: #f8fafc;
    /* 浅白色用于导航等 */
    --card-bg: #ffffff;
    /* 纯白卡片 */

    /* 文字对比度大幅提升 */
    --text-main: #0f172a;
    /* 近乎纯黑 - Slate 900 */
    --text-muted: #475569;
    /* 更深的灰色 - Slate 600 */
    --text-color: #1e293b;
    /* 深灰正文 - Slate 800 */

    /* 边框更清晰 */
    --border-color: rgba(100, 116, 139, 0.2);
    /* 更明显的边框 */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(100, 116, 139, 0.15);

    /* 阴影适度加强 */
    --card-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -2px rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
}

/* --- 2. 背景装饰美化 --- */
[data-theme="light"] .background-glow {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(96, 165, 250, 0.15), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 90%, rgba(167, 139, 250, 0.12), transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(14, 165, 233, 0.06), transparent 40%);
    pointer-events: none;
}

/* --- 3. 导航栏 --- */
[data-theme="light"] .navbar {
    background: rgba(248, 250, 252, 0.9);
    border-bottom-color: var(--border-color);
}

[data-theme="light"] .logo-text {
    background: linear-gradient(120deg, #0f172a 0%, #0066ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-theme="light"] .nav-link {
    color: var(--text-muted);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: var(--primary-color);
}

/* --- 4. Hero 区域 --- */
[data-theme="light"] .hero-title {
    color: var(--text-main);
}

[data-theme="light"] .hero-subtitle {
    color: var(--text-muted);
}

[data-theme="light"] .gradient-text {
    background: linear-gradient(120deg, #0066ff, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-theme="light"] .stat-num {
    color: var(--text-main);
}

[data-theme="light"] .stat-label {
    color: var(--text-muted);
}

[data-theme="light"] .hero-stats {
    border-top-color: var(--border-color);
}

/* --- 5. 功能卡片 --- */
[data-theme="light"] .feature-card {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: var(--card-shadow);
}

[data-theme="light"] .feature-card:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: var(--hover-shadow);
}

[data-theme="light"] .feature-card h3 {
    color: var(--text-main);
}

[data-theme="light"] .feature-card p {
    color: var(--text-muted);
}

/* 卡片内关键词颜色加深（亮色模式下需要更饱和） */
[data-theme="light"] .card-green p b {
    color: #059669;
    /* 更深的绿色 */
}

[data-theme="light"] .card-red p b {
    color: #dc2626;
    /* 更深的红色 */
}

[data-theme="light"] .card-blue p b {
    color: #2563eb;
    /* 更深的蓝色 */
}

/* --- 6. 解决方案卡片 --- */
[data-theme="light"] .solution-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="light"] .solution-card:hover {
    border-color: var(--primary-color);
}

[data-theme="light"] .solution-card h3 {
    color: var(--text-main);
}

[data-theme="light"] .solution-card p {
    color: var(--text-muted);
}

/* --- 7. 价格卡片 --- */
[data-theme="light"] .pricing-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="light"] .pricing-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

[data-theme="light"] .pricing-card h3 {
    color: var(--text-main);
}

[data-theme="light"] .price {
    color: var(--text-main);
}

[data-theme="light"] .price-currency,
[data-theme="light"] .price-period {
    color: var(--text-muted);
}

[data-theme="light"] .feature-list li {
    color: var(--text-color);
}

[data-theme="light"] .feature-list li.disabled {
    color: #94a3b8;
}

[data-theme="light"] .popular-badge {
    background: linear-gradient(135deg, #0066ff, #0052cc);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.3);
}

/* --- 8. 次级按钮 --- */
[data-theme="light"] .btn-secondary {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 102, 255, 0.05);
}

/* --- 9. 页脚 --- */
[data-theme="light"] .footer {
    background: #1e293b;
    /* 页脚保持深色风格 */
    color: #e2e8f0;
}

[data-theme="light"] .footer .footer-col h4 {
    color: #f1f5f9;
}

[data-theme="light"] .footer .footer-col p,
[data-theme="light"] .footer .footer-col a {
    color: #94a3b8;
}

[data-theme="light"] .footer .footer-col a:hover {
    color: #ffffff;
}

[data-theme="light"] .footer-bottom {
    /* background: #0f172a; */
    color: #64748b;
}

/* --- 10. 其他组件 --- */
[data-theme="light"] .section-title {
    color: var(--text-main);
}

[data-theme="light"] .section-desc {
    color: var(--text-muted);
}

[data-theme="light"] .faq-question {
    color: var(--text-color);
}

[data-theme="light"] .faq-answer {
    color: var(--text-muted);
}

/* 文档页面 */
[data-theme="light"] .docs-sidebar {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .docs-content {
    background: var(--card-bg);
}

/* 问答中心 */
[data-theme="light"] .question-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="light"] .question-title {
    color: var(--text-main);
}

/* 用户中心 */
[data-theme="light"] .user-sidebar {
    background: var(--bg-secondary);
}

[data-theme="light"] .user-content {
    /* background: var(--card-bg); */
}

/* --- 11. 问答筛选按钮 --- */
[data-theme="light"] .qa-filter-tabs {
    border-bottom-color: var(--border-color);
}

[data-theme="light"] .filter-tab {
    background: #ffffff;
    border-color: var(--border-color);
    color: var(--text-muted);
}

[data-theme="light"] .filter-tab:hover {
    background: rgba(0, 102, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="light"] .filter-tab.active {
    background: linear-gradient(135deg, #0066ff, #0052cc);
    border-color: transparent;
    color: #ffffff;
}

/* --- 12. 购买页功能对比表格 --- */
[data-theme="light"] .table-wrapper {
    background: #ffffff;
    border-color: var(--border-color);
    box-shadow: var(--card-shadow);
}

[data-theme="light"] .comparison-table {
    color: var(--text-color);
}

[data-theme="light"] .comparison-table th,
[data-theme="light"] .comparison-table td {
    border-bottom-color: var(--border-color);
}

[data-theme="light"] .comparison-table th {
    background: #f1f5f9;
    color: var(--text-main);
}

[data-theme="light"] .comparison-table td:first-child {
    color: var(--text-main);
}

[data-theme="light"] .comparison-table tr:hover {
    background: rgba(0, 102, 255, 0.03);
}

[data-theme="light"] .comparison-table .highlight {
    background: rgba(0, 102, 255, 0.05);
    border-left-color: rgba(0, 102, 255, 0.15);
    border-right-color: rgba(0, 102, 255, 0.15);
}

[data-theme="light"] .comparison-table th.highlight {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
}

[data-theme="light"] .comparison-table i.success {
    color: #059669;
    /* 更深的绿色 */
}

[data-theme="light"] .comparison-table i.muted {
    color: #cbd5e1;
    /* 更可见的禁用色 */
}

/* --- 13. 二维码购买弹窗 --- */
[data-theme="light"] .qr-modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .qr-modal {
    background: #ffffff;
    border-color: var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .qr-modal-header h3 {
    background: linear-gradient(120deg, #0066ff, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-theme="light"] .qr-modal-close {
    background: #f1f5f9;
    color: var(--text-muted);
}

[data-theme="light"] .qr-modal-close:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

[data-theme="light"] .qr-modal-content {
    background: #f8fafc;
    border-color: var(--border-color);
}

[data-theme="light"] .qr-label {
    color: var(--text-main);
}

[data-theme="light"] .qr-modal-footer p {
    color: var(--text-muted);
}

/* --- 14. 问答列表项 --- */
[data-theme="light"] .qa-item-compact {
    background: #ffffff;
    border-color: var(--border-color);
}

[data-theme="light"] .qa-link {
    color: var(--text-main);
}

[data-theme="light"] .qa-link:hover {
    color: var(--primary-color);
}

[data-theme="light"] .qa-info {
    color: var(--text-muted);
}

[data-theme="light"] .qa-badge.solved {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}


/* Footer Bottom Alignment Fix */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 0;
}


/* ==================== 登录/注册页面样式 ==================== */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.login-container {
    display: flex;
    width: 1000px;
    max-width: 100%;
    min-height: 600px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* 左侧品牌区 */
.login-brand {
    flex: 0 0 45%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(139, 92, 246, 0.05)),
        radial-gradient(circle at top left, var(--bg-color), var(--bg-secondary));
    border-right: 1px solid var(--glass-border);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.brand-content {
    position: relative;
    z-index: 1;
}

.login-brand .logo {
    margin-bottom: 40px;
}

.login-brand h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(120deg, #fff, #a5f3fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 50px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
    font-size: 1rem;
}

.feature-item i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 8px;
    color: var(--primary-color);
}

/* 右侧表单区 */
.login-form-panel {
    flex: 1;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
}

.form-wrapper {
    width: 100%;
    max-width: 380px;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-muted);
}

.form-header a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group label i {
    margin-right: 5px;
    width: 16px;
    text-align: center;
}

.input-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 102, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.social-login {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.social-login p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* 响应式适配 */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        width: 500px;
        min-height: auto;
    }

    .login-brand {
        padding: 40px;
        flex: 0 0 auto;
    }

    .login-brand h1 {
        font-size: 2rem;
    }

    .brand-desc {
        margin-bottom: 30px;
    }

    .login-form-panel {
        padding: 40px;
    }
}

@media (max-width: 500px) {
    .login-container {
        border-radius: 16px;
    }

    .login-form-panel {
        padding: 30px 20px;
    }
}

/* --- 亮色模式适配 (Login Specific) --- */
[data-theme="light"] .login-brand {
    /* 左侧品牌区在亮色模式下保持一定的深色感或使用高亮背景 */
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-right-color: var(--border-color);
}

[data-theme="light"] .login-brand h1 {
    background: linear-gradient(120deg, #0f172a 0%, #0066ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-theme="light"] .brand-desc {
    color: #475569;
}

[data-theme="light"] .feature-item {
    color: #334155;
}

[data-theme="light"] .feature-item i {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
}

[data-theme="light"] .login-form-panel {
    background: #ffffff;
}

[data-theme="light"] .input-control {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

[data-theme="light"] .input-control:focus {
    background: #ffffff;
    border-color: var(--primary-color);
}

[data-theme="light"] .info-row {
    border-bottom-color: var(--border-color);
}

/* --- Authorization Query Page Styles (Premium Redesign) --- */
.auth-section {
    padding: 100px 0;
    min-height: 80vh;
}

.auth-container {
    max-width: 900px;
    margin: 0 auto;
}

.auth-search-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    margin-bottom: 50px;
    text-align: center;
}

.auth-search-box .input-group {
    display: flex;
    max-width: 600px;
    margin: 0 auto 20px;
    gap: 15px;
}

.auth-input {
    flex: 1;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    color: var(--text-main);
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
}

.auth-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.auth-helper-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 15px;
}

/* Premium Certificate Styles */
.auth-result {
    margin-bottom: 50px;
    perspective: 1000px;
}

.auth-certificate {
    background: #fffdf5;
    /* Warm creamy paper */
    color: #1a1a1a;
    padding: 15px;
    position: relative;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.1),
        0 15px 40px rgba(0, 0, 0, 0.2);
    /* Deep shadow */
    border-radius: 4px;
    max-width: 860px;
    margin: 0 auto;
    /* Metallic Gold Border Gradient */
    background-image: linear-gradient(135deg, #c39738 0%, #ecdca8 25%, #deb761 50%, #ecdca8 75%, #c39738 100%);
    padding: 15px;
    /* Creates the outer border */
}

.cert-inner {
    background: #fffdf5 url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEgMWgydjJIMUMxeiIgZmlsbD0iI2Q0YzU4ZSIgZmlsbC1vcGFjaXR5PSIwLjA1Ii8+PC9zdmc+') repeat;
    /* Subtle texture */
    border: 5px solid #fff;
    /* White spacing */
    outline: 2px solid #c39738;
    /* Inner thin gold line */
    padding: 60px 80px;
    position: relative;
    box-shadow: inset 0 0 50px rgba(195, 151, 56, 0.1);
}

/* Corner Ornaments using CSS gradients */
.cert-inner::before,
.cert-inner::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px double #c39738;
}

.cert-inner::before {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
}

.cert-inner::after {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
}

.cert-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0d0b0;
    position: relative;
}

.cert-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 30%;
    right: 30%;
    height: 1px;
    background: #c39738;
}

.cert-header h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c2c2c;
    margin-bottom: 15px;
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    letter-spacing: 2px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.cert-header .en-title {
    font-size: 1.2rem;
    color: #8a7b5d;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

.cert-content {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.15rem;
    position: relative;
    z-index: 2;
}

.cert-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.cert-item .label {
    width: 140px;
    font-weight: 700;
    color: #555;
    text-align: right;
    margin-right: 25px;
    font-size: 1.1rem;
}

.cert-item .value {
    flex: 1;
    font-weight: 600;
    color: #111;
    padding-bottom: 5px;
    border-bottom: 1px dashed #d4c5a0;
    font-family: 'Noto Sans SC', sans-serif;
}

.cert-item .value.domain {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: #000;
}

/* Official Seal Style */
.cert-seal {
    position: absolute;
    bottom: 50px;
    right: 80px;
    transform: rotate(-15deg);
    z-index: 5;
    opacity: 0.9;
    mix-blend-mode: multiply;
}

.seal-inner {
    width: 160px;
    height: 160px;
    border: 5px solid #d02020;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #d02020;
    font-family: 'Songti SC', serif;
    font-weight: 900;
    font-size: 1.5rem;
    box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px #d02020;
    background: rgba(208, 32, 32, 0.05);
    /* Slight tint */
    text-align: center;
    line-height: 1.4;
}

.seal-inner span {
    display: block;
}

.cert-watermark {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) rotate(-10deg);
    font-size: 7rem;
    font-weight: 900;
    color: rgba(195, 151, 56, 0.07);
    text-transform: uppercase;
    font-family: 'Impact', fantasy;
    pointer-events: none;
    z-index: 1;
    letter-spacing: 5px;
    white-space: nowrap;
}

/* Warnings */
.auth-info-text {
    margin-top: 50px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.auth-info-text strong {
    color: #ef4444;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .cert-inner {
        padding: 30px 20px;
    }

    .cert-header h3 {
        font-size: 1.6rem;
    }

    .cert-header .en-title {
        font-size: 0.9rem;
    }

    .cert-seal {
        width: 100px;
        height: 100px;
        bottom: 20px;
        right: 20px;
    }

    .seal-inner {
        width: 100px;
        height: 100px;
        font-size: 0.9rem;
        border-width: 3px;
        box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #d02020;
    }

    .cert-item {
        flex-direction: column;
    }

    .cert-item .label {
        text-align: left;
        margin-bottom: 5px;
        width: 100%;
    }

    .cert-watermark {
        font-size: 3rem;
        bottom: 100px;
    }
}

/* --- Message Filter Buttons --- */
.message-filter {
    display: flex;
    gap: 4px;
    /* background-color: var(--bg-secondary); */
    padding: 20px 4px 0 4px;
    border-radius: 8px;
    /* border: 1px solid var(--border-color); */
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    background-color: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.2);
}

/* --- System Message Modal --- */
.system-msg-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.system-msg-modal.active {
    opacity: 1;
    visibility: visible;
}

.system-msg-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.system-msg-modal-content {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.system-msg-modal.active .system-msg-modal-content {
    transform: scale(1) translateY(0);
}

.system-msg-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 102, 255, 0.05);
}

.system-msg-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.system-msg-modal-header h3 i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.system-msg-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.system-msg-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    transform: rotate(90deg);
}

.system-msg-modal-body {
    padding: 28px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

.system-msg-modal-body h4 {
    margin: 0 0 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.6;
}

.system-msg-modal-body #modalMsgContent {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 滚动条美化 */
.system-msg-modal-body::-webkit-scrollbar {
    width: 6px;
}

.system-msg-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.system-msg-modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.system-msg-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

@media (max-width: 768px) {
    .system-msg-modal-content {
        max-width: 95%;
        max-height: 90vh;
    }

    .system-msg-modal-header {
        padding: 20px;
    }

    .system-msg-modal-header h3 {
        font-size: 1.1rem;
    }

    .system-msg-modal-body {
        padding: 20px;
        max-height: calc(90vh - 80px);
    }

    .system-msg-modal-body h4 {
        font-size: 1rem;
    }

    .system-msg-modal-body #modalMsgContent {
        font-size: 0.95rem;
    }
}