/* ==================== 浅色主题变量 ==================== */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    
    --bg-body: #f0f7ff;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-header: #ffffff;
    --bg-hover: #eff6ff;
    --bg-input: #f8fafc;
    
    --text-primary: #1e3a5f;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --border-color: #cbd5e1;
    --border-light: #e2e8f0;
    
    --shadow-sm: 0 1px 3px rgba(59, 130, 246, 0.08);
    --shadow-md: 0 4px 8px -2px rgba(59, 130, 246, 0.12);
    --shadow-lg: 0 12px 30px -8px rgba(59, 130, 246, 0.18);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
    
    --sidebar-width: 260px;
    --header-height: 60px;
    --content-max-width: 1200px;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

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

/* ==================== 头部导航 ==================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition-fast);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.logo-img {
    height: 42px;
    width: auto;
    border-radius: var(--radius-md);
}

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

.header-search {
    flex: 1;
    max-width: 480px;
    margin: 0 40px;
}

.search-form {
    display: flex;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-fast);
}

.search-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.search-form input {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 20px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.search-form input::placeholder {
    color: var(--text-muted);
}

.search-form button {
    background: none;
    border: none;
    padding: 10px 18px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-form button:hover {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-admin {
    padding: 8px 18px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-admin:hover {
    background: var(--primary-dark);
    color: white;
}

/* ==================== 侧边栏 ==================== */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 900;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h3 {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #d4d0f0;
    border-radius: var(--radius-full);
}

.menu-list {
    list-style: none;
}

.menu-item {
    margin: 2px 12px;
}

.menu-item > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.menu-item > a:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
}

.menu-item > a i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.menu-item.active > a {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 500;
}

.menu-item.has-children > a::after {
    content: '';
    margin-left: auto;
    border: solid var(--text-muted);
    border-width: 0 2px 2px 0;
    padding: 3px;
    transform: rotate(45deg);
    transition: var(--transition-fast);
}

.menu-item.has-children:hover > a::after {
    transform: rotate(-135deg);
    border-color: var(--primary-color);
}

.submenu {
    list-style: none;
    display: none;
    margin-top: 4px;
    padding-left: 20px;
}

.menu-item.has-children:hover > .submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 8px 16px;
    color: var(--text-muted);
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.submenu li a:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.sidebar-footer p {
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 899;
}

