/*
Theme Name: AIStart
Theme URI: https://aistart.ai/
Author: AIStart Team
Author URI: https://aistart.ai/
Description: AI工具导航主题，基于WordPress最新规范开发，支持移动端自适应和暗黑模式切换
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.5
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aistart
Domain Path: /languages
Tags: ai, tools, navigation, dark-mode, responsive
*/

/* ========== 全局变量 ========== */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

/* 白天模式样式调整 */
body:not(.dark) .hot-search-tag {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

body:not(.dark) .hot-search-tag:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

body:not(.dark) .friend-link-item {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

body:not(.dark) .category-tag {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

body:not(.dark) .category-tag:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

body:not(.dark) .category-tag.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

body:not(.dark) .related-tool-item {
    background: #f9fafb;
    border-color: #e5e7eb;
}

body:not(.dark) .related-tool-item:hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: #10b981;
}

/* 暗黑模式 */
body.dark {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg-primary: #1c222f;
    --bg-secondary: #121a27;
    --bg-tertiary: #374151;
    --border-color: #4b5563;
}

/* 暗黑模式下精选按钮 */
body.dark .featured-button {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

body.dark .featured-button:hover {
    background: var(--bg-tertiary);
}



/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    transition: background-color var(--transition), color var(--transition);
}

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

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

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

.home-wrapper {
    min-height: 100vh;
}

/* ========== Hero 区域 ========== */
.hero-section {
    background: var(--bg-secondary);
    padding: 30px 20px 20px;
    text-align: center;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
}

.hero-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.hero-title a {
    color: inherit;
    text-decoration: none;
}

.hero-title a:hover,
.hero-title a:active {
    text-decoration: none;
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.8;
    color: var(--text-secondary);
}

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

.search-form-new {
    width: 100%;
}

.search-box-wrapper {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-box-wrapper:hover {
    border-color: #10b981;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.5), 0 4px 32px rgba(16, 185, 129, 0.3);
    animation: searchGlow 3s ease-in-out infinite;
}

.search-box-wrapper:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.5), 0 4px 32px rgba(16, 185, 129, 0.3);
}

@keyframes searchGlow {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.5), 0 4px 32px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.8), 0 4px 40px rgba(16, 185, 129, 0.5);
    }
}

