﻿/* ===================================================================
 * WPFX.ORG 样式文件
 * 
 * 文件结构索引：
 * ---------------------------------------------------------------
 * 第 1 部分：CSS变量 - 全局颜色、尺寸、阴影等变量定义
 * 第 2 部分：基础样式 - 重置样式、容器、通用类
 * 第 3 部分：页面布局 - 头部、主体内容、底部
 * 第 4 部分：公共组件 - 面板、列表、按钮等
 * 第 5 部分：页面模块 - 轮播图、广告位、登录表单等
 * 第 6 部分：响应式布局 - 平板端、移动端适配
 * 第 7 部分：深色模式 - 暗黑主题样式
 * 第 8 部分：页面专用样式 - 列表页、详情页、个人中心等
 * 
 * 响应式断点：
 * - @media (max-width: 1600px) - 超大屏幕
 * - @media (max-width: 1400px) - 大屏幕
 * - @media (max-width: 1200px) - 桌面端大屏
 * - @media (max-width: 992px) - 平板端
 * - @media (max-width: 768px) - 移动端
 * - @media (max-width: 576px) - 小屏移动端
 * ===================================================================
 */

/* ===================================================================
 * 第 1 部分：CSS变量
 * 包含：主色、点缀色、背景、文字、阴影、圆角等
 * ===================================================================
 */

/* 全局样式 - 深海蓝+珊瑚橙配色方案 */
:root {
    /* 品牌色 */
    --primary: #0A2540;
    --primary-dark: #051a2c;
    --primary-light: #1E3A5F;
    --accent: #FF6B4A;
    --accent-dark: #E55A3B;
    --accent-soft: #FFB347;

    /* 背景色 */
    --bg-page: #F5F5F5;
    --bg-surface: #FFFFFF;
    --bg-elevated: #FFFFFF;

    /* 文字色 */
    --text-primary: #1E2A3A;
    --text-secondary: rgba(10, 37, 64, 0.65);
    --text-placeholder: rgba(10, 37, 64, 0.4);
    --text-on-accent: #FFFFFF;
    --text-on-dark: #FFFFFF;

    /* 兼容旧变量名（指向新值） */
    --primary-orange: #ff780b;
    --primary-color: #FF6B4A;
    --primary-dark: #E55A3B;
    --primary-hover: #E55A3B;
    --primary-blue: #4991f2;
    --secondary-color: #0A2540;
    --primary-green: #4caf4c;
    --accent-color: #FFB347;
    --primary-pink: #FF6B4A;
    --primary-purple: #0A2540;
    --primary-orange-dark: #E55A3B;

    /* 兼容旧变量名（背景/文字/边框） */
    --text-dark: #1E2A3A;
    --text-gray: rgba(10, 37, 64, 0.65);
    --text-light: rgba(10, 37, 64, 0.4);
    --text-muted: rgba(10, 37, 64, 0.4);
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --border-color: rgba(10, 37, 64, 0.12);

    /* 深色模式专用兼容变量 */
    --bg-dark: #1A1F2E;
    --border-color-dark: rgba(255, 255, 255, 0.1);
    --text-muted-dark: rgba(255, 255, 255, 0.4);
    --border-dark: rgba(255, 255, 255, 0.1);
    --bg-dark-hover: #252A3A;

    /* 阴影和圆角 */
    --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.05);
    --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 8px 24px rgba(10, 37, 64, 0.12);
    --shadow-xl: 0 8px 24px rgba(10, 37, 64, 0.12);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s ease;

    /* 语义色 - 状态颜色 */
    --color-danger: #dc3545;
    --color-danger-dark: #721c24;
    --color-success: #28a745;
    --color-success-dark: #155724;
    --color-warning: #ffc107;
    --color-warning-dark: #856404;
    --color-info: #1890ff;
    --color-info-dark: #0056b3;
    --color-muted: #6c757d;
    --color-wechat: #07c160;

    /* 语义色 - 状态背景 */
    --bg-warning: #fff3cd;
    --bg-danger-prompt: #f8d7da;
    --bg-danger-soft: #fff5f5;
    --bg-danger-soft-dark: var(--bg-danger-soft-dark);
    --bg-success: #d4edda;
    --bg-success-soft: rgba(40, 167, 69, 0.1);
    --bg-success-soft-dark: var(--bg-success-soft-dark);
    --bg-warning-soft: rgba(255, 193, 7, 0.1);
    --bg-warning-soft-dark: rgba(var(--warning-rgb), 0.15);
    --bg-info: #e7f3ff;
    --bg-info-soft: rgba(52, 152, 219, 0.1);
    --bg-info-soft-dark: var(--bg-info-soft-dark);
    --bg-muted-soft: rgba(108, 117, 125, 0.1);

    /* 导航与按钮专用色 */
    --nav-text: #374151;
    --icon-text: #6b7280;
    --accent-bg-soft: rgba(249, 115, 22, 0.1);
    --accent-bg-hover: rgba(249, 115, 22, 0.2);
    --btn-icon-bg: rgba(139, 92, 246, 0.1);

    /* 遮罩层 */
    --overlay: rgba(0, 0, 0, 0.5);
    --overlay-medium: rgba(0, 0, 0, 0.5);
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --overlay-soft: rgba(0, 0, 0, 0.07);
    --overlay-light: rgba(255, 255, 255, 0.2);
    --overlay-lighter: rgba(255, 255, 255, 0.3);
    --overlay-subtle: rgba(255, 255, 255, 0.05);

    /* 阴影 - 组件专用 */
    --shadow-focus-ring: 0 0 0 3px rgba(255, 120, 11, 0.1);
    --shadow-focus-ring-dark: 0 0 0 3px rgba(255, 120, 11, 0.2);
    --shadow-focus-ring-blue: 0 0 0 3px rgba(52, 152, 219, 0.1);
    --shadow-btn: 0 2px 8px var(--accent);
    --shadow-btn-hover: 0 4px 15px var(--accent-dark);
    --shadow-btn-active: 0 3px 10px rgba(255, 120, 11, 0.35);
    --shadow-btn-active-hover: 0 4px 14px rgba(255, 120, 11, 0.45);
    --shadow-btn-blue-hover: 0 15px 30px rgba(52, 152, 219, 0.4);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-modal: 0 8px 32px rgba(0, 0, 0, 0.18);
    --shadow-modal-dark: 0 8px 32px rgba(0, 0, 0, 0.5);

    /* 深色模式面板/模态专用 */
    --bg-dark-card: #1f2937;
    --bg-dark-input: #374151;
    --bg-dark-header: #111827;
    --border-dark-strong: #4b5563;
    --border-dark-mid: #374151;
    --border-info-soft: rgba(52, 152, 219, 0.2);
    --text-dark-primary: #f3f4f6;
    --text-dark-secondary: #e5e7eb;
    --text-dark-muted: #9ca3af;

    /* 底部栏文字 */
    --footer-text: rgba(255, 255, 255, 0.7);
    --footer-muted: rgba(255, 255, 255, 0.5);
    --footer-bright: rgba(255, 255, 255, 0.8);

    /* 轮播指示器 */
    --indicator: rgba(255, 255, 255, 0.5);

    /* 导航背景（纯色） */
    
    /* 深色模式文字色 */
    --text-dark-strong: #f3f4f6;
    --text-dark-border: #9ca3af;

    /* 深色模式边框 */
    --border-dark-text: #e5e7eb;

    
    /* RGB变量 - 用于透明渐变 */
    --primary-rgb: 10, 37, 64;
    --accent-rgb: 255, 107, 74;
    --warning-rgb: 255, 193, 7;
    --success-rgb: 40, 167, 69;
    --danger-rgb: 220, 53, 69;
    --info-rgb: 24, 144, 255;
/* 渐变色 */
    --gradient-accent: linear-gradient(135deg, #ff780b, #4991f2);
    --gradient-warning: linear-gradient(135deg, #ffc107, #ff9800);

    /* 遮罩补充 */
    --overlay-deep: rgba(0, 0, 0, 0.4);

    /* 危险/警告边框 */
    --border-danger: #f5c6cb;
    --border-success: #c3e6cb;

    /* 悬停遮罩 */
    --accent-overlay-hover: rgba(255, 120, 11, 0.2);
    --accent-overlay-active: var(--accent);

    /* 警告遮罩补充 */
    --warning-overlay-soft: rgba(var(--warning-rgb), 0.2);

    /* 特殊背景 */
    --bg-dark-card-strong: #111827;

    --header-bg: #FFFFFF;
}

/* 深色模式变量 */
[data-theme="dark"] {
    /* 品牌色（深色调整） */
    --primary: #1E3A5F;
    --primary-dark: #0f2a48;
    --primary-light: #2e4a73;
    --accent: #FF8A6B;
    --accent-dark: #FF9F84;
    --accent-soft: #FFC285;

    /* 背景色 */
    --bg-page: #0F172A;
    --bg-surface: #1A1F2E;
    --bg-elevated: #252A3A;

    /* 文字色 */
    --text-primary: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-placeholder: rgba(255, 255, 255, 0.4);
    --text-on-accent: #0F172A;
    --text-on-dark: #FFFFFF;

    /* 兼容旧变量名 */
    --primary-orange: #ff780b;
    --primary-color: #FF8A6B;
    --primary-dark: #FF9F84;
    --primary-hover: #FF9F84;
    --primary-blue: #4991f2;
    --primary-orange-dark: #FF9F84;
    --primary-green: #4caf4c;
    --accent-color: #FFC285;
    --primary-pink: #FF8A6B;
    --primary-purple: #8AADFF;

    /* 兼容旧变量名（背景/文字/边框） */
    --text-dark: rgba(255, 255, 255, 0.92);
    --text-gray: rgba(255, 255, 255, 0.65);
    --text-light: rgba(255, 255, 255, 0.4);
    --text-muted: rgba(255, 255, 255, 0.4);
    --bg-light: #0F172A;
    --bg-white: #1A1F2E;
    --border-color: rgba(255, 255, 255, 0.1);

    /* 深色模式专用兼容变量 */
    --bg-dark: #252A3A;
    --border-color-dark: rgba(255, 255, 255, 0.1);
    --text-muted-dark: rgba(255, 255, 255, 0.4);
    --border-dark: rgba(255, 255, 255, 0.1);
    --bg-dark-hover: #2e3548;

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.5);

    /* 导航背景 */
    --header-bg: #1A1F2E;
}

/* ===================================================================
 * 第 2 部分：基础样式
 * 包含：重置样式、全局选择器、通用类
 * ===================================================================
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 顶部导航 - 白色背景 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

[data-theme="dark"] .header {
    background: var(--bg-dark-card);
}

[data-theme="dark"] .nav-link {
    color: var(--text-dark-secondary);
}

[data-theme="dark"] .btn-search,
[data-theme="dark"] .btn-theme,
[data-theme="dark"] .mobile-menu-btn {
    color: var(--text-dark-secondary);
    background: var(--overlay-light);
}

[data-theme="dark"] .btn-search:hover,
[data-theme="dark"] .btn-theme:hover,
[data-theme="dark"] .mobile-menu-btn:hover {
    background: var(--overlay-lighter);
    color: var(--text-on-accent);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    gap: 0.5rem;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: 172px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
    flex-shrink: 1;
}

/* 桌面端激活状态 */
@media (min-width: 769px) {
    .nav-menu.active {
        display: flex !important;
    }
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    color: var(--nav-text);
    transition: var(--transition);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
    background: var(--accent-bg-soft);
    color: var(--primary-orange);
}

