/* CSS变量定义 */
:root {
    /* 浅色主题 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* 深色主题 */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    --accent-color: #60a5fa;
    --accent-hover: #3b82f6;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --danger-color: #f87171;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.nav-brand i {
    font-size: 1.75rem;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link.active {
    background-color: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.nav-link.active:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.nav-link i {
    font-size: 0.9rem;
}

/* 下拉菜单样式 */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

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

.dropdown-item.active {
    background: var(--accent-color);
    color: #ffffff;
    border-bottom-color: transparent;
}

.dropdown-item.active:hover {
    background: var(--accent-hover);
    color: #ffffff;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--bg-tertiary);
    color: var(--accent-color);
}

.dropdown-item i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.nav-item {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-item.active {
    background-color: var(--accent-color);
    color: white;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    padding: 0.5rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.game-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.game-link:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.game-link i {
    font-size: 1.1rem;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tab-panel {
    display: none;
    width: 100%;
    max-width: 600px;
}

.tab-panel.active {
    display: block;
}

/* 计时器容器 */
.timer-container {
    background-color: var(--bg-secondary);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.timer-display {
    text-align: center;
    margin-bottom: 2rem;
}

.time-display {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.separator {
    color: var(--text-muted);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.timer-label {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 控制按钮 */
.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
    transform: translateY(-1px);
}

/* 设置区域 */
.timer-settings, .pomodoro-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.setting-group input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.setting-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

/* 番茄钟进度条 */
.pomodoro-progress {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background-color: var(--bg-tertiary);
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 0.25rem;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 收藏与分享按钮在当前版本中不再展示 */
.bookmark-btn {
    display: none !important;
}

.bookmark-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.bookmark-btn.bookmarked {
    background: var(--warning-color);
    color: white;
    border-color: var(--warning-color);
}

.bookmark-btn.bookmarked:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* 分享按钮样式 */
.share-btn {
    display: none !important;
}

.share-btn:hover {
    background: var(--success-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 分享面板 */
.share-panel {
    display: none !important;
}

.share-panel.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.share-panel h3 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-button:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.share-button.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.share-button.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.share-button.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.share-button.reddit:hover {
    background: #ff4500;
    border-color: #ff4500;
}

.share-button.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.share-button.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
}

.share-button i {
    font-size: 1.1rem;
}

/* 页面内容概要样式 */
.page-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    margin: 40px auto;
    max-width: 1100px;
    box-shadow: var(--shadow-md);
}

.page-summary h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.page-summary p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.page-summary ul {
    color: var(--text-secondary);
    padding-left: 20px;
    margin-bottom: 15px;
}

.page-summary li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.page-summary .highlight {
    color: var(--accent-color);
    font-weight: 600;
}

/* 网站地图页面样式 */
.sitemap-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.sitemap-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--accent-color), #764ba2);
    border-radius: 20px;
    color: white;
}

.sitemap-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.sitemap-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.sitemap-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.sitemap-section h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.sitemap-list {
    list-style: none;
    padding: 0;
}

.sitemap-list li {
    margin-bottom: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.sitemap-list li:hover {
    background: var(--bg-tertiary);
    transform: translateX(5px);
}

.sitemap-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sitemap-list a:hover {
    color: var(--accent-color);
}

.sitemap-list i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.sitemap-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
    }
    
    .nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-dropdown {
        width: 100%;
        max-width: 200px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 1px solid var(--border-color);
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        display: none;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .timer-container {
        padding: 1.5rem;
    }
    
    .time-display {
        font-size: 3rem;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .timer-settings, .pomodoro-settings {
        grid-template-columns: 1fr;
    }
    
    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .time-display {
        font-size: 2.5rem;
    }
    
    .timer-label {
        font-size: 1rem;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .nav-brand i {
        font-size: 1.5rem;
    }
    
    .bookmark-btn, .share-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .share-btn {
        top: 75px;
    }
    
    .share-panel {
        top: 130px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    .page-summary {
        margin: 20px auto;
        padding: 20px;
        max-width: 100%;
    }
    
    .sitemap-container {
        padding: 10px;
    }
    
    .sitemap-header {
        padding: 30px 15px;
    }
    
    .sitemap-header h1 {
        font-size: 2rem;
    }
    
    .sitemap-section {
        padding: 20px;
        margin-bottom: 20px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-panel.active {
    animation: fadeIn 0.3s ease;
}

/* 文章页面样式 */
.articles-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.articles-hero {
    margin-bottom: 2rem;
}

.articles-hero h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.articles-hero h1 i {
    color: var(--accent-color);
    font-size: 2.2rem;
}

.articles-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.articles-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: var(--bg-secondary);
}

.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.articles-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.article-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #764ba2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
}

.article-category {
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 500;
}

.article-date {
    color: var(--text-muted);
}

.article-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.article-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--accent-color);
}

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--accent-hover);
    transform: translateX(2px);
}

.article-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.featured-articles {
    max-width: 1000px;
    margin: 4rem auto 0;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.featured-articles h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.featured-articles h2 i {
    color: var(--warning-color);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.featured-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.featured-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--success-color), #10b981);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.featured-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.featured-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-content h3 a:hover {
    color: var(--accent-color);
}

.featured-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* 文章详情页面样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta-detail {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-meta-detail span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content-detail {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.article-content-detail h2 {
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.article-content-detail h3 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.25rem;
}

.article-content-detail p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.article-content-detail ul, .article-content-detail ol {
    margin: 1rem 0 1.5rem 2rem;
    color: var(--text-secondary);
}

.article-content-detail li {
    margin-bottom: 0.5rem;
}

.article-content-detail strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-button.back {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-button.back:hover {
    background-color: var(--border-color);
}

/* 响应式设计 - 文章页面 */
@media (max-width: 768px) {
    .articles-hero h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .articles-hero h1 i {
        font-size: 1.8rem;
    }
    
    .article-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .article-image {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        align-self: center;
    }
    
    .article-title {
        font-size: 1.25rem;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .article-detail {
        padding: 1rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-meta-detail {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-content-detail {
        padding: 2rem 1.5rem;
        font-size: 1rem;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .articles-hero h1 {
        font-size: 1.75rem;
    }
    
    .article-card {
        padding: 1rem;
    }
    
    .article-content-detail {
        padding: 1.5rem 1rem;
    }
    
    .article-header h1 {
        font-size: 1.75rem;
    }
}

/* 无结果提示样式 */
.no-results-message {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    margin: 2rem 0;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-content i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-results-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.no-results-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* 统一页脚样式 */
.site-footer {
    margin-top: 4rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3.5rem 1.5rem 2rem;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
    box-shadow: 0 -20px 60px -30px rgba(15, 23, 42, 0.35);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(14, 165, 233, 0.12), rgba(244, 114, 182, 0.12));
    opacity: 0.6;
    pointer-events: none;
}

[data-theme="dark"] .site-footer::before {
    opacity: 0.3;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    align-items: flex-start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 56px;
    height: 56px;
    border-radius: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    color: #ffffff;
    font-size: 1.75rem;
    box-shadow: var(--shadow-md);
}

.footer-brand h3 {
    margin: 0 0 0.35rem;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-brand p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-primary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    width: fit-content;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.footer-contact-link:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-social span {
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    color: var(--accent-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-links a:hover {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-column h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0 0 1.1rem;
    padding-bottom: 0.6rem;
    position: relative;
}

.footer-column h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), rgba(139, 92, 246, 0.85));
    border-radius: 999px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-column li {
    line-height: 1.6;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-column a::before {
    content: "›";
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.footer-column a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 1.25rem 1.75rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-bottom-links {
        gap: 1rem;
    }
}

@media (max-width: 540px) {
    .footer-brand-header {
        align-items: flex-start;
    }

    .footer-bottom {
        align-items: center;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

/* AI Tools Navigator Page */
.ai-tools-body {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

.ai-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .ai-header {
    background: rgba(15, 23, 42, 0.9);
}

.ai-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.ai-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--accent-color);
}

.ai-brand i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.ai-brand-label {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: block;
    color: var(--text-primary);
}

.ai-brand p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.ai-header-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ai-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.ai-link:hover {
    color: #ffffff;
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.ai-tools-main {
    padding: 0 1rem 4rem;
}

.ai-tools-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.ai-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    align-items: center;
    padding: 3.5rem 3rem;
    border-radius: 32px;
    background: linear-gradient(135deg, #312e81 0%, #3b82f6 40%, #22d3ee 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 35px 80px rgba(59, 130, 246, 0.35);
}

.ai-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 55%);
    opacity: 0.7;
    pointer-events: none;
}

.ai-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ai-hero-badge {
    width: fit-content;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.ai-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.15;
    font-weight: 700;
}

.ai-hero p {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 620px;
    opacity: 0.95;
}

.ai-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ai-hero-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.25);
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.ai-hero-illustration {
    position: relative;
    min-height: 280px;
    z-index: 1;
}

.ai-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0px);
    opacity: 0.8;
}

.ai-orb.orb-one {
    width: 220px;
    height: 220px;
    top: 20px;
    right: 30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.75), rgba(59, 130, 246, 0.65));
}

.ai-orb.orb-two {
    width: 160px;
    height: 160px;
    bottom: 40px;
    right: 120px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.65), rgba(59, 130, 246, 0.4));
}

.ai-orb.orb-three {
    width: 120px;
    height: 120px;
    bottom: 10px;
    right: 10px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(59, 130, 246, 0.3));
}

.ai-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.ai-category-card {
    position: relative;
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: 2.25rem 2rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(14, 165, 233, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.ai-category-card:hover::after {
    opacity: 1;
}

.ai-category-label {
    width: fit-content;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-color);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.ai-category-card h2 {
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.ai-category-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.ai-compare {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(59, 130, 246, 0.12) 100%);
    border-radius: 1.75rem;
    padding: 3rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-md);
}

.ai-compare h2 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
}

.ai-compare p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 680px;
}

.ai-compare-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.ai-compare-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding-left: 1.75rem;
}

.ai-compare-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: var(--accent-color);
}

.ai-segments {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.ai-segments > h2 {
    font-size: 1.9rem;
}

.ai-segment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.ai-segment-card {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-segment-card h3 {
    font-size: 1.5rem;
}

.ai-segment-card p {
    color: var(--text-secondary);
    margin: 0;
}

.ai-segment-card ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.ai-segment-card li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-primary);
}

.ai-segment-card li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    top: -0.1rem;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent-color);
}

.ai-resource-grid {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.ai-resource-grid > h2 {
    font-size: 1.8rem;
}

.ai-resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.ai-resource-card {
    background: var(--bg-primary);
    border-radius: 1.35rem;
    padding: 1.8rem 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.ai-resource-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.ai-resource-card p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .ai-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .ai-header-links {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .ai-hero {
        padding: 2.5rem 2rem;
    }

    .ai-tools-wrapper {
        padding: 2rem 1rem 4rem;
    }

    .ai-compare {
        padding: 2.25rem;
    }
}

@media (max-width: 540px) {
    .ai-header {
        position: static;
    }

    .ai-header-inner {
        padding: 1rem;
    }

    .ai-header-links {
        justify-content: center;
    }

    .ai-hero {
        padding: 2rem 1.5rem;
    }

    .ai-hero-highlights span {
        width: 100%;
        justify-content: center;
    }

    .ai-category-card {
        padding: 1.8rem 1.6rem;
    }

    .ai-segment-card {
        padding: 2rem 1.6rem;
    }
}