.search-input-area {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.search-icon-wrapper {
    padding: 0 8px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.search-box-wrapper:hover .search-icon-wrapper,
.search-box-wrapper:focus-within .search-icon-wrapper {
    color: #10b981;
}

.search-input-new {
    flex: 1;
    padding: 8px 12px;
    border: none;
    font-size: 15px;
    outline: none;
    color: var(--text-primary);
    background: transparent;
}

.search-input-new::placeholder {
    color: var(--text-muted);
}

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

.shortcut-key {
    padding: 3px 6px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: monospace;
}

.shortcut-plus {
    color: var(--text-muted);
    font-size: 12px;
}

/* ========== 智能搜索下拉提示 ========== */
.search-box-wrapper {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

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

.search-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.search-dropdown-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-dropdown-title::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #fbbf24;
    border-radius: 50%;
    display: inline-block;
}

.search-dropdown-hint {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-dropdown-hint::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    display: inline-block;
}

.search-dropdown-tools {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.search-tool-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-tool-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

/* 桌面端样式 - 保持原有布局 */
.search-card-header {
    position: relative;
    margin-bottom: 12px;
}

.search-card-number {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
}

.search-card-main {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.search-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.search-card-info {
    flex: 1;
    min-width: 0;
}

.search-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.search-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-card-favorite {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-card-favorite:hover {
    color: #fbbf24;
}

.search-card-favorite.added {
    color: #fbbf24;
}

.search-card-domain {
    font-size: 12px;
    color: var(--text-muted);
    margin: 4px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.search-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    flex: 1;
}

/* 桌面端新结构样式 */
.search-card-left,
.search-card-center,
.search-card-right {
    display: none;
}

/* 桌面端保持原有布局 */
.search-card-footer {
    display: flex;
    justify-content: flex-end;
}

.search-card-open {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #10b981;
    padding: 6px 10px;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.search-card-open:hover {
    background: rgba(16, 185, 129, 0.2);
}

.search-dropdown-separator {
    padding: 12px 20px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.search-dropdown-engines {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 0 16px 12px;
}

.search-engine-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.search-engine-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.search-engine-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-engine-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.search-engine-icon svg {
    width: 20px;
    height: 20px;
}

.search-dropdown-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.search-dropdown-shortcut {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.search-dropdown-key {
    padding: 2px 6px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    font-family: monospace;
}

.search-dropdown-plus {
    font-size: 12px;
    color: var(--text-muted);
}

.search-dropdown-view-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-dropdown-view-all:hover {
    gap: 10px;
}

/* 无结果状态 */
.search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.search-no-results-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.search-no-results-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .search-dropdown-tools {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 12px;
        padding: 12px;
        max-height: 360px;
    }
    
    .search-tool-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
        gap: 10px;
        position: relative;
    }
    
    .search-card-header {
        margin-bottom: 0;
        flex-shrink: 0;
        width: 100%;
    }
    
    .search-card-number {
        top: -6px;
        left: -6px;
        width: 22px;
        height: 22px;
        font-size: 12px;
        border-radius: 50%;
    }
    
    .search-card-main {
        flex-direction: row;
        gap: 10px;
        align-items: flex-start;
    }
    
    .search-card-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        flex-shrink: 0;
    }
    
    .search-card-info {
        display: block;
        flex: 1;
        min-width: 0;
        text-align: left;
    }
    
    .search-card-favorite {
        display: flex;
    }
    
    .search-card-title {
        font-size: 15px;
        margin: 0 0 4px 0;
        text-align: left;
    }
    
    .search-card-domain {
        font-size: 12px;
        text-align: left;
    }
    
    .search-card-desc {
        position: static;
        font-size: 12px;
        margin: 0;
        -webkit-line-clamp: 2;
        width: 100%;
        left: auto;
        right: auto;
        top: auto;
    }
    
    .search-card-footer {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        flex-shrink: 0;
        min-width: auto;
        width: 100%;
    }
    
    .search-card-open {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        font-weight: 500;
        color: #10b981;
        padding: 6px 10px;
        background: rgba(16, 185, 129, 0.12);
        border-radius: 6px;
        white-space: nowrap;
    }
    
    .search-card-open:hover {
        background: rgba(16, 185, 129, 0.2);
    }
    
    .search-dropdown-engines {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .search-engine-btn {
        padding: 5px 12px;
        font-size: 13px;
    }
    
    .search-engine-icon {
        width: 20px;
        height: 20px;
    }
    
    .search-engine-icon img {
        width: 20px;
        height: 20px;
    }
    
    .search-dropdown-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-dropdown-shortcut {
        display: none;
    }
}

.search-tags-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.search-submit-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #10b981;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-submit-arrow:hover {
    background: #059669;
    transform: scale(1.1);
}

.search-submit-arrow:hover svg {
    transform: translateX(2px);
}

.search-submit-arrow svg {
    transition: transform 0.3s ease;
}

/* ========== 热搜词样式 ========== */
.hot-search-tags {
    display: none;
}

.hot-search-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.hot-search-tag {
    padding: 6px 14px;
    background: #2f353e;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.hot-search-tag:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

/* ========== 精选下拉菜单 ========== */
.featured-dropdown {
    position: relative;
    display: inline-block;
    margin-top: 16px;
}

.featured-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.featured-button:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.featured-button svg:first-child {
    color: #fbbf24;
    width: 18px;
    height: 18px;
}

.featured-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 1000;
    overflow: hidden;
}

.featured-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.featured-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--bg-primary);
}

/* ========== 启动台区域 ========== */
.qidongtai-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

.qidongtai-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 8px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.qidongtai-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.qidongtai-icon {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: circleGrowIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

@keyframes circleGrowIn {
    0% {
        opacity: 0;
        transform: scale(3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.qidongtai-divider {
    flex: 1;
    display: flex;
    align-items: center;
}

.qidongtai-divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.8) 50%, rgba(16, 185, 129, 0.1) 100%);
    background-size: 200% 100%;
    animation: qidongtai-gradient-move 5.12s linear infinite;
}

@keyframes qidongtai-gradient-move {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.qidongtai-header-actions {
    display: flex;
    gap: 8px;
}

.qidongtai-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

.qidongtai-action-btn:hover {
    background: var(--bg-tertiary);
    border-color: #10b981;
    color: #10b981;
}

.qidongtai-grid {
    display: grid;
    gap: 12px;
    margin-top: 0;
    max-height: none;
    overflow: visible;
}

.qidongtai-grid.expanded {
    max-height: none;
    overflow: visible;
}

.qidongtai-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.qidongtai-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.qidongtai-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.qidongtai-toggle.expanded {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.qidongtai-toggle-icon {
    display: inline-flex;
    font-size: 16px;
    transition: transform 0.3s;
}

.qidongtai-toggle:hover .qidongtai-toggle-icon {
    animation: sparkle-pulse 1.2s ease-in-out infinite;
}

@keyframes sparkle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.7);
    }
}

.qidongtai-item-delete {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.qidongtai-item-delete svg {
    stroke: #4b5563;
    stroke-width: 3;
}

body.dark .qidongtai-item-delete {
    background: #374151;
    border-color: #4b5563;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.dark .qidongtai-item-delete svg {
    stroke: #fff;
}

.qidongtai-item:hover .qidongtai-item-delete {
    opacity: 1;
}

.qidongtai-item-delete:hover {
    transform: scale(1.1);
}

.toggle-arrow {
    transition: transform var(--transition);
}

.qidongtai-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: var(--bg-primary);
    border-radius: 12px;
    transition: all var(--transition);
    text-decoration: none;
    border: 1px solid transparent;
}

.qidongtai-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #10b981;
}

.qidongtai-item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.qidongtai-item-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-tertiary);
    animation: iconGrowIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

@keyframes iconGrowIn {
    0% {
        opacity: 0;
        transform: scale(1.8);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.qidongtai-item-icon img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

.qidongtai-item-name {
    width: 100%;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.3;
}

.qidongtai-section.edit-mode .qidongtai-item {
    border-color: #10b981;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.qidongtai-section.edit-mode .qidongtai-item-name {
    color: var(--text-primary);
}

.qidongtai-section.edit-mode .qidongtai-item-delete {
    opacity: 1;
}

body:not(.dark) .qidongtai-section.edit-mode .qidongtai-item-delete {
    background: #ffffff;
    border-color: #e5e7eb;
}

body:not(.dark) .qidongtai-section.edit-mode .qidongtai-item-delete svg {
    stroke: #4b5563;
}

.qidongtai-section.edit-mode .edit-mode-btn {
    color: #ffffff;
    background: #10b981;
    border-color: #10b981;
}

.qidongtai-section.edit-mode .edit-mode-btn svg {
    stroke: #ffffff;
}

@media (max-width: 768px) {
    .search-container {
        max-width: 100%;
    }
    
    .search-box-wrapper {
        border-radius: 20px;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
        border: 1px solid var(--border-color);
        background: var(--bg-primary);
    }
    
    .search-box-wrapper:hover,
    .search-box-wrapper:focus-within {
        border: 1px solid #10b981;
        box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.5), 0 2px 20px rgba(16, 185, 129, 0.3);
    }
    
    .search-input-area {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .search-input-new {
        font-size: 18px;
        color: #ffffff;
        opacity: 0.9;
    }
    
    .search-input-new::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }
    
    .search-shortcut {
        display: none;
    }
    
    .search-icon-wrapper {
        display: none;
    }
    
    .search-tags-area {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 10px;
        gap: 10px;
    }
    
    .hot-search-list {
        justify-content: flex-start;
        gap: 8px;
    }
    
    .hot-search-tag {
        padding: 4px 10px;
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.85);
        font-size: 14px;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .hot-search-tag:hover {
        background: rgba(16, 185, 129, 0.2);
        border-color: rgba(16, 185, 129, 0.4);
        color: #10b981;
    }
    
    .search-submit-arrow {
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.15);
        flex-shrink: 0;
    }
    
    .search-submit-arrow:hover {
        background: rgba(16, 185, 129, 0.8);
        transform: scale(1);
    }
    
    .search-submit-arrow svg {
        stroke: rgba(255, 255, 255, 0.9);
        stroke-width: 2.5;
    }
    
    body:not(.dark) .search-box-wrapper {
        background: #ffffff;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    }
    
    body:not(.dark) .search-input-new {
        color: var(--text-primary);
        opacity: 1;
    }
    
    body:not(.dark) .search-input-new::placeholder {
        color: var(--text-muted);
    }
    
    body:not(.dark) .hot-search-tag {
        background: #f3f4f6;
        color: var(--text-secondary);
        border-color: #e5e7eb;
    }
    
    body:not(.dark) .search-submit-arrow {
        background: var(--bg-tertiary);
    }
    
    body:not(.dark) .search-submit-arrow svg {
        stroke: var(--text-secondary);
    }
    
    body:not(.dark) .search-submit-arrow:hover {
        background: #10b981;
    }
    
    body:not(.dark) .search-submit-arrow:hover svg {
        stroke: #ffffff;
    }
    
    .qidongtai-header {
        flex-wrap: nowrap;
    }
    
    .qidongtai-title {
        font-size: 14px;
        margin-right: auto;
    }
    
    .qidongtai-header-actions {
        gap: 4px;
        margin-left: 0px;
    }
    
    .qidongtai-action-btn {
        padding: 2px 8px;
    }
    
    .qidongtai-action-btn:first-child span {
        display: none;
    }
    
    .qidongtai-action-btn.edit-mode-btn svg {
        display: none;
    }
    
    .qidongtai-item {
        padding: 16px 8px;
        aspect-ratio: 1 / 1;
        height: auto;
    }
    
    .qidongtai-item-icon {
        width: 48px;
        height: 48px;
    }
    
    .qidongtai-item-name {
        font-size: 12px;
    }
}

/* ========== 搜索结果页样式 ========== */
.search-breadcrumb {
    background: var(--bg-primary);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.search-breadcrumb .container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition);
}

.search-back-link:hover {
    color: #059669;
}

.search-home-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}

.search-home-link:hover {
    color: var(--text-primary);
}

.page-header {
    padding: 0;
    margin-top: 15px;
    margin-bottom: 15px;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: normal;
}

/* ========== 分类区域 ========== */
.categories-section {
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 20px;
}

.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: inline-block;
}

.categories-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .categories-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 7px;
    }
    
    .category-tag {
        text-align: center;
        padding: 5px 7px;
        font-size: 13px;
    }
}

.category-tag {
    padding: 5px 7px;
    background: #2f353e;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}

.category-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ========== 工具网格 ========== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.tool-card-external-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transition: all var(--transition);
    z-index: 10;
    text-decoration: none;
    border: 1px solid transparent;
}

.tool-card:hover .tool-card-external-btn {
    opacity: 1;
}

.tool-card-external-btn:hover {
    background: transparent;
    color: #10b981;
    border-color: #10b981;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #10b981;
}

.tool-card-link {
    display: flex;
    flex-direction: column;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

.tool-card-top {
    display: flex;
    gap: 9px;
    margin-bottom: 9px;
}

.tool-card-icon {
    width: 31.5px;
    height: 31.5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--bg-tertiary);
}

.tool-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.tool-card-info {
    flex: 1;
    min-width: 0;
}

.tool-card-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text-primary);
    text-align: left;
}