.nav-link i.fa-chevron-down {
    font-size: 0.7rem;
}

/* 二级菜单 */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    font-size: 0.85rem;
    transition: var(--transition);
}

.submenu a:hover {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-blue) 100%);
    color: var(--text-on-accent);
    padding-left: 1.25rem;
}

.btn-login,
.btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.btn-login {
    background: transparent;
    color: var(--primary-orange);
    border: 1px solid var(--primary-orange);
}

.btn-login:hover {
    background: var(--primary-orange);
    color: var(--text-on-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-register {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-dark));
    color: var(--text-on-accent);
    border: none;
    box-shadow: var(--shadow-btn);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
    color: var(--text-on-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    z-index: 10;
    visibility: visible;
    opacity: 1;
}

.header-actions .btn-search,
.header-actions .btn-theme,
.header-actions .mobile-menu-btn {
    visibility: visible;
    opacity: 1;
}

.btn-search,
.btn-theme {
    width: 38px;
    height: 38px;
    border: none;
    background: var(--btn-icon-bg);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--icon-text);
    font-size: 1rem;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    border: none;
    background: var(--btn-icon-bg);
    border-radius: 8px;
    cursor: pointer;
    color: var(--icon-text);
    font-size: 1.1rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.btn-search:hover,
.btn-theme:hover {
    background: var(--accent-bg-hover);
    color: var(--primary-orange);
    transform: scale(1.1);
}

/* 深色模式切换图标 */
.btn-theme {
    overflow: hidden;
}

.btn-theme .fa-moon,
.btn-theme .fa-sun {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1em;
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-theme .fa-sun { display: none; }

[data-theme="dark"] .btn-theme .fa-moon { display: none; }
[data-theme="dark"] .btn-theme .fa-sun { display: flex; }

.mobile-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    border: none;
    background: var(--btn-icon-bg);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--icon-text);
    font-size: 1.1rem;
}

.mobile-menu-btn:hover {
    background: var(--accent-bg-hover);
    color: var(--primary-orange);
}

/* 搜索弹窗 */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-modal {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 600px;
    padding: 1.5rem;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.search-overlay.active .search-modal {
    transform: translateY(0);
}

.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.search-header h2 {
    font-size: 1.25rem;
    color: var(--primary-orange);
    font-weight: 600;
}

.close-search {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-gray);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-search:hover {
    background: var(--primary-orange);
    color: var(--text-on-accent);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-blue);
    background: var(--bg-white);
    box-shadow: var(--shadow-focus-ring-blue);
}

.search-input-wrapper i {
    color: var(--primary-blue);
    font-size: 1.1rem;
    padding-left: 0.5rem;
}

.search-input-wrapper input {
    flex: 1;
    padding: 0.75rem 0.5rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: var(--text-light);
}

.search-input-wrapper .search-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-blue) 100%);
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-input-wrapper .search-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.search-results {
    margin-top: 1.5rem;
}

.popular-searches,
.quick-links {
    margin-bottom: 1.5rem;
}

.popular-searches h3,
.quick-links h3 {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popular-searches h3 i {
    color: var(--primary-orange);
}

.quick-links h3 i {
    color: var(--primary-green);
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.popular-tag {
    padding: 0.4rem 0.8rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-dark);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.popular-tag:hover {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    color: var(--text-on-accent);
    border-color: transparent;
    transform: translateY(-2px);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--text-dark);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.quick-link:hover {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-orange));
    color: var(--text-on-accent);
    border-color: transparent;
}

.quick-link i {
    font-size: 0.9rem;
}

/* 移动端菜单 */


/* ===================================================================
 * 第 3 部分：页面布局
 * 包含：主体内容区域、左右侧边栏、网格布局
 * ===================================================================
 */

/* 主体内容区域 */
.main-content {
    padding-top: 80px;
    padding-bottom: 40px;
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr minmax(260px, 360px);
    gap: 1.5rem;
}

/* 左侧和右侧侧边栏 */
.left-sidebar,
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    overflow: hidden;
}

/* 侧边栏搜索框 */
.sidebar-search-panel {
    padding: 0.75rem !important;
}

.sidebar-search-wrap {
    display: flex;
    width: 100%;
    height: 40px;
    border: 2px solid var(--primary-orange);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-white);
}

.sidebar-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    background: transparent !important;
    box-shadow: none !important;
    min-width: 0;
}

.sidebar-search-input::placeholder {
    color: var(--text-muted);
}

.sidebar-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    border: none !important;
    outline: none !important;
    background: var(--primary-orange) !important;
    color: var(--text-on-accent) !important;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0;
    border-radius: 0;
    pointer-events: auto;
}

.sidebar-search-btn:hover,
.sidebar-search-btn:focus,
.sidebar-search-btn:active,
.sidebar-search-btn:visited,
.sidebar-search-btn:hover i,
.sidebar-search-btn:focus i,
.sidebar-search-btn:active i {
    background: var(--primary-orange) !important;
    color: var(--text-on-accent) !important;
    outline: none !important;
    box-shadow: none !important;
}

.sidebar-search-btn:active {
    background: var(--accent-dark) !important;
}

/* 深色模式 */
[data-theme="dark"] .sidebar-search-wrap {
    background: var(--bg-dark);
    border-color: var(--primary-orange);
}

[data-theme="dark"] .sidebar-search-input {
    color: var(--text-dark);
}

[data-theme="dark"] .sidebar-search-input::placeholder {
    color: var(--text-muted-dark);
}

/* 中间主体 */
.main-center {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===================================================================
 * 第 4 部分：公共组件
 * 包含：面板样式、列表样式、按钮、表单等
 * ===================================================================
 */

/* 面板样式 */
.panel {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.panel-default {
    border: 1px solid var(--border-color);
}

.panel-heading {
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-blue) 100%);
    border-bottom: 1px solid var(--border-color);
}

.panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-accent);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-title i {
    font-size: 0.9rem;
}

.panel-more {
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--bg-light);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.panel-more:hover {
    opacity: 1;
    color: var(--text-on-accent);
}

.panel-body {
    padding: 1rem;
}

/* 公告列表 */
.notice-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.875rem;
    min-width: 0;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list a {
    color: var(--text-dark);
    transition: var(--transition);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.notice-list a:hover {
    color: var(--primary-orange);
    padding-left: 0.5rem;
}

/* 更新列表 */
.update-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}

.update-list li:last-child {
    border-bottom: none;
}

.update-list .date {
    color: var(--text-light);
    white-space: nowrap;
    min-width: 40px;
    flex-shrink: 0;
}

.update-list a {
    color: var(--text-dark);
    transition: var(--transition);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.update-list a:hover {
    color: var(--primary-orange);
}

.update-list .vip-icon {
    color: var(--primary-orange);
    margin-right: 0.35rem;
    font-size: 0.8rem;
}

/* VIP资源列表 */
.vip-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    min-width: 0;
    overflow: hidden;
}

.vip-list li:last-child {
    border-bottom: none;
}

.vip-list a {
    color: var(--text-dark);
    transition: var(--transition);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vip-list .vip-icon {
    color: var(--primary-orange);
    margin-right: 0.35rem;
    font-size: 0.8rem;
}

.vip-list a:hover {
    color: var(--primary-orange);
}

/* ===================================================================
 * 第 5 部分：首页页面模块
 * 包含：轮播图、广告位、网盘导航、热门标签等
 * ===================================================================
 */

/* 轮播图 - 桌面端16:9自适应 */
.carousel-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.swiper-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-inner {
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: block;
}

/* 轮播图左右切换按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--overlay-deep);
    border: none;
    border-radius: 50%;
    color: var(--text-on-accent);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.carousel-wrapper:hover .carousel-control {
    opacity: 1;
}

.carousel-control:hover {
    background: var(--overlay-dark);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 15px;
}

.carousel-control.next {
    right: 15px;
}

/* 轮播图指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-indicators span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--indicator);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.carousel-indicators span.active {
    background: var(--bg-surface);
    transform: scale(1.2);
}

/* 广告位/链接列表 - 两列 */
.ads-grid,
.resource-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ads-column,
.resource-column {
    min-width: 0;
}

/* 广告位列 - 单div内两列显示 */
.ads-column {
    column-count: 2;
    column-gap: 1rem;
}

.ads-column a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-gray);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    break-inside: avoid;
    min-width: 0;
}

.ads-column a:hover {
    color: var(--primary-orange);
}

.ads-column a .date {
    flex-shrink: 0;
    margin-left: 0.5rem;
    color: var(--text-light);
    font-size: 0.75rem;
}

/* 移动端广告位列单列显示 */
@media (max-width: 768px) {
    .ads-column {
        column-count: 1;
    }
}

.link-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-list li:last-child {
    border-bottom: none;
}

.link-list a {
    color: var(--text-dark);
    transition: var(--transition);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 0.5rem;
}

.link-list a:hover {
    color: var(--primary-orange);
}

.link-list .date {
    color: var(--text-light);
    font-size: 0.75rem;
    white-space: nowrap;
}

/* 登录表单 */
.login-form .form-group {
    margin-bottom: 0.75rem;
}

.login-form .form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}

.login-form .form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-focus-ring-blue);
}

.login-form .input-group {
    display: flex;
}

.login-form .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.login-form .input-group-addon {
    padding: 0.625rem 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.login-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-blue) 100%);
    border: none;
    color: var(--text-on-accent);
    font-weight: 600;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.login-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.login-form .register-link,
.login-form .forgot-link {
    color: var(--primary-blue);
    font-size: 0.8rem;
}

.login-form .register-link:hover,
.login-form .forgot-link:hover {
    text-decoration: underline;
}

.login-form .divider {
    margin: 0 0.5rem;
    color: var(--text-light);
}

/* 热门标签 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-cloud .tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--text-gray);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.tags-cloud .tag:hover {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    color: var(--text-on-accent);
    border-color: transparent;
}

/* 网盘导航 - 两列六行图片 */
.cloud-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.cloud-nav-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.cloud-nav-grid a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.cloud-nav-grid img {
    max-width: 100%;
    max-height: 36px;
    object-fit: contain;
}

/* 友情链接 */
.friend-links-section {
    margin-bottom: 1.5rem;
}

