/* ===========================================
   AI 技术导航主题 - 样式表
   =========================================== */

/* 全局样式 - 商务蓝风格 */
:root {
    --primary-color: #2563eb;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --secondary-color: #3b82f6;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #f1f5f9;
    --white: #ffffff;
    --border-color: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgba(37, 99, 235, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(37, 99, 235, 0.12);
    --shadow-lg: 0 10px 15px -3px rgba(37, 99, 235, 0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* 顶部导航栏 */
.ai-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.ai-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    height: 64px;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: height 0.3s ease;
}

.ai-header.scrolled .header-container {
    height: 64px;
}

/* Logo */
.header-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    height: 40px;
    width: auto;
    transition: height 0.3s ease;
}

.ai-header.scrolled .header-logo img {
    height: 36px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: font-size 0.3s ease;
}

.ai-header.scrolled .logo-text {
    font-size: 20px;
}

/* 导航菜单 */
.header-nav {
    flex: 1;
    margin: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    overflow-x: auto;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-item a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item a:hover::before,
.nav-item a.active::before {
    width: 80%;
}

.nav-item a:hover,
.nav-item a.active {
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 5%, transparent);
}

/* 隐藏滚动条但保留功能 */
.nav-menu::-webkit-scrollbar {
    height: 4px;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* 搜索按钮 */
.search-toggle {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
}

.search-toggle:hover {
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
}

/* Header 工具栏 */
.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 申请投稿按钮 */
.apply-btn {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.apply-btn i {
    font-size: 16px;
}

/* 搜索面板 */
.search-panel {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.ai-header.scrolled .search-panel {
    top: 64px;
}

.search-panel.active {
    max-height: 150px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-container form {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-color);
    border-radius: 25px;
    padding: 4px 8px;
}

.search-icon {
    font-size: 18px;
    color: var(--text-light);
}

.search-container input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px;
    outline: none;
    font-size: 15px;
    color: var(--text-color);
}

.search-container input[type="text"]::placeholder {
    color: var(--text-light);
}

.search-container input[type="text"]:focus {
    outline: none;
}

.search-btn {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 移动端导航 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    pointer-events: none;
}

.mobile-nav.active {
    pointer-events: auto;
}

/* 遮罩层 */
.mobile-nav-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav.active .mobile-nav-backdrop {
    opacity: 1;
}

/* 菜单内容区域 */
.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active .mobile-nav-content {
    transform: translateX(0);
}

/* 菜单头部 */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 滚动区域 */
.mobile-nav-scroll {
    flex: 1;
    overscroll-behavior-y: contain;
    display: block;
    position: relative;
    width: 100%;
    background-color: var(--white);
}

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

.mobile-nav-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

/* 菜单列表 */
.mobile-nav-menu {
    padding: 16px 0;
    list-style: none;
}

.mobile-nav-menu li {
    margin-bottom: 4px;
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--text-color);
    border-left: 3px solid transparent;
    text-decoration: none;
}

.mobile-nav-menu a:hover {
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
    background: linear-gradient(90deg, color-mix(in srgb, var(--primary-color) 10%, transparent) 0%, transparent 100%);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

.mobile-nav-menu a.active {
    background: linear-gradient(90deg, color-mix(in srgb, var(--primary-color) 15%, transparent) 0%, transparent 100%);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-nav-menu a i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.mobile-nav-menu a span {
    flex: 1;
}

.mobile-nav-menu a .count {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
}

/* 菜单分区 */
.mobile-nav-section {
    margin-top: 24px;
    padding-top: 8px;
    border-top: 2px solid var(--border-color);
    display: block !important;
    position: relative;
}

.mobile-nav-section .mobile-nav-menu {
    margin-top: 8px;
    display: block !important;
}

.mobile-nav-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--primary-color) 5%, transparent) 0%, transparent 100%);
}

.mobile-nav-section-title i {
    font-size: 16px;
}

/* 底部链接 */
.mobile-nav-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mobile-nav-footer a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 10%, transparent) 0%, color-mix(in srgb, var(--secondary-color) 10%, transparent) 100%);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s;
}

.mobile-nav-footer a:hover {
    background: var(--primary-gradient);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.mobile-nav-footer a i {
    font-size: 14px;
}

/* 主题横幅 */
.ai-banner {
    background: var(--primary-gradient);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    padding: 50px 24px;
    margin-top: 70px;
}

.banner-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.banner-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.banner-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

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

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* Banner 搜索框 */
.banner-search {
    margin: 40px 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.banner-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.banner-search-form:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.banner-search-form:focus-within {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.banner-search-icon {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 12px;
}

.banner-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 0;
    outline: none;
    font-size: 16px;
    color: var(--white);
    font-weight: 500;
}

.banner-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.banner-search-input:focus {
    outline: none;
}

/* 自定义搜索引擎选择器 */
.custom-search-engine {
    position: relative;
    margin-right: 12px;
    z-index: 100;
}

.search-engine-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px 12px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.search-engine-trigger:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.12) 100%);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.search-engine-trigger.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.16) 100%);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.search-engine-trigger i:first-child {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    width: 20px;
    text-align: center;
}

