/* 科技乐小天博客系�?- 前台样式 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #01b8a6;
    --secondary-color: #667eea;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --bg-color: #f5f7fa;
    --card-bg: #fff;
}

html.dark {
    --text-color: #d4d4d4;
    --text-light: #999;
    --border-color: #444;
    --bg-color: #121212;
    --card-bg: #2d2d2d;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a896 100%);
    color: white;
    padding: 11px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-item {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    transition: color 0.3s;
}

.nav-item:hover,
.nav-item.active {
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 38px 8px 15px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    width: 180px;
}

.search-icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}

.search-icon-btn:hover {
    color: #01b8a6;
    background: rgba(1,184,166,0.1);
}

/* 主题切换按钮 */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    color: white;
    transition: background 0.3s;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.25);
}

/* Banner */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 0 0 30px 30px;
}

.banner-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 16px;
    opacity: 0.9;
}

/* 主内容区 */
.main {
    padding: 0 0 30px 0;
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

/* 文章列表 */
.articles-section {
    flex: 1;
}

.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

html.dark .section-title {
    color: #ffffff;
}

.title-icon {
    font-size: 24px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.article-cover {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-code {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 8px;
}

.article-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-title a {
    color: var(--text-color);
}

.article-title a:hover {
    color: var(--primary-color);
}

html.dark .article-title a {
    color: #ffffff;
}

/* 分类页卡�?*/
html.dark .category-card {
    background: #2d2d2d;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
html.dark .category-card .card-title {
    color: #ffffff;
}
html.dark .category-card .card-desc {
    color: #b0b0b0;
}
html.dark .category-card .card-meta {
    color: #999;
}

/* 分类页文章列表卡�?*/
html.dark .category-article-card {
    background: #2d2d2d;
}
html.dark .category-article-card .article-title a {
    color: #ffffff;
}
html.dark .category-article-card .article-meta {
    color: #b0b0b0;
}
html.dark .category-article-card .article-excerpt {
    color: #e0e0e0;
}

.article-meta {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

html.dark .article-meta {
    color: #b0b0b0;
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html.dark .article-excerpt {
    color: #e0e0e0;
}

.read-more {
    font-size: 14px;
    color: var(--primary-color);
}

/* 侧边�?*/
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

html.dark .widget-title {
    color: #ffffff;
}

.hot-articles {
    list-style: none;
}

.hot-articles li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hot-articles li:last-child {
    border-bottom: none;
}

.hot-articles a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hot-num {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.hot-title {
    font-size: 14px;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.dark .hot-title {
    color: #ffffff;
}

.category-list {
    list-style: none;
}

.category-list li {
    padding: 8px 0;
}

.category-list a {
    color: var(--text-color);
    font-size: 14px;
}

.category-list a:hover {
    color: var(--primary-color);
}

html.dark .category-list a {
    color: #ffffff;
}

.about-widget p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

html.dark .about-widget p {
    color: #e0e0e0;
}

/* 文章详情�?*/
.article-page {
    max-width: 900px;
    margin: 0 auto;
}

.article-detail {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-header .article-code {
    margin-bottom: 15px;
}

.article-detail .article-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.article-detail .article-meta {
    justify-content: center;
    gap: 20px;
}

.article-detail .article-cover {
    height: 400px;
    margin-bottom: 30px;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.article-body p {
    margin-bottom: 15px;
}

.article-body h2, .article-body h3 {
    margin: 25px 0 15px;
}

/* 资源下载�?*/
.resource-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.resource-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.pan-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pan-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.pan-icon {
    font-size: 24px;
}

.pan-name {
    font-weight: bold;
}

.pan-content {
    padding-left: 35px;
}

.link-item {
    margin-bottom: 10px;
}

.link-label {
    font-size: 12px;
    color: #e74c3c;
    margin-bottom: 5px;
}

.link-value {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    word-break: break-all;
    cursor: pointer;
    transition: border-color 0.3s;
}

.link-value:hover {
    border-color: var(--primary-color);
}

.code-item {
    margin-top: 10px;
}

.code-box {
    display: inline-block;
    background: #333;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
}

/* 版权声明 */
.declaration {
    background: #fff3cd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.declaration h4 {
    margin-bottom: 10px;
}

.declaration p {
    font-size: 14px;
    color: #856404;
    line-height: 1.6;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 16px;
    background: var(--card-bg);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s;
}

html.dark .page-btn {
    background: #2d2d2d;
    color: #ffffff;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-color);
    color: white;
}

.page-ellipsis {
    color: var(--text-light);
}

/* 底部 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-left {
    flex: 1;
}

.footer-left p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.8;
    white-space: pre-line;
}

html.dark .footer-left p {
    color: #e0e0e0;
}

.footer-left a {
    color: white;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.footer-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-qr-item img {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
}

.footer-qr-item span {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}

/* 底部图标链接 */
.footer-icon-link {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}

.footer-icon-link:hover {
    color: rgba(255,255,255,.95);
}

/* 微信弹窗 */
.footer-icon-popup-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.footer-icon-popup {
    display: none;
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    z-index: 100;
    white-space: nowrap;
}

.footer-icon-popup-wrap:hover .footer-icon-popup {
    display: block;
}

/* 底部分享图标 */
.footer-share-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-share-item {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}

.footer-share-item:hover {
    background: rgba(255,255,255,.22);
    transform: translateY(-2px);
}

.footer-share-item img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* 微信 hover 弹二维码 */
.footer-share-popup {
    display: none;
    position: absolute;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    z-index: 100;
    white-space: nowrap;
}

.footer-share-item[title="微信"]:hover .footer-share-popup {
    display: block;
}

.qrcode-section p {
    margin-bottom: 10px;
}

.qrcode-placeholder {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* 空状�?*/
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

html.dark .empty-state p {
    color: #e0e0e0;
}

.btn-primary {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a896 100%);
    color: white;
    border-radius: 25px;
    font-size: 14px;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    color: white;
}

/* 旧响应式已合并至下方增强768px断点 */

/* 登录�?*/
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a896 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.login-header p {
    color: var(--text-light);
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a896 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-login:hover {
    transform: scale(1.02);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: var(--text-light);
    font-size: 14px;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* === Friend Links === */
.friend-links-bar {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-top: 60px;
}
.friend-links-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}
.friend-link-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.friend-link-item:hover {
    color: #3498db;
}
.friend-link-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}

/* === Dark Mode Overrides === */
html.dark body {
    background-color: var(--bg-color);
    color: var(--text-color);
}
html.dark .header {
    background: linear-gradient(135deg, #0f4c3a 0%, #0a3d2e 100%);
}
html.dark .banner {
    background: linear-gradient(135deg, #2d3561 0%, #1a1f3a 100%);
}
html.dark .article-card,
html.dark .widget,
html.dark .article-detail,
html.dark .login-box,
html.dark .pan-card {
    background: #2d2d2d;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
html.dark .resource-section {
    background: #2d2d2d;
}
html.dark .link-value {
    background: #3d3d3d;
    border-color: var(--border-color);
    color: var(--text-color);
}
html.dark .code-box {
    background: #444;
}
html.dark .declaration {
    background: #2d2d2d;
}
html.dark .declaration p {
    color: #ffffff;
}
html.dark .declaration h4 {
    color: #ffffff;
}
html.dark .resource-title,
html.dark .pan-name,
html.dark .link-label {
    color: #ffffff;
}
html.dark .article-body,
html.dark .article-body p,
html.dark .article-body h2,
html.dark .article-body h3 {
    color: #ffffff;
}
html.dark .friend-links-bar {
    background: #2d2d2d;
    border-color: var(--border-color);
}
html.dark .friend-links-title {
    color: #ffffff;
}
html.dark .friend-link-item {
    color: #e0e0e0;
}
html.dark .hot-articles li {
    border-color: var(--border-color);
}
html.dark .footer {
    background: #0f1419;
}
html.dark .alert-error {
    background: #3a1f1f;
    color: #ff8888;
    border-color: #5a2f2f;
}
html.dark .alert-success {
    background: #1f3a1f;
    color: #88ff88;
    border-color: #2f5a2f;
}
html.dark .form-input {
    background: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}
html.dark .search-input {
    background: rgba(255,255,255,0.1);
    color: white;
}
html.dark .search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* === Sidebar Ads === */
.sidebar-ad {
    position: fixed;
    top: 90px;
    width: 160px;
    z-index: 50;
    display: none;
}
.sidebar-ad-left { left: calc((100vw - 1200px) / 4 - 150px); }
.sidebar-ad-right { right: calc((100vw - 1200px) / 4 - 10px); }
.sidebar-ad-close {
    position: absolute;
    bottom: -28px;
    right: 0;
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 51;
}
.sidebar-ad:hover .sidebar-ad-close { opacity: 1; }
.sidebar-ad-close:hover { background: rgba(0,0,0,0.6); }
@media (min-width: 1640px) {
    .sidebar-ad { display: block; }
}

/* === Dark Mode Text Colors === */
html.dark .article-title a { color: #ffffff; }
html.dark .article-meta { color: #b0b0b0; }
html.dark .article-excerpt { color: #e0e0e0; }
html.dark .section-title { color: #ffffff; }
html.dark .widget-title { color: #ffffff; }
html.dark .hot-title { color: #ffffff; }
html.dark .category-list a { color: #ffffff; }
html.dark .about-widget p { color: #e0e0e0; }
html.dark .page-btn { background: #2d2d2d; color: #ffffff; }
html.dark .empty-state p { color: #e0e0e0; }
html.dark .footer-left p { color: #e0e0e0; }

/* 首页文章卡片标题 */
html.dark .article-card .card-title { color: #ffffff !important; }

/* 首页分类汇总卡片标�?*/
html.dark .category-card .cat-card-name { color: #ffffff !important; }
html.dark .category-card .cat-card-desc { color: #b0b0b0; }
html.dark .category-card .cat-card-count span { color: #999; }
html.dark .category-card .cat-title-item .title-text { color: #e0e0e0; }
html.dark .category-card .cat-title-item .title-text:hover { color: #3498db; }

/* === Dark Mode Additional Fixes === */
/* 资源下载区卡�?*/
html.dark .resource-section {
    background: #2d2d2d;
}

/* 网盘链接输入�?*/
html.dark .link-value {
    background: #3d3d3d;
    border-color: #444;
    color: #ffffff;
}

/* 提取码框 */
html.dark .code-box {
    background: #444;
    color: #ffffff;
}

/* 版权声明 */
html.dark .declaration {
    background: #2d2d2d;
    border: 1px solid #444;
}
html.dark .declaration h4 {
    color: #ffffff;
}
html.dark .declaration p {
    color: #e0e0e0;
}

/* 资源标题、网盘名�?*/
html.dark .resource-title,
html.dark .pan-name,
html.dark .link-label {
    color: #ffffff;
}

/* 文章正文 */
html.dark .article-body,
html.dark .article-body p,
html.dark .article-body h2,
html.dark .article-body h3,
html.dark .article-body h4,
html.dark .article-body li,
html.dark .article-body blockquote {
    color: #e0e0e0;
}

/* 友情链接 */
html.dark .friend-links-bar {
    background: #2d2d2d;
    border-color: #444;
}
html.dark .friend-links-title {
    color: #ffffff;
}
html.dark .friend-link-item {
    color: #b0b0b0;
}

/* 热门文章列表边框 */
html.dark .hot-articles li {
    border-color: #444;
}

/* 分页按钮 */
html.dark .page-btn:hover,
html.dark .page-btn.active {
    background: var(--primary-color);
    color: white;
}

/* 空状�?*/
html.dark .empty-state {
    background: #2d2d2d;
    border-radius: 12px;
}

/* 登录�?*/
html.dark .login-box {
    background: #2d2d2d;
}
html.dark .login-header h1 {
    color: var(--primary-color);
}
html.dark .login-header p {
    color: #b0b0b0;
}
html.dark .login-form label {
    color: #e0e0e0;
}

/* 表单输入 */
html.dark .form-input {
    background: #3d3d3d;
    color: #ffffff;
    border-color: #444;
}

/* 提示�?*/
html.dark .alert-error {
    background: #3a1f1f;
    color: #ff8888;
    border-color: #5a2f2f;
}
html.dark .alert-success {
    background: #1f3a1f;
    color: #88ff88;
    border-color: #2f5a2f;
}

/* 底部分享图标 */
html.dark .footer-share-item {
    background: rgba(255,255,255,0.1);
}
html.dark .footer-share-item:hover {
    background: rgba(255,255,255,0.2);
}

/* 微信弹窗 */
html.dark .footer-icon-popup,
html.dark .footer-share-popup {
    background: #2d2d2d;
    border: 1px solid #444;
}

/* 二维码区�?*/
html.dark .qrcode-section p {
    color: #e0e0e0;
}

/* 阅读更多按钮 */
html.dark .read-more {
    color: var(--primary-color);
}

/* 分类页卡�?*/
html.dark .category-card {
    background: #2d2d2d;
}
html.dark .category-card .card-title {
    color: #ffffff;
}
html.dark .category-card .card-desc {
    color: #b0b0b0;
}

/* 分类页文章列�?- 软件资源/数码评测/电脑装机/办公技�?资源导航/AI工具 */
html.dark .cat-info-bar {
    background: #2d2d2d;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
html.dark .cat-info-name {
    color: #ffffff;
}
html.dark .cat-info-desc {
    color: #b0b0b0;
}

/* 筛选按�?*/
html.dark .filter-btn {
    background: transparent;
    color: #b0b0b0;
}
html.dark .filter-btn:hover {
    color: #3498db;
}
html.dark .filter-btn.active {
    color: #3498db;
    font-weight: 600;
}

/* 分类文章卡片 */
html.dark .cat-article-card {
    background: #2d2d2d;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
html.dark .cat-article-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
html.dark .cat-card-title {
    color: #ffffff;
}
html.dark .cat-card-excerpt {
    color: #b0b0b0;
}
html.dark .cat-card-author {
    color: #999;
}
html.dark .cat-author-name {
    color: #b0b0b0;
}
html.dark .cat-author-dot {
    background: #666;
}
html.dark .cat-card-date {
    color: #888;
}
html.dark .cat-card-views {
    color: #888;
}
html.dark .cat-card-views svg {
    opacity: 0.8;
    stroke: #888;
}

/* 分页 */
html.dark .pagination-bar .page-btn {
    background: #2d2d2d;
    border-color: #444;
    color: #b0b0b0;
}
html.dark .pagination-bar .page-btn:hover {
    border-color: #3498db;
    color: #3498db;
}
html.dark .pagination-bar .page-btn.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}
html.dark .page-ellipsis {
    color: #666;
}
html.dark .page-jump-box {
    background: #2d2d2d;
    border-color: #444;
}
html.dark .page-jump-box .jump-label {
    color: #b0b0b0;
}
html.dark .page-jump-box .jump-input {
    background: #2d2d2d;
    color: #ffffff;
}
html.dark .page-jump-box .jump-input::placeholder {
    color: #666;
}
html.dark .page-jump-box .jump-input:focus {
    background: #2d2d2d;
    color: #ffffff;
}
html.dark .page-jump-box .jump-arrow {
    background: #3d3d3d;
    color: #b0b0b0;
}
html.dark .page-jump-box .jump-arrow:hover {
    background: #3498db;
    color: #fff;
}

/* 空提�?*/
html.dark .empty-tip {
    color: #888;
}

/* 广告�?*/
html.dark .ad-banner {
    background: #2d2d2d;
}

/* 作者页 */
html.dark .author-header {
    background: #2d2d2d;
}
html.dark .author-name {
    color: #ffffff;
}
html.dark .author-bio {
    color: #b0b0b0;
}

/* 搜索弹窗 */
html.dark .search-popup {
    background: #2d2d2d;
}
html.dark .search-popup .search-input {
    background: #3d3d3d;
    color: #ffffff;
    border-color: #444;
}

/* 分享弹窗 */
html.dark .share-modal {
    background: #2d2d2d;
}
html.dark .share-modal h3 {
    color: #ffffff;
}

/* 网盘按钮 */
html.dark .pan-btn {
    background: #3d3d3d;
    color: #ffffff;
    border-color: #444;
}
html.dark .pan-btn:hover {
    background: #4d4d4d;
}

/* 作者页文章卡片 */
html.dark .grid-item {
    background: #2d2d2d !important;
    border-color: #444 !important;
}
html.dark .grid-title,
html.dark .grid-title a {
    color: #ffffff;
}
html.dark .grid-category a,
html.dark .grid-category span {
    background: rgba(255,255,255,0.1);
    color: #80dfff;
}
html.dark .grid-meta {
    color: #999;
}
html.dark .meta-time {
    color: #888;
}
html.dark .meta-views {
    color: #888;
}

/* 标签 */
html.dark .tag {
    background: #3d3d3d;
    color: #e0e0e0;
}
html.dark .tag:hover {
    background: var(--primary-color);
    color: white;
}
/* === 姹夊牎鑿滃崟鎸夐�?=== */
.hamburger-btn { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 36px; height: 36px; background: rgba(255,255,255,0.15); border: none; border-radius: 8px; cursor: pointer; padding: 6px; }
.hamburger-btn span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }

/* === 绉诲姩绔鑸潰鏉?=== */
.mobile-nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 100; }
.mobile-nav-content { position: fixed; top: 0; left: 0; width: 260px; max-width: 75vw; height: 100%; background: #fff; z-index: 101; overflow-y: auto; padding: 20px; border-radius: 0 12px 12px 0; box-shadow: 4px 0 20px rgba(0,0,0,0.15); transform: translateX(-100%); transition: transform 0.3s ease; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.mobile-nav-close { width: 32px; height: 32px; line-height: 30px; text-align: center; border: 1px solid #ddd; border-radius: 50%; background: #fff; font-size: 20px; color: #666; cursor: pointer; }
.mobile-nav-content .nav-item { display: block; padding: 12px 16px; margin-bottom: 4px; border-radius: 8px; color: #333; text-decoration: none; font-size: 16px; transition: background 0.2s; }
.mobile-nav-content .nav-item:hover { background: #f5f5f5; }
.mobile-nav-content .nav-item.active { background: linear-gradient(135deg, #01b8a6 0%, #00a896 100%); color: #fff; }

/* 鏆楅�?- 绉诲姩瀵艰�?*/
html.dark .mobile-nav-content { background: #16213e; }
html.dark .mobile-nav-header { border-color: #2a2a4a; }
html.dark .mobile-nav-close { background: #16213e; border-color: #444; color: #ccc; }
html.dark .mobile-nav-content .nav-item { color: #d4d4d4; }
html.dark .mobile-nav-content .nav-item:hover { background: #1e2c4a; }

/* === 澧炲�?768px 鍝嶅簲寮?=== */
/* ɸѡ�� - ��������ص�/ǰ׺ */
.filter-dot { display: inline; color: #999; margin: 0 4px; }
.filter-label { display: inline; color: #333; font-weight: 500; }
.filter-sep { display: inline; color: #ccc; margin: 0 6px; }

@media (max-width: 768px) {
    .hamburger-btn { display: flex; }
    .header-content { flex-direction: row; flex-wrap: wrap; gap: 10px; }
    .header-content .nav { display: none; }
    .header-content .logo { margin-right: auto; }
    .header-right { display: flex; align-items: center; gap: 8px; }
    .search-form { max-width: 135px; }
    .filter-bar { gap: 0; justify-content: center; padding: 8px 0; }
    .filter-btn { background: transparent !important; border: none !important; padding: 0 !important; font-size: 14px !important; color: #666 !important; border-radius: 0 !important; }
    .filter-btn.active { color: #3498db !important; font-weight: 600; background: transparent !important; }
    .filter-dot { display: inline; color: #999; margin: 0 5px; }
    .filter-label { display: inline; color: #333; font-size: 14px; font-weight: 500; }
    .filter-sep { display: inline; color: #ccc; margin: 0 5px; }
    .search-input { width: 135px; font-size: 12px; padding: 11px 42px 11px 30px; }
    .search-icon-btn { right: 6px; }
    .search-icon-btn svg { width: 18px; height: 18px; }
    .carousel-section, .blog-carousel-wrap { height: 180px !important; -webkit-tap-highlight-color: transparent; }
    .carousel { height: 180px !important; -webkit-tap-highlight-color: transparent; }
    .carousel-item img { object-fit: contain !important; background: transparent; border-radius: 8px; -webkit-tap-highlight-color: transparent; }
    .carousel-section *, .blog-carousel-wrap *, .carousel *, .carousel-item, .carousel-slide, .blog-carousel-item { -webkit-tap-highlight-color: transparent; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .content-wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
    .ad-container { padding: 0 10px; margin: 12px auto; }
    .ad-container iframe, .ad-container ins, .ad-container img { max-width: 100% !important; height: auto !important; }
    .ad-banner { margin-bottom: 16px; padding: 8px; }
    .article-detail { padding: 16px; }
    .article-title { font-size: 20px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { gap: 20px; flex-direction: column; text-align: center; }
    .footer-left { display: none; }
    .footer-center { margin-left: 0 !important; margin-top: -20px; }
    .footer-right { justify-content: center; }
    .footer-qr-item img { width: 80px; height: 80px; }
    .sidebar-ad { display: none !important; }
}

/* === 480px 灏忓睆绮剧粏閫傞�?=== */
@media (max-width: 480px) {
    .header-content { gap: 6px; }
    .search-form { width: 120px; }
    .search-input { width: 120px; padding: 10px 40px 10px 28px; font-size: 11px; }
    .search-icon-btn { right: 4px; }
    .search-icon-btn svg { width: 16px; height: 16px; }
    .theme-toggle { width: 30px; height: 30px; }
    .hamburger-btn { width: 30px; height: 30px; padding: 4px; }
    .hamburger-btn span { width: 16px; height: 1.5px; }
    .carousel-section, .blog-carousel-wrap { height: 140px !important; -webkit-tap-highlight-color: transparent; }
    .carousel { height: 140px !important; -webkit-tap-highlight-color: transparent; }
    .carousel-item img { object-fit: contain !important; background: transparent; border-radius: 8px; -webkit-tap-highlight-color: transparent; }
    .carousel-section *, .blog-carousel-wrap *, .carousel *, .carousel-item, .carousel-slide, .blog-carousel-item { -webkit-tap-highlight-color: transparent; }
    .article-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .article-card .card-title { font-size: 15px; }
    .article-card .card-date { font-size: 11px; }
    .article-card .card-body { padding: 10px 12px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .ad-container { padding: 0 8px; margin: 10px auto; }
    .ad-banner { margin-bottom: 12px; padding: 6px; }
    .category-card .card-cover { height: 60px; }
    .category-card .card-body { padding: 10px 12px; }
    .category-card .card-title { font-size: 16px; }
    .article-detail { padding: 12px; border-radius: 8px; }
    .article-title { font-size: 18px; }
    .article-meta { font-size: 12px; gap: 8px; }
    .related-grid { grid-template-columns: 1fr; gap: 10px; }
    .filter-bar { gap: 0; justify-content: center; padding: 8px 0; }
    .filter-btn { background: transparent !important; border: none !important; padding: 0 !important; font-size: 13px !important; color: #666 !important; border-radius: 0 !important; }
    .filter-btn.active { color: #3498db !important; font-weight: 600; background: transparent !important; }
    .filter-dot { display: inline; color: #999; margin: 0 4px; }
    .filter-label { display: inline; color: #333; font-size: 13px; font-weight: 500; }
    .filter-sep { display: inline; color: #ccc; margin: 0 4px; }
    .pagination-bar { gap: 4px; }
    .page-btn { font-size: 12px; padding: 5px 10px; min-width: 28px; }
    .page-jump-box .jump-input { width: 34px; font-size: 12px; padding: 4px 2px; }
    .page-jump-box .jump-label { font-size: 12px; padding: 4px 8px 4px 10px; }
    .page-jump-box .jump-arrow { font-size: 14px; padding: 4px 10px; }
    .breadcrumb { font-size: 12px; padding: 8px 0; }
    .download-section .link-value { font-size: 11px; padding: 6px 8px; }
    .footer-content { gap: 16px; }
    .footer-left { display: none; }
    .footer-qr-item img { width: 72px; height: 72px; }
    .footer-share-icons { gap: 4px; }
    .footer-share-item svg { width: 14px; height: 14px; }
    .container { padding: 0 12px; }
    .section-title { font-size: 16px; }

    .author-header-content { padding: 0 12px 16px; }
    .author-layout { gap: 12px; }
    .posts-grid { grid-template-columns: 1fr; }
    .tab-nav-theme .tab { font-size: 13px; padding: 8px 16px; }
    .about-container { padding: 20px 12px; }
    .about-content { font-size: 14px; }
}
