/* ===== FONT FACE ===== */
@font-face {
    font-family: 'Rubik';
    src: url('/blog/Rubik-VariableFont_wght.ttf') format('truetype-variations'),
         url('/blog/Rubik-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
main{
    padding-top: 80px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    color: #4785ff;
    text-decoration: none;
    transition: all 0.3s ease;
}


hr {
    border-top: 1px solid #e5e5e5;
    border-bottom: none;
}

/* ===== HEADER & NAVIGATION ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: #ffffff;
    z-index: 50;
}

/* Scroll offset for fixed header */
html {
    scroll-padding-top: 100px; /* Header height (80px) + extra spacing (20px) */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}


/* Logo Styles */
.nav-logo .logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.nav-logo .logo-link:hover {
    transform: scale(1.02);
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}


/* color: #000;
text-align: center;
font-family: Rubik;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 22px; 
letter-spacing: 0.8px; */

.nav-link {
    display: block;
    padding: 11px 12px;
    border-radius: 14px;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 22px;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
    cursor: pointer;
    color: #000;
    text-align: center;
}

.nav-link-active {
    color: #010101;
    font-weight: 700;
    /* border: 2px solid #fbeec7; */
    background-color: rgba(251, 191, 36, 0.24);
}

.nav-link-inactive {
    color: #000000;
    opacity: 0.5;
    /* border: 2px solid transparent; */
    background-color: transparent;
}

.nav-link-inactive:hover {
    color: #000;
    background-color: rgba(251, 191, 36, 0.24);
    opacity: 0.5;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.language-trigger {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border-radius: 12px;
    background: transparent;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.language-trigger:hover {
    background-color: rgba(244, 231, 191, 0.24);
}

.language-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.lang-text {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    white-space: nowrap;
}

/* Language Dropdown Menu - Hidden by default */
.language-dropdown-menu {
    position: absolute;
    top: 121%;
    left: -30px;
    min-width: 160px;
    background: white;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    max-height: 230px;
    overflow-y: auto;
}

/* Show menu on hover */
.language-switcher:hover .language-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #000;
    text-decoration: none;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.language-dropdown-item:hover {
    background-color: rgba(71, 133, 255, 0.1);
    color: #4785FF;
}

.language-dropdown-item-active {
    color: #4785FF;
    font-weight: 500;
}

/* Navigation Dropdown */
.nav-item-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: 121%;
    left: -48px;
    min-width: 180px;
    background: white;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

/* Show nav dropdown on hover */
.nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #000;
    text-decoration: none;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-item:hover {
    background-color: rgba(71, 133, 255, 0.1);
    color: #4785FF;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    align-items: center;
    gap: 10px;
}

.mobile-search-btn,
.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mobile-search-btn:hover,
.mobile-menu-toggle:hover {
    background-color: #f3f4f6;
}

.hamburger-icon {
    width: 24px;
    height: 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 50;
    padding: 20px;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s ease;
    transform-origin: top right;
}

.mobile-menu-overlay.mobile-menu-open {
    transform: scale(1);
    opacity: 1;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.mobile-menu-title {
    color: #4785FF;
    font-size: 26px;
    font-weight: 600;
    margin: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #374151;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}


.mobile-menu-close:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.mobile-close-icon {
    width: 24px;
    height: 24px;
}

.mobile-menu-divider {
    height: 1px;
    background: #EBEBEB;
    margin: 0;
}

.mobile-menu-items {
    margin-top: 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    color: #1f2937;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Rubik', sans-serif;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.mobile-menu-item:hover {
    background-color: #f3f4f6;
}

.mobile-menu-dropdown {
    cursor: pointer;
}

.mobile-menu-dropdown-arrow {
    transition: transform 0.3s ease;
}

.mobile-menu-dropdown-items {
    max-height: 0;
    overflow: hidden;
    background-color: #f8fafc;
    transition: max-height 0.3s ease, padding 0.3s ease;
    margin: 0 -30px;
}

.mobile-menu-dropdown-items.mobile-dropdown-open {
    max-height: 300px;
    padding: 8px 0;
}

.mobile-menu-sub-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 30px 14px 60px;
    font-size: 15px;
    font-weight: 400;
    color: #64748b;
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
}

.mobile-menu-sub-item:hover {
    background-color: rgba(244, 231, 191, 0.15);
}

.mobile-menu-sub-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 0 30px 0 60px;
}

.mobile-menu-arrow {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.mobile-menu-arrow-small {
    width: 14px;
    height: 14px;
}

.mobile-lang-section {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 30px;
    border: 1px solid #E5E5E5;
    border-radius: 40px;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mobile-lang-btn span {
    font-size: 16px;
    color: #1f2937;
    font-weight: 400;
    font-family: 'Rubik', sans-serif;
}

.mobile-lang-btn:hover {
    background-color: rgba(244, 231, 191, 0.24);
}

.mobile-lang-btn span {
    font-size: 16px;
    color: #1e293b;
}



/* ===== HERO SECTION ===== */
.hero-section {
    display: flex;
    justify-content: center;
    padding: 2rem 2rem;
}

.hero-banner {
    width: 1272px;
    height: 360px;
    background-image: url('/images/Banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.free-banner{
    display: block;
    width: 1320px;
    height: 360px;
    background-image: url('/images/banner-free.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.free-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}



/* ===== MAIN CONTENT ===== */
.main-container {
    width: 100%;
    max-width: 1320px;
    padding-top: 80px;
    margin: 0 auto;
    padding: 2rem;
}
.full-container{
    width: 100%;
    width: 1320px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #666;
}

.breadcrumb-active {
    color: #333;
    font-weight: 500;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    align-items: start;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

/* ===== BLOG CARDS ===== */
.blog-card {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border-radius: 0.75rem;
    /* padding: 1.25rem; */
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.blog-card:hover {
    border-color: #e2e8f0;
    background: #fafbfc;
}

.blog-image {
    flex-shrink: 0;
    width: 240px;
    height: 130px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f8fafc;
}

.blog-image img {
    width: 100%;
    /* height: 100%; */
    /* object-fit: cover; */
    aspect-ratio: 348 / 188;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-radius: 0.75rem;
}

.placeholder-image.faq-image {
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
}

.placeholder-image.education-image {
    background: linear-gradient(135deg, #dbeafe, #3b82f6);
}

.placeholder-image.story-image {
    background: linear-gradient(135deg, #e0e7ff, #8b5cf6);
}

.placeholder-image.default-image {
    background: linear-gradient(135deg, #d1fae5, #10b981);
}

/* Video posts get special styling */
.placeholder-image span {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.blog-content {
    flex: 1;
}

.blog-title {
    margin-bottom: 0.75rem;
}

.blog-title a {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.blog-title a:hover {
    color: #2d7a5a;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #808080;
}
.blog-author{
    color: #313c45;
    font-size: 16px;
    font-weight: 500;
    
}
/* 最多显示三行文本，多于三行文本显示... */
.blog-summary {
    color: #808080;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more {
    color: #4785ff;
    font-weight: 500;
    font-size: 0.875rem;
}


/* ===== SIDEBAR ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    
    border: 1px solid #e5e5e5;
}

.widget-title {
    font-size: 20px;
    font-weight: 400;
    color: #313c45;
   
}
.recent-posts-widget .widget-title{
    background: #f7f7f7;
    padding: 16px 20px;
    border-radius: 16px 16px 0 0;
    margin-bottom: 0px;
    border-bottom: 1px solid #e5e5e5;
}

/* Author Widget */
.author-widget {
    text-align: left;
}

.author-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: #F4F4F4;
    /* border-radius: 50%; */
    overflow: hidden;
    /* border: 2px solid #e5e5e5; */
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border-radius: 50%; */
}

.avatar-svg {
    width: 52px;
    height: 52px;
    display: block;
    margin: 10px auto;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.author-date {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}

.author-category {
    display: flex;
    align-items: flex-start;
    margin-top: 0.25rem;
}

.author-bio {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-more {
    color: #4785ff;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-more:hover {
    color: #3b82f6;
}



/* YouTube Widget Component */
.youtube-widget {
    background: #F3F6FD;
    border-radius: 16px;
    padding: 16px 20px;
    width: 100%;
    height: 92px;
    border: none;
}

.youtube-content {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    gap: 1rem;
}

.youtube-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.giggle-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.youtube-text {
    font-size: 16px;
    font-weight: 400;
    color: #808080;
}

.youtube-subscribe {
    flex-shrink: 0;
    height: 24px;
}

.youtube-btn {
    display: flex;              /* 水平布局 */
    border-radius: 2px;         /* 圆角 */
    overflow: hidden;           /* 隐藏溢出 */
    border: 1px solid #E5E5E5;
}

.youtube-main {
    background: #FF0000;        /* YouTube红色 */
    color: white;
    flex: 1;                    /* 占据剩余空间 */
    display: flex;
    padding: 2px 8px;
    align-items: center;
    gap: 4px;
    
}

.youtube-subscriber-count {
    background: #E5E5E5;        /* 浅灰背景 */
    color: #737373;             /* 灰色文字 */
    text-align: center;
    background: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    padding: 0 8px;
 
}

.youtube-btn:hover {
    background: #E60000;
    transform: translateY(-1px);
}

.youtube-play-icon {
    width: 16px;
    height: 13px;
    flex-shrink: 0;
}

.youtube-btn-text {
    font-weight: 500;
    font-size: 0.875rem;
    color: white;
}



/* Universal Tag Component */
.tag-component {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #F7F7F7;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #808080;
}

.tag-component:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tag-component.tag-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

.tag-component.tag-default {
    padding: 3px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.tag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tag-icon svg {
    width: 16px;
    height: 16px;
}

.tag-name {
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-component.tag-default .tag-name {
    flex: 1;
    margin-right: auto;
}

.tag-count {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    background: #e2e8f0;
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    margin-left: 0.5rem;
}

.tag-views {
    font-size: 0.75rem;
    color: #64748b;
    margin-left: 0.25rem;
}

.tag-component.tag-active {
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    border-color: #f59e0b;
    color: #92400e;
}

.tag-component.tag-active .tag-name {
    color: #92400e;
}

/* Topics Widget */
.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Author Category Styles */
.author-category .tag-component {
    background: #F7F7F7;
    border-color: #e2e8f0;
    color: #808080;
}

.author-category .tag-name {
    color: #64748b;
}

/* Download Widget */
.download-widget {
    background: #F7F7F7;
    border-radius: 20px;
    border: 1px solid #e5e5e5;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.download-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.download-left {
    flex: 1;
    max-width: 280px;
}

.download-widget .widget-title {
    font-size: 16px;
    font-weight: 400;
    color: #313c45;
    margin-bottom: 20px;
    line-height: 1.3;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 186px;
    height: 48px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    color: inherit;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

.download-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.download-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.download-label {
    font-size: 10px;
    color: #808080;
    font-weight: 400;
    line-height: 1;
}

.download-store {
    font-size: 14px;
    color: #313c45;
    font-weight: 600;
    line-height: 1;
}

.download-mascot {
    position: absolute;
    z-index: 1;
    inset-block-end: -22px;   /* 相当于 bottom */
    inset-inline-end: -9px;   /* 相当于 right (LTR) / left (RTL) */
}
[dir="rtl"] .download-mascot {
    transform: scaleX(-1);
  }

.mascot-image {
    width: 100px;
    height: auto;
    display: block;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin: 3rem 0;
    padding: 0;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #6B7280;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-btn:hover:not(.pagination-disabled) {
    border-color: #3B82F6;
    color: #3B82F6;
    background: #F3F4F6;
}

.pagination-btn.pagination-disabled {
    color: #D1D5DB;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-number:hover:not(.pagination-current) {
    border-color: #E5E7EB;
    background: #F9FAFB;
    color: #374151;
}

.pagination-current {
    background: #3B82F6;
    color: #FFFFFF;
    border-color: #3B82F6;
    font-weight: 600;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #9CA3AF;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 640px) {
    .pagination {
        gap: 0.125rem;
    }
    
    .pagination-numbers {
        gap: 0.125rem;
    }
    
    .pagination-btn,
    .pagination-number {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .pagination-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* ===== FOOTER ===== */
.main-footer {
    background: white;
    border-top: 1px solid #E5E5E5;
    /* padding: 20px 0; */
    margin-top: 4rem;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    height: 117px;
    display: flex;
}

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

.footer-links {
    display: flex;
    color: #0a142f;
    opacity: 0.3;
    gap: 4px;
    align-items: center;
    font-size: 16px;
}

.footer-link {
    color: #0a142f;
    /* opacity: 0.3; */
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
    text-decoration: underline;
}

.footer-link:hover {
    color: #808080;
}

.footer-copyright {
    color: #B4B4B4;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

.footer-right{
    text-align: end;
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 20px;
    border: 1px solid #E5E5E5;
    transition: all 0.2s ease;
    text-decoration: none;
}



.social-link svg {
    width: auto;
    height: auto;
    transition: all 0.2s ease;
}



/* 特殊处理小红书圆形图标 - 移除额外边框 */
.social-link.xiaohongshu-link {
    border: none;
    border-radius: 0;
    width: 36px;
    height: 36px;
}

.social-link.xiaohongshu-link svg {
    width: 36px;
    height: 36px;
}



/* ===== ARTICLE PAGE ===== */

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb-link {
    color: #B4B4B4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #808080;
}

.breadcrumb-separator {
    color: #B4B4B4;
    font-size: 12px;
}

.breadcrumb-current {
    color: #313c45;
    font-weight: 500;
}

/* Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    align-items: start;
}


.article-main {
    background: white;
    /* border-radius: 16px; */
    overflow: hidden;
    /* border: 1px solid #E5E5E5; */
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px
}

/* Article Hero */
/* 长宽比是912 /501，然后宽度100%    */
.article-hero {
    width: 100%;
    aspect-ratio: 912 / 501;
    overflow: hidden;
    border-radius: 16px;
}

.article-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article Header */
.article-header {
    padding: 32px 32px 0 32px;
}

.article-title {
    font-size: 32px;
    font-weight: 600;
    color: #313c45;
    margin: 0 0 24px 0;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: start;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.article-meta-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-author {
    font-size: 16px;
    font-weight: 500;
    color: #313c45;
}

.article-date {
    font-size: 14px;
    color: #808080;
}
.recent-post-date-container{
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-meta-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Table of Contents (Desktop) */
.toc-desktop {
    padding: 24px 32px;

}


/* Article Content */
.article-content {
    padding: 32px;
    font-size: 16px;
    line-height: 1.7;
    color: #313c45;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #313c45;
    font-weight: 600;
    margin: 32px 0 16px 0;
    line-height: 1.3;
}

.article-content h1 {
    font-size: 28px;
}

.article-content h2 {
    font-size: 24px;
}

.article-content h3 {
    font-size: 20px;
}

.article-content p {
    margin: 0 0 16px 0;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    margin: 8px 0;
}

.article-content a {
    color: #4785ff;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

/* Recent Posts Widget */
.recent-posts-widget {
    background: #F7F7F7;
    border-radius: 16px;
    border: 1px solid #E5E5E5;
    padding: 0px;
    background: #fff;
    /* padding: 24px; */
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px
}

.recent-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.recent-post-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 8px;
}

.recent-placeholder-emoji {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.recent-post-content {
    flex: 1;
    min-width: 0;
    padding-bottom: 12px;
   
}
.recent-post-item:not(:last-child) .recent-post-content {
    border-bottom: 1px solid #e5e5e5;
}

.recent-post-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0;
    line-height: 1.3;
    margin-top: 10px;
}

.recent-post-title a {
    color: #313c45;
    text-decoration: none;
    transition: color 0.2s ease;
}

.recent-post-title a:hover {
    color: #4785ff;
}

.recent-post-date {
    font-size: 12px;
    color: #808080;
}

/* Tag Page Styles */
.tag-header {
    text-align: left;
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #E5E5E5;
}

.tag-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.tag-title-text {
    color: #1e293b;
}

.tag-description {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.tag-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tag-count {
    font-size: 0.875rem;
    color: #64748b;
    background: #F7F7F7;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
}

/* Blog Tags in Meta */
.blog-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.blog-tags .tag-component {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: #F7F7F7;
    border-radius: 16px;
    margin: 2rem 0;
}

.no-posts h3 {
    font-size: 1.5rem;
    color: #64748b;
    margin: 0 0 1rem 0;
}

.no-posts p {
    color: #64748b;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #4785ff;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.back-home:hover {
    background: #3b72d9;
}

/* Tags Grid */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tag-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #E5E5E5;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.tag-card:hover {
    border-color: #4785ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(71, 133, 255, 0.1);
}

.tag-card-info {
    margin-top: 1rem;
}

.tag-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.tag-card-count {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.75rem 0;
}

.tag-card-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.tag-card-link {
    display: inline-flex;
    align-items: center;
    color: #4785ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.tag-card-link:hover {
    color: #3b72d9;
}

/* No Tags Message */
.no-tags {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #F7F7F7;
    border-radius: 16px;
}

/* Learning Resources Page */
.learning-resources-page .page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.learning-resources-page .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.learning-resources-page .page-description {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Resource Sections */
.resource-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    /* padding-bottom: 1rem; */
    /* border-bottom: 1px solid #E5E5E5; */
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.view-all-btn {
    background: #fff;
    color: #a2abb7;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e5e5e5;
}


/* Resource Cards */
.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.resource-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s ease;
}

.resource-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.resource-card {
    background: white;
    border-radius: 12px;
    /* border: 1px solid #E5E5E5; */
    overflow: hidden;
    transition: all 0.2s ease;
}

.resource-card-link:hover .resource-card {
    border-color: #4785ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(71, 133, 255, 0.1);
}

.resource-image {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-image .placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.resource-image .music-image {
    background: linear-gradient(135deg, #FFE5E5 0%, #FFB3B3 100%);
}

.resource-image .grammar-image {
    background: linear-gradient(135deg, #E5F3FF 0%, #B3D9FF 100%);
}

.resource-image .story-image {
    background: linear-gradient(135deg, #E5FFE5 0%, #B3FFB3 100%);
}

.resource-image .coloring-image {
    background: linear-gradient(135deg, #FFF5E5 0%, #FFE5B3 100%);
}

.resource-image .flashcard-image {
    background: linear-gradient(135deg, #F5E5FF 0%, #E5B3FF 100%);
}

.resource-content {
    padding: 1rem;
}

.resource-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.resource-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.resource-title a:hover {
    color: #4785ff;
}

.resource-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resource-date {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}
/* PC端隐藏移动端View All按钮 */
.pc-hide{
    display: none;
}

/* PC端View All在section-header中的样式 */
.section-header .view-all-container {
    display: flex;
    align-items: center;
}

.section-header .view-all-btn {
    background: #fff;
    color: #a2abb7;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e5e5e5;
    white-space: nowrap;
}


.resource-tag {
    align-self: flex-start;
}

.resource-tag .tag-component {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

/* Mobile Responsive Design */
@media (max-width: 480px) {
    .logo-image{
        height: 39px;
    }
    /* Learning Resources Page Mobile */
    .learning-resources-page {
        padding: 0;
    }
    
    .full-container {
        width: 100%;
        padding: 0 16px;
        margin: 0;
    }
    .nav-list{
        display: none;
    }
    .footer-right{
        text-align: center;
    }
    

    
    /* Hero Section Mobile */
    .hero-section {
        margin-bottom: 24px;
    }
    
    .free-banner {
        width: 100%;
        max-width: 100%;
        height: 200px;
        margin: 0;
    }
    .mobile-hide{
        display: none!important;
    }
    
    .pc-hide{
        display: block!important;
    }
    
    /* Resources Grid Mobile */
    .resources-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
    
    /* Resource Section Mobile */
    .resource-section {
        margin-bottom: 0;
    }
    
    .section-header {
        margin-bottom: 16px;
        padding: 0;
    }
    
    .section-title {
        font-size: 20px;
        font-weight: 700;
        margin: 0;
        color: #1e293b;
    }
    
    /* Resource Cards Mobile - Show only first 3 */
    .resource-cards {
        display: block
    }
    
    .resource-card:nth-child(n+4) {
        display: none;
    }
    
    .resource-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.2s ease;
        border: none;
    }
    
    .resource-card-link:hover .resource-card {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(71, 133, 255, 0.1);
    }
    
    .resource-image {
        width: 100%;
        height: 187px;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
    }
    .main-footer{
        border-top: none;
    }
    
    .resource-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .resource-image .placeholder-image {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.5rem;
        border-radius: 12px;
    }
    
    .resource-content {
        padding: 12px;
    }
    
    .resource-title {
        font-size: 16px;
        font-weight: 600;
        margin: 0 0 8px 0;
        line-height: 1.3;
    }
    
    .resource-title a {
        color: #1e293b;
        text-decoration: none;
        transition: color 0.2s ease;
    }
    
    .resource-title a:hover {
        color: #4785ff;
    }
    
    .resource-meta {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .resource-date {
        font-size: 12px;
        color: #64748b;
        margin: 0;
    }
    
    /* View All Container */
    .view-all-container {
        display: flex;
        justify-content: center;
        margin-top: 16px;
    }
    
    .view-all-btn {
        background: transparent;
        color: #9CA3AF;
        padding: 12px 24px;
        border-radius: 24px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        border: 1px solid #E5E7EB;
        transition: all 0.2s ease;
        width: 100%;
        text-align: center;
        display: inline-block;
    }
    
}

/* Table of Contents Widget */
.toc-widget {
    background: #F7F7F7;
    border-radius: 16px;
    border: 1px solid #E5E5E5;
    padding: 24px;
}

.toc-content ul {
    list-style-type: disc;
    padding: 0;
    margin: 0;
    padding-left: 20px;
}

.toc-content ul li::marker {
    color: #4785ff;
}

.toc-content > ul {
    margin: 0;
}

.toc-item {
    margin: 8px 0;
}

.toc-link {
    color: #313c45;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.toc-link:hover {
    color: #4785ff;
}

.toc-content ul ul {
    margin-left: 20px;
    margin-top: 4px;
    list-style-type: disc;
}

.toc-content ul ul li::marker {
    color: #4785ff;
}

.toc-content ul ul .toc-link {
    font-size: 13px;
    color: #808080;
    padding: 3px 0;
}

.toc-content ul ul ul {
    list-style-type: square;
}

.toc-content ul ul ul .toc-link {
    font-size: 12px;
    color: #999999;
}

/* Responsive Design for Article Page */


@media (max-width: 768px) {

    
    .article-sidebar {
        order: 2;
    }
    
    .toc-desktop {
        display: none;
    }
    
    .toc-sidebar {
        display: block;
    }
    
    .article-header {
        padding: 24px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-content {
        padding: 24px;
    }
    

    
    .recent-post-item {
        gap: 8px;
    }
    
    .recent-post-image {
        width: 50px;
        height: 50px;
    }
    
    .recent-placeholder-emoji {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
        gap: 6px;
        margin-bottom: 16px;
    }
    
    .article-hero {
        height: 200px;
    }
    
    .article-header {
        padding: 16px;
    }

    
    
    .article-title {
        font-size: 24px;
    }
    
    .article-content {
        padding: 16px;
        font-size: 15px;
    }
    
    
    .toc-widget {
        padding: 16px;
    }
    
    .recent-post-title {
        font-size: 13px;
    }
    
    .recent-post-date {
        font-size: 11px;
    }
}

/* ===== ANIMATIONS ===== */


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1120px) {
    /* .main-container {
        max-width: 95%;
        padding: 1.5rem;
    } */
}



@media (max-width: 1400px) {
    .hero-banner {
        width: 100%;
        max-width: 1272px;
        height: auto;
        aspect-ratio: 1320 / 360;
    }
    
    .free-banner {
        width: 100%;
        max-width: 1320px;
        height: auto;
        aspect-ratio: 1320 / 360;
    }
    
    .full-container {
        width: 95%;
        max-width: 1320px;
        padding: 0 20px;
    }
}

@media (max-width: 1200px) {
    .full-container {
        width: 96%;
        padding: 0 24px;
    }
    
    .free-banner {
        width: 96%;
    }
    
    .resource-cards {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 1024px) {
    .full-container {
        width: 98%;
        padding: 0 16px;
    }
    
    .free-banner {
        width: 98%;
    }
    
    .resource-cards {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}





/* 1280px-1440px: 调整边距 */
@media (max-width: 1440px) and (min-width: 1280px) {
    .header-container {
        padding: 0 24px;
    }
}

/* JavaScript控制的渐进式隐藏导航项 */
/* 导航项会通过JS动态隐藏，优先级从右到左：
1. More (下拉菜单) - 最先隐藏
2. Giggle Hero (大使页面) 
3. Blog (博客)
4. Learning Resources (学习资源)
5. Story Book (故事书)
6. Learning Program (学习项目) - 最后隐藏
7. Home (首页) - 永远保留
*/

/* 为JS控制添加隐藏类 */
.nav-item.js-hidden {
    display: none !important;
}

/* 小于768px (pad以下): 完全收起到移动菜单 */
@media (max-width: 768px) {
    .desktop-nav .nav-list {
        display: none;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .header-container {
        padding: 0 12px;
    }
}

/* 768px-1280px (pad端): 保留语言选择，显示汉堡菜单 */
@media (max-width: 1280px) and (min-width: 480px) {
    .header-container {
        padding: 0 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .desktop-nav {
        display: flex;
        align-items: center;
        margin-left: auto;
        margin-right: 0;
    }
    
    .desktop-nav .nav-list {
        display: flex;
    }
    
    .desktop-nav .language-switcher {
        display: flex;
    }
    
    .mobile-nav {
        display: flex;
        margin-left: 12px;
    }
}


@media (max-width: 900px) {
    .main-container {
        max-width: 100%;
        padding: 1rem;
    }
    
    .footer-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        padding: 1rem;
    }
    
    .hero-banner {
        width: 100%;
        border-radius: 12px;
    }
    
    .blog-card {
        flex-direction: column;
        gap: 1rem;
        /* padding: 1rem; */
        margin-bottom: 1rem;
    }
    
    .blog-image {
        width: 100%;
        height: auto;
        aspect-ratio: 348 / 188;

    }
    
    .placeholder-image {
        font-size: 2rem;
    }
    

    
    .footer-social {
        gap: 16px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        border-radius: 16px;
    }
    
    .social-link.xiaohongshu-link {
        width: 28px;
        height: 28px;
    }
    
    /* .social-link.xiaohongshu-link svg {
        width: 20px;
        height: 20px;
    } */
}

@media (max-width: 900px) {
    .article-layout {
        display: block;
    }
    
    
    .main-container {
        max-width: 100%;
        padding: 24px;
    }
    
    .footer-container {
        height: auto;
        padding: 12px;
    }

    .footer-content {
        margin-top: 16px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .hero-section {
        display: none;
        padding: 0.75rem;
    }
    .blog-grid{
        display: block;
    }
    
    .hero-banner {
        border-radius: 8px;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .author-header {
        gap: 0.75rem;
    }
    
    
    .youtube-widget {
        padding: 1rem;
    }
    
    .giggle-logo {
        width: 40px;
        height: 40px;
    }
    
    .youtube-text {
        font-size: 1rem;
    }
    

    
    .youtube-btn-text {
        font-size: 0.75rem;
    }
    
    .youtube-subscriber-count {
        font-size: 0.625rem;
        padding: 0.0625rem 0.25rem;
    }
    
    .download-widget {
        padding: 16px;
    }
    
    .download-left {
        max-width: 200px;
    }
    
    .download-widget .widget-title {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .download-buttons {
        gap: 8px;
    }
    
    .download-btn {
        padding: 6px 8px;
        gap: 8px;
    }
    
    .download-icon {
        width: 20px;
        height: 20px;
    }
    
    .download-label {
        font-size: 9px;
    }
    
    .download-store {
        font-size: 12px;
    }
    
    .mascot-image {
        width: 80px;
    }
    

    
    .footer-social {
        gap: 12px;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
        border-radius: 14px;
    }
    
    /* .social-link.xiaohongshu-link {
        width: 28px;
        height: 28px;
    }
    
    .social-link.xiaohongshu-link svg {
        width: 18px;
        height: 18px;
    } */
    
    .author-name {
        font-size: 1.1rem;
    }
    
    .tag-component.tag-default {
        padding: 0.5rem;
    }
    
    .tag-component.tag-small {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .tag-icon svg {
        width: 14px;
        height: 14px;
    }
    
     .nav-link {
         padding: 8px 6px;
     }
} 

/* ===== LANGUAGE MODAL STYLES ===== */
.language-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.language-modal-overlay.language-modal-open {
    opacity: 1;
    visibility: visible;
}

.language-modal {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.language-modal-overlay.language-modal-open .language-modal {
    transform: scale(1);
}

.language-modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px 0;
    flex-shrink: 0;
}

.language-modal-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.language-modal-close:hover {
    background-color: #f3f4f6;
}

.language-modal-content {
    padding: 20px 20px 30px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Custom scrollbar for language modal */
.language-modal-content::-webkit-scrollbar {
    width: 6px;
}

.language-modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.language-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.language-modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.language-option {
    background: none;
    border: none;
    padding: 16px 20px;
    text-align: left;
    font-size: 16px;
    color: #1f2937;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
}

.language-option:hover {
    background-color: #f3f4f6;
}

.language-option-active {
    color: #4785ff !important;
    font-weight: 500;
    background-color: #eff6ff;
}

.language-option-active:hover {
    background-color: #dbeafe;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .language-modal {
        margin: 20px 16px;
        max-width: none;
        width: calc(100% - 32px);
        max-height: calc(100vh - 40px);
    }
    
    .language-modal-overlay {
        align-items: flex-start;
        padding-top: 20px;
        justify-content: center;
    }
    
    .language-modal-content {
        padding: 16px 16px 24px;
    }
    
    .language-modal-header {
        padding: 12px 16px 0;
    }
    
    .mobile-menu-overlay {
        z-index: 55;
    }
}

/* ===== TABLE STYLES ===== */
/* 表格容器 */
.table-container {
    max-width: 576px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

/* 基础表格样式 */
table {
    width: 100%;
    display: block;
    overflow: scroll;
    border-collapse: collapse;
    background: white;
    font-family: 'Rubik', sans-serif;
}

/* 表头样式 */
thead {
    background-color: #F7F7F7;
}

thead th {
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
    padding: 16px 20px;
}

/* 表格行样式 */
tbody tr {
    background-color: #fff;
    border-bottom: 1px solid #F3F3F3;
}

/* 表格单元格 */
tbody td {
    padding: 16px 20px;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Mobile App Banner */
.mobile-app-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    height: 62px;
    padding: 0 20px;
    z-index: 10;
    align-items: center;
}

.app-banner-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.app-logo {
    display: flex;
    width: 44px;
    height: 44px;
    padding: 8px;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    border: 1px solid #EBEBEB;
    background: #FFF;
    flex-shrink: 0;
}

.app-text {
    flex-grow: 1;
    margin-left: 8px;
}

.app-text p {
    color: black;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.app-btn {
    background: #4785ff;
    color: white;
    border: none;
    border-radius: 14px;
    width: 88px;
    height: 44px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: inset 0px -4px 0px 0px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .mobile-app-banner {
        display: flex;
    }
    
    .homepage .main-container {
        padding-bottom: 70px;
    }
}

/* 文章内容图片响应式样式 */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    display: block;
}

/* 确保图片在文章内容中居中显示 */
.article-content p img {
    margin: 1rem auto;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .article-content img {
        margin: 0.8rem 0;
        border-radius: 6px;
    }
}

 