@font-face {
    font-family: 'CustomFont';
    src: url('../font/2.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #00c4b6;
    --primary-dark: #00a89c;
    --primary-light: #e6f9f8;
    --bg: #f4f5f7;
    --bg-white: #ffffff;
    --text: #2c3e50;
    --text-light: #7a8b9a;
    --text-lighter: #a0aec0;
    --border: #e8ecf1;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --header-height: 64px;
    --max-width: 1200px;
    --sidebar-width: 300px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'CustomFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(125deg, #e0f2ff 0%, #f0f5ff 20%, #f5f0ff 40%, #fff0f7 60%, #fff5f5 80%, #fff8f0 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo img {
    height: 36px;
    width: 36px;
    border-radius: 50%;
}

.logo span {
    background: linear-gradient(135deg, #409eff, #00c9a7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header.scrolled .logo span {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav a {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: var(--transition);
}

.nav a:hover,
.nav a.active,
.nav-item.active > a {
    color: var(--primary);
    background: rgba(200, 200, 200, 0.18);
}

.header.scrolled .nav a {
    color: var(--text-light);
}

.header.scrolled .nav a:hover,
.header.scrolled .nav a.active,
.header.scrolled .nav-item.active > a {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-item > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.6;
    transition: var(--transition);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1001;
}

.header.scrolled .nav-dropdown {
    background: var(--bg-white);
}

.nav-item:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-search {
    margin-left: 8px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.nav-search:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.header.scrolled .nav-search {
    color: var(--text-light);
}

.header.scrolled .nav-search:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.header.scrolled .mobile-menu-btn {
    color: var(--text);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: var(--transition);
}

.header.scrolled .mobile-menu-btn span {
    background: var(--text);
}

.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
    left: 0;
    transition: var(--transition);
}

.header.scrolled .mobile-menu-btn span::before,
.header.scrolled .mobile-menu-btn span::after {
    background: var(--text);
}

.mobile-menu-btn span::before {
    top: -6px;
}

.mobile-menu-btn span::after {
    top: 6px;
}

.mobile-nav-panel {
    display: none;
}

/* ========== Main Layout ========== */
.main {
    margin-top: calc(var(--header-height) + 20px);
    padding-bottom: 40px;
}

.main-layout {
    display: flex;
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

/* ========== Banner / Carousel ========== */
.banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    height: 340px;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    padding: 40px 50px;
    cursor: pointer;
}

.banner-slide.active {
    opacity: 1;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.banner-text h2 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.banner-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 500px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.banner-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* ========== Category Tabs ========== */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-white);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.category-tab:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.category-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========== Article Card ========== */
.article-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    gap: 20px;
    cursor: pointer;
}

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

.article-card-img {
    width: 200px;
    height: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg);
}

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

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

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

.article-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .article-card-title {
    color: var(--primary);
}

.article-card-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-lighter);
}

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

.article-card-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    background: var(--primary-light);
    color: var(--primary);
}

.article-card.top {
    border-left: 3px solid var(--primary);
}

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

.sidebar-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Author Card */
.author-card {
    text-align: center;
    padding: 30px 20px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
    border: 3px solid var(--primary-light);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.author-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.05);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.social-link i {
    transition: color 0.3s ease;
}

.social-link.github {
    color: #000;
}
.social-link.github:hover {
    background: #000;
    color: #fff;
}

.social-link.gitee {
    color: #ee3434;
}
.social-link.gitee:hover {
    background: #da3535;
    color: #fff;
}

.social-link.qq {
    color: #60a5fa;
}
.social-link.qq:hover {
    background: #60a5fa;
    color: #fff;
}

.social-link.qqgroup {
    color: #e1c235;
}
.social-link.qqgroup:hover {
    background: #e1c235;
    color: #fff;
}

.social-link.email {
    color: #d872a7;
}
.social-link.email:hover {
    background: #d872a7;
    color: #fff;
}

.social-link.wechat {
    color: #10b981;
}
.social-link.wechat:hover {
    background: #10b981;
    color: #fff;
}

.social-link.weibo {
    color: #e6162d;
}
.social-link.weibo:hover {
    background: #e6162d;
    color: #fff;
}

.social-link.twitter {
    color: #1da1f2;
}
.social-link.twitter:hover {
    background: #1da1f2;
    color: #fff;
}

.social-link:hover {
    color: #fff;
}
.social-link:hover i {
    color: #fff;
}

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

.author-stat-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.author-stat-label {
    font-size: 12px;
    color: var(--text-lighter);
}

/* Notice Card */
.notice-item {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

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

.notice-item .notice-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 6px;
    background: var(--primary-light);
    color: var(--primary);
}

/* Hot Articles */
.hot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    transition: var(--transition);
}

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

.hot-item:hover {
    color: var(--primary);
}

.hot-rank {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--text-lighter);
    flex-shrink: 0;
}

.hot-item:nth-child(1) .hot-rank {
    background: #ff6b6b;
}

.hot-item:nth-child(2) .hot-rank {
    background: #ffa502;
}

.hot-item:nth-child(3) .hot-rank {
    background: #ffd43b;
    color: #333;
}

.hot-title {
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 13px;
    background: var(--bg);
    color: var(--text-light);
    transition: var(--transition);
}

.tag-cloud a:hover {
    background: var(--primary);
    color: #fff;
}

/* ========== Detail Page ========== */
.detail-header {
    margin-bottom: 24px;
}

.detail-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 16px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-lighter);
    flex-wrap: wrap;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 15px;
}

