/* ========================================
   学习资料站主题 - 主样式表
   默认颜色通过CSS变量定义，
   后台「颜色设置」可覆盖这些变量。
   ======================================== */

:root {
    --lm-primary: #F5A623;
    --lm-primary-dark: #E8920D;
    --lm-secondary: #4A90D9;
    --lm-nav-bg: #F5A623;
    --lm-nav-text: #FFFFFF;
    --lm-link-hover: #F5A623;
    --lm-body-bg: #F5F7FA;
    --lm-card-bg: #FFFFFF;
    --lm-text-primary: #333333;
    --lm-text-secondary: #666666;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    background: #F5F7FA;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #F5A623;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ---------- Layout ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #F5A623, #FF7E29);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.site-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #F5A623;
    line-height: 1.2;
}

.site-logo .logo-sub {
    font-size: 10px;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---------- Navigation ---------- */
.main-nav {
    background: var(--lm-nav-bg, #F5A623);
    position: relative;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
}

.main-nav .nav-list > li {
    position: relative;
}

.main-nav .nav-list > li > a {
    display: block;
    padding: 0 20px;
    line-height: 44px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}

.main-nav .nav-list > li > a:hover,
.main-nav .nav-list > li.current-menu-item > a,
.main-nav .nav-list > li.current-cat > a,
.main-nav .nav-list > li.current-category-parent > a {
    background: rgba(0, 0, 0, 0.12);
    color: #FFFFFF;
}

/* Sub-menu dropdown */
.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 44px;
    left: 0;
    min-width: 160px;
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 6px 6px;
    z-index: 1001;
}

.main-nav .nav-list > li:hover .sub-menu {
    display: block;
}

.main-nav .sub-menu li a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #F5F5F5;
    transition: all 0.2s;
}

.main-nav .sub-menu li:last-child a {
    border-bottom: none;
}

