/* 
 * AllValue Glassmorphism Design System
 * Core Philosophy: Connectivity, Intelligence (AI), Premium Trust
 */

:root {
    /* Color Palette - Warm & Premium */
    --bg-warm: #fdfbf7;
    --bg-gradient: linear-gradient(135deg, #fdfbf7 0%, #f5f7fa 100%);

    /* Text Colors */
    --text-main: #2d3436;
    --text-secondary: #636e72;
    --text-light: #ffffff;

    /* Brand Colors */
    --primary-blue: #2654ff;
    --primary-blue-hover: #1a45e6;
    --accent-cyan: #00d2d3;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-blur: blur(16px);

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Article Specific */
    --white: #ffffff;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    background: var(--bg-warm);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Ambient Background Animation */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatOrb 20s infinite ease-in-out;
}

.orb-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(224, 231, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    top: -20%;
    left: -10%;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255, 240, 230, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(227, 242, 253, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.text-gradient {
    background: linear-gradient(135deg, #2654ff 0%, #00d2d3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(38, 84, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(38, 84, 255, 0.35);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary-blue);
    border: 1px solid rgba(38, 84, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(38, 84, 255, 0.05);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-pulse {
    animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 8px 20px rgba(38, 84, 255, 0.25);
    }

    50% {
        box-shadow: 0 8px 30px rgba(38, 84, 255, 0.45);
    }

    100% {
        box-shadow: 0 8px 20px rgba(38, 84, 255, 0.25);
    }
}

/* Header */
.site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    height: 72px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    height: 32px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Hero Input Group */
.hero-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.6);
    padding: 6px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    max-width: 480px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-input-group:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(38, 84, 255, 0.1);
    border-color: rgba(38, 84, 255, 0.3);
}

.hero-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 24px;
    font-size: 16px;
    outline: none;
    color: var(--text-main);
}

.hero-input::placeholder {
    color: #a0a0a0;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.hero-card-visual {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-visual:hover .hero-card-visual {
    transform: rotateY(0) rotateX(0);
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 50px rgba(38, 84, 255, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e0e7ff 0%, #ffffff 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 28px;
    box-shadow: 0 8px 16px rgba(38, 84, 255, 0.08);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Stats Section */
.stats-section {
    margin: 60px auto;
    max-width: 1200px;
    border-radius: 32px;
    background: rgba(43, 50, 67, 0.95);
    backdrop-filter: blur(20px);
    padding: 80px 40px;
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.stats-bg-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(38, 84, 255, 0.15) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
    margin-top: 50px;
}

.stat-item h4 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item h4 span {
    font-size: 24px;
    margin-left: 4px;
    -webkit-text-fill-color: #fff;
}

.stat-item p {
    font-size: 14px;
    opacity: 0.8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.cta-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 244, 255, 0.9) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 60px rgba(38, 84, 255, 0.08);
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Footer */
.site-footer {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding: 80px 0 30px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-info p {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-col h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-col ul li a:hover {
    color: var(--primary-blue);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    font-size: 13px;
    color: #999;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 60px;
        padding-right: 0;
        max-width: 100%;
    }

    .hero-input-group {
        margin: 0 auto 30px;
    }

    .hero-visual {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0 20px;
        width: 95%;
        top: 10px;
    }

    .nav-links {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Article Page Styles
   ========================================= */

.article-page-container {
    padding-top: 120px;
    padding-bottom: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 40px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--primary-blue);
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumbs .current {
    color: var(--text-main);
    font-weight: 500;
}

/* Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 80px 1fr;
    /* Sidebar width + Content */
    gap: 60px;
    position: relative;
}

/* Sidebar */
.article-sidebar {
    position: relative;
}

.sticky-wrapper {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Share Actions */
.share-actions {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-radius: 40px;
}

.share-label {
    font-size: 12px;
    color: var(--text-secondary);
    writing-mode: vertical-rl;
    letter-spacing: 2px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.share-btn:hover {
    background: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.douyin-share:hover {
    color: #000;
    /* Douyin Black */
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wechat-share:hover {
    color: #07c160;
}

/* TOC */
.toc-container {
    display: none;
    /* Hidden on small screens or by default if empty */
    padding: 24px;
    width: 240px;
    position: absolute;
    left: 100px;
    /* Offset from share bar */
    top: 0;
}

/* Article Content */
.article-content {
    padding: 60px 80px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-meta {
    display: flex;
    gap: 16px;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.article-meta .tag {
    color: var(--primary-blue);
    font-weight: 600;
    background: rgba(38, 84, 255, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
}

.article-title {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 32px;
    font-family: 'Noto Sans SC', sans-serif;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.author-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.author-text {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.author-text .name {
    font-weight: 700;
    font-size: 15px;
}

.author-text .role {
    font-size: 12px;
    color: var(--text-secondary);
}

.article-cover {
    margin: 0 -40px 40px;
    /* Break out of padding slightly */
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.article-body {
    font-family: 'Merriweather', 'Noto Sans SC', serif;
    /* Serif for better reading experience */
    font-size: 18px;
    line-height: 1.9;
    color: #2c3e50;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    font-size: 28px;
    margin-top: 48px;
    margin-bottom: 24px;
    position: relative;
    padding-left: 16px;
}

.article-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-cyan);
    padding: 16px 24px;
    background: rgba(0, 210, 211, 0.05);
    margin: 32px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.article-body ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 24px;
}

.article-body li {
    margin-bottom: 12px;
}

.feature-box {
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.feature-box h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.feature-box p {
    margin-bottom: 0;
    font-size: 16px;
}

.article-cta {
    margin-top: 60px;
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: 40px;
    width: 400px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.douyin-icon-large {
    color: #000;
}

.qr-placeholder {
    margin: 24px 0;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 12px;
    display: inline-block;
}

.modal-footer-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.copy-link-box {
    display: flex;
    gap: 8px;
}

.copy-link-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f9f9f9;
    color: #666;
    font-size: 13px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Responsive Article */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        display: none;
        /* Hide sidebar on smaller screens for simplicity, or move to bottom */
    }

    .article-content {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .article-page-container {
        padding-top: 100px;
    }

    .article-title {
        font-size: 32px;
    }
}

.article-body {
    font-family: 'Merriweather', 'Noto Sans SC', serif;
    /* Serif for better reading experience */
    font-size: 18px;
    line-height: 1.9;
    color: #2c3e50;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    font-size: 28px;
    margin-top: 48px;
    margin-bottom: 24px;
    position: relative;
    padding-left: 16px;
}

.article-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-cyan);
    padding: 16px 24px;
    background: rgba(0, 210, 211, 0.05);
    margin: 32px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.article-body ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 24px;
}

.article-body li {
    margin-bottom: 12px;
}

.feature-box {
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.feature-box h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.feature-box p {
    margin-bottom: 0;
    font-size: 16px;
}

.article-cta {
    margin-top: 60px;
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: 40px;
    width: 400px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.douyin-icon-large {
    color: #000;
}

.qr-placeholder {
    margin: 24px 0;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 12px;
    display: inline-block;
}

.modal-footer-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.copy-link-box {
    display: flex;
    gap: 8px;
}

.copy-link-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f9f9f9;
    color: #666;
    font-size: 13px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Responsive Article */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        display: none;
        /* Hide sidebar on smaller screens for simplicity, or move to bottom */
    }

    .article-content {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .article-page-container {
        padding-top: 100px;
    }

    .article-title {
        font-size: 32px;
    }

    .article-content {
        padding: 24px;
    }

    .article-cover {
        margin: 0 -24px 24px;
        border-radius: 0;
    }
}

/* =========================================
   Blog List Page Styles
   ========================================= */

/* Blog Hero */
.blog-hero {
    padding: 160px 0 60px;
    text-align: center;
}

.blog-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Bar */
.filter-bar-container {
    margin-bottom: 60px;
    position: sticky;
    top: 100px;
    /* Below header */
    z-index: 900;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border-radius: 50px;
    max-width: fit-content;
    margin: 0 auto;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: var(--primary-blue);
    background: rgba(38, 84, 255, 0.05);
}

.filter-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(38, 84, 255, 0.2);
}

/* Article Grid */
.blog-list-section {
    padding-bottom: 100px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 0;
    /* Override default card padding */
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-thumb {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}

.category-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-blue);
    z-index: 2;
}

.blog-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-main);
    transition: color 0.3s;
}

.blog-card:hover .blog-card-title {
    color: var(--primary-blue);
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-more .arrow {
    transition: transform 0.3s;
}

.blog-card:hover .read-more .arrow {
    transform: translateX(4px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.page-btn:hover:not(.disabled) {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(38, 84, 255, 0.2);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* Responsive Blog */
@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 0 40px;
    }

    .blog-title {
        font-size: 36px;
    }

    .filter-bar-container {
        overflow-x: auto;
        padding-bottom: 10px;
        /* Hide scrollbar visual if needed */
        margin: 0 -24px 40px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .filter-bar {
        width: max-content;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }
}