.search-engine-trigger span {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.98);
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.dropdown-arrow {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
    margin-left: auto;
}

.search-engine-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.search-engine-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 160px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.search-engine-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-engine-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid transparent;
}

.search-engine-option:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    transform: translateX(4px);
    border-color: rgba(99, 102, 241, 0.2);
}

.search-engine-option.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

.search-engine-option i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    color: #6366f1;
}

.search-engine-option span {
    flex: 1;
}

/* 下拉菜单动画 */
@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dropdownOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

.search-engine-dropdown.active {
    animation: dropdownIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


.search-engine-option:hover::before,
.search-engine-option.active::before {
    opacity: 1;
}

/* 为不同主题风格添加特定的搜索选择器样式 */

/* 简约黑白 */
.theme-minimal .search-engine-trigger {
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.theme-minimal .search-engine-trigger:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

/* 商务蓝 */
.theme-business .search-engine-trigger {
    border-color: rgba(96, 165, 250, 0.5);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
}

.theme-business .search-engine-trigger:hover {
    border-color: rgba(96, 165, 250, 0.7);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.32) 0%, rgba(59, 130, 246, 0.20) 100%);
}

/* 清新绿 */
.theme-fresh .search-engine-trigger {
    border-color: rgba(52, 211, 153, 0.5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(20, 184, 166, 0.15) 100%);
}

.theme-fresh .search-engine-trigger:hover {
    border-color: rgba(52, 211, 153, 0.7);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.32) 0%, rgba(20, 184, 166, 0.20) 100%);
}

/* 橙色活力 */
.theme-orange .search-engine-trigger {
    border-color: rgba(251, 146, 60, 0.5);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(251, 146, 60, 0.15) 100%);
}

.theme-orange .search-engine-trigger:hover {
    border-color: rgba(251, 146, 60, 0.7);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.32) 0%, rgba(251, 146, 60, 0.20) 100%);
}

/* 暗夜模式 */
.theme-dark .search-engine-trigger {
    border-color: rgba(167, 139, 250, 0.5);
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.25) 0%, rgba(167, 139, 250, 0.15) 100%);
}

.theme-dark .search-engine-dropdown {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.theme-dark .search-engine-dropdown {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.theme-dark .search-engine-trigger:hover {
    border-color: rgba(167, 139, 250, 0.7);
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.32) 0%, rgba(167, 139, 250, 0.20) 100%);
}

.theme-dark .search-engine-option {
    color: #e2e8f0;
}

.theme-dark .search-engine-option:hover {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.15) 0%, rgba(167, 139, 250, 0.15) 100%);
}

/* 复古风 */
.theme-retro .search-engine-trigger {
    border-color: rgba(217, 119, 6, 0.5);
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.25) 0%, rgba(166, 124, 82, 0.15) 100%);
}

.theme-retro .search-engine-trigger:hover {
    border-color: rgba(217, 119, 6, 0.7);
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.32) 0%, rgba(166, 124, 82, 0.20) 100%);
}

.banner-search-btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    flex-shrink: 0;
}

.banner-search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.banner-search-btn:active {
    transform: scale(0.95);
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
}

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

.breadcrumb a i {
    font-size: 13px;
}

.breadcrumb .separator {
    font-size: 11px;
    opacity: 0.5;
}

.breadcrumb span {
    color: var(--text-color);
    font-weight: 500;
}

/* 主内容容器 */
.main-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 24px;
}

.ai-main {
    min-width: 0;
    margin-top: 90px;
    overflow-x: hidden;
}

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

/* 小部件 */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    padding-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.widget-title i {
    color: var(--primary-color);
    font-size: 16px;
}

/* 搜索框组件 */
.search-widget form {
    display: flex;
    gap: 10px;
}

.search-widget input[type="text"] {
    flex: 1;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 14px;
    background: var(--bg-color);
}

.search-widget input[type="text"]:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.search-widget input[type="text"]::placeholder {
    color: var(--text-light);
}

.search-widget button {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.search-widget button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 40%, transparent);
}

.search-widget button:active {
    transform: translateY(0);
}

/* 小部件列表 */
.widget-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.widget-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    color: var(--text-color);
    text-decoration: none;
}

.widget-list li a:hover {
    background: linear-gradient(135deg, var(--bg-color), color-mix(in srgb, var(--primary-color) 5%, transparent));
    color: var(--primary-color);
    transform: translateX(4px);
}

.widget-list li a i {
    font-size: 14px;
    color: var(--text-light);
    transition: all 0.3s ease;
    width: 18px;
    text-align: center;
}

.widget-list li a:hover i {
    color: var(--primary-color);
}

.widget-list li a .count {
    margin-left: auto;
    color: var(--text-light);
    font-size: 12px;
    background: var(--bg-color);
    padding: 2px 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.widget-list li a:hover .count {
    background: var(--primary-color);
    color: var(--white);
}

.widget-list .empty {
    color: var(--text-light);
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
}

/* 标签云 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}

.tags-cloud a {
    padding: 8px 16px;
    background: var(--bg-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.tags-cloud a:hover {
    background: var(--primary-gradient);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

/* 文章列表 */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 4px;
}