.friend-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.friend-links-grid a {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.875rem;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 0.85rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.friend-links-grid a:hover {
    color: var(--text-on-accent);
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    transform: translateY(-1px);
}

[data-theme="dark"] .friend-links-grid a {
    background: var(--bg-dark);
    color: var(--text-dark);
    border-color: var(--border-color-dark);
}

[data-theme="dark"] .friend-links-grid a:hover {
    color: var(--text-on-accent);
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* 底部 */
.footer {
    background: var(--bg-dark-card);
    color: var(--text-on-accent);
    padding: 1.5rem 1rem;
    transition: background 0.3s ease;
}

[data-theme="dark"] .footer {
    background: var(--bg-dark-card);
}

.footer-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3rem;
}

.footer-content {
    display: inline-block;
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.8;
}

.footer-content p {
    margin-bottom: 0.5rem;
    color: var(--footer-text);
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
}

.footer-content .copyright {
    margin-top: 0.5rem;
    color: var(--footer-muted);
}

.footer-content a {
    color: var(--primary-orange);
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-qrcode {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.qrcode-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode-item img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    padding: 0.25rem;
    margin-bottom: 0.25rem;
}

.qrcode-item span {
    font-size: 0.8rem;
    color: var(--footer-bright);
}

/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    color: var(--text-on-accent);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 100;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-btn-blue-hover);
}

.back-to-top.show {
    display: flex;
}

/* ===================================================================
 * 第 6 部分：响应式布局
 * 包含：@media 查询，针对不同屏幕尺寸的适配
 * 排序：按屏幕尺寸从大到小排列
 * ===================================================================
 */

/* 响应式设计 */
@media (max-width: 1600px) {
    .content-wrapper {
        grid-template-columns: minmax(240px, 320px) 1fr minmax(240px, 320px);
    }
}

@media (max-width: 1400px) {
    .content-wrapper {
        grid-template-columns: minmax(200px, 280px) 1fr minmax(200px, 280px);
    }
}

@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: minmax(180px, 260px) 1fr minmax(180px, 260px);
        gap: 1rem;
    }

    .panel-body {
        padding: 0.75rem;
    }
}

/* 1024px 以下笔记本安全区域 */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }

    .content-wrapper {
        grid-template-columns: minmax(160px, 240px) 1fr minmax(160px, 240px);
        gap: 0.75rem;
    }

    .panel-body {
        padding: 0.625rem;
    }

    .panel-heading {
        padding: 0.75rem 0.75rem;
    }

    .panel-title {
        font-size: 0.9rem;
    }

    .notice-list li,
    .vip-list li {
        font-size: 0.8rem;
    }

    .update-list li {
        font-size: 0.75rem;
    }

    .ads-column a {
        font-size: 0.75rem;
    }
}