.main-nav .sub-menu li a:hover {
    background: #FFF8EE;
    color: #F5A623;
    padding-left: 22px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--lm-primary, #F5A623);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* ---------- Hero Banner ---------- */
.hero-banner {
    background: linear-gradient(135deg, #E8F5E9 0%, #FFF8E1 50%, #E3F2FD 100%);
    padding: 50px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #F5A623;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(245, 166, 35, 0.15);
}

.hero-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* ---------- Search Bar ---------- */
.search-box {
    max-width: 640px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 30px;
    padding: 4px 4px 4px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-box .search-icon {
    color: #F5A623;
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}

.search-box input[type="search"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: transparent;
    line-height: 40px;
}

.search-box input[type="search"]::placeholder {
    color: #BBB;
}

.search-box button[type="submit"] {
    background: #4A90D9;
    color: #FFFFFF;
    border: none;
    padding: 0 28px;
    line-height: 38px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-box button[type="submit"]:hover {
    background: #3A7BC8;
}

/* ---------- Search Tags ---------- */
.search-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-tags span {
    color: #999;
    font-size: 13px;
}

.search-tags a {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    color: #666;
    font-size: 13px;
    transition: all 0.2s;
}

.search-tags a:hover {
    background: #F5A623;
    color: #fff;
}

/* ---------- Section Title ---------- */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.section-title h3,
.section-title h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-left: 14px;
}

.section-title h3::before,
.section-title h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #F5A623;
    border-radius: 2px;
}

.section-title h3 .icon,
.section-title h4 .icon {
    color: #F5A623;
}

.section-title .more-link {
    color: #999;
    font-size: 13px;
}

.section-title .more-link:hover {
    color: #F5A623;
}

/* ---------- Main Content Layout ---------- */
.main-content {
    display: flex;
    gap: 20px;
    padding: 20px 0 40px;
    align-items: flex-start;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Three-column layout for homepage */
.home-three-col {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.home-three-col .sidebar-left {
    width: 260px;
    flex-shrink: 0;
}

.home-three-col .content-area {
    flex: 1;
    min-width: 0;
}

.home-three-col .sidebar-right {
    width: 260px;
    flex-shrink: 0;
}

/* ---------- Sidebar Widgets ---------- */
.widget {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-title {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title .icon {
    color: #F5A623;
}

.widget-content {
    padding: 12px 18px;
}

/* Today Recommend Widget */
.recommend-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #F0F0F0;
}

.recommend-list li:last-child {
    border-bottom: none;
}

.recommend-list li a {
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.recommend-list li a::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #F5A623;
    border-radius: 50%;
    flex-shrink: 0;
}

.recommend-list li a:hover {
    color: #F5A623;
}

/* Hot Ranking Widget */
.hot-rank-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #F0F0F0;
}

.hot-rank-list li:last-child {
    border-bottom: none;
}

.hot-rank-list .rank-num {
    width: 22px;
    height: 22px;
    background: #DDD;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.hot-rank-list li:nth-child(1) .rank-num {
    background: #FF6B6B;
}

.hot-rank-list li:nth-child(2) .rank-num {
    background: #FF9F43;
}

.hot-rank-list li:nth-child(3) .rank-num {
    background: #FECA57;
}

.hot-rank-list li a {
    color: #333;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-rank-list li a:hover {
    color: #F5A623;
}

/* Category Nav Widget */
.cat-nav-list li {
    padding: 8px 0;
}

.cat-nav-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #333;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.cat-nav-list li a:hover {
    background: #FFF8EE;
    color: #F5A623;
}

.cat-nav-list li a .arrow {
    color: #CCC;
    font-size: 12px;
    transition: transform 0.2s;
}

.cat-nav-list li a:hover .arrow {
    transform: translateX(4px);
    color: #F5A623;
}

/* Search Widget */
.widget-search .search-box {
    margin: 0;
    padding: 0 16px 16px;
    box-shadow: none;
    border-radius: 0;
}

.widget-search .search-box input[type="search"] {
    line-height: 36px;
}

.widget-search .search-box button[type="submit"] {
    line-height: 34px;
    padding: 0 20px;
    font-size: 13px;
}

/* ---------- Category Sections (Home) ---------- */
.home-category-section {
    margin-bottom: 30px;
}

.category-tabs {
    display: flex;
    gap: 4px;
}

.category-tabs a {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}

.category-tabs a:hover,
.category-tabs a.active {
    background: #F5A623;
    color: #fff;
}

/* ---------- Article List ---------- */
.article-list {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.article-list li {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #F5F5F5;
    transition: background 0.2s;
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list li:hover {
    background: #FFFBF5;
}

.article-list .article-title {
    flex: 1;
    min-width: 0;
}

.article-list .article-title a {
    color: #333;
    font-size: 14px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-list .article-title a:hover {
    color: #F5A623;
}

.article-list .article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin-left: 16px;
}

.article-list .article-category {
    font-size: 12px;
    color: #F5A623;
    background: #FFF4E0;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.article-list .article-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* Article List with Image */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.article-card {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.article-card .card-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #F0F0F0;
}

.article-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .card-thumb img {
    transform: scale(1.05);
}

.article-card .card-body {
    padding: 14px;
}

.article-card .card-body h4 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-body h4 a {
    color: #333;
}

.article-card .card-body h4 a:hover {
    color: #F5A623;
}

.article-card .card-body .card-meta {
    font-size: 12px;
    color: #999;
}

/* ---------- Featured Slider ---------- */
.featured-slider {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 20px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/7;
    overflow: hidden;
}

.slider-wrapper .slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s;
}

.slider-wrapper .slide-item.active {
    opacity: 1;
}

.slider-wrapper .slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-wrapper .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: #fff;
}

.slider-wrapper .slide-caption h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.slider-wrapper .slide-caption h3 a {
    color: #fff;
}

.slider-wrapper .slide-caption p {
    font-size: 13px;
    opacity: 0.9;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #DDD;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots .dot.active {
    background: #F5A623;
    width: 20px;
    border-radius: 4px;
}

/* Slider nav arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s;
    border: none;
}

.slider-wrapper:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: #F5A623;
    color: #fff;
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: #999;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #F5A623;
}

.breadcrumb .sep {
    margin: 0 6px;
    color: #CCC;
}

/* ---------- Single Article ---------- */
.article-single {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 30px;
    margin-bottom: 20px;
}

.article-single .article-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #F0F0F0;
    padding-bottom: 16px;
}

.article-single .article-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
    text-align: center;
}

.article-single .article-info {
    text-align: center;
    font-size: 13px;
    color: #999;
}

.article-single .article-info span {
    margin: 0 12px;
}

.article-single .article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-single .article-body p {
    margin-bottom: 16px;
    text-indent: 2em;
}

.article-single .article-body h2,
.article-single .article-body h3,
.article-single .article-body h4 {
    margin: 24px 0 12px;
    font-weight: 600;
    color: #222;
}

.article-single .article-body h2 {
    font-size: 20px;
}

.article-single .article-body h3 {
    font-size: 18px;
}

.article-single .article-body h4 {
    font-size: 16px;
}

/* ---------- Related Articles ---------- */
.related-articles {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 20px;
    margin-bottom: 20px;
}

.related-articles .section-title {
    padding: 0 0 14px;
    margin-bottom: 14px;
    background: none;
    box-shadow: none;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 30px 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #E8E8E8;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #F5A623;
    color: #fff;
    border-color: #F5A623;
}

.pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* ---------- Page Content ---------- */
.page-content {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 30px;
    margin-bottom: 20px;
}

.page-content h1 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F0F0;
}