.detail-content h1,
.detail-content h2,
.detail-content h3,
.detail-content h4 {
    margin: 24px 0 12px;
    font-weight: 600;
    line-height: 1.4;
}

.detail-content h2 {
    font-size: 22px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.detail-content h3 {
    font-size: 18px;
}

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

.detail-content img {
    border-radius: var(--radius);
    margin: 16px 0;
}

.detail-content pre {
    background: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.6;
}

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

.detail-content pre code {
    background: none;
    padding: 0;
}

.detail-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--primary-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-light);
}

.detail-content a {
    color: var(--primary);
    border-bottom: 1px dashed var(--primary);
}

.detail-content a:hover {
    border-bottom-style: solid;
}

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

.detail-content li {
    margin-bottom: 4px;
}

.detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.detail-content th,
.detail-content td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}

.detail-content th {
    background: var(--bg);
    font-weight: 600;
}

/* Article TOC */
.toc-card {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    max-height: calc(100vh - var(--header-height) - 40px);
    overflow-y: auto;
}

.toc-card::-webkit-scrollbar {
    width: 4px;
}

.toc-card::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

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

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

.toc-list a {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-light);
    border-radius: 6px;
    transition: var(--transition);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.toc-list .toc-h3 {
    padding-left: 24px;
}

.toc-list .toc-h4 {
    padding-left: 36px;
}

/* Article Nav */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow);
}

.article-nav a {
    flex: 1;
    font-size: 14px;
    color: var(--text-light);
    transition: var(--transition);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.article-nav a:last-child {
    text-align: right;
}

.article-nav-label {
    font-size: 12px;
    color: var(--text-lighter);
    display: block;
    margin-bottom: 4px;
}

/* ========== Page Template ========== */
.page-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text);
}

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

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-white);
    color: var(--text-light);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pagination a:hover {
    color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.pagination .active {
    background: var(--primary);
    color: #fff;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Footer ========== */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 30px 0;
    margin-top: 40px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-lighter);
}

.footer-copy a {
    color: var(--text-lighter);
}

.footer-copy a:hover {
    color: var(--primary);
}

/* ========== Search Modal ========== */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}

.search-modal.show {
    display: flex;
}

.search-box {
    width: 560px;
    max-width: 90%;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
}

.search-input-wrap input {
    flex: 1;
    height: 56px;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text);
    background: transparent;
}

.search-input-wrap input::placeholder {
    color: var(--text-lighter);
}

.search-input-wrap button {
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.search-input-wrap button:hover {
    background: var(--primary-dark);
}

.search-hint {
    padding: 16px 20px;
    font-size: 13px;
    color: var(--text-lighter);
}

/* ========== Back to Top ========== */
.back-top {
    position: fixed;
    right: 24px;
    bottom: 40px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    color: var(--text-light);
}

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

.back-top:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-hover);
}

/* ========== List Page ========== */
.list-header {
    margin-bottom: 20px;
}

.list-header-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .main-layout {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.open span {
        background: transparent;
    }

    .mobile-menu-btn.open span::before {
        top: 0;
        transform: rotate(45deg);
        background: var(--text);
    }

    .mobile-menu-btn.open span::after {
        top: 0;
        transform: rotate(-45deg);
        background: var(--text);
    }

    /* Mobile nav panel */
    .mobile-nav-panel {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 8px 0;
        overflow-y: auto;
        z-index: 999;
    }

    .mobile-nav-panel.show {
        display: flex;
    }

    .mobile-nav-panel > a,
    .mobile-nav-item > a {
        display: block;
        padding: 14px 20px;
        font-size: 16px;
        color: var(--text);
        border-bottom: 1px solid var(--border);
        transition: var(--transition);
    }

    .mobile-nav-item > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-nav-item > a::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--text-light);
        border-bottom: 2px solid var(--text-light);
        transform: rotate(45deg);
        transition: var(--transition);
        flex-shrink: 0;
        margin-left: 12px;
    }

    .mobile-nav-item.sub-open > a::after {
        transform: rotate(-135deg);
    }

    .mobile-nav-panel a:hover,
    .mobile-nav-panel a.active {
        background: var(--primary-light);
        color: var(--primary);
    }

    .mobile-nav-children {
        display: none;
        padding-left: 16px;
    }

    .mobile-nav-item.sub-open > .mobile-nav-children {
        display: block;
    }

    .mobile-nav-children a {
        display: block;
        padding: 12px 20px;
        font-size: 14px;
        color: var(--text-light);
        border-bottom: 1px dashed var(--border);
    }

    .mobile-nav-search {
        display: block;
        padding: 14px 20px;
        font-size: 16px;
        color: var(--text-light);
        border-bottom: 1px solid var(--border);
        cursor: pointer;
        transition: var(--transition);
    }

    .mobile-nav-search:hover {
        background: var(--primary-light);
        color: var(--primary);
    }

    .banner {
        height: 220px;
    }

    .banner-text h2 {
        font-size: 20px;
    }

    .banner-text p {
        font-size: 13px;
    }

    .article-card {
        flex-direction: column;
        padding: 16px;
    }

    .article-card-img {
        width: 100%;
        height: 180px;
    }

    .detail-title {
        font-size: 22px;
    }

    .detail-content {
        padding: 20px;
    }

    .page-content {
        padding: 24px;
    }

    .article-nav {
        flex-direction: column;
    }

    .article-nav a:last-child {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .category-tabs {
        gap: 6px;
    }

    .category-tab {
        padding: 4px 12px;
        font-size: 12px;
    }

    .detail-meta {
        gap: 12px;
    }
}