.post-list li a {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    text-decoration: none;
}

.post-list li a:hover {
    background: linear-gradient(135deg, var(--bg-color), color-mix(in srgb, var(--primary-color) 5%, transparent));
}

.post-list img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.post-list li a:hover img {
    transform: scale(1.05);
}

.post-list .default-thumb {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 26px;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-color) 30%, transparent);
    transition: all 0.3s ease;
}

.post-list li a:hover .default-thumb {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 40%, transparent);
}

.post-list .post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.post-list .post-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-color);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}

.post-list li a:hover .post-info h4 {
    color: var(--primary-color);
}

.post-list .post-info span {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 链接列表 */
.link-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid transparent;
}

.link-list li a:hover {
    background: linear-gradient(135deg, var(--bg-color), color-mix(in srgb, var(--primary-color) 5%, transparent));
    border-color: color-mix(in srgb, var(--primary-color) 20%, transparent);
    color: var(--primary-color);
    transform: translateX(4px);
}

.link-list li a i {
    font-size: 14px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.link-list li a:hover i {
    color: var(--primary-color);
}

.link-list li a span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 博主信息 */
.blogger-info {
    text-align: center;
}

.blogger-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-color);
    border: 3px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blogger-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

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

.blogger-avatar.default {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-color);
    background: var(--primary-gradient);
}

.blogger-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.blogger-info:hover .blogger-name {
    color: var(--primary-color);
}

.blogger-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    padding: 0 8px;
}

/* 章节标题 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

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

.view-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s;
    text-decoration: none;
}

.view-more-link:hover {
    background: var(--primary-gradient);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.view-more-link i {
    font-size: 12px;
    transition: transform 0.3s;
}

.view-more-link:hover i {
    transform: translateX(4px);
}

/* 快速导航 */
.quick-nav {
    margin-bottom: 40px;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.quick-nav-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

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

.nav-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    flex-shrink: 0;
}

.quick-nav-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* 指定分类 */
.featured-sort {
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.featured-sort .section-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-sort .section-title i {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

.featured-card {
    border: 2px solid rgba(99, 102, 241, 0.2);
    background: var(--white);
    position: relative;
    z-index: 1;
}

.featured-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-6px);
}

/* 最新资源 */
.latest-resources {
    margin-bottom: 40px;
    padding-top: 30px;
    overflow-x: hidden;
}

/* 分类显示 */
.category-display {
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(147, 51, 234, 0.03) 100%);
    padding: 24px;
    border-radius: var(--radius-md);
    overflow-x: hidden;
    border: 1px solid rgba(59, 130, 246, 0.08);
}

.category-display .navi-cards-grid {
    max-height: 330px;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md);
}

.category-display .section-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-display .section-title i {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

/* 文章卡片网格 - 简洁版 */
.navi-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    overflow-x: hidden;
}

.navi-card-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    gap: 14px;
}

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

.navi-card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.navi-card-cover {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-color);
    position: relative;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-color) 20%, transparent);
    flex-shrink: 0;
}

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

.navi-card-item:hover .navi-card-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.navi-card-item:hover .navi-card-cover {
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.navi-card-item:hover .navi-card-cover img {
    transform: scale(1.1);
}

.navi-card-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.navi-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
    line-height: 1.4;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navi-card-excerpt {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 指定分类显示模块的描述样式 - 多行显示 */
.navi-card-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-color);
}

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

.pagination a,
.pagination span {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.pagination a:hover,
.pagination span.current {
    background: var(--primary-gradient);
    color: var(--white);
}

/* 文章详情页 */
.article-detail {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.article-header {
    margin-bottom: 32px;
}

.article-header-content {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.article-cover {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

.article-cover-default {
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-cover-default i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.3);
}

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-color);
}

.article-title .top-icon {
    color: #f59e0b;
    font-size: 20px;
    margin-right: 8px;
}

.article-tags {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.article-tags a {
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    border-radius: 12px;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.3s;
}

.article-tags a:hover {
    background: var(--primary-gradient);
    color: var(--white);
}

.article-meta-row {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
    align-items: center;
}

.article-meta-row .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.visit-website-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: auto;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.visit-website-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--primary-color) 40%, transparent);
}

.visit-website-btn i {
    font-size: 18px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 24px 0 16px;
}

.article-content h2 {
    font-size: 24px;
}

.article-content h3 {
    font-size: 20px;
}

.article-content h4 {
    font-size: 18px;
}

.article-content pre {
    background: var(--bg-color);
    padding: 16px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin-bottom: 16px;
}