.page-content .entry-content {
    font-size: 15px;
    line-height: 1.8;
}

.page-content .entry-content p {
    margin-bottom: 16px;
}

/* ---------- 404 Page ---------- */
.error-404 {
    text-align: center;
    padding: 80px 20px;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.error-404 h1 {
    font-size: 120px;
    font-weight: 700;
    color: #F5A623;
    line-height: 1;
    margin-bottom: 16px;
}

.error-404 h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
}

.error-404 p {
    color: #999;
    margin-bottom: 24px;
}

.error-404 .btn-home {
    display: inline-block;
    padding: 10px 32px;
    background: #F5A623;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    transition: background 0.2s;
}

.error-404 .btn-home:hover {
    background: #E8920D;
    color: #fff;
}

/* ---------- Search Results ---------- */
.search-results-header {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 16px 20px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #666;
}

.search-results-header strong {
    color: #F5A623;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #FFFFFF;
    border-top: 1px solid #E8E8E8;
    padding: 30px 0;
    margin-top: 20px;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.footer-nav h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.footer-nav ul li {
    margin-bottom: 6px;
}

.footer-nav ul li a {
    font-size: 13px;
    color: #666;
}

.footer-nav ul li a:hover {
    color: #F5A623;
}

.footer-info {
    font-size: 13px;
    color: #999;
    line-height: 1.8;
}

.footer-info a {
    color: #999;
}

.footer-info a:hover {
    color: #F5A623;
}

.footer-bottom {
    text-align: center;
    padding: 16px 0;
    font-size: 12px;
    color: #BBB;
    border-top: 1px solid #F5F5F5;
    margin-top: 20px;
}

/* ---------- Tags ---------- */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list a {
    display: inline-block;
    padding: 4px 12px;
    background: #F5F5F5;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}

.tag-list a:hover {
    background: #F5A623;
    color: #fff;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #F5A623;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
    border: none;
}

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

.back-to-top:hover {
    background: #E8920D;
    transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .home-three-col {
        flex-direction: column;
    }

    .home-three-col .sidebar-left,
    .home-three-col .sidebar-right {
        width: 100%;
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }

    .header-top {
        padding: 10px 0;
    }

    .site-logo .logo-text {
        font-size: 18px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav .nav-list {
        display: none;
        flex-direction: column;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1001;
    }

    .main-nav .nav-list.open {
        display: flex;
    }

    .main-nav .nav-list > li {
        width: 100%;
    }

    .main-nav .nav-list > li > a {
        padding: 0 20px;
        line-height: 48px;
        color: #333;
        border-bottom: 1px solid #F5F5F5;
    }

    .main-nav .nav-list > li > a:hover,
    .main-nav .nav-list > li.current-menu-item > a {
        background: #FFF8EE;
        color: #F5A623;
    }

    .main-nav .sub-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        display: block;
        padding-left: 20px;
    }

    .main-nav .sub-menu li a {
        padding: 8px 18px;
        font-size: 13px;
    }

    .hero-banner {
        padding: 30px 0 24px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .search-box {
        padding: 3px 3px 3px 14px;
    }

    .search-box input[type="search"] {
        line-height: 36px;
        font-size: 13px;
    }

    .search-box button[type="submit"] {
        padding: 0 18px;
        line-height: 34px;
        font-size: 13px;
    }

    .main-content {
        flex-direction: column;
        gap: 16px;
    }

    .sidebar {
        width: 100%;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-single {
        padding: 20px 16px;
    }

    .article-single .article-header h1 {
        font-size: 20px;
    }

    .article-single .article-body {
        font-size: 15px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }

    .pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .section-title h3,
    .section-title h4 {
        font-size: 15px;
    }

    .error-404 h1 {
        font-size: 80px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 20px;
    }

    .search-box button[type="submit"] {
        padding: 0 14px;
    }

    .article-list .article-meta {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
        margin-left: 10px;
    }

    .slider-wrapper .slide-caption h3 {
        font-size: 16px;
    }
}