/* 平板端适配 */
@media (max-width: 992px) {
    .content-wrapper {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .left-sidebar,
    .right-sidebar {
        width: 100% !important;
    }
    
    /* 平板端布局顺序：中间 -> 左侧 -> 右侧 */
    .main-center {
        order: 0 !important;
    }
    
    .left-sidebar {
        order: 1 !important;
    }
    
    .right-sidebar {
        order: 2 !important;
    }
    
    .cloud-nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 平板端显示移动端菜单按钮 */
    .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    .header-actions {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .header-actions .btn-search,
    .header-actions .btn-theme {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .header {
        height: 56px;
    }
    
    .logo img {
        height: 34px;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-menu {
        display: none !important; /* 默认隐藏 */
        flex-direction: column;
        flex-wrap: nowrap;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        gap: 0;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        margin: 0;
        position: fixed;
        left: 0;
        right: 0;
        top: 50px;
        bottom: 0;
        background: var(--bg-surface);
        z-index: 1000;
        box-shadow: none;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    [data-theme="dark"] .nav-menu {
        background: var(--bg-dark-card);
    }
    
    .nav-menu.active {
        display: flex !important;
        transform: translateX(0);
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .header-actions {
        display: flex !important;
        gap: 0.25rem;
    }
    
    .header {
        height: 50px;
    }
    
    .nav-link {
        white-space: nowrap;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        color: var(--nav-text);
        border-bottom: 1px solid var(--border-dark-text);
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: transparent;
        transition: all 0.2s ease;
        border-radius: 0;
    }
    
    [data-theme="dark"] .nav-link {
        color: var(--text-dark-strong);
        border-bottom-color: var(--border-dark-mid);
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: var(--accent-bg-soft);
        color: var(--accent);
        padding-left: 1.5rem;
    }
    
    .nav-item {
        position: relative;
    }
    
    .nav-item .fa-chevron-down {
        transition: transform 0.3s ease;
    }
    
    .nav-item.active .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .btn-login,
    .btn-register {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .header-content {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        height: 50px;
        padding: 0 0.5rem;
    }
    
    .logo {
        flex-shrink: 0;
    }
    
    .logo img {
        height: 30px;
        width: auto;
    }
    
    .nav-menu .btn-login {
        display: block;
        margin: 1rem 1.25rem;
        padding: 0.875rem;
        background: var(--bg-surface);
        color: var(--primary-orange);
        text-align: center;
        border-radius: var(--radius-md);
        font-weight: 600;
        border: 1px solid var(--primary-orange);
    }
    
    .nav-menu .btn-login:hover {
        background: var(--primary-orange);
        color: var(--text-on-accent);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu .btn-register {
        display: block;
        margin: 0 1.25rem 1rem;
        padding: 0.875rem;
        background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
        color: var(--text-on-accent);
        text-align: center;
        border-radius: var(--radius-md);
        font-weight: 600;
    }
    
    .nav-menu .btn-register:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        color: var(--text-on-accent);
    }
    
    /* 移动端二级菜单样式 */
    .nav-menu .has-submenu.active .submenu {
        position: static !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        background: var(--overlay-soft);
        border-radius: 0;
        max-height: 200px;
        overflow-y: auto;
        margin: 0.25rem 0;
        padding: 0.25rem 0;
    }
    
    .nav-menu .submenu {
        display: none !important;
        position: static !important;
        min-width: 100% !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu .submenu a {
        padding: 0.5rem 1.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .btn-search,
    .btn-theme {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .header-actions .btn-search,
    .header-actions .btn-theme {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .content-wrapper {
        padding: 0 0.5rem;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .left-sidebar,
    .right-sidebar {
        display: block;
        width: 100% !important;
    }

    /* 移动端布局顺序：中间 -> 左侧 -> 右侧 */
    .main-center {
        order: 0 !important;
    }

    .left-sidebar {
        order: 1 !important;
    }

    .right-sidebar {
        order: 2 !important;
    }

    /* 移动端侧边栏搜索框间距 */
    .sidebar-search-panel,
    .sidebar-search-form {
        margin-bottom: 1rem;
    }
    
    .ads-grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .cloud-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .swiper-container {
        height: 100%;
    }
    
    .carousel-wrapper {
        aspect-ratio: 16 / 9;
    }
    
    .carousel-control {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .carousel-control.prev {
        left: 10px;
    }
    
    .carousel-control.next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 0.5rem;
    }
    
    .carousel-indicators span {
        width: 8px;
        height: 8px;
    }
    
    .footer-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-content {
        text-align: center;
        width: 100%;
    }
    
    .footer-qrcode {
        justify-content: center;
    }
    
    .qrcode-item img {
        width: 70px;
        height: 70px;
    }
    
    .search-modal {
        padding: 0.75rem;
        width: 95%;
    }
    
    .search-form {
        padding: 0.75rem;
    }
    
    .search-input-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .search-input-wrapper i {
        padding: 0 0.5rem;
    }
    
    .search-input-wrapper input {
        flex: 1;
        min-width: 120px;
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .search-input-wrapper .search-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .search-header {
        padding: 0.75rem 1rem;
    }
    
    .search-header h2 {
        font-size: 1rem;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .quick-link {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .popular-tags {
        gap: 0.5rem;
    }
    
    .popular-tag {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .content-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .main-content {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .left-sidebar,
    .right-sidebar {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .cloud-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .carousel-wrapper {
        aspect-ratio: 16 / 9;
        border-radius: 0;
    }
    
    .btn-login,
    .btn-register {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .btn-login i,
    .btn-register i {
        display: none;
    }
    
    .carousel-control {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .carousel-control.prev {
        left: 8px;
    }
    
    .carousel-control.next {
        right: 8px;
    }
    
    .carousel-indicators span {
        width: 6px;
        height: 6px;
    }
    
    .header-content {
        height: 50px;
    }
    
    .logo img {
        height: 28px;
    }
    
    .header-actions {
        display: flex !important;
        gap: 0.25rem;
    }
    
    .btn-search,
    .btn-theme,
    .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .header-actions .btn-search,
    .header-actions .btn-theme {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .search-overlay {
        padding: 10px 8px;
    }
    
    .search-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 6px;
    }
    
    .search-header {
        padding: 0.6rem 0.75rem;
    }
    
    .search-header h2 {
        font-size: 0.95rem;
    }
    
    .close-search {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }
    
    .search-form {
        padding: 0.5rem;
    }
    
    .search-input-wrapper {
        padding: 0.4rem;
    }
    
    .search-input-wrapper input {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .search-input-wrapper .search-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .search-results {
        padding: 0.4rem 0.5rem 0.5rem;
    }
    
    .popular-tags {
        gap: 0.3rem;
    }
    
    .popular-tag {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    .content-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    
    .left-sidebar,
    .right-sidebar {
        padding-left: 0;
        padding-right: 0;
    }
}



@media (max-width: 768px) {
    /* 导航菜单在移动端通过.active类控制显示/隐藏 */
    .header-actions {
        right: 50px;
    }
}

/* 搜索弹窗样式 */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-dark);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 10px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    background: var(--bg-surface);
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    box-shadow: var(--shadow-modal);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

[data-theme="dark"] .search-modal {
    background: var(--bg-dark-card);
}

.search-overlay.active .search-modal {
    transform: translateY(0);
}

.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-dark-text);
    background: var(--gradient-accent);
    color: var(--text-on-accent);
}

.search-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-on-accent);
}

.close-search {
    background: var(--overlay-light);
    border: none;
    color: var(--text-on-accent);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-search:hover {
    background: var(--overlay-lighter);
    transform: rotate(90deg);
}

.search-form {
    padding: 1.5rem;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-focus-ring-blue);
}

.search-input-wrapper i {
    color: var(--text-gray);
    padding: 0 0.75rem;
    font-size: 1.1rem;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: var(--text-light);
}

.search-input-wrapper .search-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    color: var(--text-on-accent);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-input-wrapper .search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.search-results {
    padding: 0 1.5rem 1.5rem;
}

.popular-searches,
.quick-links {
    margin-bottom: 1.25rem;
}

.popular-searches h3,
.quick-links h3 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popular-searches h3 i {
    color: var(--primary-orange);
}

.quick-links h3 i {
    color: var(--primary-blue);
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.popular-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-info-soft), var(--bg-success-soft));
    border: 1px solid var(--border-info-soft);
    border-radius: var(--radius-md);
    color: var(--primary-blue);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popular-tag:hover {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    color: var(--text-on-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: var(--primary-blue);
    color: var(--text-on-accent);
    transform: translateY(-2px);
}

.quick-link i {
    font-size: 1rem;
}

/* 深色模式适配搜索弹窗 */
[data-theme="dark"] .search-modal {
    background: var(--bg-dark-card);
}

[data-theme="dark"] .search-input-wrapper {
    background: var(--bg-dark-input);
    border-color: var(--border-dark-strong);
}

[data-theme="dark"] .search-input-wrapper input {
    color: var(--text-dark-strong);
}

[data-theme="dark"] .quick-link {
    background: var(--bg-dark-input);
    color: var(--text-dark-strong);
}

/* 移动端搜索弹窗 */
@media (max-width: 640px) {
    .search-overlay {
        padding: 15px 10px;
        align-items: flex-start;
    }
    
    .search-modal {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 8px;
    }
    
    .search-header {
        padding: 0.75rem 1rem;
    }
    
    .search-header h2 {
        font-size: 1rem;
    }
    
    .search-form {
        padding: 0.75rem;
    }
    
    .search-input-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
        border-radius: 8px;
    }
    
    .search-input-wrapper i {
        display: none;
    }
    
    .search-input-wrapper input {
        width: 100%;
        padding: 0.6rem;
        font-size: 0.95rem;
        text-align: center;
    }
    
    .search-input-wrapper .search-btn {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .search-results {
        padding: 0.5rem 0.75rem 0.75rem;
    }
    
    .popular-searches,
    .quick-links {
        margin-bottom: 0.75rem;
    }
    
    .popular-searches h3,
    .quick-links h3 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .quick-link {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .popular-tags {
        gap: 0.35rem;
    }
    
    .popular-tag {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* ===================================================================
 * 第 7 部分：页面专用样式
 * 包含：资源列表页、资源详情页、个人中心页等
 * 每个页面模块内已包含对应的响应式和深色模式样式
 * ===================================================================
 */

/* ==================== 资源列表页面样式 ==================== */

/* 移动端筛选分类切换按钮 */
.mobile-filter-toggle {
    display: none;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    color: var(--text-on-accent);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.mobile-filter-toggle i {
    margin-right: 0.5rem;
}

/* 筛选面板 */
.filter-panel {
    margin-bottom: 1rem;
}

/* 技巧页面 - 电脑端默认展开 */
.page-skills .filter-panel {
    display: block;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid var(--border-color);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.5rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.category-list a i {
    width: 20px;
    margin-right: 0.5rem;
    text-align: center;
    color: var(--primary-orange);
}

.category-list a:hover,
.category-list a.active {
    color: var(--primary-orange);
    background: var(--bg-light);
}

.category-list a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-orange);
}

/* 资源列表标题区域 */
.panel-heading .resource-count {
    font-size: 0.85rem;
    font-weight: normal;
    color: var(--text-on-accent);
    margin-left: 0.5rem;
}

.panel-heading .resource-count .count {
    color: var(--accent-soft);
    font-weight: 600;
}

/* 排序筛选标签样式 */
.sort-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sort-tag {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    background: var(--bg-light);
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.sort-tag:hover {
    color: var(--text-on-accent);
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.sort-tag.active {
    color: var(--text-on-accent);
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* 资源列表 */
.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.resource-item:last-child {
    border-bottom: none;
}

.resource-item:hover {
    background: var(--bg-light);
}

.resource-tag {
    flex-shrink: 0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-on-accent);
    margin-right: 0.75rem;
}

.resource-tag.top {
    background: var(--primary-hover);
}
.resource-tag.recommend {
    background: var(--primary-orange);
}
.resource-tag.headline {
    background: var(--primary-blue);
}
.resource-tag.wangpan {
    background: var(--primary-green);
}

.resource-title {
    flex: 1;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.resource-title:hover {
    color: var(--primary-orange);
}

.resource-title .vip-icon {
    color: var(--primary-orange);
    margin-right: 0.35rem;
    font-size: 0.8rem;
}

.resource-date {
    flex-shrink: 0;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-left: 0.75rem;
}

/* 分页样式 */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.pagination a {
    color: var(--text-gray);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.pagination a:hover {
    color: var(--text-on-accent);
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.pagination a.active,
.pagination a.page-num.page-num-current {
    color: var(--text-on-accent);
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.pagination .page-ellipsis {
    color: var(--text-gray);
    border: none;
    background: none;
}

.pagination .page-select {
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-left: 0.5rem;
    cursor: pointer;
}

/* 移动端适配 - 资源列表页面 */
@media (max-width: 992px) {
    .page-list .mobile-filter-toggle {
        display: block;
    }
    
    .page-list .filter-panel {
        display: none;
    }
    
    .page-list .filter-panel.active {
        display: block;
    }
    
    /* 资源列表页面保持左侧优先 */
    .page-list .left-sidebar {
        order: 0 !important;
    }
    
    .page-list .main-center {
        order: 1 !important;
    }
    
    .page-list .right-sidebar {
        order: 2 !important;
    }
    
    /* 技巧页面移动端布局：左侧优先 */
    .page-skills .mobile-filter-toggle {
        display: block;
    }
    
    .page-skills .filter-panel {
        display: none;
    }
    
    .page-skills .filter-panel.active {
        display: block;
    }
    
    .page-skills .left-sidebar {
        order: 0 !important;
    }
    
    .page-skills .main-center {
        order: 1 !important;
    }
    
    .page-skills .right-sidebar {
        order: 2 !important;
    }
}

@media (max-width: 768px) {
    .sort-tags {
        gap: 0.4rem;
    }
    
    .sort-tag {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .resource-item {
        flex-wrap: wrap;
    }
    
    .resource-title {
        width: calc(100% - 80px);
        white-space: normal;
    }
    
    .resource-date {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: left;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .page-select {
        display: none;
    }
}

/* ==================== 资源详情页面样式 ==================== */

/* 资源标题区域 */
.article-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.article-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.article-meta .meta-item i {
    color: var(--primary-orange);
}

/* 资源信息 */
.article-info {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0.75rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-right: 0.5rem;
}

.info-value {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.netdisk-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-on-accent);
}

.netdisk-tag.ext_type {
    background: var(--primary-green);
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--primary-orange);
    color: var(--text-on-accent);
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
}

.tag-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    color: var(--text-gray);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition);
}

.tag-link:hover {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    color: var(--text-on-accent);
    border-color: transparent;
}

/* 资源内容 */
.article-content {
    margin-bottom: 1.5rem;
}

.content-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-orange);
    display: inline-block;
}

.content-text {
    line-height: 1.8;
    color: var(--text-gray);
}

.content-text p {
    margin-bottom: 0.75rem;
}

/* 资源提示 */
.article-notice {
    display: flex;
    align-items: flex-start;
    background: var(--bg-warning);
    border: 1px solid var(--color-warning);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.notice-icon {
    color: var(--color-warning);
    font-size: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.notice-text p {
    margin: 0;
    color: var(--color-warning-dark);
    font-size: 0.9rem;
}

.notice-text a {
    color: var(--primary-orange);
    text-decoration: none;
}

.notice-text a:hover {
    text-decoration: underline;
}

/* 登录提示 */
.login-prompt {
    background: var(--bg-danger-prompt);
    border: 1px solid var(--border-danger);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-prompt h4 {
    margin: 0 0 0.5rem 0;
    color: var(--color-danger-dark);
    font-size: 1rem;
}

.login-prompt p {
    margin: 0;
    color: var(--color-danger-dark);
    font-size: 0.9rem;
}

.btn-link {
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

/* 操作按钮 */
.article-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-readmore {
    background: var(--primary-green);
    color: var(--text-on-accent);
}

.btn-readmore:hover {
    background: var(--accent-color);
}

.btn-action.centered {
    margin: 0 auto;
}

.btn-like {
    background: var(--primary-orange);
    color: var(--text-on-accent);
}

.btn-like:hover {
    background: var(--accent-dark);
}

.btn-follow {
    background: var(--color-success);
    color: var(--text-on-accent);
}

.btn-follow:hover {
    background: var(--color-success-dark);
}

/* VIP资源链接 */
.vip-resource-links {
    background: var(--bg-success);
    border: 1px solid var(--border-success);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.vip-status {
    color: var(--color-success-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-success);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vip-status i {
    color: var(--color-warning);
}

.link-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.link-label {
    font-weight: 600;
    color: var(--color-success-dark);
    flex-shrink: 0;
}

.link-url {
    color: var(--primary-orange);
    text-decoration: none;
    word-break: break-all;
}

.link-url:hover {
    text-decoration: underline;
}

.tiquma {
    color: var(--color-success-dark);
    margin-left: 0.5rem;
}

.tiqumazhi {
    font-weight: 600;
    color: var(--color-danger);
    background: var(--bg-surface);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.6rem;
    background: var(--primary-orange);
    color: var(--text-on-accent);
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 0.5rem;
}

.btn-copy:hover {
    background: var(--accent-dark);
}

/* 上下篇 */
.prev-next {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prev-item,
.next-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.prev-item .label,
.next-item .label {
    color: var(--text-gray);
    flex-shrink: 0;
}

.prev-item a,
.next-item a {
    color: var(--primary-orange);
    text-decoration: none;
    word-break: break-all;
}

.prev-item a:hover,
.next-item a:hover {
    text-decoration: underline;
}

/* 相关资源 */
.related-resources .resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-resources .resource-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.related-resources .resource-list li:last-child {
    border-bottom: none;
}

.related-resources .resource-title {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 0.5rem;
}

.related-resources .resource-title:hover {
    color: var(--primary-orange);
}

.related-resources .resource-date {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* 右侧边栏相关资源 */
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--transition);
}

.related-list a:hover {
    color: var(--primary-orange);
}

/* 相关推荐两列布局 */
.related-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
}

.related-grid-2col li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.related-grid-2col a {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 576px) {
    .related-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* 评论列表 */
.comment-list {
    margin-bottom: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-dark);
}

.comment-time {
    color: var(--text-light);
    font-size: 0.8rem;
}

.comment-reply {
    color: var(--text-gray);
    font-size: 0.8rem;
    text-decoration: none;
}

.comment-reply:hover {
    color: var(--primary-orange);
}

.comment-text {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.9rem;
}

.comment-text p {
    margin: 0;
}

/* 子评论 */
.comment-reply-list {
    margin-top: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
}

.reply-item {
    padding: 0.75rem 0;
    border-bottom: none;
}

/* 评论分页 */
.comment-pagination {
    margin-bottom: 1.5rem;
}

/* 评论表单 */
.comment-form {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.25rem;
}

.comment-form h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.comment-form h3 small {
    font-weight: normal;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.comment-form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 100px;
}

.comment-form .form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.comment-form .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}

.comment-form .btn-primary {
    background: var(--primary-orange);
    color: var(--text-on-accent);
}

.comment-form .btn-primary:hover {
    background: var(--accent-dark);
}

/* 已登录评论表单 */
.comment-form-logged .comment-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.9rem;
}

.comment-form-logged .comment-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-form-logged .comment-user-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    flex-wrap: wrap;
}

.comment-form-logged .comment-username {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.comment-form-logged .comment-username strong {
    color: var(--primary-orange);
}

.comment-form-logged .comment-logout {
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: none;
    margin-left: auto;
}

.comment-form-logged .comment-logout:hover {
    color: var(--primary-orange);
}

/* 评论textarea激活样式 */
.comment-form-logged .form-control {
    background: var(--bg-white);
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.comment-form-logged .form-control:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-focus-ring);
}

/* 验证码 + 提交按钮组合行 */
.comment-form-logged .form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.captcha-input {
    width: 110px !important;
    min-height: auto !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem !important;
    resize: none !important;
    flex-shrink: 0;
}

.captcha-canvas {
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    vertical-align: middle;
}

.btn-submit-comment {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    flex-shrink: 0;
}

/* 移动端适配 - 详情页 */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.25rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .article-actions {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }

    .comment-item {
        flex-direction: column;
    }

    .comment-avatar {
        margin-bottom: 0.5rem;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .comment-form .form-actions {
        flex-direction: column;
    }

    .comment-form .btn {
        width: 100%;
        justify-content: center;
    }

    /* 移动端验证码行 */
    .captcha-group {
        width: 100%;
    }

    .captcha-input {
        flex: 1;
        width: auto !important;
    }

    .btn-submit-comment {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== 个人中心页面样式 ==================== */

/* 用户头像下拉菜单 */
.user-dropdown {
    position: relative;
}

.user-avatar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 20px;
    transition: var(--transition);
    cursor: pointer;
}

.user-avatar-link:hover {
    background: var(--bg-light);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 0.9rem;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-avatar-link i {
    font-size: 0.7rem;
    color: var(--text-gray);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    margin-top: 0.5rem;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.user-dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.user-dropdown-menu a:last-child {
    border-radius: 0 0 8px 8px;
}

.user-dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-orange);
}

.user-dropdown-menu a.logout {
    color: var(--color-danger);
    border-top: 1px solid var(--border-color);
}

.user-dropdown-menu a.logout:hover {
    background: var(--bg-danger-soft);
}

.user-dropdown-menu i {
    width: 16px;
    text-align: center;
}

/* QQ群板块 */
.qq-group-info {
    font-size: 0.9rem;
}

.qq-group-info > p {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.qq-group-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qq-group-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.qq-group-list li:last-child {
    border-bottom: none;
}

.qq-num {
    font-weight: 600;
    color: var(--primary-orange);
    min-width: 20px;
}

.qq-status {
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: auto;
    background: var(--color-success);
    color: var(--text-on-accent);
}

.qq-status.full {
    background: var(--color-danger);
}

.qq-status.new {
    background: var(--primary-orange);
}

.qq-tip {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.vip-tip {
    font-size: 0.85rem;
    color: var(--color-danger);
    font-weight: 500;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vip-tip i {
    color: var(--color-warning);
}

.vip-hidden资源 {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-warning);
    border-radius: 8px;
}

.vip-hidden资源 p {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: var(--color-warning-dark);
}

.vip-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-orange);
    color: var(--text-on-accent);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.vip-link-btn:hover {
    background: var(--accent-dark);
    color: var(--text-on-accent);
}

/* 个人资料卡片 */
.profile-card {
    background: var(--bg-surface);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-orange);
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: var(--primary-orange);
    color: var(--text-on-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.avatar-edit:hover {
    background: var(--accent-dark);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.profile-vip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--gradient-warning);
    color: var(--text-on-accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.vip-badge i {
    font-size: 0.75rem;
}

.vip-expire {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.vip-renew {
    color: var(--primary-orange);
    text-decoration: none;
    font-size: 0.85rem;
}

.vip-renew:hover {
    text-decoration: underline;
}

/* 详细信息 */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.detail-label {
    font-weight: 500;
    color: var(--text-gray);
    white-space: nowrap;
    min-width: 70px;
}

.detail-value {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.detail-value.empty {
    color: var(--text-light);
    font-style: italic;
}

.detail-value.points {
    color: var(--primary-orange);
    font-weight: 600;
}

.vip-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--primary-orange);
    color: var(--text-on-accent);
    border-radius: 4px;
    font-size: 0.8rem;
}

/* 右侧菜单 */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list li {
    border-bottom: 1px solid var(--border-color);
}

.menu-list li:last-child {
    border-bottom: none;
}

.menu-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.menu-list li a:hover {
    color: var(--primary-orange);
    padding-left: 0.75rem;
}

.menu-list li.active a {
    color: var(--primary-orange);
    background: var(--bg-light);
    border-left: 3px solid var(--primary-orange);
}

.menu-list i {
    width: 20px;
    text-align: center;
    color: var(--primary-orange);
}

/* ==================== 深色模式适配 ==================== */
/* 用户头像下拉菜单深色模式 */
[data-theme="dark"] .user-avatar-link {
    color: var(--text-dark);
}

[data-theme="dark"] .user-avatar-link:hover {
    background: var(--overlay-light);
}

[data-theme="dark"] .user-avatar-link i {
    color: var(--text-gray);
}

[data-theme="dark"] .user-dropdown-menu {
    background: var(--bg-white);
    border-color: var(--border-color);
}

[data-theme="dark"] .user-dropdown-menu a {
    color: var(--text-dark);
}

[data-theme="dark"] .user-dropdown-menu a:hover {
    background: var(--overlay-subtle);
}

[data-theme="dark"] .user-dropdown-menu a.logout {
    border-top-color: var(--border-color);
}

/* 个人资料卡片深色模式 */
[data-theme="dark"] .profile-card {
    background: var(--bg-white);
}

[data-theme="dark"] .profile-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .profile-name {
    color: var(--text-dark);
}

[data-theme="dark"] .profile-avatar img {
    border-color: var(--primary-orange);
}

[data-theme="dark"] .vip-expire {
    color: var(--text-gray);
}

[data-theme="dark"] .detail-item {
    background: var(--bg-light);
}

[data-theme="dark"] .detail-label {
    color: var(--text-gray);
}

[data-theme="dark"] .detail-value {
    color: var(--text-dark);
}

[data-theme="dark"] .detail-value.empty {
    color: var(--text-light);
}

/* QQ群板块深色模式 */
[data-theme="dark"] .qq-group-info > p {
    color: var(--text-dark);
}

[data-theme="dark"] .qq-group-list li {
    border-bottom-color: var(--border-color);
}

/* 右侧菜单深色模式 */
[data-theme="dark"] .menu-list li {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .menu-list li a {
    color: var(--text-dark);
}

[data-theme="dark"] .menu-list li.active a {
    background: var(--bg-light);
}

/* 分页深色模式 */
[data-theme="dark"] .pagination {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .pagination a {
    color: var(--text-gray);
    background: var(--bg-white);
    border-color: var(--border-color);
}

[data-theme="dark"] .pagination .page-ellipsis {
    color: var(--text-gray);
    background: none;
    border: none;
}

[data-theme="dark"] .pagination .page-select {
    background: var(--bg-white);
    border-color: var(--border-color);
    color: var(--text-dark);
}

/* 评论分页深色模式 */
[data-theme="dark"] .comment-pagination {
    /* 深色模式下评论分页的样式 */
    background: var(--bg-dark);
    color: var(--text-light);
}

[data-theme="dark"] .comment-pagination a {
    color: var(--text-light);
    background: var(--bg-dark);
    border-color: var(--border-dark);
}

[data-theme="dark"] .comment-pagination a:hover {
    background: var(--bg-dark-hover);
}

[data-theme="dark"] .comment-pagination .active span {
    background: var(--primary-orange);
    color: var(--text-on-accent);
}

/* 登录注册按钮深色模式 */
[data-theme="dark"] .btn-login {
    background: var(--bg-white);
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

[data-theme="dark"] .btn-login:hover {
    background: var(--primary-orange);
    color: var(--text-on-accent);
}

[data-theme="dark"] .btn-register {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-dark));
    color: var(--text-on-accent);
    box-shadow: 0 2px 8px var(--accent);
}

[data-theme="dark"] .btn-register:hover {
    box-shadow: 0 4px 12px var(--accent-dark);
}

/* ==================== 登录页面样式 ==================== */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 1rem;
}

.login-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-dark));
    padding: 2rem;
    text-align: center;
    color: var(--text-on-accent);
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-header h2 i {
    margin-right: 0.5rem;
}

.login-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.login-tip {
    background: var(--bg-warning);
    border-left: 4px solid var(--color-warning);
    padding: 0.75rem 1rem;
    margin: 1rem 1.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--color-warning-dark);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.login-tip i {
    flex-shrink: 0;
    margin-top: 2px;
}

.login-form {
    padding: 1.5rem 2rem 2rem;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-form label i {
    color: var(--primary-orange);
    width: 16px;
}

.login-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-surface);
    color: var(--text-dark);
}

.login-form .form-control:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-focus-ring);
}

.login-form .form-control::placeholder {
    color: var(--text-light);
}

.code-input-wrapper {
    display: flex;
    gap: 0.75rem;
}

.code-input-wrapper .form-control {
    flex: 1;
}

.code-input-wrapper .codeimg {
    height: 42px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.code-input-wrapper .codeimg:hover {
    opacity: 0.8;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-login-submit {
    flex: 1;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-dark));
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

.btn-reset {
    padding: 0.85rem 1.5rem;
    background: var(--bg-surface);
    color: var(--text-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.form-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.text-secondary {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.link-primary {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
}

.link-primary:hover {
    text-decoration: underline;
}

/* 登录页面深色模式 */
[data-theme="dark"] .login-card {
    background: var(--bg-white);
}

[data-theme="dark"] .login-tip {
    background: rgba(var(--warning-rgb), 0.15);
    border-left-color: var(--color-warning);
    color: var(--color-warning);
}

[data-theme="dark"] .login-form label {
    color: var(--text-dark);
}

[data-theme="dark"] .login-form .form-control {
    background: var(--bg-white);
    border-color: var(--border-color);
    color: var(--text-dark);
}

[data-theme="dark"] .login-form .form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-focus-ring);
}

[data-theme="dark"] .code-input-wrapper .codeimg {
    border-color: var(--border-color);
    background: var(--bg-white);
}

[data-theme="dark"] .btn-reset {
    background: var(--bg-white);
    border-color: var(--border-color);
    color: var(--text-gray);
}

[data-theme="dark"] .btn-reset:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

[data-theme="dark"] .form-footer {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .text-secondary {
    color: var(--text-gray);
}

/* 注册页面额外样式 */
.register-card {
    max-width: 520px;
}

.form-tip {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    display: none;
}

.form-tip.error {
    display: block;
    color: var(--color-danger);
    background: var(--bg-danger-soft);
}

.form-tip.success {
    display: block;
    color: var(--color-success);
    background: var(--bg-success-soft);
}

.form-tip i {
    margin-right: 0.35rem;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    color: var(--text-dark);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-orange);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--primary-orange);
    border-radius: 50%;
}

.radio-label i {
    color: var(--text-gray);
}

.btn-send-code {
    padding: 0.75rem 1rem;
    background: var(--primary-blue);
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-send-code:hover {
    background: var(--color-info-dark);
}

/* 注册页面深色模式 */
[data-theme="dark"] .form-tip.error {
    background: var(--bg-danger-soft-dark);
}

[data-theme="dark"] .form-tip.success {
    background: var(--bg-success-soft-dark);
}

[data-theme="dark"] .radio-label {
    color: var(--text-dark);
}

[data-theme="dark"] .radio-custom {
    border-color: var(--border-color);
}

[data-theme="dark"] .radio-label i {
    color: var(--text-gray);
}

[data-theme="dark"] .btn-send-code {
    background: var(--primary-blue);
}

[data-theme="dark"] .btn-send-code:hover {
    background: var(--color-info);
}

/* ==================== 资料修改页面样式 ==================== */
.profile-form {
    width: 100%;
}

.form-group-row {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.form-group-row:last-of-type {
    border-bottom: none;
}

.form-group-row .form-label {
    width: 120px;
    flex-shrink: 0;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.form-group-row .form-label i {
    color: var(--primary-orange);
    width: 16px;
    text-align: center;
}

.form-group-row.required .form-label {
    color: var(--color-danger);
}

.form-group-row.required .form-label i {
    color: var(--color-danger);
}

.form-group-row .form-value {
    flex: 1;
    padding-left: 1rem;
}

.form-group-row .form-control {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg-surface);
    color: var(--text-dark);
}

.form-group-row .form-control:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-focus-ring);
}

.form-group-row .form-control::placeholder {
    color: var(--text-light);
}

.form-group-row .form-tip {
    font-size: 0.8rem;
    margin-top: 0.35rem;
    color: var(--text-gray);
}

.form-group-row .form-tip.error {
    color: var(--color-danger);
}

.form-group-row .form-tip.success {
    color: var(--color-success);
}

.form-group-row .form-tip i {
    margin-right: 0.25rem;
}

/* 原生 date input 样式适配 */
input[type="date"] {
    color-scheme: light;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-orange);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-upload {
    padding: 0.5rem 1rem;
    background: var(--primary-orange);
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-upload:hover {
    background: var(--primary-dark);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.btn-save {
    padding: 0.75rem 2rem;
    background: var(--primary-orange);
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-save:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-cancel {
    padding: 0.75rem 2rem;
    background: var(--bg-surface);
    color: var(--text-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cancel:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* 资料修改页面深色模式 */
[data-theme="dark"] .profile-form .form-group-row {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .profile-form .form-label {
    color: var(--text-dark);
}

[data-theme="dark"] .profile-form .form-control {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-dark);
}

[data-theme="dark"] .profile-form .form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-focus-ring);
}

[data-theme="dark"] .profile-form .form-control::placeholder {
    color: var(--text-light);
}

/* Profile表单中select下拉框的深色模式 */
[data-theme="dark"] .profile-form select.form-control {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-dark);
    cursor: pointer;
}

/* Profile表单中date input的深色模式 */
[data-theme="dark"] .profile-form input[type="date"].form-control {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-dark);
    color-scheme: dark;
}

[data-theme="dark"] .profile-form .form-tip {
    color: var(--text-gray);
}

[data-theme="dark"] .btn-cancel {
    background: var(--bg-white);
    border-color: var(--border-color);
    color: var(--text-gray);
}

[data-theme="dark"] .btn-cancel:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* ==================== 我的评论页面样式 ==================== */
.my-comment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.my-comment-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-orange);
    transition: var(--transition);
}

.my-comment-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.my-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.comment-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.comment-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.comment-status.approved {
    background: var(--bg-success-soft);
    color: var(--color-success);
}

.comment-status.pending {
    background: var(--bg-warning-soft);
    color: var(--color-warning);
}

.comment-delete {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--color-danger);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
}

.comment-delete:hover {
    background: var(--bg-danger-soft);
    color: var(--color-danger);
}

.my-comment-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.my-comment-content > i {
    color: var(--primary-orange);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.my-comment-content p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
}

.my-comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
}

.my-comment-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.my-comment-meta .meta-item i {
    color: var(--text-light);
}

/* 评论分页样式 */
.comment-pagination {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 我的评论页面深色模式 */
[data-theme="dark"] .my-comment-item {
    background: var(--bg-white);
    border-left-color: var(--primary-orange);
}

[data-theme="dark"] .my-comment-item:hover {
    background: var(--bg-light);
}

[data-theme="dark"] .comment-title {
    color: var(--text-dark);
}

[data-theme="dark"] .comment-status.approved {
    background: var(--bg-success-soft-dark);
    color: var(--color-success);
}

[data-theme="dark"] .comment-status.pending {
    background: rgba(var(--warning-rgb), 0.2);
    color: var(--color-warning);
}

[data-theme="dark"] .comment-delete:hover {
    background: var(--bg-danger-soft-dark);
}

[data-theme="dark"] .my-comment-content > i {
    color: var(--primary-orange);
}

[data-theme="dark"] .my-comment-content p {
    color: var(--text-dark);
}

[data-theme="dark"] .my-comment-meta {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .my-comment-meta .meta-item {
    color: var(--text-gray);
}

[data-theme="dark"] .my-comment-meta .meta-item i {
    color: var(--text-light);
}

[data-theme="dark"] .comment-pagination {
    border-top-color: var(--border-color);
}

/* 移动端适配 - 我的评论 */
@media (max-width: 576px) {
    .my-comment-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .comment-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .my-comment-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ==================== 帮找资源页面样式 ==================== */
.help-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.help-intro {
    line-height: 1.8;
    color: var(--text-dark);
}

.help-tip-highlight {
    background: var(--bg-warning);
    border-left: 4px solid var(--color-warning);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-tip-highlight i {
    color: var(--color-warning);
    flex-shrink: 0;
}

.help-tip-highlight a {
    color: var(--primary-orange);
    font-weight: 600;
}

.help-tip-highlight strong {
    color: var(--color-warning-dark);
}

.help-intro h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-dark);
}

.help-rules {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.help-rules li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.help-notice {
    background: var(--bg-info);
    border-left: 4px solid var(--color-info);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.help-notice h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--color-info);
    font-size: 0.95rem;
}

.help-notice h4 i {
    margin-right: 0.5rem;
}

.help-notice ol {
    margin: 0;
    padding-left: 1.25rem;
}

.help-notice ol li {
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* 帮找资源表单 */
.help-form .form-group {
    margin-bottom: 1.25rem;
}

.help-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.help-form label i {
    color: var(--primary-orange);
}

.help-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-surface);
    color: var(--text-dark);
    resize: vertical;
    font-family: inherit;
}

.help-form textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-focus-ring);
}

.help-form textarea::placeholder {
    color: var(--text-light);
}

.code-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.code-input-wrapper input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg-surface);
    color: var(--text-dark);
}

.code-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-focus-ring);
}

.code-input-wrapper .codeimg {
    height: 38px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.code-input-wrapper .codeimg:hover {
    opacity: 0.8;
}

.help-form .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-submit {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-dark));
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

.btn-reset {
    padding: 0.75rem 2rem;
    background: var(--bg-surface);
    color: var(--text-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-reset:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* 帮找需求列表 */
.help-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.help-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-orange);
    transition: var(--transition);
}

.help-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.help-item-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.help-item-header cite {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-orange);
}

/* 需求列表用户头像 */
.help-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 0.5rem;
    border: 2px solid var(--border-color);
}

.help-item-header small {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.help-item-content {
    padding: 0.75rem;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.help-item-content p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.6;
}

.help-item-content a {
    color: var(--primary-orange);
    word-break: break-all;
}

.help-item-feedback {
    padding: 0.75rem;
    background: var(--bg-success-soft);
    border-left: 3px solid var(--color-success);
    border-radius: var(--radius-sm);
}

.help-item-feedback .feedback-header {
    font-size: 0.85rem;
    color: var(--color-success);
    margin-bottom: 0.5rem;
}

.help-item-feedback p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.help-item-feedback a {
    color: var(--primary-orange);
    font-weight: 500;
}

.help-item-feedback.empty {
    background: var(--bg-muted-soft);
    border-left-color: var(--color-muted);
}

.help-item-feedback.empty i {
    color: var(--color-muted);
    margin-right: 0.5rem;
}

/* 帮找资源页面深色模式 */
[data-theme="dark"] .help-intro {
    color: var(--text-dark);
}

[data-theme="dark"] .help-tip-highlight {
    background: rgba(var(--warning-rgb), 0.15);
    border-left-color: var(--color-warning);
}

[data-theme="dark"] .help-tip-highlight strong {
    color: var(--color-warning);
}

[data-theme="dark"] .help-notice {
    background: var(--bg-info-soft-dark);
    border-left-color: var(--color-info);
}

[data-theme="dark"] .help-notice h4 {
    color: var(--color-info);
}

[data-theme="dark"] .help-notice ol li {
    color: var(--text-dark);
}

[data-theme="dark"] .help-form textarea {
    background: var(--bg-white);
    border-color: var(--border-color);
    color: var(--text-dark);
}

[data-theme="dark"] .help-form textarea:focus {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-focus-ring);
}

[data-theme="dark"] .code-input-wrapper input {
    background: var(--bg-white);
    border-color: var(--border-color);
    color: var(--text-dark);
}

[data-theme="dark"] .code-input-wrapper .codeimg {
    background: var(--bg-white);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-reset {
    background: var(--bg-white);
    border-color: var(--border-color);
    color: var(--text-gray);
}

[data-theme="dark"] .btn-reset:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

[data-theme="dark"] .help-item {
    background: var(--bg-white);
}

[data-theme="dark"] .help-item:hover {
    background: var(--bg-light);
}

[data-theme="dark"] .help-item-content {
    background: var(--bg-light);
}

[data-theme="dark"] .help-user-avatar {
    border-color: var(--border-dark-strong);
}

[data-theme="dark"] .help-item-content p {
    color: var(--text-dark);
}

/* 移动端适配 - 帮找资源 */
@media (max-width: 576px) {
    .help-wrapper {
        padding: 0;
    }

    .help-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .code-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .code-input-wrapper .codeimg {
        height: 36px;
        width: 100px;
    }

    .help-form .form-actions {
        flex-direction: column;
    }

    .btn-submit,
    .btn-reset {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== 关于本站页面样式 ==================== */
.about-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.about-intro {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-intro a {
    color: var(--primary-orange);
    font-weight: 500;
}

.about-intro .highlight {
    color: var(--primary-orange);
    font-weight: 600;
}

.about-intro .highlight-red {
    color: var(--color-danger);
    font-weight: 600;
}

.about-divider {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin: 1.5rem 0;
}

.about-notice,
.about-contact,
.about-wechat,
.about-email {
    margin: 1.5rem 0;
}

.about-notice h4,
.about-contact h4,
.about-wechat h4,
.about-email h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-notice h4 i {
    color: var(--color-success);
}

.about-contact h4 i {
    color: var(--primary-orange);
}

.about-wechat h4 i {
    color: var(--color-wechat);
}

.about-email h4 i {
    color: var(--primary-blue);
}

.about-notice p,
.about-contact p,
.about-wechat p,
.about-email p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.about-notice a,
.about-email a {
    color: var(--primary-orange);
    font-weight: 500;
}

/* 关于本站页面深色模式 */
[data-theme="dark"] .about-content {
    color: var(--text-dark);
}

[data-theme="dark"] .about-intro {
    color: var(--text-dark);
}

[data-theme="dark"] .about-divider {
    border-top-color: var(--border-color);
}

/* 移动端适配 - 关于本站 */
@media (max-width: 576px) {
    .about-wrapper {
        padding: 0;
    }

    .about-content {
        font-size: 0.95rem;
    }

    .about-intro {
        font-size: 0.95rem;
    }
}

/* 移动端适配 - 登录页面 */
@media (max-width: 576px) {
    .login-wrapper {
        padding: 1rem;
    }

    .login-card {
        border-radius: var(--radius-lg);
    }

    .login-header {
        padding: 1.5rem;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .login-tip {
        margin: 1rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .login-form {
        padding: 1rem 1.25rem 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-login-submit,
    .btn-reset {
        width: 100%;
    }

    .form-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }


    /* 资料修改页面移动端 */
    .profile-form {
        padding: 0;
        width: 100%;
    }

    .form-group-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-group-row .form-label {
        width: 100%;
        padding-top: 0;
    }

    .form-group-row .form-value {
        width: 100%;
        padding-left: 0;
    }

    .form-group-row .form-value .form-control {
        width: 100%;
    }

    .avatar-upload {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-save,
    .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}

/* 移动端适配 - 个人中心 */
@media (max-width: 992px) {
    .user-dropdown-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    .user-dropdown:hover .user-dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-vip {
        justify-content: center;
    }

    .detail-item {
        min-width: 100%;
    }
}

/* ==================== VIP会员页面样式 ==================== */
.vip-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.vip-intro {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.vip-intro p {
    margin-bottom: 0.75rem;
}

.vip-highlight {
    color: var(--color-danger);
    font-weight: 600;
}

.vip-highlight-orange {
    color: var(--primary-orange);
    font-weight: 600;
}

.vip-notice {
    background: var(--bg-warning);
    border-left: 4px solid var(--color-warning);
    padding: 1rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.vip-notice p {
    margin: 0;
    color: var(--color-warning-dark);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.vip-notice p:last-child {
    margin-bottom: 0;
}

.vip-date {
    text-align: right;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 1.5rem 0;
}

/* 收费标准对比表格 */
.price-comparison {
    margin: 2rem 0;
    overflow-x: auto;
}

.price-comparison h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-comparison h3 i {
    color: var(--primary-orange);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.price-table th,
.price-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.price-table th {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-dark));
    color: var(--text-on-accent);
    font-weight: 600;
    font-size: 1rem;
}

.price-table th:first-child {
    text-align: left;
}

.price-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-dark);
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover {
    background: var(--bg-light);
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-danger);
}

.price-value.year {
    color: var(--primary-orange);
}

.price-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-success);
    color: var(--text-on-accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.price-tag.old {
    background: var(--color-muted);
}

/* 旧标准表格 */
.old-price-section {
    margin-top: 2rem;
    opacity: 0.85;
}

.old-price-section h3 {
    color: var(--text-gray);
}

.old-price-section .price-table th {
    background: var(--color-muted);
}

/* 补充说明 */
.vip-extra-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.vip-extra-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vip-extra-info h4 i {
    color: var(--primary-orange);
}

.vip-extra-info ul {
    padding-left: 1.25rem;
    margin: 0;
}

.vip-extra-info li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.vip-extra-info li:last-child {
    margin-bottom: 0;
}

.vip-extra-info li strong {
    color: var(--primary-orange);
}

/* 打赏说明 */
.vip-donate {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.vip-donate h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.vip-donate h4 i {
    color: var(--primary-orange);
}

.vip-donate-img {
    max-width: 300px;
    margin: 1rem auto;
    display: block;
    border-radius: 8px;
}

.vip-donate p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.vip-donate p:last-child {
    margin-bottom: 0;
}

.vip-donate .highlight {
    color: var(--primary-orange);
    font-weight: 600;
}

.vip-donate .highlight-red {
    color: var(--color-danger);
    font-weight: 600;
}

/* 联系方式 */
.vip-contact {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
}

.vip-contact h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.vip-contact h4 i {
    color: var(--primary-orange);
}

.vip-contact p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.vip-contact p:last-child {
    margin-bottom: 0;
}

/* 打赏码图片 */
.vip-qrcode {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.vip-qrcode h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.vip-qrcode h4 i {
    color: var(--primary-orange);
}

.vip-qrcode img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* VIP页面深色模式 */
[data-theme="dark"] .vip-intro {
    color: var(--text-dark);
}

[data-theme="dark"] .price-table {
    background: var(--bg-white);
}

[data-theme="dark"] .price-table tr:hover {
    background: var(--bg-light);
}

[data-theme="dark"] .vip-donate {
    background: var(--bg-white);
}

[data-theme="dark"] .vip-contact {
    background: var(--bg-white);
}

[data-theme="dark"] .vip-qrcode {
    background: var(--bg-white);
}

/* 移动端适配 - VIP页面 */
@media (max-width: 576px) {
    .vip-wrapper {
        padding: 0;
    }
    
    .price-table th,
    .price-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .price-value {
        font-size: 1rem;
    }
    
    .price-tag {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .vip-donate-img {
        max-width: 100%;
    }
}

/* ================================================
   上传模态框（upload.html）
   ================================================ */

/* 默认隐藏 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

/* 遮罩层 */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: var(--overlay-medium);
}
.modal-backdrop.show { display: block; }

/* 显示状态 */
.modal.show { display: flex; align-items: center; justify-content: center; }

/* 入场动画 */
.modal.fade .modal-dialog {
    transform: translateY(-30px);
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
    opacity: 0;
}
.modal.show .modal-dialog { transform: translateY(0); opacity: 1; }

/* 弹框容器 */
.modal-dialog {
    position: relative;
    width: auto;
    max-width: 560px;
    margin: 1.75rem auto;
    pointer-events: none;
}
.modal.show .modal-dialog { pointer-events: auto; }

/* 弹框主体 */
.modal-content {
    border: none;
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-modal);
    background: var(--bg-surface);
    color: var(--text-dark);
    overflow: hidden;
}

/* 头部 */
.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* 关闭按钮 */
.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-size: 0.9rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    margin-left: auto;
    padding: 0;
}
.modal-close:hover { background: var(--overlay-soft); color: var(--color-danger); }

/* 主体 */
.modal-body { padding: 1.5rem; background: var(--bg-surface); }

/* ---- Bootstrap Fileinput 美化：输入框+按钮同行 ---- */
/* 强制横向排列，覆盖 explorer-fa 主题的 column 布局 */
.file-loading,
.file-loading .input-group,
.file-loading .file-caption-main,
.file-loading .input-group-btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

/* 文件名显示区 → 左半部分 */
.kv-fileinput-caption,
.file-caption {
    flex: 1 !important;
    height: 40px !important;
    padding: 0 0.85rem !important;
    border: 1px solid var(--border-color) !important;
    border-right: none !important;
    border-radius: var(--radius-sm, 6px) 0 0 var(--radius-sm, 6px) !important;
    background: var(--bg-surface) !important;
    color: var(--text-dark) !important;
    font-size: 0.9rem !important;
    box-shadow: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0 !important;
}

/* 选择文件按钮 → 右半部分 */
.btn-file {
    height: 40px !important;
    padding: 0 1rem !important;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-dark)) !important;
    border: 1px solid transparent !important;
    border-left: none !important;
    border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0 !important;
    color: var(--text-on-accent) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
}
.btn-file:hover {
    filter: brightness(1.08) !important;
    box-shadow: var(--shadow-btn-active);
}

/* 错误提示 */
#kartik-file-errors {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: var(--color-danger);
}

/* 底部按钮区 */
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.modal-footer .btn-primary.uploadSubmit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-dark));
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--radius-sm, 6px);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-btn);
}
.modal-footer .btn-primary.uploadSubmit:hover {
    filter: brightness(1.1);
    box-shadow: var(--shadow-btn-active-hover);
}

.modal-footer .btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: transparent;
    color: var(--text-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 6px);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.modal-footer .btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

/* ---- 暗黑模式 ---- */
[data-theme="dark"] .modal-content {
    background: var(--bg-dark-card);
    color: var(--text-dark-strong);
    box-shadow: var(--shadow-modal-dark);
}

[data-theme="dark"] .modal-header {
    background: var(--bg-dark-card-strong);
    border-bottom-color: var(--border-dark-mid);
}

[data-theme="dark"] .modal-title { color: var(--text-dark-strong); }

[data-theme="dark"] .modal-body { background: var(--bg-dark-card); }

[data-theme="dark"] .modal-footer {
    background: var(--bg-dark-card-strong);
    border-top-color: var(--border-dark-mid);
}

[data-theme="dark"] .kv-fileinput-caption,
[data-theme="dark"] .file-caption {
    background: var(--bg-dark-input) !important;
    border-color: var(--border-dark-strong) !important;
    color: var(--text-dark-strong) !important;
}

[data-theme="dark"] .modal-footer .btn-secondary {
    border-color: var(--border-dark-strong);
    color: var(--text-dark-border);
}
[data-theme="dark"] .modal-footer .btn-secondary:hover {
    background: var(--bg-dark-input);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

[data-theme="dark"] .modal-close:hover { background: var(--overlay-light); }

/* ---- 移动端适配 ---- */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.75rem auto;
        max-width: 100%;
    }

    .modal-content { border-radius: var(--radius-md, 8px); }

    .modal-header,
    .modal-body,
    .modal-footer { padding: 1rem; }

    /* 移动端：文件名区 + 选择按钮纵向堆叠 */
    .file-loading,
    .file-loading .input-group,
    .file-loading .file-caption-main,
    .file-loading .input-group-btn {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.5rem !important;
    }

    .kv-fileinput-caption,
    .file-caption {
        border-right: 1px solid var(--border-color) !important;
        border-radius: var(--radius-sm, 6px) !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .btn-file {
        border-left: 1px solid transparent !important;
        border-radius: var(--radius-sm, 6px) !important;
        width: 100% !important;
        justify-content: center;
        min-width: 0 !important;
    }
}

/* ==================== 图片自适应样式 ==================== */
/* 防止图片撑开页面，保持响应式布局 */
.img-responsive {
    display: block;
    max-width: 100%; /* 最大宽度为容器宽度，防止撑开 */
    height: auto; /* 高度自适应，保持宽高比 */
    width: auto; /* 宽度自适应 */
    margin: 1rem auto; /* 居中显示，上下间距 */
    border-radius: 8px; /* 圆角效果 */
    box-shadow: var(--shadow-card); /* 轻微阴影 */
}

/* 内容区域内所有图片的自适应处理 */
.content-text img,
.article-content img {
    display: block;
    max-width: 100%; /* 最大宽度为容器宽度 */
    height: auto; /* 高度自适应 */
    width: auto; /* 宽度自适应 */
    margin: 1rem auto; /* 居中显示 */
    border-radius: 8px; /* 圆角效果 */
    box-shadow: var(--shadow-card); /* 轻微阴影 */
}

/* 移动端图片优化 */
@media (max-width: 768px) {
    .img-responsive,
    .content-text img,
    .article-content img {
        max-width: 100%; /* 确保移动端也不撑开 */
        margin: 0.75rem auto; /* 减小移动端间距 */
        border-radius: 6px; /* 移动端稍微小一点的圆角 */
    }

    .modal-footer {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }

    .modal-footer .btn-primary.uploadSubmit,
    .modal-footer .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }
}

/* ================================================
   技巧列表 JS 切换：卡片模式 / 列表模式
   ================================================ */

/* 列表模式：容器变为纵向 flex（不再是 grid） */
.skills-grid.view-list {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
}

/* 列表模式：卡片本身变为横向 flex */
.skills-grid.view-list .skill-card {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;  /* 改为 flex-start，不再拉伸子项 */
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
}

/* 列表模式：图片区固定宽度，16:9比例 */
.skills-grid.view-list .skill-image {
    width: 288px !important;
    aspect-ratio: 16/9 !important; /* 使用 aspect-ratio 控制高度比例 */
    min-height: 0 !important; /* 清除固定高度 */
    max-height: none !important;
    height: auto !important;
    padding-bottom: 0 !important;
    position: relative !important;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
    box-sizing: border-box;
    flex-shrink: 0;
    align-self: flex-start;
}

.skills-grid.view-list .skill-image a {
    display: block;
    width: 100%;
    height: 100%;
    position: static;
}

.skills-grid.view-list .skill-image img {
    width: 100%;
    height: 100% !important; /* 使用 100% 填充容器，由 aspect-ratio 控制比例 */
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover;
    display: block;
    position: static !important;
}

/* 列表模式：内容区 flex:1 填充 */
.skills-grid.view-list .skill-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.25rem;
}

/* 列表模式：标题行内显示 badge */
.skills-grid.view-list .skill-content .skill-badge {
    position: static;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0;
}

/* 列表模式：标题与内容同排 */
.skills-grid.view-list .skill-title {
    display: inline;
    font-size: 1rem;
}

.skills-grid.view-list .skill-title a {
    color: var(--primary-orange);
}

/* 列表模式：简介在标题下方 */
.skills-grid.view-list .skill-intro {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 列表模式：meta 信息横排 */
.skills-grid.view-list .skill-meta {
    margin-top: auto;
    padding-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 列表模式：暗黑模式 */
[data-theme="dark"] .skills-grid.view-list .skill-card {
    background: var(--bg-white);
}

[data-theme="dark"] .skills-grid.view-list .skill-title a {
    color: var(--primary-orange);
}

[data-theme="dark"] .skills-grid.view-list .skill-intro {
    color: var(--text-gray);
}

/* 列表模式：移动端适配 - 强制使用卡片模式 */
@media (max-width: 768px) {
    .skills-grid.view-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        flex-direction: initial !important;
    }

    .skills-grid.view-list .skill-card {
        display: block !important;
        flex-direction: initial !important;
    }

    .skills-grid.view-list .skill-image {
        width: 100% !important;
        aspect-ratio: 16/9 !important;
        min-height: 0 !important;
        max-height: none !important;
        height: auto !important;
        padding-bottom: 0 !important;
        border-radius: 8px 8px 0 0 !important;
        align-self: initial !important;
    }

    .skills-grid.view-list .skill-image img {
        position: static !important;
        height: 100% !important;
        width: 100% !important;
    }

    .skills-grid.view-list .skill-content {
        flex: initial !important;
        display: block !important;
        flex-direction: initial !important;
        justify-content: initial !important;
        padding: 1rem !important;
    }

    .skills-grid.view-list .skill-content .skill-badge {
        position: absolute !important;
        display: block !important;
        margin: 0 !important;
    }

    .skills-grid.view-list .skill-title {
        display: block !important;
        font-size: 1rem !important;
    }

    .skills-grid.view-list .skill-title a {
        color: var(--text-dark) !important;
    }

    .skills-grid.view-list .skill-intro {
        display: block !important;
        margin-top: 0.75rem !important;
        -webkit-line-clamp: 2 !important;
    }

    .skills-grid.view-list .skill-meta {
        margin-top: 1rem !important;
        padding-top: 0.75rem !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 576px) {
    .skills-grid.view-list {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .skills-grid.view-list .skill-image {
        width: 100% !important;
        aspect-ratio: 16/9 !important;
    }

    .skills-grid.view-list .skill-badge {
        display: block !important;
        position: absolute !important;
    }

    .skills-grid.view-list .skill-content {
        padding: 0.875rem !important;
    }

    .skills-grid.view-list .skill-title {
        font-size: 0.95rem !important;
    }

    .skills-grid.view-list .skill-intro {
        -webkit-line-clamp: 2 !important;
        font-size: 0.85rem !important;
        margin-top: 0.5rem !important;
    }

    .skills-grid.view-list .skill-meta {
        font-size: 0.8rem !important;
        gap: 0.5rem !important;
        padding-top: 0.5rem !important;
    }
}



/* ==================== 技巧福利页面样式 ==================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-card {
    background: var(--bg-surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.skill-image {
    position: relative;
    aspect-ratio: 16/9; /* 16:9比例 - 使用现代方法替代 padding-bottom hack */
    overflow: hidden;
}

.skill-image img {
    position: static; /* 不使用绝对定位，因为容器已有 aspect-ratio 控制尺寸 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.skill-card:hover .skill-image img {
    transform: scale(1.05);
}

.skill-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-on-accent);
}

.skill-badge.top {
    background: var(--primary-hover);
}

.skill-badge.recommend {
    background: var(--primary-orange);
}

.skill-badge.headline {
    background: var(--primary-blue);
}

.skill-content {
    padding: 1rem;
}

.skill-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.skill-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.skill-title a:hover {
    color: var(--primary-orange);
}

.skill-intro {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.skill-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.skill-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.skill-tag {
    background: var(--bg-light);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    color: var(--primary-orange);
}

/* 技巧页面深色模式 */
[data-theme="dark"] .skill-card {
    background: var(--bg-white);
}

[data-theme="dark"] .skill-title a {
    color: var(--text-dark);
}

/* 视图切换按钮 */
.view-toggle {
    display: inline-flex;
    gap: 0.5rem;
    margin-left: 1rem;
    vertical-align: middle;
}

.view-btn {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-gray);
}

.view-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.view-btn.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--text-on-accent);
}

/* 列表模式 */
.skills-list {
    margin-top: 1.5rem;
}

.skill-item {
    display: flex;
    background: var(--bg-surface);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-card-hover);
}

.skill-item-image {
    flex-shrink: 0;
    width: 240px;
    padding-bottom: 135px; /* 16:9比例 */
    height: 0;
    overflow: hidden;
    position: relative;
}

.skill-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.skill-item:hover .skill-item-image img {
    transform: scale(1.05);
}

.skill-item-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.skill-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.skill-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.skill-item-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.skill-item-title a:hover {
    color: var(--primary-orange);
}

.skill-item-intro {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.skill-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.skill-item-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.skill-item .skill-tag {
    background: var(--bg-light);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    color: var(--primary-orange);
}

/* 列表模式深色模式 */
[data-theme="dark"] .skill-item {
    background: var(--bg-white);
}

[data-theme="dark"] .skill-item-title a {
    color: var(--text-dark);
}

/* 技巧页面移动端适配 */
@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 移动端强制使用卡片模式（覆盖列表模式） */
    .skills-grid.view-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        flex-direction: initial !important;
    }
    
    .skills-grid.view-list .skill-card {
        display: block !important;
        flex-direction: initial !important;
    }
}

@media (max-width: 768px) {
    .skill-item {
        flex-direction: column;
    }
    
    .skill-item-image {
        width: 100%;
        padding-bottom: 56.25%; /* 16:9比例 */
        height: 0;
    }
    
    /* 移动端隐藏视图切换按钮 */
    .view-toggle {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-image {
        aspect-ratio: 16/9; /* 16:9比例 - 使用现代方法 */
    }
    
    .skill-title {
        font-size: 0.9rem;
    }
    
    .skill-intro {
        font-size: 0.8rem;
    }
    
    .view-toggle {
        display: none;
    }
}

/* ==================== 技巧详情页样式 ==================== */
.breadcrumb-wrapper {
    margin-bottom: 1rem;
}

.breadcrumb {
    background: var(--bg-surface);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 0.5rem;
    color: var(--text-gray);
}

.breadcrumb-item a {
    color: var(--primary-orange);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-gray);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 技巧详情内容 */
.skill-detail {
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.detail-ad-top {
    margin-bottom: 1.5rem;
}

.detail-ad-top img {
    display: block;
    border-radius: 8px;
}

.detail-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.tag-label {
    color: var(--text-gray);
}

.tag-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    color: var(--text-gray);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition);
}

.tag-link:hover {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    color: var(--text-on-accent);
    border-color: transparent;
}

/* 文章正文 */
.detail-content {
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1rem;
}

.detail-content p {
    margin-bottom: 1rem;
}

.detail-content strong {
    color: var(--text-dark);
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.detail-content a {
    color: var(--primary-orange);
    text-decoration: none;
}

.detail-content a:hover {
    text-decoration: underline;
}

/* 点赞按钮 */
.detail-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.btn-action {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-like {
    background: var(--color-info);
    color: var(--text-on-accent);
}

.btn-like:hover {
    background: var(--color-info-dark);
}

/* 上一条/下一条 */
.detail-nav {
    margin-bottom: 1.5rem;
}

.nav-prev,
.nav-next {
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.nav-label {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.detail-nav a {
    color: var(--primary-orange);
    text-decoration: none;
    font-size: 0.9rem;
}

.detail-nav a:hover {
    text-decoration: underline;
}

/* 中间广告 */
.detail-ad-middle {
    margin: 1.5rem 0;
}

.detail-ad-middle img {
    display: block;
    border-radius: 8px;
}

/* 相关推荐 */
.related-skills {
    margin-top: 2rem;
}

.related-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-title i {
    color: var(--primary-orange);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.related-item {
    background: var(--bg-surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.related-image {
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    position: relative;
}

.related-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.75rem;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item a {
    text-decoration: none;
}

.related-item:hover h4 {
    color: var(--primary-orange);
}

/* 详情页深色模式 */
[data-theme="dark"] .breadcrumb {
    background: var(--bg-white);
}

[data-theme="dark"] .skill-detail {
    background: var(--bg-white);
}

[data-theme="dark"] .detail-title {
    color: var(--text-dark);
}

[data-theme="dark"] .detail-content {
    color: var(--text-dark);
}

[data-theme="dark"] .nav-prev,
[data-theme="dark"] .nav-next {
    background: var(--bg-light);
}

[data-theme="dark"] .related-item {
    background: var(--bg-white);
}

[data-theme="dark"] .related-item h4 {
    color: var(--text-dark);
}

/* 详情页移动端适配 */
@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-title {
        font-size: 1.25rem;
    }
    
    .detail-meta {
        gap: 0.75rem;
    }
    
    .detail-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .related-item h4 {
        font-size: 0.8rem;
    }
}

/* ===================================================================
 * 深色模式说明
 * -------------------------------------------------------------------
 * 深色模式样式 [data-theme="dark"] 分散在各模块中，
 * 这样设计的目的是为了与对应的亮色模式样式保持紧密关联，
 * 方便理解和维护。例如：
 * - 顶部导航的深色样式紧跟在亮色样式后面
 * - 面板组件的深色样式紧跟在亮色样式后面
 * 
 * 如果需要修改深色模式样式，请参考各模块的位置。
 * ===================================================================
 */






/* ===================================================================
 * 第 9 部分：SEO & 无障碍辅助类
 * =================================================================== */

/* 视觉隐藏但保留屏幕阅读器可访问性 */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