.article-content code {
    background: var(--bg-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

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

.article-admin {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* 文章页两栏布局 */
.article-page-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    margin-top: 90px;
}

.article-main-wrapper {
    flex: 1 1 0px;
    min-width: 0;
    order: 1;
}

.article-sidebar-wrapper {
    width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    order: 2;
}

.article-sidebar-wrapper .ai-sidebar {
    width: 100%;
    max-width: 100%;
}

/* 移动端响应式 */
@media (max-width: 1024px) {
    .article-page-wrapper {
        flex-direction: column;
        padding: 0;
        gap: 20px;
        margin-top: 60px;
    }

    /* 隐藏侧边栏 */
    .article-sidebar-wrapper {
        display: none;
    }

    /* 文章内容区域全宽 */
    .article-main-wrapper {
        max-width: 100%;
    }

    /* 修复移动端整体居中的问题 */
    .main-container {
        margin: 20px 0;
        max-width: 100%;
        padding: 0 12px;
    }

    /* 文章详情卡片优化 */
    .article-detail {
        padding: 20px 16px;
        margin-bottom: 20px;
    }

    /* 文章头部优化 */
    .article-header-content {
        flex-direction: column;
        gap: 16px;
    }

    .article-cover {
        width: 100%;
        height: 200px;
    }

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

    /* 访问网站按钮全宽 */
    .visit-website-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }

    /* 文章内容优化 */
    .article-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .article-content h2 {
        font-size: 20px;
        margin: 20px 0 12px;
    }

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

    .article-content h4 {
        font-size: 16px;
        margin: 16px 0 8px;
    }

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

    /* 相关文章区域优化 */
    .related-articles-section {
        margin-top: 30px;
        padding-top: 20px;
    }

    .related-section-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .related-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .related-card-thumb {
        width: 50px;
        height: 40px;
    }

    .related-card-title {
        font-size: 12px;
    }
}

/* 手机端优化 */
@media (max-width: 768px) {
    .article-page-wrapper {
        margin-top: 70px;
    }

    .main-container {
        padding: 0 10px;
        margin: 15px 0;
    }

    .article-detail {
        padding: 16px 12px;
        margin-top: 20px;
    }

    .article-header-content {
        gap: 12px;
    }

    .article-cover {
        height: 160px;
    }

    .article-title {
        font-size: 20px;
    }

    .article-meta-row {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .visit-website-btn {
        font-size: 14px;
        padding: 12px 16px;
    }

    /* 评论区优化 - 增大尺寸 */
    .comments-section {
        margin-top: 30px;
        padding: 20px 12px;
    }

    .comments-section .section-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .comment-item {
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .comment-avatar img {
        width: 40px;
        height: 40px;
    }

    .comment-header {
        gap: 8px;
        margin-bottom: 6px;
    }

    .comment-author {
        font-size: 14px;
    }

    .comment-date {
        font-size: 12px;
    }

    .comment-content {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    /* 评论表单优化 - 增大尺寸 */
    .comment-form-wrapper {
        padding: 20px 12px;
        margin-top: 24px;
    }

    .form-control {
        padding: 14px 12px;
        font-size: 15px;
    }

    textarea.form-control {
        min-height: 120px;
        font-size: 15px;
        padding: 14px 12px;
    }

    .form-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }

    .login-tip {
        font-size: 13px;
        text-align: center;
    }
}

/* 文章导航 - 小卡片样式 */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.nav-card-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.nav-card-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.nav-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.nav-card-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.nav-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

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

.nav-card-item:hover .nav-card-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* 相关文章区域样式 */
.related-articles-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
}

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

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

.related-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.related-card-link {
    text-decoration: none;
    display: block;
}

.related-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
}

.related-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.related-card-thumb {
    width: 60px;
    height: 50px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-color);
    position: relative;
}

.related-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.related-card-thumb-default {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
}

.related-card-content {
    padding: 6px 8px;
    flex: 1;
    min-width: 0;
}

.related-card-title {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}

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

/* 评论区 */
.comments-section {
    margin-top: 40px;
}

.comments-list {
    margin-bottom: 32px;
}