.tool-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.tool-card-tags {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tool-tag {
    padding: 2.25px 6.75px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 15px;
    font-size: 9px;
    font-weight: 500;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.tool-tag:hover {
    border-color: #10b981;
    color: #10b981;
}

.tool-tag.featured-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tool-tag.featured-tag:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.tool-favorite-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
    border-radius: 7.5px;
}

.tool-favorite-btn:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-color: #10b981;
}

.tool-share-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
    border-radius: 7.5px;
}

.tool-share-btn:hover {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.no-tools {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 18px;
}

/* ========== 加载更多按钮 ========== */
.load-more-section {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-bottom: 40px;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 32px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.load-more-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.load-more-btn svg {
    width: 20px;
    height: 20px;
}

.load-more-btn.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.load-more-count {
    color: var(--text-muted);
    font-size: 13px;
}

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

.pagination a,
.pagination span {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition);
}

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

/* ========== 工具详情页样式 ========== */
.tool-detail-wrapper {
    min-height: 100vh;
    background: var(--bg-secondary);
}

.tool-breadcrumb {
    background: var(--bg-primary);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.tool-breadcrumb a {
    color: var(--text-secondary);
    font-size: 13px;
}

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

.tool-breadcrumb .separator {
    margin: 0 8px;
    color: var(--text-muted);
}

.tool-breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

.tool-header {
    background: var(--bg-secondary);
    padding: 24px 0;
}

.tool-header-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.tool-header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tool-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.tool-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.tool-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.tool-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    padding-left: 60px;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 60px;
}

.tool-tag {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: none;
}

.tool-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-left: 60px;
}

.tool-action-btn {
    padding: 14px 36px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 16px;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.tool-action-btn.primary {
    background: #10b981;
    color: white;
    border: none;
}

.tool-action-btn.primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tool-action-btn.secondary {
    padding: 14px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.tool-action-btn.secondary:hover {
    background: var(--bg-secondary);
    border-color: #10b981;
}

.tool-header-right {
    flex-shrink: 0;
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tool-hero-wrapper {
    width: 100%;
}

.tool-hero-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.tool-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-tools-section {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

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

.related-tools-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary);
}

.refresh-btn {
    padding: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.tool-content {
    padding: 20px 0;
}

.tool-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
}

.tool-main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tool-section {
    background: var(--bg-primary);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

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

.section-icon {
    font-size: 22px;
    display: inline-block;
    transition: transform 0.3s;
}

.section-icon.sparkle-icon:hover {
    animation: sparkle-pulse 1.2s ease-in-out infinite;
}

.section-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

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

.section-content p:last-child {
    margin-bottom: 0;
}

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

.feature-list li {
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.tool-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.tool-sidebar-section,
.sidebar-widget {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.sidebar-widget .widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.widget-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0;
    border-radius: 0;
    transition: all 0.3s ease;
    border: none;
}

.widget-title-wrapper .widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.widget-icon-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.widget-icon-upload:hover {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.widget-icon-upload.loading {
    pointer-events: none;
    opacity: 0.6;
}

.widget-icon-upload.loading svg {
    animation: icon-rotate 1s linear infinite;
}

@keyframes icon-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition);
    text-decoration: none;
}

.quick-action-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

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

.product-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.tool-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-category-tag {
    padding: 5px 13px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    flex: 1;
    text-align: center;
    justify-content: center;
    min-width: 0;
}

.tool-category-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tool-category-tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.related-tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-tool-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    transition: all var(--transition);
    text-decoration: none;
    border: 1px solid var(--border-color);
}

.related-tool-item:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
    border-color: #10b981;
}

.related-tool-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.related-tool-info {
    flex: 1;
    min-width: 0;
}

.related-tool-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-tool-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 95%;
}

/* ========== 分类目录页样式 ========== */
.category-page-wrapper {
    min-height: 100vh;
    background: var(--bg-secondary);
    padding: 20px 0;
}

.category-page-content {
    padding: 0;
}

.category-page-content .container {
    max-width: 1400px;
}

.category-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 左侧侧边栏 */
.category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-header {
    color: var(--text-muted);
    font-size: 14px;
    padding: 0 10px;
}

.category-sidebar-header {
    color: var(--text-muted);
    font-size: 14px;
    padding: 0 10px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-parent {
    display: block;
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.category-parent:hover {
    background: var(--bg-secondary);
    border-color: rgba(16, 185, 129, 0.3);
}

.category-parent.active {
    background: linear-gradient(135deg, #00d4aa 0%, #10b981 100%);
    border-color: transparent;
    color: white;
}

/* 右侧内容区 */
.category-main {
    min-height: 400px;
}

.category-detail {
    display: none;
}

.category-detail:first-child {
    display: block;
}

.category-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease;
}

.category-detail-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
    transition: color 0.3s ease;
}

.view-all-link {
    color: #10b981;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    text-decoration: none;
}

.category-children-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.category-child-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-child-card:hover {
    background: var(--bg-secondary);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.category-child-card .child-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #00d4aa 0%, #10b981 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-child-card .child-icon span {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.category-child-card .child-name {
    flex: 1;
    font-weight: 500;
    font-size: 16px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.category-child-card .child-arrow {
    color: #10b981;
    font-size: 22px;
    font-weight: 300;
    opacity: 0.7;
}

.category-child-card:hover .child-arrow {
    opacity: 1;
}

.no-children {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.category-tools-grid {
    display: grid;
    gap: 16px;
}

.tool-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    color: inherit;
}

.tool-item:hover {
    background: #10b981;
    color: white;
}

.tool-item-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-primary);
}

.tool-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-item:hover .tool-item-icon {
    background: rgba(255, 255, 255, 0.2);
}

.tool-item-info {
    flex: 1;
}

