/* ========================================
   软科讯 - 仿站样式 (匹配原站设计)
   ======================================== */

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

html { scroll-behavior: smooth; }

body {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background: #fafafa;
    color: #262626;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ========================================
   Header (蓝色导航栏)
   ======================================== */
.header {
    background: #0073e6;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo i { font-size: 28px; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0 12px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
}

.search-box:focus-within {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
}

.search-box i { color: rgba(255,255,255,0.7); font-size: 16px; margin-right: 8px; }

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    width: 180px;
}

.search-box input::placeholder { color: rgba(255,255,255,0.6); }

.btn-login {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 6px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-login:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

.user-menu { display: flex; gap: 8px; }

.mobile-menu-btn { display: none; color: #fff; font-size: 24px; }

/* ========================================
   Main Content
   ======================================== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    min-height: calc(100vh - 64px - 300px);
}

/* ========================================
   Banner / 轮播
   ======================================== */
.banner-section {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.banner-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.banner-side-item {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
}

.banner-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-side-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.banner-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a2e;
}

.banner-slider {
    position: relative;
    height: 440px;
}

.banner-slide {
    display: none;
    position: relative;
    height: 100%;
}

.banner-slide.active { display: block; }

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 48px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}

.banner-category {
    display: inline-block;
    background: #0073e6;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 12px;
}

.banner-slide-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.banner-slide-content p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.banner-read-btn {
    display: inline-block;
    background: #0073e6;
    color: #fff;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.banner-read-btn:hover { background: #005bb5; }

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
    border: none;
}

.banner-nav:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.banner-prev { left: 12px; }
.banner-next { right: 12px; }

/* 最新更新侧边栏 */
.latest-updates-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.latest-updates-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #0073e6;
    margin-bottom: 16px;
}

.latest-updates-title i { font-size: 20px; }

