:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff4757;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.90);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 20px 40px rgba(37, 117, 252, 0.15);
    --card-border: 1px solid rgba(0, 0, 0, 0.03);
    --gradient-1: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    --gradient-2: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    --gradient-3: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
    --gradient-4: linear-gradient(120deg, #f093fb 0%, #f5576c 100%);
    --gradient-5: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
}

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

.top-left,
.top-right {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-left span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-right a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.top-right a:hover {
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    /* top: 39px; */
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.logo i {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text h1 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
}

.logo-text span {
    font-size: 0.75rem;
    color: #888;
    font-weight: 400;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 5px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 10px 18px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-links a i {
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
    background: rgba(37, 117, 252, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: white;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: scale(1.05);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 6px);
}

.hamburger.toggle span:nth-child(2) {
    opacity: 0;
}

.hamburger.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    padding-top: 119px;
    text-align: center;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -1px;
    font-weight: 800;
    background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.35rem;
    color: #555;
    margin-bottom: 40px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 14px 38px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(37, 117, 252, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(37, 117, 252, 0.4);
}

/* Hero Shapes Animation */
.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(80px);
    animation: float 12s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #a18cd1;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #fad0c4;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #84fab0;
    bottom: 10%;
    left: 10%;
    animation-delay: -2s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(40px, 60px) rotate(10deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.category-section {
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    font-weight: 700;
}

.section-header h2 small {
    font-size: 1.1rem;
    color: #888;
    font-weight: 300;
    margin-left: 15px;
}

.view-more {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(37, 117, 252, 0.05);
    transition: all 0.3s ease;
}

.view-more:hover {
    background: rgba(37, 117, 252, 0.1);
    transform: translateX(-3px);
}

.view-more i {
    transition: transform 0.3s ease;
}

.view-more:hover i {
    transform: translateX(4px);
}

/* Grid & Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Homepage grid - 4 columns */
main.container .grid-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.bottom-widgets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .bottom-widgets {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: var(--card-border);
    position: relative;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--hover-shadow);
}

.card-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0.6;
}

.card:hover .card-image i {
    transform: scale(1.15) rotate(5deg);
}

.card-image i {
    transition: transform 0.5s ease;
    z-index: 1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.card-content p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Placeholder Gradients */
.placeholder-gradient-1 {
    background: var(--gradient-1);
}

.placeholder-gradient-2 {
    background: var(--gradient-2);
}

.placeholder-gradient-3 {
    background: var(--gradient-3);
}

.placeholder-gradient-4 {
    background: var(--gradient-4);
}

.placeholder-gradient-5 {
    background: var(--gradient-5);
}

/* Footer */
footer {
    background: #1a1a2e;
    color: white;
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.footer-list a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--secondary-color);
    width: 20px;
}

.qrcode-box {
    margin-top: 20px;
}

.qrcode-placeholder {
    width: 120px;
    height: 120px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qrcode-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.qrcode-placeholder span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

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

.copyright {
    text-align: left;
}

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.copyright a {
    color: rgba(255, 255, 255, 0.7);
}

.copyright a:hover {
    color: white;
}

.disclaimer {
    font-size: 0.85rem !important;
}

.footer-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-tags a {
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.footer-tags a:hover {
    background: var(--secondary-color);
    color: white;
}

/* --- Inner Page Styles --- */

/* Sub Hero */
.sub-hero {
    height: 200px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 119px;
    position: relative;
    overflow: hidden;
}

.sub-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
    background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
    margin-bottom: 8px;
}

.sub-hero p {
    position: relative;
    z-index: 2;
    color: #666;
    font-size: 1rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: 25px 0;
    color: #888;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.breadcrumb a {
    color: var(--secondary-color);
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #ddd;
}

/* Inner Layout */
.inner-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

/* Sidebar */
.sidebar .widget {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: var(--card-border);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.sidebar-list li {
    margin-bottom: 15px;
    border-bottom: 1px dashed #f5f5f5;
    padding-bottom: 15px;
}

.sidebar-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-list a {
    color: #555;
    display: block;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.sidebar-list a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
}

.page-item {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #eee;
    color: #666;
    font-weight: 600;
    transition: all 0.3s;
    background: white;
}

.page-item:hover,
.page-item.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.25);
    transform: translateY(-2px);
}

/* Detail Page Content */
.detail-article {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: var(--card-border);
    margin-bottom: 30px;
}

.detail-article h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.4;
}

.detail-article .article-content {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.9;
    position: relative;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.article-content strong {
    color: #333;
    font-weight: 600;
}

.article-content blockquote {
    border-left: 4px solid var(--secondary-color);
    background: #f8f9fa;
    padding: 15px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

/* Expand Button */
/* Removed expand-btn styles */

/* Related Section */
.related-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: var(--card-border);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

.related-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 30px;
}

.related-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ... (previous CSS) ... */

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 2rem;
    color: var(--text-color);
    padding: 10px;
    outline: none;
    font-weight: 300;
}

.search-submit {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    transition: transform 0.3s;
}

.search-close:hover {
    transform: rotate(90deg);
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    main.container .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        gap: 0;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links a {
        padding: 15px 0;
        color: #333;
        font-size: 1.1rem;
        border-radius: 0;
        justify-content: flex-start;
    }
    
    .nav-links a:hover, .nav-links a.active {
        background: transparent;
        color: var(--secondary-color);
        padding-left: 10px;
    }

    .hamburger {
        display: flex;
    }

    .mobile-overlay.active {
        display: block;
        opacity: 1;
    }

    .hero {
        padding-top: 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .sub-hero {
        margin-top: 80px;
        height: 150px;
    }

    .sub-hero h1 {
        font-size: 1.8rem;
    }

    .grid-container,
    main.container .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .inner-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar {
        order: 2;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .card-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .grid-container,
    main.container .grid-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-header::after {
        width: 100%;
    }
    
    .view-more {
        align-self: flex-end;
    }
}

.related-list a {
    color: #555;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.related-list a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Sidebar adjustments for detail page */
.sidebar-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-list i {
    color: var(--secondary-color);
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .navbar {
        top: 0;
        height: 60px;
    }

    .hero {
        padding-top: 60px;
    }

    .sub-hero {
        margin-top: 60px;
        height: 250px;
    }

    .container {
        padding: 0 15px;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .logo-text span {
        display: none;
    }

    .logo i {
        font-size: 2rem;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 60px;
        height: calc(100vh - 60px);
        width: 280px;
        max-width: 80%;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 30px 20px;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f5f5f5;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 15px 10px;
        width: 100%;
        justify-content: flex-start;
        border-radius: 0;
    }

    .nav-links a i {
        font-size: 1rem;
        width: 25px;
    }

    .search-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header::after {
        width: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .copyright {
        text-align: center;
    }

    .footer-tags {
        justify-content: center;
    }

    .inner-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-content {
        padding: 25px;
    }

    .shape {
        opacity: 0.3;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

#back-to-top.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
/* Share Component */
.share-component {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    border: 2px dashed #eee;
}

.share-label {
    font-weight: bold;
    color: var(--text-color);
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-qzone { background: #ffc107; }
.share-copy { background: #666; }

/* Wechat QR Modal */
.wechat-qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.qr-content {
    background: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 4px solid var(--text-color);
}

.qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

.close-qr {
    cursor: pointer;
    font-size: 24px;
    color: #999;
    transition: color 0.2s;
}

.close-qr:hover { color: var(--primary-color); }

#qrcode img {
    margin: 0 auto;
    border: 10px solid white; /* padding for qr code */
}