.empty-comments {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

/* 评论区 - Simply风格 */
.comment-title {
    padding-top: 0.5em;
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 1em;
}

.comment-user .avatar {
    width: 40px;
    height: 40px;
}

.comment-items {
    display: flex;
    flex-direction: column;
}

.comment-items .comment-item:not(:first-child) {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 12px;
}

.comment-items .comment-item {
    display: flex;
    align-items: flex-start;
    padding-bottom: 4px;
}

.comment-items .comment-item .comment-post {
    margin-top: 0.5em;
}

.comment-item > .comment-body,
.comment-item > .item-right {
    flex: 1;
    margin-left: auto;
}

.comment-item > .comment-body .comment-header .info,
.comment-item > .item-right .info,
.comment-item .comment-time {
    opacity: .65;
}

.comment-item .comment-item .comment-item .item-right .info {
    display: none;
}

.user-level {
    color: #ff8f17;
}

/* 回复信息样式 */
.comment-reply-to {
    font-size: 12px;
    color: var(--text-light);
    margin: 0 6px;
}

.comment-reply-to .reply-to-user {
    color: var(--primary-color);
    font-weight: 500;
}

.comment-content {
    line-height: 1.6;
    margin-top: 0.5em;
}

/* 子评论 - 轻微视觉区分 */
.comment-item.is-reply {
    background: color-mix(in srgb, var(--bg-color) 50%, var(--white));
    padding-left: 16px;
    border-left: 2px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
}

/* 子评论头像稍小 */
.comment-item.is-reply .comment-avatar img {
    width: 32px;
    height: 32px;
}

/* 子评论字体稍小 */
.comment-item.is-reply .comment-author {
    font-size: 13px;
}

.comment-item.is-reply .comment-content {
    font-size: 13px;
    line-height: 1.5;
}

/* 子评论头部间距更紧凑 */
.comment-item.is-reply .comment-header {
    gap: 6px;
    margin-bottom: 4px;
}

/* 评论表单 */
.comment-form .head,
.comment-form .body,
.comment-form .foot {
    width: 100%;
    padding: 1em;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
}

.comment-form .head {
    padding: 0;
    border-bottom: 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.comment-item .comment-item .comment-item .comment-form .head {
    flex-direction: column;
}

.comment-item .comment-item .comment-item .comment-form .head .comment-control:not(:first-child) {
    border-left: 0;
    border-top: 1px solid var(--border-color);
}

.comment-form .head .comment-control {
    flex: 1;
    color: var(--text-light);
    width: 100%;
}

.comment-form .head .comment-control:not(:first-child) {
    border-left: 1px solid var(--border-color);
}

.comment-form .body {
    border-bottom: 0;
}

.comment-form .body textarea {
    width: 100%;
    line-height: 1;
    border: 0;
    resize: none;
    background: transparent;
    color: var(--text-light);
}

.comment-form .body textarea::-webkit-scrollbar-track {
    box-shadow: none;
    background-color: transparent;
}

.comment-form .foot {
    border-top: 0;
    padding-top: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.comment-control {
    padding: 1em;
    background: transparent;
    border: 0;
}

.comment-form .foot #captcha,
.comment-form .foot .input-code {
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.comment-form .foot #captcha {
    cursor: pointer;
}

.comment-form .foot .input-code {
    padding: 5px;
    max-width: 5em;
    background-color: var(--white);
    color: var(--text-light);
}

.comment-form .foot > *:nth-child(2) {
    margin-left: auto;
}

.button {
    cursor: pointer;
    line-height: 1;
    padding: 10px;
    border: 0;
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: 5px;
}

.comment-closed,
.comment-login {
    border: 2px dashed var(--border-color);
    padding: 2em;
    text-align: center;
    border-radius: 5px;
}

/* 移动端优化 */
@media (max-width: 767px) {
    .comments-section {
        padding: 16px;
        margin-top: 24px;
    }

    .comment-item {
        padding: 8px 0;
    }

    .comment-avatar img {
        width: 32px;
        height: 32px;
    }

    .comment-header {
        flex-wrap: wrap;
        gap: 4px;
    }

    .comment-reply-to {
        font-size: 11px;
    }

    .comment-author {
        font-size: 13px;
    }

    .comment-content {
        font-size: 13px;
    }

    /* 移动端子评论视觉区分 */
    .comment-item.is-reply {
        padding-left: 12px;
    }

    .comment-item.is-reply .comment-avatar img {
        width: 28px;
        height: 28px;
    }

    .comment-item.is-reply .comment-author {
        font-size: 12px;
    }

    .comment-item.is-reply .comment-content {
        font-size: 12px;
    }

    .comment-item.is-reply .comment-header {
        gap: 4px;
        margin-bottom: 3px;
    }
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-light);
}

.comment-content {
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 6px;
    font-size: 14px;
}

.comment-reply {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    margin-left: auto;
}

.comment-reply:hover {
    background: var(--primary-gradient);
    color: var(--white);
}

.edit-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-light);
    transition: all 0.3s;
}

.edit-link:hover {
    background: var(--primary-gradient);
    color: var(--white);
}

/* 评论表单 */
.comment-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s;
    background: var(--white);
    color: var(--text-color);
}

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

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-color);
}

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

.login-tip {
    color: var(--text-light);
    font-size: 14px;
}

.login-tip a {
    color: var(--primary-color);
    font-weight: 500;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10000;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    color: var(--text-color);
}

.modal-body {
    margin-bottom: 16px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* 页面详情页 */
.page-detail {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.page-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

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

.page-title .top-icon {
    color: #f59e0b;
    font-size: 18px;
    margin-right: 8px;
}

.page-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.page-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

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

/* 404 错误页 */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-icon {
    font-size: 120px;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.error-title {
    font-size: 80px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
}

.error-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 14px 40px;
    font-size: 16px;
}

/* 投稿页面 */
.submit-page {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

.submit-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--bg-color);
}

.submit-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

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

.submit-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

/* 投稿成功 */
.submit-success {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    font-size: 80px;
    color: #10b981;
    margin-bottom: 24px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.submit-success h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.submit-success p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--text-light);
}