.tool-item-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.tool-item-desc {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-item:hover .tool-item-title,
.tool-item:hover .tool-item-desc {
    color: rgba(255, 255, 255, 0.95);
}

/* ========== 分类详情页样式 ========== */
.taxonomy-page-wrapper {
    min-height: 100vh;
    background: var(--bg-secondary);
}

.taxonomy-breadcrumb {
    background: var(--bg-primary);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.taxonomy-breadcrumb a {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.taxonomy-breadcrumb .separator {
    margin: 0 8px;
    color: var(--text-muted);
}

.taxonomy-breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

.taxonomy-page-header {
    background: var(--bg-primary);
    padding: 48px 0;
    border-bottom: 1px solid var(--border-color);
}

.taxonomy-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.taxonomy-meta {
    margin-bottom: 16px;
}

.tool-count {
    font-size: 16px;
    color: var(--text-secondary);
}

.taxonomy-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
}

.taxonomy-tools-section {
    padding: 40px 0;
}

.taxonomy-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.taxonomy-tool-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: block;
    color: inherit;
}

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

.tool-card-thumbnail {
    width: 100%;
    height: 180px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.tool-card-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tool-card-content {
    padding: 20px;
}

.tool-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.tool-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 页面结构补充样式 ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 默认页面模板（无侧边栏） */
.single-main-full {
    max-width: 1080px;
    margin: 0 auto;
}

.single-main-full .single-content {
    width: 100%;
    padding: 40px 0;
    background: var(--bg-secondary);
}

.single-main-full .single-article {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 32px 40px;
    margin-bottom: 24px;
}

.single-main-full .single-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.single-main-full .single-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.single-main-full .single-content-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
}

.single-main-full .single-content-text a {
    color: #10b981;
    text-decoration: none;
}

.single-main-full .single-content-text a:hover {
    text-decoration: underline;
}

.single-main-full .single-content-text h2,
.single-main-full .single-content-text h3 {
    margin: 24px 0 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.single-main-full .single-content-text p {
    margin: 0 0 16px;
}

.single-main-full .single-content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

@media (max-width: 768px) {
    .single-main-full .single-article {
        padding: 20px;
    }

    .single-main-full .single-title {
        font-size: 20px;
    }
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .category-layout {
        grid-template-columns: 1fr;
    }
    
    .category-sidebar {
        position: static;
    }
    
    .tool-content-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-sidebar {
        position: static;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .qidongtai-grid {
        max-height: 560px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .search-wrapper {
        border-radius: 20px;
    }
    
    .search-icon-wrapper {
        padding: 0 16px;
    }
    
    .search-input-new {
        padding: 14px 0;
        font-size: 15px;
    }
    
    .search-submit-new {
        padding: 14px 18px;
    }
    
    .qidongtai-grid {
        max-height: 560px;
    }
    
    .qidongtai-grid.expanded {
        max-height: none;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card-desc {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .tool-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tool-sidebar {
        position: static;
    }
    
    .tool-main-content {
        gap: 16px;
    }
    
    .tool-section {
        padding: 16px;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .section-content {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .tool-content {
        padding: 20px 0;
    }
    
    .categories-nav {
        padding: 16px;
    }
    
    .tool-header-card {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .tool-header-left {
        flex-direction: column;
        gap: 12px;
    }
    
    .tool-header-top {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .tool-logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: none;
    }
    
    .tool-logo img {
        width: 70%;
        height: 70%;
        object-fit: contain;
    }
    
    .tool-title {
        font-size: 24px;
        font-weight: 700;
        line-height: 1.2;
    }
    
    .tool-desc {
        font-size: 14px;
        padding-left: 0;
        text-align: left;
    }
    
    .tool-tags {
        padding-left: 0;
        gap: 6px;
    }
    
    .tool-tag {
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .tool-category-tag {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
    
    .tool-buttons {
        padding-left: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tool-action-btn {
        padding: 8px 21px;
        font-size: 13px;
    }
    
    .tool-action-btn.secondary {
        padding: 7px 7px;
    }
    
    .load-more-section {
        margin-top: 24px;
        padding-bottom: 24px;
    }
    
    .load-more-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
    
    .tool-header-right {
        width: 100%;
        justify-content: flex-end;
    }
    
    .tool-hero-image {
        max-height: none;
        aspect-ratio: 16 / 10;
        border-radius: 12px;
    }
    
    .tool-hero-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    
    .tool-action-btn {
        padding: 7px 21px;
        font-size: 14px;
    }
    
    .related-tools-section {
        padding: 16px;
    }
    
    .related-tools-title {
        font-size: 18px;
    }
    
    .related-tool-item {
        gap: 10px;
        padding: 12px;
    }
    
    .related-tool-icon {
        width: 36px;
        height: 36px;
    }
    
    .related-tool-title {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .related-tool-desc {
        font-size: 11px;
    }
    
    .related-tool-icon-large {
        width: 48px;
        height: 48px;
    }
    
    .related-tool-title-large {
        font-size: 16px;
    }
    
    .related-tool-desc-large {
        font-size: 13px;
    }
    
    .taxonomy-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .category-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .qidongtai-grid {
        max-height: 840px;
    }
}

/* ========== 暗黑模式调整 ========== */
body.dark .qidongtai-header,
body.dark .categories-nav,
body.dark .tool-card,
body.dark .tool-main-content,
body.dark .tool-sidebar-section,
body.dark .category-detail,
body.dark .taxonomy-tool-card,
body.dark .tool-item,
body.dark .category-parent {
    background: var(--bg-primary);
}

body.dark .tool-card-title,
body.dark .tool-card-desc,
body.dark .tool-title,
body.dark .tool-desc,
body.dark .qidongtai-item-name,
body.dark .category-name,
body.dark .category-detail-title {
    color: var(--text-primary);
}

body.dark .child-name,
body.dark .tool-item-title,
body.dark .tool-item-desc {
    color: var(--text-primary);
}

body.dark .load-more-btn {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

body.dark .load-more-btn:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========== 页脚 ========== */
.footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.footer-email:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color var(--transition);
}

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

.footer-submit {
    color: #10b981 !important;
    font-weight: 500;
}

.footer-submit:hover {
    color: #059669 !important;
}

.footer-bottom {
    padding-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

.footer-bottom-center {
    text-align: center;
    color: var(--text-secondary);
}

/* 友情链接 */
.friend-links {
    margin-bottom: 40px;
}

.friend-links-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-link-item {
    display: inline-block;
    padding: 5px 13px;
    background: #2f353e;
    color: var(--text-secondary);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.friend-link-item:hover {
    background: var(--bg-tertiary);
    color: #10b981;
    border-color: #10b981;
}

/* ========== 头部样式 ========== */
.header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

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

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

.logo span {
    color: var(--text-primary);
}

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

.header-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-menu li a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    padding: 4px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.theme-toggle svg {
    display: block;
}

/* ========== 移动端菜单 ========== */
.mobile-menu-toggle {
    display: none;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* ========== 友情链接样式 ========== */
.friend-links {
    margin-top: 20px;
    padding-top: 0;
}

.friend-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 768px) {
    .friend-links-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .friend-link-item {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: #2f353e;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        padding: 5px 13px;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-secondary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .friend-link-item:hover {
        background: rgba(16, 185, 129, 0.1);
        color: #10b981;
        border-color: #10b981;
    }
    
    .footer-grid {
        display: none;
    }
}



/* ========== 订阅区域样式 ========== */
.subscribe-section {
    background: transparent;
    padding: 0 0 40px 0;
    border-top: none;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.subscribe-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.subscribe-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.subscribe-form {
    display: flex;
    gap: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.subscribe-form:hover {
    border-color: #10b981;
}

.subscribe-form:focus-within {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}

.subscribe-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.subscribe-btn {
    width: 56px;
    height: 50px;
    background: #10b981;
    border: none;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition);
}

.subscribe-btn:hover {
    background: #059669;
}

.subscribe-message {
    margin-top: 12px;
    font-size: 14px;
    display: none;
}

.subscribe-message.success {
    display: block;
    color: #10b981;
}

.subscribe-message.error {
    display: block;
    color: #ef4444;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ========== 热搜词暗黑模式适配 ========== */

/* AI生成内容样式 - 隐藏li圆点 */
.ai-generated-content ul,
.ai-generated-content ol,
.tool-content ul,
.tool-content ol,
.entry-content ul,
.entry-content ol,
.post-content ul,
.post-content ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.ai-generated-content li,
.tool-content li,
.entry-content li,
.post-content li {
    list-style: none !important;
    padding-left: 0 !important;
}

/* ========== PanSou 网盘搜索页面样式 ========== */
.pansou-page-wrapper {
    min-height: 100vh;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

/* Hero 区域 */
.pansou-hero {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.pansou-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.pansou-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.pansou-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pansou-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* 搜索框 */
.pansou-search-box {
    width: 100%;
}

.pansou-search-input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    height: 56px;
}

.pansou-search-icon {
    color: #999;
    margin-left: 16px;
    flex-shrink: 0;
}

.pansou-search-input {
    flex: 1;
    height: 100%;
    padding: 0 16px;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
    background: transparent;
}

.pansou-search-input::placeholder {
    color: #999;
}

.pansou-search-btn {
    height: 100%;
    padding: 0 32px;
    background: #3b6fff;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.pansou-search-btn:hover {
    background: #2d5fdf;
}

.pansou-quick-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
}

.quick-tag-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.quick-tag {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* 筛选栏 */
.pansou-filter-section {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.pansou-filter-bar {
    padding: 16px 0;
}

.pansou-cloud-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-right: 4px;
    transition: color 0.3s ease;
}

.cloud-type-btn {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cloud-type-btn:hover {
    border-color: #3b6fff;
    color: #3b6fff;
}

.cloud-type-btn.active {
    background: #3b6fff;
    border-color: #3b6fff;
    color: #fff;
}

/* 结果区域 */
.pansou-results-section {
    padding: 32px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.pansou-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.pansou-results-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease;
}

.pansou-results-title svg {
    color: #3b6fff;
}

.pansou-results-count {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.pansou-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 0;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: #3b6fff;
    border-radius: 50%;
    animation: pansou-spin 0.8s linear infinite;
}

@keyframes pansou-spin {
    to { transform: rotate(360deg); }
}

.pansou-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 0;
    color: var(--text-muted);
    text-align: center;
    transition: color 0.3s ease;
}

.pansou-no-results svg {
    opacity: 0.5;
}

.pansou-no-results p {
    font-size: 16px;
    margin: 0;
}

/* 资源卡片 */
.pansou-results {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pansou-type-group {
    margin-bottom: 8px;
}

.pansou-type-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.pansou-type-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.pansou-type-count {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.pansou-type-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.pansou-resource-card {
    display: flex;
    align-items: stretch;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pansou-resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 111, 255, 0.3);
    text-decoration: none;
}

.pansou-resource-card-body {
    flex: 1;
    padding: 16px;
    min-width: 0;
}

.pansou-resource-type-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: #3b6fff;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.pansou-resource-type-tag[data-type="baidu"] { background: #2932e1; }
.pansou-resource-type-tag[data-type="aliyun"] { background: #ff6a00; }
.pansou-resource-type-tag[data-type="quark"] { background: #00b96b; }
.pansou-resource-type-tag[data-type="tianyi"] { background: #e60012; }
.pansou-resource-type-tag[data-type="123"] { background: #ff7a45; }
.pansou-resource-type-tag[data-type="xunlei"] { background: #00c1de; }

.pansou-resource-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.pansou-resource-content {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.pansou-resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.pansou-resource-password {
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    transition: background-color 0.3s ease;
}

.pansou-resource-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.pansou-resource-card:hover .pansou-resource-card-arrow {
    color: #3b6fff;
}

.pansou-resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pansou-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pansou-link-btn:hover {
    background: #3b6fff;
    border-color: #3b6fff;
    color: #fff;
    text-decoration: none;
}

/* 搜索提示 */
.pansou-tips-section {
    padding: 40px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.pansou-tips {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.pansou-tips h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    transition: color 0.3s ease;
}

.pansou-tips ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 2;
    transition: color 0.3s ease;
}

/* 响应式 */
@media (max-width: 768px) {
    .pansou-hero {
        min-height: 320px;
        padding: 40px 16px;
    }

    .pansou-hero-title {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .pansou-hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .pansou-search-input-wrapper {
        height: 48px;
        border-radius: 8px;
    }

    .pansou-search-btn {
        padding: 0 20px;
        font-size: 14px;
    }

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

    .pansou-search-icon {
        width: 16px;
        height: 16px;
        margin-left: 12px;
    }

    .pansou-quick-tags {
        gap: 6px;
    }

    .quick-tag {
        font-size: 12px;
        padding: 3px 10px;
    }

    .pansou-cloud-types {
        gap: 6px;
    }

    .cloud-type-btn {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 6px;
    }

    .pansou-results-title {
        font-size: 18px;
    }

    .pansou-type-list {
        grid-template-columns: 1fr;
    }

    .pansou-tips {
        padding: 16px;
    }
}

/* ========== 快讯页面样式 ========== */
.news-page-wrapper {
    min-height: 100vh;
    background: var(--bg-secondary);
    padding: 40px 0 60px;
    transition: background-color 0.3s ease;
}

.news-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    position: relative;
}

.news-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 138, 76, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.news-header-content {
    position: relative;
    z-index: 1;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(255, 138, 76, 0.15), rgba(255, 107, 107, 0.15));
    color: #ff8a4c;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 138, 76, 0.25);
}

.news-badge svg {
    width: 16px;
    height: 16px;
}

.news-page-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.news-page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.news-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-category-btn {
    padding: 8px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
}

.news-category-btn:hover {
    border-color: #ff8a4c;
    color: #ff8a4c;
    background: rgba(255, 138, 76, 0.08);
}

.news-category-btn.active {
    background: linear-gradient(135deg, #ff8a4c 0%, #ff6b6b 100%);
    border-color: transparent;
    color: #fff;
}

.news-total {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.news-total span {
    color: #ff8a4c;
    font-weight: 600;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    transition: opacity 0.3s ease;
}

.news-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

.news-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 138, 76, 0.3);
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card-link:hover {
    text-decoration: none;
}

.news-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.5;
}

.news-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(255, 138, 76, 0.95), rgba(255, 107, 107, 0.95));
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.news-card-content {
    padding: 20px;
}

.news-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
    color: #ff8a4c;
}

.news-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-date svg {
    width: 14px;
    height: 14px;
}

.news-card-read-more {
    color: #ff8a4c;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.news-card:hover .news-card-read-more {
    transform: translateX(4px);
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.news-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.news-empty p {
    font-size: 16px;
    margin: 0;
}

.news-load-more-wrap {
    text-align: center;
    margin-top: 48px;
}

.news-load-more-btn {
    padding: 14px 48px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-load-more-btn:hover {
    border-color: #ff8a4c;
    color: #ff8a4c;
    background: rgba(255, 138, 76, 0.06);
}

.news-load-more-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 响应式 */
@media (max-width: 768px) {
    .news-page-wrapper {
        padding: 24px 0 40px;
    }

    .news-page-header {
        padding: 20px 0 30px;
        margin-bottom: 24px;
    }

    .news-page-title {
        font-size: 30px;
    }

    .news-page-subtitle {
        font-size: 14px;
    }

    .news-filter-bar {
        margin-bottom: 24px;
        gap: 12px;
    }

    .news-categories {
        gap: 6px;
    }

    .news-category-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-card-image {
        height: 180px;
    }

    .news-card-content {
        padding: 16px;
    }

    .news-card-title {
        font-size: 16px;
    }

    .news-load-more-btn {
        padding: 12px 36px;
        font-size: 14px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 快讯单篇文章 */
.single-news-meta-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.single-news-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ff8a4c 0%, #ff6b6b 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.single-news-category a {
    color: #fff;
    text-decoration: none;
}

.single-news-category a:hover {
    color: #fff;
    text-decoration: none;
}

.single-news-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.single-news-date svg {
    width: 14px;
    height: 14px;
}

.single-news-thumbnail {
    margin: 24px 0;
    border-radius: 16px;
    overflow: hidden;
}

.single-news-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* 相关快讯 */
.related-news-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.related-news-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    transition: color 0.3s ease;
}

.related-news-title svg {
    color: #ff8a4c;
}

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

.related-news-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 138, 76, 0.3);
}

.related-news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-news-link:hover {
    text-decoration: none;
}

.related-news-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

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

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

.related-news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.5;
}

.related-news-info {
    padding: 12px;
}

.related-news-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.related-news-card:hover .related-news-name {
    color: #ff8a4c;
}

.related-news-date {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .related-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-news-image {
        height: 100px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .related-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== 快讯页面 V2 样式 - 1:1 仿照 aistart.ai/zh/news ========== */

.news-v2-wrapper {
    min-height: 100vh;
    background: var(--bg-secondary);
    padding: 60px 0 80px;
    transition: background-color 0.3s ease;
}

.news-v2-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.news-v2-header {
    text-align: center;
    margin-bottom: 48px;
    animation: news-v2-fadeInUp 0.6s ease-out;
}

.news-v2-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.news-v2-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    opacity: 0.8;
}

.news-v2-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.12);
}

.news-v2-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-tertiary);
    font-size: 13px;
}

.news-v2-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-v2-stat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 4px rgba(16, 185, 129, 0.4);
}

.news-v2-stat-divider {
    color: var(--border-color);
    opacity: 0.6;
    font-size: 14px;
}

.news-v2-timeline {
    position: relative;
    padding-left: 55px;
}

.news-v2-timeline-line {
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 0;
    width: 1px;
    background: var(--border-color);
    opacity: 0.6;
}

.news-v2-item {
    position: relative;
    margin-bottom: 20px;
    opacity: 1;
    transform: translateY(0);
}

.news-v2-item:nth-child(1) { animation: news-v2-fadeInUp 0.5s ease-out forwards; animation-delay: 0.05s; opacity: 0; }
.news-v2-item:nth-child(2) { animation: news-v2-fadeInUp 0.5s ease-out forwards; animation-delay: 0.1s; opacity: 0; }
.news-v2-item:nth-child(3) { animation: news-v2-fadeInUp 0.5s ease-out forwards; animation-delay: 0.15s; opacity: 0; }
.news-v2-item:nth-child(4) { animation: news-v2-fadeInUp 0.5s ease-out forwards; animation-delay: 0.2s; opacity: 0; }
.news-v2-item:nth-child(5) { animation: news-v2-fadeInUp 0.5s ease-out forwards; animation-delay: 0.25s; opacity: 0; }
.news-v2-item:nth-child(6) { animation: news-v2-fadeInUp 0.5s ease-out forwards; animation-delay: 0.3s; opacity: 0; }
.news-v2-item:nth-child(7) { animation: news-v2-fadeInUp 0.5s ease-out forwards; animation-delay: 0.35s; opacity: 0; }
.news-v2-item:nth-child(8) { animation: news-v2-fadeInUp 0.5s ease-out forwards; animation-delay: 0.4s; opacity: 0; }
.news-v2-item:nth-child(9) { animation: news-v2-fadeInUp 0.5s ease-out forwards; animation-delay: 0.45s; opacity: 0; }
.news-v2-item:nth-child(10) { animation: news-v2-fadeInUp 0.5s ease-out forwards; animation-delay: 0.5s; opacity: 0; }
.news-v2-item:nth-child(n+11) { animation: news-v2-fadeInUp 0.5s ease-out forwards; animation-delay: 0.55s; opacity: 0; }

.news-v2-item-dot {
    position: absolute;
    left: -51px;
    top: 22px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    z-index: 2;
    box-shadow: 0 0 0 3px var(--bg-secondary);
    animation: news-v2-dot-pop 0.3s ease-out forwards;
    animation-delay: inherit;
    opacity: 0;
    transform: scale(0);
}

.news-v2-item-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.news-v2-item-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.news-v2-item-source {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f2937;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
    background: #f3f4f6;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.news-v2-item-source:hover {
    background: #e5e7eb;
    color: #1f2937;
    border-color: #10b981;
}

body.dark .news-v2-item-source {
    color: #f9fafb;
    background: #1f2937;
    border: 1px solid #374151;
}

body.dark .news-v2-item-source:hover {
    background: #374151;
    color: #f9fafb;
    border-color: #10b981;
}

.news-v2-source-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.news-v2-source-name {
    font-weight: 600;
}

.news-v2-item-body {
    display: flex;
    gap: 20px;
}

.news-v2-item.no-image .news-v2-item-body {
    display: block;
}

.news-v2-item-image {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    overflow: hidden;
    border-radius: 12px;
    margin: 20px 0 20px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-v2-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-v2-item-card:hover .news-v2-item-image img {
    transform: scale(1.08);
}

.news-v2-item-content {
    flex: 1;
    min-width: 0;
    padding: 20px 24px 20px 0;
}

.news-v2-item.no-image .news-v2-item-content {
    padding: 20px 22px;
}

.news-v2-item-tags {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.news-v2-item-tags-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.news-v2-item.no-image .news-v2-item-tags {
    margin-bottom: 12px;
}

.news-v2-item-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    background: #10b981;
    color: #ffffff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.news-v2-item-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    background: #f3f4f6;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.news-v2-item-date:hover {
    border-color: #10b981;
}

body.dark .news-v2-item-date {
    color: #9ca3af;
    background: #374151;
    border: 1px solid #4b5563;
}

body.dark .news-v2-item-date:hover {
    border-color: #10b981;
}

.news-v2-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-v2-item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.news-v2-item.no-image .news-v2-item-title {
    font-size: 16px;
    margin-bottom: 12px;
}

.news-v2-item-card:hover .news-v2-item-title {
    color: #10b981;
}

.news-v2-item-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.8;
}

.news-v2-item.no-image .news-v2-item-excerpt {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.news-v2-load-more-wrap {
    text-align: center;
    margin-top: 40px;
}

.news-v2-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-v2-load-more:hover {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.03);
}

.news-v2-load-more:active {
    transform: translateY(0);
}

.news-v2-load-more.loading {
    pointer-events: none;
    opacity: 0.7;
}

.news-v2-load-more-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-color);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: news-v2-spin 0.8s linear infinite;
}

.news-v2-load-more-icon {
    font-size: 14px;
}

.news-v2-load-more-remaining {
    font-size: 12px;
    opacity: 0.7;
    margin-left: 4px;
}

.news-v2-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-tertiary);
}

.news-v2-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.news-v2-empty p {
    margin: 0;
    font-size: 14px;
    opacity: 0.7;
}

@keyframes news-v2-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes news-v2-dot-pop {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes news-v2-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== 快讯单页 V2 - 深色卡片风格 ========== */

.news-single-wrapper {
    min-height: 100vh;
    background: var(--bg-secondary);
    padding: 60px 0 80px;
    transition: background-color 0.3s ease;
}

.news-single-container {
    max-width: 999px;
    margin: 0 auto;
    padding: 0 24px;
}

.news-single-card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 48px;
}

.news-single-card-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 138, 76, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.news-single-card-inner {
    position: relative;
    z-index: 1;
    padding: 30px 40px;
}

.news-single-header {
    margin-bottom: 0px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.news-single-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.news-single-meta-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.news-single-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 138, 76, 0.1);
    color: var(--accent-color);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.news-single-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-tertiary);
    font-size: 12px;
}

.news-single-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-tertiary);
    font-size: 12px;
}

.news-single-source-icon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.news-single-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin: 0;
    letter-spacing: -0.01em;
}

.news-single-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-primary);
}

.news-single-content p {
    margin-bottom: 20px;
}

.news-single-content h1,
.news-single-content h2,
.news-single-content h3,
.news-single-content h4,
.news-single-content h5,
.news-single-content h6 {
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
}

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

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

.news-single-content a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

.news-single-content a:hover {
    text-decoration: underline;
}

.news-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.news-single-content ul,
.news-single-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.news-single-content li {
    margin-bottom: 8px;
}

.news-single-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--bg-secondary);
    border-radius: 0 12px 12px 0;
    color: var(--text-secondary);
}

.news-single-content code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.news-single-content pre {
    background: var(--bg-secondary);
    padding: 20px 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
}

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

.news-single-source-box {
    margin-top: 40px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.news-single-source-label {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-single-source-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.news-single-source-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.news-single-source-box-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.news-single-source-details {
    flex: 1;
    min-width: 0;
}

.news-single-source-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.news-single-source-link {
    font-size: 14px;
    color: var(--accent-color);
    text-decoration: none;
    word-break: break-all;
    transition: opacity 0.2s;
}

.news-single-source-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.news-single-footer {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.news-single-read-original {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--accent-color);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-single-read-original:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

.news-single-related {
    margin-top: 24px;
}

.news-single-related-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

.news-single-related-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-single-related-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    gap: 20px;
}

.news-single-related-item:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.news-single-related-item:hover .news-single-related-name {
    color: #10b981;
}

.news-single-related-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

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

.news-single-related-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.news-single-related-date {
    font-size: 13px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.news-single-related-divider {
    color: var(--text-tertiary);
    opacity: 0.5;
    font-size: 13px;
}

.news-single-related-source {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 400;
}

.news-single-related-arrow {
    width: 14px;
    height: 14px;
    color: var(--text-tertiary);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.news-single-related-item:hover .news-single-related-arrow {
    color: #10b981;
}

/* ========== 快讯 V2 响应式 ========== */

@media (max-width: 1024px) {
    .news-v2-container {
        max-width: 720px;
        padding: 0 20px;
    }

    .news-v2-title {
        font-size: 30px;
    }

    .news-single-card-inner {
        padding: 48px 40px;
    }

    .news-single-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .news-v2-wrapper {
        padding: 32px 0 48px;
    }

    .news-v2-container {
        padding: 0 16px;
    }

    .news-v2-header {
        margin-bottom: 32px;
    }

    .news-v2-title {
        font-size: 24px;
    }

    .news-v2-subtitle {
        font-size: 13px;
    }

    .news-v2-stats {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        font-size: 12px;
    }

    .news-v2-stat {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .news-v2-stat:last-child {
        font-size: 11px;
    }

    .news-v2-stat-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #10b981;
        box-shadow: 0 0 4px rgba(16, 185, 129, 0.4);
    }

    .news-v2-stat-divider {
        display: none;
    }

    .news-v2-timeline {
        padding-left: 20px;
    }

    .news-v2-timeline-line {
        left: 5px;
    }

    .news-v2-item {
        margin-bottom: 16px;
    }

    .news-v2-item-dot {
        left: -20px;
        top: 20px;
        width: 12px;
        height: 12px;
        box-shadow: 0 0 0 3px var(--bg-secondary);
    }

    .news-v2-item-source {
        font-size: 10px;
        padding: 4px 10px;
        gap: 6px;
    }

    .news-v2-source-icon {
        width: 14px;
        height: 14px;
    }

    .news-v2-item-body {
        flex-direction: column;
        gap: 0;
    }

    .news-v2-item-image {
        width: 100%;
        height: 120px;
        margin: 0;
        border-radius: 0;
    }

    .news-v2-item-content {
        padding: 14px 16px 16px;
    }

    .news-v2-item.no-image .news-v2-item-content {
        padding: 16px;
    }

    .news-v2-item-tags {
        margin-bottom: 8px;
    }

    .news-v2-item.no-image .news-v2-item-tags {
        margin-bottom: 10px;
    }

    .news-v2-item-category {
        font-size: 10px;
        padding: 4px 10px;
    }

    .news-v2-item-date {
        font-size: 10px;
        padding: 4px 10px;
        background: #f3f4f6;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
    }

    body.dark .news-v2-item-date {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }

    .news-v2-item-title {
        font-size: 13px;
    }

    .news-v2-item.no-image .news-v2-item-title {
        font-size: 13px;
    }

    .news-v2-item-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .news-v2-item.no-image .news-v2-item-excerpt {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .news-v2-load-more-wrap {
        margin-top: 32px;
    }

    .news-v2-load-more {
        padding: 9px 24px;
        font-size: 12px;
    }

    .news-single-wrapper {
        padding: 32px 0 48px;
    }

    .news-single-container {
        padding: 0 16px;
    }

    .news-single-card {
        border-radius: 16px;
    }

    .news-single-card-inner {
        padding: 20px 20px;
    }

    .news-single-header {
        margin-bottom: 0px;
        padding-bottom: 20px;
    }

    .news-single-title {
        font-size: 16px;
    }

    .news-single-meta-left {
        gap: 10px;
    }

    .news-single-category {
        padding: 5px 10px;
    }

    .news-single-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .news-single-content h2 {
        font-size: 20px;
    }

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

    .news-single-source-box {
        padding: 20px;
    }

    .news-single-source-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .news-single-footer {
        text-align: center;
    }

    .news-single-related-list {
        gap: 8px;
    }

    .news-single-related-item {
        padding: 12px 16px;
        gap: 12px;
    }

    .news-single-related-name {
        font-size: 14px;
    }

    .news-single-related-meta {
        gap: 6px;
    }

    .news-single-related-date,
    .news-single-related-source,
    .news-single-related-divider {
        font-size: 12px;
    }

    .news-single-related-arrow {
        width: 12px;
        height: 12px;
    }
}

/* ========== 今日新上页面 ========== */
.today-new-wrapper {
    min-height: 100vh;
    background: var(--bg-secondary);
    padding: 60px 0 80px;
    transition: background-color 0.3s ease;
}

.today-new-container {
    max-width: 999px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.today-new-header {
    text-align: center;
    margin-bottom: 48px;
    animation: today-new-fadeInUp 0.6s ease-out;
}

.today-new-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.today-new-title a {
    color: inherit;
    text-decoration: none;
}

.today-new-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    opacity: 0.8;
}

.today-new-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.12);
}

.today-new-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-tertiary);
    font-size: 13px;
}

.today-new-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.today-new-stat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 4px rgba(16, 185, 129, 0.4);
}

.today-new-stat-divider {
    color: var(--border-color);
    opacity: 0.6;
    font-size: 14px;
}

.today-new-timeline {
    position: relative;
    padding-left: 55px;
}

.today-new-timeline-line {
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 0;
    width: 1px;
    background: var(--border-color);
    opacity: 0.6;
}

.today-new-group {
    position: relative;
    margin-bottom: 36px;
}

.today-new-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
}

.today-new-group-dot {
    position: absolute;
    left: -55px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10b981;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 0 5px rgba(16, 185, 129, 0.2);
}

.today-new-group-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.today-new-group-count {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.today-new-group-content {
    position: relative;
}

.today-new-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.today-new-item {
    position: relative;
    animation: today-new-fadeInUp 0.5s ease-out forwards;
    opacity: 1;
    transform: translateY(0);
}

.today-new-item-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 20px;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    position: relative;
    gap: 16px;
}

/* 拉伸链接：使整个卡片可点击 */
.today-new-item-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
    color: inherit;
}

.today-new-item-card:hover,
.today-new-item-link:hover {
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1);
}

.today-new-item-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.today-new-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.today-new-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.today-new-item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.today-new-item-card:hover .today-new-item-title {
    color: #10b981;
}

.today-new-item-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.85;
}