.latest-update-item {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.latest-update-item:last-child { border-bottom: none; }

.latest-update-item .title {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.latest-update-item:hover .title { color: #0073e6; }

.latest-update-item .date {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* ========================================
   内容布局 (左侧边栏 + 右主内容)
   ======================================== */
.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

/* ========================================
   侧边栏
   ======================================== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #0073e6;
    margin-bottom: 16px;
}

.sidebar-title i { font-size: 20px; }

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    background: #f9fafb;
    transition: all 0.2s;
}

.tag-item:hover {
    border-color: #0073e6;
    color: #0073e6;
    background: #eff6ff;
}

/* 侧边栏列表 */
.sidebar-list { display: flex; flex-direction: column; }

.sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}

.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover .sidebar-item-title { color: #0073e6; }

.sidebar-rank {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #94a3b8;
}

.sidebar-rank.rank-1 { background: #fef3c7; color: #d97706; }
.sidebar-rank.rank-2 { background: #e0e7ff; color: #4f46e5; }
.sidebar-rank.rank-3 { background: #fce7f3; color: #db2777; }

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

.sidebar-item-title {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.sidebar-item-meta {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
    display: block;
}

/* ========================================
   文章卡片
   ======================================== */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #0073e6;
    margin-bottom: 20px;
}

.article-list { display: flex; flex-direction: column; gap: 20px; }

.article-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}

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

.article-card-image {
    width: 200px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.article-card-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.article-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.badge-category {
    display: inline-block;
    padding: 2px 10px;
    background: #eff6ff;
    color: #0073e6;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

.badge-tag {
    display: inline-block;
    padding: 2px 10px;
    background: #f9fafb;
    color: #6b7280;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #e5e7eb;
}

.article-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.2s;
}

.article-card:hover .article-card-title { color: #0073e6; }

.article-card-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #999;
    margin-top: 10px;
}

.article-card-meta span { display: flex; align-items: center; gap: 4px; }
.article-card-meta i { font-size: 14px; }

/* ========================================
   文章详情页
   ======================================== */
.article-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.article-detail {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.breadcrumb a { color: #666; transition: color 0.2s; }
.breadcrumb a:hover { color: #0073e6; }
.breadcrumb .sep { color: #ccc; }

.article-detail h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.article-detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

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

.article-content h2 { font-size: 22px; font-weight: 700; margin: 32px 0 16px; color: #1a1a1a; }
.article-content h3 { font-size: 18px; font-weight: 600; margin: 24px 0 12px; color: #1a1a1a; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 16px 0; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
    border-left: 4px solid #0073e6;
    padding: 12px 20px;
    margin: 16px 0;
    background: #f8fafc;
    color: #555;
    border-radius: 0 8px 8px 0;
}
.article-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: #e11d48;
}
.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}
.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}
.article-content img {
    border-radius: 8px;
    margin: 16px 0;
}

.article-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    color: #666;
    transition: all 0.2s;
    cursor: pointer;
}

.action-btn:hover {
    border-color: #0073e6;
    color: #0073e6;
    background: #eff6ff;
}

.action-btn.active {
    background: #0073e6;
    color: #fff;
    border-color: #0073e6;
}

/* 上下篇 */
.prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.prev-next a {
    display: block;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.prev-next a:hover { border-color: #0073e6; background: #eff6ff; }

.prev-next .label { font-size: 12px; color: #999; margin-bottom: 4px; }
.prev-next .pn-title { font-size: 14px; color: #333; font-weight: 500; }

/* 相关文章 */
.related-articles {
    margin-top: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.related-card {
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.related-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }

.related-card img { width: 100%; height: 120px; object-fit: cover; }
.related-card .related-info { padding: 12px; }
.related-card .related-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   分类页 - 三列网格
   ======================================== */
.category-header {
    margin-bottom: 24px;
}

.category-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.category-header p {
    font-size: 15px;
    color: #666;
}

.category-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.grid-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.grid-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.grid-card-image { height: 180px; overflow: hidden; }
.grid-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.grid-card:hover .grid-card-image img { transform: scale(1.05); }

.grid-card-body { padding: 16px; }
.grid-card-body .badge-category { margin-bottom: 8px; }
.grid-card-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.grid-card-body p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

/* ========================================
   分页
   ======================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    padding: 20px 0;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    background: #fff;
    transition: all 0.2s;
}

.page-btn:hover:not(.disabled) { border-color: #0073e6; color: #0073e6; }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

.page-info {
    font-size: 14px;
    color: #666;
    padding: 0 16px;
}

/* ========================================
   登录页
   ======================================== */
.login-page {
    max-width: 420px;
    margin: 60px auto;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.login-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #999;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s;
}

.login-tab.active { color: #0073e6; border-bottom-color: #0073e6; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; color: #333; margin-bottom: 6px; font-weight: 500; }
.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
}
.form-group input:focus { border-color: #0073e6; box-shadow: 0 0 0 3px rgba(0,115,230,0.1); }

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #0073e6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary:hover { background: #005bb5; }

.error-msg { color: #dc2626; font-size: 13px; margin-bottom: 12px; }
.success-msg { color: #16a34a; font-size: 13px; margin-bottom: 12px; }

/* ========================================
   搜索页
   ======================================== */
.search-page-header {
    margin-bottom: 24px;
}

.search-page-input {
    display: flex;
    gap: 12px;
    max-width: 600px;
}

.search-page-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.search-page-input input:focus { border-color: #0073e6; }

.search-page-input button {
    padding: 12px 28px;
    background: #0073e6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    margin-top: 48px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo i { font-size: 24px; }

.footer-desc { font-size: 14px; line-height: 1.8; color: #94a3b8; }

.footer-col h3 { color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.footer-col a {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: #60a5fa; }
.footer-col p { font-size: 14px; line-height: 1.8; color: #94a3b8; }

.footer-bottom {
    border-top: 1px solid #334155;
    text-align: center;
    padding: 20px 24px;
}

.footer-bottom p { font-size: 13px; color: #64748b; }

/* ========================================
   404 页面
   ======================================== */
.page-404 {
    text-align: center;
    padding: 100px 20px;
}

.page-404 h1 { font-size: 72px; color: #0073e6; font-weight: 800; }
.page-404 p { font-size: 18px; color: #666; margin: 16px 0 32px; }
.page-404 a { display: inline-block; padding: 12px 32px; background: #0073e6; color: #fff; border-radius: 8px; font-weight: 500; }

/* ========================================
   Admin 后台
   ======================================== */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }

.admin-sidebar {
    background: #fff;
    border-right: 1px solid #f0f0f0;
    padding: 20px 0;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
    color: #0073e6;
    background: #eff6ff;
}

.admin-sidebar a i { font-size: 18px; }

.admin-main { padding: 24px; background: #f8fafc; }

.admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.admin-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: #f8fafc; padding: 12px 16px; text-align: left; font-size: 13px; color: #666; font-weight: 600; border-bottom: 1px solid #f0f0f0; }
.admin-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid #f5f5f5; }
.admin-table tr:hover td { background: #fafafa; }

.btn-sm {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit { background: #eff6ff; color: #0073e6; border: 1px solid #bfdbfe; }
.btn-delete { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.btn-add { background: #0073e6; color: #fff; border: none; padding: 8px 20px; border-radius: 8px; font-size: 14px; cursor: pointer; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .banner-section { grid-template-columns: 1fr; }
    .banner-side { display: none; }
    .content-layout { grid-template-columns: 1fr; }
    .category-layout { grid-template-columns: 1fr; }
    .article-detail-layout { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
}

@media (max-width: 768px) {
    .header-inner { padding: 0 16px; gap: 16px; }
    .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #0073e6; flex-direction: column; padding: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
    .main-nav.show { display: flex; }
    .search-box { display: none; }
    .mobile-menu-btn { display: block; }
    .main-content { padding: 16px; }
    .banner-slider { height: 300px; }
    .banner-slide-content { padding: 24px; }
    .banner-slide-content h2 { font-size: 20px; }
    .article-card { flex-direction: column; }
    .article-card-image { width: 100%; height: 200px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .prev-next { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .article-detail { padding: 20px; }
    .article-detail h1 { font-size: 22px; }
}