/* 投稿表单 */
.submit-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 提示信息 */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-danger {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert i {
    font-size: 20px;
}

/* 投稿须知 */
.submit-tips {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 5%, transparent) 0%, color-mix(in srgb, var(--secondary-color) 5%, transparent) 100%);
    border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    border-radius: var(--radius-md);
    padding: 24px;
}

.submit-tips h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.submit-tips li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
}

.submit-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* 表单区域 */
.form-section {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}

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

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

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

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

.form-group label .required {
    color: #ef4444;
    margin-right: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s;
    background: var(--white);
    color: var(--text-color);
    font-family: inherit;
}

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

.form-control::placeholder {
    color: var(--text-light);
}

.form-control[required] {
    background: rgba(99, 102, 241, 0.02);
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.6;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* 封面图片上传 */
.cover-upload-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cover-preview {
    width: 100%;
    height: 200px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cover-preview:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.cover-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cover-placeholder {
    text-align: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.cover-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.cover-placeholder p {
    margin: 0;
    font-size: 14px;
}

.cover-preview:hover .cover-placeholder {
    transform: scale(1.05);
}

.btn-upload-cover,
.btn-remove-cover {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upload-cover {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-upload-cover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-upload-cover:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-remove-cover {
    background: #fee2e2;
    color: #dc2626;
}

.btn-remove-cover:hover {
    background: #fecaca;
    transform: translateY(-2px);
}

.cover-url-input {
    margin-top: 8px;
}

.cover-url-input label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 6px;
}

.cover-url-input input {
    margin-bottom: 0;
}

/* 封面上传响应式 */
@media (max-width: 768px) {
    .cover-preview {
        height: 150px;
    }

    .cover-placeholder i {
        font-size: 36px;
    }

    .btn-upload-cover,
    .btn-remove-cover {
        width: 100%;
        justify-content: center;
    }
}

/* 表单操作 */
.form-actions {
    display: flex;
    gap: 16px;
    padding-top: 24px;
    border-top: 2px solid var(--bg-color);
}

.form-actions .btn {
    flex: 1;
    justify-content: center;
}

/* 投稿页面响应式 */
@media (max-width: 768px) {
    .submit-page {
        padding: 24px 16px;
        border-radius: 0;
    }

    .submit-title {
        font-size: 24px;
    }

    .submit-header {
        padding: 0 0 20px;
        margin-bottom: 24px;
    }

    .form-section {
        padding: 20px 16px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 底部区域 */
.ai-footer {
    background: #1f2937;
    color: #f9fafb;
    padding: 60px 24px 24px;
    margin-top: 60px;
}

/* 底部样式 */
.ai-footer {
    background: #1e293b;
    color: #f1f5f9;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
}

body.theme-minimal .footer-section p,
body.theme-business .footer-section p,
body.theme-fresh .footer-section p,
body.theme-orange .footer-section p,
body.theme-retro .footer-section p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary-gradient);
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li a {
    color: #9ca3af;
    transition: all 0.3s;
}

.footer-links li a {
    color: var(--text-light);
}

.footer-links li a:hover {
    color: var(--white);
    padding-left: 8px;
}

/* 友情链接独立框架样式 */
.footer-links-wrapper {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.footer-link-item {
    display: block;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    text-align: center;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-link-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-light);
    border-top-color: color-mix(in srgb, var(--white) 10%, transparent);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--text-light);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-container {
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .navi-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    /* 分类显示中等屏幕高度 */
    .category-display .navi-cards-grid {
        max-height: 580px;
    }

    /* 相关文章卡片中等屏幕响应式 */
    .related-cards-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .related-card-thumb {
        width: 60px;
        height: 50px;
    }

    .related-card-content {
        padding: 6px 8px;
    }

    .related-card-title {
        font-size: 11px;
    }
}

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

    .header-tools {
        display: flex;
        gap: 12px;
    }

    .search-toggle {
        display: flex;
    }

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

    .apply-btn span {
        display: none;
    }

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

    .mobile-nav {
        display: block;
    }

    .header-container {
        padding: 0 16px;
    }

    .search-panel {
        top: 70px;
        padding: 15px;
        max-height: 0;
        overflow: hidden;
    }

    .ai-header.scrolled .search-panel {
        top: 64px;
    }

    .search-panel.active {
        max-height: 120px;
    }

    .search-container {
        max-width: 100%;
        margin: 0;
    }

    .search-btn {
        padding: 10px 20px;
    }

    /* 文章导航卡片响应式 */
    .article-navigation {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nav-card-item {
        padding: 16px;
    }

    .nav-card-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .nav-card-title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    /* 相关文章卡片响应式 */
    .related-cards-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .related-card-thumb {
        width: 50px;
        height: 40px;
    }

    .related-card-content {
        padding: 4px 6px;
    }

    .related-card-title {
        font-size: 10px;
    }

    /* 侧边栏响应式 */
    .sidebar-widget {
        padding: 16px;
        padding-bottom: 20px;
    }

    .widget-title {
        font-size: 15px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .search-widget input[type="text"] {
        padding: 10px 12px;
    }

    .search-widget button {
        padding: 10px 16px;
    }

    .widget-list li a {
        padding: 10px 12px;
        gap: 10px;
    }

    .tags-cloud a {
        padding: 6px 12px;
        font-size: 12px;
    }

    .post-list img {
        width: 56px;
        height: 56px;
    }

    .post-list .default-thumb {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .blogger-avatar {
        width: 80px;
        height: 80px;
    }
    
    /* 评论区移动端优化 */
    .comments-section {
        padding: 30px 20px !important;
    }
    
    .comment-item {
        gap: 12px !important;
        margin-bottom: 20px !important;
    }
    
    .comment-header {
        gap: 10px !important;
    }
    
    .comment-content {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    .comment-form-wrapper {
        padding: 24px 20px !important;
    }
    
    .form-control {
        padding: 14px 16px !important;
        font-size: 15px !important;
    }
    
    textarea.form-control {
        min-height: 140px !important;
        font-size: 15px !important;
        padding: 14px 16px !important;
    }
    
    .btn {
        padding: 14px 28px !important;
        font-size: 15px !important;
    }

    /* 隐藏侧边栏（手机端） */
    .ai-sidebar {
        display: none !important;
    }

    /* 主内容区全宽 */
    .ai-main {
        width: 100% !important;
    }

    /* 优化移动端容器 */
    .main-container {
        padding: 0 12px;
        margin: 30px 0 !important;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .banner-search {
        margin: 30px 0;
        max-width: 100%;
        padding: 0;
    }

    .banner-search-form {
        padding: 8px 12px;
        min-height: 68px;
        align-items: center;
    }

    .banner-search-icon {
        font-size: 18px;
        margin-right: 10px;
    }

    .banner-search-input {
        font-size: 15px;
        padding: 12px 0;
    }

    .custom-search-engine {
        margin-right: 8px;
    }

    .search-engine-trigger {
        padding: 10px 14px;
        min-width: 100px;
    }

    .search-engine-trigger span {
        font-size: 13px;
    }

    .search-engine-dropdown {
        min-width: 140px;
        padding: 6px;
    }

    .search-engine-option {
        padding: 10px 12px;
        font-size: 13px;
    }

    .banner-search-input::placeholder {
        font-size: 15px;
    }

    .banner-search-btn {
        width: 52px;
        height: 52px;
        font-size: 20px;
        flex-shrink: 0;
    }

    .banner-stats {
        flex-direction: column;
        gap: 20px;
    }

    .main-container {
        margin: 40px 0 !important;
        max-width: 100% !important;
    }

    /* 隐藏侧边栏（移动端） */
    .ai-sidebar {
        display: none !important;
    }

    /* 主内容区全宽 */
    .ai-main {
        width: 100% !important;
        margin-right: 0 !important;
    }

    /* 导航和文章卡片网格 */
    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .navi-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }

    .category-display {
        padding: 16px;
    }

    .nav-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-bottom: 0;
    }

    .quick-nav-card {
        padding: 12px;
        gap: 10px;
    }

    .quick-nav-card h3 {
        font-size: 13px;
    }

    /* 导航和文章卡片网格 */
    .quick-nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .quick-nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .navi-card-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .navi-card-desc {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .category-display {
        padding: 16px;
    }


    .article-header-content {
        flex-direction: column;
        gap: 20px;
    }

    .article-cover {
        width: 100%;
        height: 250px;
    }

    .article-navigation {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 28px;
    }

    .banner-subtitle {
        font-size: 14px;
    }

    .banner-search {
        margin: 25px 0;
        padding: 0;
    }

    .banner-search-form {
        padding: 8px 10px;
        flex-wrap: nowrap;
        min-height: 68px;
        align-items: center;
    }

    .banner-search-icon {
        font-size: 16px;
        margin-right: 6px;
    }

    .banner-search-input {
        font-size: 14px;
        padding: 10px 0;
    }

    .custom-search-engine {
        margin-right: 6px;
    }

    .search-engine-trigger {
        padding: 10px 14px;
        min-width: 90px;
    }

    .search-engine-trigger span {
        font-size: 13px;
    }
    
    /* 评论区移动端优化 */
    .comments-section {
        padding: 20px 12px !important;
        margin-top: 30px !important;
    }
    
    .comment-item {
        gap: 10px !important;
        margin-bottom: 16px !important;
        padding-bottom: 16px !important;
    }
    
    .comment-avatar img {
        width: 36px !important;
        height: 36px !important;
    }
    
    .comment-content {
        font-size: 14px !important;
    }
    
    .comment-form-wrapper {
        padding: 18px 12px !important;
        margin-top: 20px !important;
    }
    
    .form-control {
        padding: 12px 12px !important;
        font-size: 14px !important;
    }
    
    textarea.form-control {
        min-height: 100px !important;
        font-size: 14px !important;
    }
    
    .btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    .banner-search-input::placeholder {
        font-size: 14px;
    }

    .banner-search-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
        flex-shrink: 0;
    }

    /* 文章导航卡片小屏幕响应式 */
    .article-navigation {
        grid-template-columns: 1fr;
    }

    .nav-card-item {
        padding: 12px;
    }

    .nav-card-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .nav-card-title {
        font-size: 13px;
    }

    /* 相关文章卡片小屏幕响应式 */
    .related-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .related-card-thumb {
        width: 45px;
        height: 35px;
    }

    .related-card-content {
        padding: 4px 5px;
    }

    .related-card-title {
        font-size: 9px;
        -webkit-line-clamp: 2;
    }

    .quick-nav-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .quick-nav-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .quick-nav-card {
        padding: 10px;
        gap: 8px;
    }

    .quick-nav-card h3 {
        font-size: 12px;
    }

    /* 移动端菜单优化 */
    .mobile-nav-content {
        width: 100%;
        max-width: 100%;
    }

    .mobile-nav-menu a {
        padding: 12px 16px;
    }

    .mobile-nav-header {
        padding: 16px;
    }

    .mobile-nav-close {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 400px) {
    .banner-search-input {
        font-size: 11px;
        padding: 8px 0;
    }

    .banner-search-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .search-engine-trigger {
        padding: 8px 12px;
        min-width: 80px;
    }

    .search-engine-trigger span {
        font-size: 11px;
    }
}

/* ===========================================
   侧边栏滚动条样式
   =========================================== */

.ai-sidebar::-webkit-scrollbar {
    width: 6px;
}

.ai-sidebar::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 3px;
}

.ai-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.ai-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===========================================
   小部件悬停效果增强
   =========================================== */

.sidebar-widget:not(.search-widget):not(.blogger-widget) {
    position: relative;
    overflow: hidden;
}

.sidebar-widget:not(.search-widget):not(.blogger-widget)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.03), transparent);
    transition: left 0.5s ease;
}

.sidebar-widget:not(.search-widget):not(.blogger-widget):hover::before {
    left: 100%;
}

/* ===========================================
   标签云特殊效果
   =========================================== */

.tags-cloud a:nth-child(1) { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: #fff; }
.tags-cloud a:nth-child(2) { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: #fff; }
.tags-cloud a:nth-child(3) { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); color: #fff; }
.tags-cloud a:nth-child(4) { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); color: #fff; }
.tags-cloud a:nth-child(5) { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); color: #fff; }
.tags-cloud a:nth-child(6) { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); color: #fff; }
.tags-cloud a:nth-child(7) { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); color: #fff; }
.tags-cloud a:nth-child(8) { background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%); color: #fff; }
.tags-cloud a:nth-child(9) { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); color: #fff; }
.tags-cloud a:nth-child(10) { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); color: #fff; }

.tags-cloud a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===========================================
   搜索框焦点动画
   =========================================== */

.search-widget input[type="text"]:focus {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary-color) 40%, transparent);
    }
    50% {
        box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary-color) 0%, transparent);
    }
}

/* ===========================================
   博主头像旋转效果
   =========================================== */

.blogger-avatar {
    transition: transform 0.5s ease;
}

.blogger-avatar:hover {
    transform: rotate(360deg) scale(1.1);
}

.blogger-avatar.default:hover {
    transform: rotate(360deg);
}

/* ===========================================
   侧边栏个人资料样式
   =========================================== */

.widget.shadow-theme {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    padding-bottom: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.widget.shadow-theme .widget-title {
    margin-bottom: 18px;
}

.widget.shadow-theme:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.unstyle-li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bloggerinfo {
    text-align: center;
}

.bloggerinfo > div:first-child {
    margin-bottom: 16px;
}

.bloggerinfo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    transition: all 0.3s ease;
    display: inline-block;
}

.bloggerinfo-img:hover {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 20px color-mix(in srgb, var(--primary-color) 40%, transparent);
}

.bloginfo-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}
    margin-bottom: 8px;
}