.today-new-item-action {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-muted);
    background: transparent;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.today-new-item-action:hover {
    border-color: #10b981;
    color: #10b981;
}

.today-new-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-tertiary);
}

.today-new-empty p {
    margin: 0;
    font-size: 14px;
    opacity: 0.7;
}

.today-new-load-more-wrap {
    text-align: center;
    margin-top: 40px;
}

.today-new-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.today-new-load-more:hover {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.03);
}

.today-new-load-more:active {
    transform: translateY(0);
}

.today-new-load-more.loading {
    pointer-events: none;
    opacity: 0.7;
}

.today-new-load-more-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-color);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: today-new-spin 0.8s linear infinite;
    display: inline-block;
}

.today-new-load-more-icon {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.today-new-load-more-remaining {
    font-size: 12px;
    opacity: 0.7;
    margin-left: 4px;
}

@keyframes today-new-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes today-new-spin {
    to {
        transform: rotate(360deg);
    }
}

/* 暗黑模式适配 */
body.dark .today-new-item-source,
body.dark .today-new-item-card {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

body.dark .today-new-item-card:hover,
body.dark .today-new-item-link:hover {
    border-color: #10b981;
}

@media (max-width: 768px) {
    .today-new-wrapper {
        padding: 30px 0 50px;
    }

    .today-new-container {
        padding: 0 16px;
    }

    .today-new-header {
        margin-bottom: 32px;
    }

    .today-new-title {
        font-size: 26px;
    }

    .today-new-subtitle {
        font-size: 13px;
    }

    .today-new-stats {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 12px;
    }

    .today-new-timeline {
        padding-left: 32px;
    }

    .today-new-timeline-line {
        left: 5px;
    }

    .today-new-group-dot {
        left: -32px;
        width: 11px;
        height: 11px;
        box-shadow: 0 0 0 3px var(--bg-secondary), 0 0 0 4px rgba(16, 185, 129, 0.2);
    }

    .today-new-group-header {
        gap: 8px;
        margin-bottom: 16px;
    }

    .today-new-group-title {
        font-size: 16px;
    }

    .today-new-grid {
        gap: 10px;
    }

    .today-new-item-card {
        padding: 12px 14px;
        gap: 12px;
    }

    .today-new-item-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .today-new-item-title {
        font-size: 13px;
    }

    .today-new-item-desc {
        font-size: 12px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .today-new-item-action {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .today-new-item-action svg {
        width: 16px;
        height: 16px;
    }

    .today-new-load-more-wrap {
        margin-top: 28px;
    }

    .today-new-load-more {
        padding: 9px 22px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .today-new-title {
        font-size: 22px;
    }

    .today-new-item-card {
        padding: 10px 12px;
        gap: 10px;
    }

    .today-new-item-action {
        width: 32px;
        height: 32px;
    }
}

/* ========== 友情链接申请页面 ========== */
.friend-link-wrapper {
    padding: 50px 0;
    background: var(--bg-secondary);
}

.friend-link-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.friend-link-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 32px;
}

.friend-link-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.friend-link-intro {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.friend-link-intro p {
    margin: 0 0 16px 0;
}

.friend-link-rules {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.friend-link-rules li {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
}

.friend-link-example {
    margin: 24px 0;
}

.friend-link-example-title {
    font-size: 15px;
    font-weight: 600;
    color: #f1404b;
    margin: 0 0 16px 0;
}

.friend-link-example-card {
    background-color: rgba(241, 64, 75, 0.08);
    border: 1px solid rgba(241, 64, 75, 0.1);
    border-left: 4px solid #f1404b;
    border-radius: 8px;
    padding: 16px 20px;
}

.friend-link-example-card p {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: var(--text-primary);
}

.friend-link-example-card p:first-child {
    margin-top: 0;
}

.friend-link-note {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 24px 0;
}

.friend-link-note p {
    margin: 0;
}

.friend-link-list-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.friend-link-list-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.friend-link-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.friend-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.friend-link-card:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.friend-link-card-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.friend-link-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-link-card-icon-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.friend-link-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.friend-link-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-link-card-desc {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-link-empty {
    font-size: 14px;
    color: var(--text-muted);
    padding: 16px 0;
    grid-column: 1 / -1;
    text-align: center;
}

.friend-link-submit-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.friend-link-submit-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.friend-link-submit-form {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
}

.friend-link-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.friend-link-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.friend-link-form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.friend-link-form-group input {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

.friend-link-form-group input:focus {
    border-color: #10b981;
}

.friend-link-form-group input::placeholder {
    color: var(--text-muted);
}

.friend-link-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.friend-link-form-reset {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.friend-link-form-reset:hover {
    background: var(--border-color);
}

.friend-link-form-submit {
    padding: 8px 20px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.friend-link-form-submit:hover {
    background: #2563eb;
}

.friend-link-form-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.friend-link-form-message {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 12px;
    display: none;
}

.friend-link-form-message.friend-link-form-success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.friend-link-form-message.friend-link-form-error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@media (max-width: 768px) {
    .friend-link-wrapper {
        padding: 30px 0;
    }

    .friend-link-container {
        padding: 0 16px;
    }

    .friend-link-content {
        padding: 20px;
    }

    .friend-link-title {
        font-size: 18px;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }

    .friend-link-intro {
        font-size: 14px;
    }

    .friend-link-example-card {
        padding: 12px 16px;
    }

    .friend-link-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .friend-link-card {
        padding: 10px;
        gap: 8px;
    }

    .friend-link-card-icon {
        width: 32px;
        height: 32px;
    }

    .friend-link-card-name {
        font-size: 12px;
    }

    .friend-link-card-desc {
        font-size: 10px;
    }

    .friend-link-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .friend-link-form-actions {
        justify-content: center;
    }
}

/* ========== 提交网站页面 ========== */
.contribute-wrapper {
    padding: 40px 0 60px;
    background: var(--bg-secondary);
    min-height: 60vh;
}

.contribute-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 投稿须知 */
.contribute-notice {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.contribute-notice-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.contribute-notice-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.contribute-notice-content p {
    margin: 0 0 12px;
}

.contribute-notice-content ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.contribute-notice-content li {
    margin-bottom: 6px;
}

.contribute-notice-content .text-danger {
    color: #dc2626;
}

.contribute-notice-highlight {
    color: #10b981;
    margin-bottom: 16px;
}

.contribute-notice-link {
    margin: 0;
    color: var(--text-secondary);
}

.contribute-notice-link a {
    color: #10b981;
    text-decoration: none;
}

.contribute-notice-link a.text-danger {
    color: #dc2626;
}

/* 表单主布局 */
.contribute-form {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.contribute-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
}

/* 左侧表单 */
.contribute-form-left {
    min-width: 0;
}

.contribute-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2px;
}

.contribute-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -3px;
    transition: all 0.2s ease;
}

.contribute-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.contribute-form-group {
    margin-bottom: 16px;
}

.contribute-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.contribute-input,
.contribute-select,
.contribute-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.contribute-input:focus,
.contribute-select:focus,
.contribute-textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: var(--bg-primary);
}

.contribute-input::placeholder,
.contribute-textarea::placeholder {
    color: var(--text-muted);
}

.contribute-input-prefix {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.contribute-input-prefix:focus-within {
    border-color: #2563eb;
    background: var(--bg-primary);
}

.contribute-input-prefix .contribute-input {
    border: none;
    background: transparent;
    flex: 1;
}

.contribute-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.contribute-auto-fill {
    margin-top: 8px;
    padding: 6px 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contribute-auto-fill:hover {
    background: #1d4ed8;
}

.contribute-icon-upload {
    position: relative;
    display: inline-block;
}

.contribute-icon-preview {
    width: 64px;
    height: 64px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}

.contribute-icon-preview:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.contribute-icon-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contribute-icon-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    height: 64px;
    opacity: 0;
    cursor: pointer;
}

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

.contribute-char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.contribute-char-count .text-danger {
    color: #dc2626;
}

/* 右侧选项 */
.contribute-form-right {
    min-width: 0;
}

.contribute-panel {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}

.contribute-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.contribute-panel-title svg {
    color: #2563eb;
}

.contribute-panel-body {
    padding: 16px;
}

.contribute-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.contribute-tags-input {
    min-height: 80px;
}

.contribute-help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin: 6px 0 0;
}

.contribute-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contribute-submit-btn:hover {
    background: #4338ca;
}

.contribute-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contribute-loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: contribute-spin 0.8s linear infinite;
}

@keyframes contribute-spin {
    to { transform: rotate(360deg); }
}

.contribute-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.contribute-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.contribute-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* 暗黑模式适配 */
body.dark .contribute-select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d1d5db' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* 响应式 */
@media (max-width: 768px) {
    .contribute-main {
        grid-template-columns: 1fr;
    }

    .contribute-form {
        padding: 20px;
    }

    .contribute-notice {
        padding: 18px 20px;
    }
}

/* ========== 标签云页面 ========== */
.sitetag-wrapper {
    padding: 40px 0 60px;
    background: rgba(30, 41, 59, 0.1);
    min-height: 60vh;
}

.sitetag-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sitetag-header {
    text-align: center;
    margin-bottom: 32px;
}

.sitetag-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.sitetag-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.sitetag-stats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.sitetag-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sitetag-stat-item svg {
    color: #10b981;
}

.sitetag-cloud {
    text-align: justify;
    padding: 24px 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.sitetag-cloud-item {
    display: inline-block;
    padding: 6px 14px;
    margin: 3px 0px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.5;
    transition: all 0.2s ease;
    border: none;
    vertical-align: middle;
    min-height: 30px;
    box-sizing: border-box;
}

.sitetag-cloud-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: var(--tag-color) !important;
    color: #fff !important;
}

.sitetag-cloud-count {
    font-weight: 400;
}

.sitetag-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--text-muted);
    font-size: 15px;
}

/* 响应式 */
@media (max-width: 768px) {
    .sitetag-wrapper {
        padding: 30px 0 40px;
    }

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

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

    .sitetag-cloud {
        padding: 20px;
        gap: 8px;
    }

    .sitetag-cloud-item {
        padding: 5px 12px;
    }
}