/* ==================== 主内容区 ==================== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    padding: 12px 20px;
    background: var(--bg-body);
}

.main-content {
    max-width: 100%;
    margin: 0 auto;
}

/* ==================== 首页横幅 ==================== */
.home-banner {
    position: relative;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    margin-bottom: 35px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.banner-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.home-banner .search-box {
    max-width: 560px;
    margin: 0 auto;
}

.home-banner .search-form {
    background: white;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.home-banner .search-form:focus-within {
    border-color: var(--primary-color);
}

.home-banner .search-form input {
    padding: 14px 24px;
    font-size: 15px;
}

.home-banner .search-form button {
    padding: 14px 28px;
}

#particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
}

/* ==================== 文章网格 ==================== */
.content-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.section-title i {
    color: var(--primary-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.article-image {
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

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

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image i {
    font-size: 40px;
    color: var(--primary-light);
    opacity: 0.5;
}

.article-content {
    padding: 18px;
}

.article-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.article-meta .category {
    color: var(--primary-color);
    font-weight: 500;
}

.article-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-content h3 a {
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.article-content h3 a:hover {
    color: var(--primary-color);
}

.article-content p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.article-footer .views {
    font-size: 12px;
    color: var(--text-muted);
}

.article-footer .views i {
    margin-right: 4px;
}

.read-more {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
}

/* ==================== 文章详情页 ==================== */
.article-page {
    max-width: 100%;
}

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

.article-main {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.article-header {
    padding: 28px;
    border-bottom: 1px solid var(--border-color);
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-meta i {
    margin-right: 5px;
}

.article-header h1 {
    font-size: 26px;
    margin-top: 14px;
    line-height: 1.4;
    color: var(--text-primary);
}

.article-cover {
    margin: 0 -28px 20px;
}
.article-cover img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 0;
}

.article-body {
    padding: 28px;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    margin-top: 28px;
    margin-bottom: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.article-body h1 { font-size: 26px; }
.article-body h2 { font-size: 22px; }
.article-body h3 { font-size: 19px; }
.article-body h4 { font-size: 17px; }

.article-body p {
    margin-bottom: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-body img {
    max-width: none;
    height: auto;
    border-radius: var(--radius-md);
    margin: 18px 0;
}

.article-body pre {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    overflow-x: auto;
    margin: 18px 0;
}

.article-body code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    background: var(--bg-body);
    padding: 2px 6px;
    border-radius: 4px;
}

.article-body pre code {
    background: none;
    padding: 0;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 14px 18px;
    margin: 18px 0;
    background: #eff6ff;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-secondary);
}

.article-body ul,
.article-body ol {
    margin: 18px 0;
    padding-left: 28px;
}

.article-body li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.article-body th,
.article-body td {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.article-body th {
    background: var(--bg-body);
    font-weight: 600;
    color: var(--text-primary);
}

.article-body video,
.article-body audio {
    width: 100%;
    margin: 18px 0;
    border-radius: var(--radius-md);
}

.article-footer {
    padding: 18px 28px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-buttons span {
    color: var(--text-muted);
    font-size: 14px;
}

.share-btn {
    padding: 7px 14px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition-fast);
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ==================== 文章侧边栏（目录） ==================== */
.article-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 30px);
    height: fit-content;
}

.article-toc {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-toc h4 {
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 16px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.article-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-toc li {
    margin-bottom: 4px;
}

.article-toc li.level-3 {
    padding-left: 18px;
}

.article-toc li.level-4 {
    padding-left: 36px;
}

.article-toc li.level-5,
.article-toc li.level-6 {
    padding-left: 54px;
}

.article-toc a {
    display: block;
    padding: 8px 12px;
    color: #334155;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    line-height: 1.5;
    text-decoration: none;
}

.article-toc a:hover {
    color: #6366f1;
    background: #f3f0ff;
    border-left-color: #6366f1;
}

.article-toc a.active {
    color: #6366f1;
    background: #f3f0ff;
    border-left-color: #6366f1;
    font-weight: 600;
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 20px;
}

.sidebar-widget h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.related-articles {
    list-style: none;
}

.related-articles li {
    margin-bottom: 12px;
}

.related-articles a {
    display: flex;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition-fast);
}

.related-articles a:hover {
    color: var(--primary-color);
}

.related-articles img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* ==================== 密码保护区域 ==================== */
.password-protected {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
}

.lock-icon {
    width: 72px;
    height: 72px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: var(--shadow-md);
}

.lock-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.password-protected h3 {
    margin-bottom: 18px;
    color: var(--text-primary);
}

.password-form {
    display: flex;
    gap: 10px;
    max-width: 380px;
    margin: 0 auto;
}

.password-form input {
    flex: 1;
    padding: 12px 18px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
}

.password-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.password-form button {
    padding: 12px 24px;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.password-form button:hover {
    background: var(--primary-dark);
}

.protected-content {
    border-top: 2px solid var(--primary-color);
    padding-top: 28px;
    margin-top: 28px;
}

/* ==================== 搜索结果页 ==================== */
.search-query {
    color: var(--primary-color);
}

.search-info {
    color: var(--text-muted);
    margin-bottom: 22px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.article-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-normal);
}

.article-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.article-item-image {
    width: 200px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
}

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

.article-item-content {
    flex: 1;
    padding: 20px;
}

.article-item-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-item-content h3 a {
    color: var(--text-primary);
}

.article-item-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 14px;
}

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

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 56px;
    margin-bottom: 18px;
    opacity: 0.4;
    color: var(--primary-light);
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 8px;
}

.search-tips {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 35px;
}

.page-btn {
    padding: 9px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition-fast);
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn:hover {
    background: var(--bg-hover);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* ==================== 表单 ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

/* ==================== 提示框 ==================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* ==================== 徽章 ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-secondary {
    background: var(--bg-body);
    color: var(--text-muted);
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

/* ==================== 文本工具类 ==================== */
.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: var(--transition-normal);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-close {
        display: block;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-wrapper {
        margin-left: 0;
        padding: 20px;
    }
    
    .header-search {
        display: none;
    }
    
    .header-right {
        display: none;
    }
    
    .home-banner {
        padding: 35px 20px;
    }
    
    .banner-content h1 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-item-image {
        width: 100%;
        height: 180px;
    }
    
    .article-sidebar {
        grid-template-columns: 1fr;
    }
    
    .article-header {
        padding: 20px;
    }
    
    .article-header h1 {
        font-size: 22px;
    }
    
    .article-body {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .home-banner .search-form input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .home-banner .search-form button {
        padding: 12px 16px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .password-form {
        flex-direction: column;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 14px;
    }
    
    .article-body img {
        max-width: 100%;
    }
}