.bloginfo-name b {
    color: var(--primary-color);
}

.bloginfo-descript {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 8px;
    padding: 0 5px;
}

/* ===========================================
   文章列表悬停效果
   =========================================== */

.post-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 4px;
}

.post-list li a {
    position: relative;
}

.post-list li a::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.post-list li a:hover::after {
    height: 60%;
    top: 20%;
}

/* ===========================================
   链接列表箭头动画
   =========================================== */

.link-list li a {
    position: relative;
}

.link-list li a::after {
    content: '→';
    position: absolute;
    right: 14px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.link-list li a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ===========================================
   小部件标题下划线动画
   =========================================== */

.widget-title {
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.sidebar-widget:hover .widget-title::after {
    width: 100%;
}

/* ===========================================
   深色模式支持（可选）
   =========================================== */

/* ===========================================
   减少动画模式（尊重用户偏好）
   =========================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================================
   移动端侧边栏个人资料样式
   =========================================== */

@media (max-width: 768px) {
    .widget.shadow-theme {
        padding: 18px;
    }

    .widget.shadow-theme .widget-title {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .bloggerinfo-img {
        width: 64px;
        height: 64px;
        border-width: 2px;
    }

    .bloginfo-name {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .bloginfo-descript {
        font-size: 12px;
        margin-top: 6px;
    }
}
