/* ============================================
   Tools.Top - 真正的现代设计
   极简 · 大气 · 专业
   ============================================ */

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

:root {
    /* 动画曲线 - 首页专用 */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    
    /* 所有颜色变量继承自 styles.css，支持主题切换 */
}

[data-theme="dark"] body {
    background-color: #000 !important;
}

[data-theme="dark"] .container {

    padding-left: 24px;
    padding-right: 24px;
}

[data-theme="light"] body {
    background-color: white;
}

[data-theme="light"] .hero {
    background: image-set(url('image/bg.png')) !important;
    margin-bottom:24px;
}

[data-theme="light"] .hero-title-line.highlight {
    -webkit-text-fill-color: white;
    /* background:none; */
    color: white;
}

[data-theme="light"] .nav {
    background-color: #3bb056 !important;
}

[data-theme="light"] .nav-container {
    border:1px solid white !important;
}


[data-theme="light"] .main {
    padding: 0px 24px;
}

[data-theme="light"] .filter-section {
    padding: 0px 24px;
}

[data-theme="light"] .category-btn {
    color: white;
}

[data-theme="light"] .category-btn.active {
    color: white;
}

[data-theme="light"] .category-btn.active::after {
    background: white;
}

[data-theme="light"] .category-btn:hover {
    color: var(--accent-color);
}

[data-theme="light"] .category-btn.active:hover {
    color: white;
}

[data-theme="light"] .hero-subtitle {
    background: linear-gradient(to right , #429756, #53ad68 );
    color: white !important;
}

[data-theme="light"] .hero-search-wrapper {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .hero-search-wrapper:hover,
[data-theme="light"] .hero-search-wrapper:focus-within {
    border-color: white;
    background: rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .update-item {
    background: #f8f8f8;
}

[data-theme="light"] .tool-card {
    border: 1px solid var(--border-color);
}

[data-theme="light"] .tool-card:hover {
    border: 1px solid var(--accent-light);
    box-shadow: none;
    transform: none;
}
[data-theme="light"] .tool-tag , [data-theme="light"] .tool-tag:hover {
    border: 1px solid var(--border-color);
}

/* 亮色主题 - 标签筛选模块适配 */
[data-theme="light"] .filter-container {
    background: rgba(255, 255, 255, 0.95);
    border-color: #e5e7eb;
}

[data-theme="light"] .search-input-wrapper input {
    background: white;
    border-color: #e5e7eb;
}

[data-theme="light"] .filter-tag {
    background: white;
    border-color: #e5e7eb;
}

[data-theme="light"] .filter-tag:hover {
    background: #f9fafb;
    border-color: var(--accent-light);
}

[data-theme="light"] .filter-tag.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

[data-theme="light"] .footer{
    background: #f8f8f8 !important;
    border-top: 1px solid var(--border-color) !important;
}

[data-theme="light"] .footer-grid{
    border-bottom: 1px dashed rgba(209, 209, 209, 0.35);
}

[data-theme="eye-care"] .hero {
    background-image: 
        linear-gradient(90deg, #806948, transparent 1px),
        linear-gradient(180deg, #806948 1px, transparent 1px);
        background-size: 30px 30px;
    background-color: var(--accent-light);
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom:20px;
    border-radius: 16px;
    padding-left: 24px;
    padding-right: 24px;
}

[data-theme="eye-care"] .hero-title-line.highlight {
        -webkit-text-fill-color: rgba(255, 255, 255, 0);
        background: linear-gradient(141.656deg, rgb(255, 255, 255) 0%, var(--bg-tertiary) 100%);
        background-clip: text;
}

[data-theme="eye-care"] .hero-subtitle {
    background: linear-gradient(to right , var(--accent-light), var(--accent-hover) );
    color: white !important;
}

[data-theme="eye-care"] .hero-search-wrapper {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="eye-care"] .hero-search-wrapper:hover,
[data-theme="eye-care"] .hero-search-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
}


[data-theme="eye-care"] .category-btn {
    color: var(--accent-light);
}

[data-theme="eye-care"] .main{
    margin-top: 0px;
}

[data-theme="eye-care"] .tool-card {
    border: 1px solid var(--border-color);
}

[data-theme="eye-care"] .tool-card:hover {
    border: 1px solid var(--accent-light);
    box-shadow: none;
    transform: none;
}
[data-theme="eye-care"] .tool-tag , [data-theme="eye-care"] .tool-tag:hover {
    border: 1px solid var(--border-color);
}

[data-theme="eye-care"] .footer{
    background: #f8f8f8 !important;
    border-top: 1px solid var(--border-color) !important;
}

[data-theme="eye-care"] .footer-grid{
    border-bottom: 1px dashed rgba(209, 209, 209, 0.35);
}

[data-theme="eye-care"] .tool-domain {
    color: var(--accent-light);
    border: 1px solid var(--border-color);
}

[data-theme="eye-care"] tool-card:hover .tool-domain {
    border: 1px solid var(--accent-light);
    color: white;
}

[data-theme="eye-care"] .bg-gradient {
    background: radial-gradient(circle, var(--bg-tertiary) 0%, transparent 70%);
}

[data-theme="eye-care"] .cta-button.primary {
    border: 2px solid rgba(255, 255, 255, 0.3);
}

[data-theme="eye-care"] .container{
    padding-left: 24px;
    padding-right: 24px;
}

[data-theme="eye-care"] .bg-gradient {
    background: none;
}

@media (max-width: 1024px){
    [data-theme="eye-care"] .whats-new-banner {
        padding: 0px 24px;
    }
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-base);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: auto;
}

a {
    text-decoration: none;
}

.highlight {
    color: var(--text-primary);
    font-weight: 600;
}

/* .container {
    padding: 0 20px;
} */
/* ============================================
   背景效果
   ============================================ */

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 0;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   导航栏
   ============================================ */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border: 1px solid var(--border-color);
    border-radius: 2222px;
    padding: 0 20px;
    background-color: transparent !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;

}

.brand-logo {
    width: 157px;
    height: 33px;
}

.brand-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-search {
    position: relative;
    flex: 1;
    max-width: 180px;
}

.nav-search input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 44px;
    background: var(--bg-secondary);
    /* border: 1px solid var(--border-color);*/
    border-radius: 20px; 
    border: none;
    /* border: 1px solid var(--border-color); */
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s var(--ease-out);
}

.nav-search input:focus {
    border-color: var(--accent-light);
    background: rgba(0, 102, 255, 0.05);
}

.nav-search input::placeholder {
    color: var(--text-tertiary);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 60%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.nav-actions {
    display: flex;
    gap: 8px;
    padding-top:3px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}

.nav-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--text-tertiary);
    color: var(--text-primary);
}

/* ============================================
   Hero 区域
   ============================================ */

.hero {
    position: relative;
    padding: 80px 40px 80px;
    text-align: center;
    background: radial-gradient(farthest-side at 50% 100%, #063c11 0%, #000000 50%);
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(33px, 6vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.03em;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
}

.hero-title-line.highlight {
    -webkit-text-fill-color: rgba(0, 0, 0, 0);
    background: linear-gradient(141.656deg, rgb(255, 255, 255) 0%, rgb(179, 179, 179) 100%);
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px;
    color: white;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-top: 40px;
    border:1px solid white;
    border-radius: 15px;
    width:fit-content;
    margin:0 auto;
    padding:5px 20px;
}

/* Hero 搜索框 - 保持与 hero-subtitle 相同的视觉样式 */
.hero-search-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-search-wrapper:hover,
.hero-search-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.hero-search-icon {
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.hero-search-wrapper:focus-within .hero-search-icon {
    color: rgba(255, 255, 255, 1);
}

.hero-search-input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: white !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    width: 300px !important;
    font-family: var(--font-family-base) !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    transition: opacity 0.2s ease;
}

.hero-search-input:focus::placeholder {
    opacity: 0;
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: var(--accent-light);
    border:2px solid var(--accent-light);
}

.cta-button.primary:hover {
    border:2px solid white
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.738);
}

/* ============================================
   What's New 横幅 - 更新动态
   ============================================ */

[data-theme="dark"] .whats-new-banner {
    max-width: 1400px;
    margin: 0 auto 20px;
    transition: opacity 0.3s ease;
}

[data-theme="light"] .whats-new-banner {
    max-width: 1400px;
    margin: 0 auto 20px;
    transition: opacity 0.3s ease;
    padding: 0px 24px;
}

[data-theme="eye-care"] .whats-new-banner {
    max-width: 1400px;
    margin: 0 auto 20px;
    transition: opacity 0.3s ease;
}

.updates-container {
    display: flex;
    gap: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 16px;
}

/* 主更新区域 */
.update-main-area {
    display: flex;
    gap: 16px;
    min-height: 0;
    flex: 1;
}

/* 左侧更新列表 */
.update-list {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 更新项 */
.update-item {
    background: var(--bg-primary);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    gap: 1.3px;
}

.update-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    transform: translateX(4px);
}

.update-item.active {
    border: 1px solid var(--accent-light);
    background: rgba(255, 255, 255, 0.05);
}

.update-item.active:hover {
    transform: none;
}


.update-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.update-item-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.update-item-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.update-item-link {
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s;
    width: fit-content;
}

.update-item-link:hover {
    opacity: 0.7;
}

/* 中间图片预览 - 固定尺寸 800x600 */
.update-preview {
    flex: 0 0 800px;
    width: 800px;
    height: 600px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.update-preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: fit-content;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.update-preview-image.active {
    opacity: 1;
    z-index: 1;
}

.update-preview-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 右侧次要更新卡片容器 - 已删除 */
/* .update-cards-sidebar {
    display: none;
} */

/* 更新徽章 */
.update-badge {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.update-badge.hot {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--accent-light) 100%);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.update-badge.new {
    background: var(--accent-color);
    color: white;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* 更新日期 */
.update-date {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
    white-space: nowrap;
}

/* 右侧小卡片样式 - 已删除 */

/* 响应式设计 */
@media (max-width: 1200px) {
    .update-preview {
        flex: 0 0 600px;
        width: 600px;
        height: 450px;
    }
}

@media (max-width: 1024px) {
    .updates-container {
        flex-direction: column;
    }
    
    .update-main-area {
        flex: 0 0 auto;
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }
    
    .update-list {
        flex: 0 0 auto;
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        gap: 16px;
    }
    
    .update-item {
        flex: 0 0 300px;
    }
    
    .update-preview {
        width: 100%;
        height: 450px;
        flex: 0 0 450px;
    }
}

@media (max-width: 768px) {
    .update-list {
        flex-direction: column;
        overflow-x: visible;
    }
    
    .update-item {
        flex: 0 0 auto;
    }
    
    .update-preview {
        flex: 0 0 0;
    }
}

/* ============================================
   分类导航
   ============================================ */

.category-container {
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-container::-webkit-scrollbar {
    display: none;
}

.category-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s var(--ease-out);
    position: relative;
}

.category-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--success-color);
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.3s var(--ease-out);
}

.category-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.category-btn.active {
    color: var(--text-primary);
    font-weight: 700;
}

.category-btn.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.category-icon {
    font-size: 18px;
}

.category-name {
    white-space: nowrap;
}

/* ============================================
   主内容区
   ============================================ */

.main {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    margin-top: 24px;
}

/* ============================================
   工具网格 - Masonry 布局
   ============================================ */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 0px;
}

.tool-card {
    position: relative;
    padding: 24px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0.01) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--accent-light), 
        var(--accent-hover), 
        var(--accent-light)
    );
    opacity: 0;
    transition: opacity 0.3s;
}
 
.tool-card:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%
    );
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tool-card:hover::before {
    opacity: 1;
}

/* 工具卡片 - 已收藏状态 */
.tool-card.favorited {
    border-color: var(--accent-color);
}

.tool-card.favorited .tool-title {
    color: var(--accent-color);
}


.tool-card.pinned::before {
    opacity: 1;
}

.tool-card.dragging {
    opacity: 0.4;
    transform: scale(0.98);
}

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

.tool-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* 右侧按钮容器 */
.tool-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 人气标签样式 */
.tool-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    animation: fadeInScale 0.4s ease-out;
}

.tool-badge.popular {
    background: linear-gradient(135deg, 
        rgba(255, 107, 0, 0.15), 
        rgba(255, 59, 48, 0.12)
    );
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: var(--warning-color);
}

.tool-badge.new {
    background: linear-gradient(135deg, 
        var(--bg-primary), 
        var(--bg-secondary)
    );
    border: 1px solid var(--border-color);
    color: var(--accent-light);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 悬停时标签发光效果 */
.tool-card:hover .tool-badge.popular {
    box-shadow: 0 0 12px var(--warning-color);
    border-color: var(--warning-color);
}

.tool-card:hover .tool-badge.new {
    box-shadow: 0 0 12px var(--accent-light);
    border-color: var(--accent-light);
}

/* ============================================
   收藏按钮样式
   ============================================ */

.tool-favorite {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 18px;
    color: var(--text-tertiary);
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    line-height: 1;
}

.tool-card:hover .tool-favorite {
    opacity: 1;
}

.tool-favorite:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-tertiary);
    transform: scale(1.1);
}

/* 已收藏状态 */
.tool-favorite.favorited {
    opacity: 1;
    color: #fbbf24;
    border-color: #fbbf24;
}

.tool-favorite.favorited:hover {
    background: rgba(251, 191, 36, 0.1);
    transform: scale(1.1) rotate(5deg);
}

/* 收藏动画 */
@keyframes favorite-bounce {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
    }
    50% { 
        transform: scale(1.3) rotate(15deg); 
    }
}

.tool-favorite.animating {
    animation: favorite-bounce 0.5s ease;
}

/* 亮色主题适配 */
[data-theme="light"] .tool-favorite {
    color: #94a3b8;
}

[data-theme="light"] .tool-favorite.favorited {
    color: #f59e0b;
    border-color: #f59e0b;
}

[data-theme="light"] .tool-favorite.favorited:hover {
    background: rgba(245, 158, 11, 0.1);
}

/* 护眼主题适配 */
[data-theme="eye-care"] .tool-favorite {
    color: #6b7f6f;
}

[data-theme="eye-care"] .tool-favorite.favorited {
    color: #d97706;
    border-color: #d97706;
}

[data-theme="eye-care"] .tool-favorite.favorited:hover {
    background: rgba(217, 119, 6, 0.1);
}

/* ============================================
   收藏按钮样式结束
   ============================================ */


.tool-body {
    cursor: pointer;
}

.tool-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, 
        var(--bg-primary), 
        var(--bg-secondary)
    );
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
}

.tool-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-primary);
}

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

.tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

/* 快捷域名样式 - 右下角显示 */
.tool-domain {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(16, 185, 129, 0.75);
    letter-spacing: 0.01em;
    transition: all 0.25s var(--ease-out);
    font-family: var(--font-family-mono);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.tool-domain svg {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.25s;
}

.tool-card:hover .tool-domain {
    background: var(--bg-primary);
    border-color: var(--accent-light);
}

.tool-card:hover .tool-domain svg {
    opacity: 0.9;
}

.tool-tag {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: all 0.2s;
}

.tool-tag:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

/* ============================================
   空状态
   ============================================ */

.empty {
    text-align: center;
    padding: 100px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

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

/* ============================================
   页脚
   ============================================ */

.footer {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.02) 0%, 
        rgba(255, 255, 255, 0.01) 100%
    );
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 0 0;
    margin-top: 100px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 品牌区域 */
.footer-brand {
    max-width: 320px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 100px;
    height: auto;
    opacity: 0.9;
}

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

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-tertiary);
    transition: all 0.3s;
}

.social-link:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--accent-light);
    color: var(--accent-light);
    transform: translateY(-2px);
}

/* 链接区域 */
.footer-section {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left !important;
    align-items: unset !important;
}

.footer-links li a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    position: relative;
}

.footer-links li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-light);
    transition: width 0.3s;
}

.footer-links li a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.footer-links li a:hover::before {
    width: 100%;
}

/* 底部版权 */
.footer-bottom {
    padding: 32px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-copyright p {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 0;
}

.footer-copyright a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-meta {
    font-size: 12px;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.footer-meta span {
    background: linear-gradient(
        90deg,
        var(--text-secondary) 0%,
        var(--text-secondary) 40%,
        rgba(255, 255, 255, 0.95) 50%,
        var(--text-secondary) 60%,
        var(--text-secondary) 100%
    );
    background-size: 200% 100%;
    background-position: -100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        background-position: -100% 0;
    }
    20% {
        background-position: 200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 响应式 */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: 60px 0 0;
        margin-top: 60px;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: 8px;
    }
}

/* ============================================
   Toast
   ============================================ */

.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.3s var(--ease-out);
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    color: var(--success-color);
}

.toast-text {
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   响应式
   ============================================ */

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 24px;
    }
    .category-btn {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .hero {
        padding: 100px 24px 60px;
    }
    
    
    .category-container {
        padding: 0 24px;
    }
    
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 56px;
        gap: 12px;
        padding: 0 16px;
    }
    .category-btn {
        padding: 8px 8px;
        font-size: 12px;
    }

    /* 手机端缩小Logo */
    .nav-brand .brand-logo {
        width: 110px !important;
        height: 23px !important;
    }
    
    .brand-text {
        font-size: 16px;
    }

    /* 手机端隐藏分类导航 */
    .nav-container .category-nav {
        display: none !important;
    }
    
    /* 搜索框占满剩余空间 */
    .nav-search {
        flex: 1;
        max-width: none;
    }

    .nav-search input {
        height: 36px;
        font-size: 13px;
    }

    /* 按钮缩小 */
    .nav-btn {
        width: 36px;
        height: 36px;
    }

    .nav-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .hero {
        padding: 80px 20px 40px;
    }
    
    .hero-title {
        font-size: 40px;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-search-wrapper {
        padding: 6px 16px;
    }
    
    .hero-search-input {
        width: 160px;
        font-size: 14px;
    }
    
    .banner-content {
        flex-wrap: wrap;
        padding: 14px 50px 14px 20px;
    }
    
    .banner-close {
        right: 26px;
    }
    
    .category-container {
        padding: 0 20px;
    }
    
    .category-btn {
        padding: 10px 16px;
    }
    
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tool-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 12px 0;
    }



    .nav-container {
        height: 48px;
        gap: 8px;
        padding: 0 12px;
        border-radius: 24px;
    }

    /* 更小的Logo */
    .nav-brand .brand-logo {
        width: 90px !important;
        height: 19px !important;
    }

    .nav-search input {
        height: 32px;
        font-size: 12px;
        padding: 0 12px 0 36px;
    }

    .search-icon {
        left: 12px;
    }

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

    .nav-btn {
        width: 32px;
        height: 32px;
    }

    .nav-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .tool-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .tool-title {
        font-size: 18px;
    }
}

/* ============================================
   标签筛选模块 - 紧凑版
   ============================================ */

.filter-section {
    margin: 32px auto 32px;
    max-width: 1400px;
}

.filter-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(20px);
}

/* 顶部栏：搜索 + 标签筛选标题 + 重置 */
.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input-wrapper input {
    width: 100%;
    height: 36px;
    padding: 0 36px 0 36px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--font-family-base);
    color: var(--text-primary);
    transition: all 0.3s var(--ease-out);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color-alpha);
}

.search-input-wrapper input::placeholder {
    color: var(--text-secondary);
}

.search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border: none;
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.search-clear:hover {
    background: var(--bg-active);
    color: var(--text-primary);
}

/* 右侧：标签筛选标题 + 重置按钮 */
.filter-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-tags-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-tags-title svg {
    color: var(--accent-color);
}

.filter-tags-reset {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 11px;
    font-family: var(--font-family-base);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-tags-reset:hover {
    background: var(--bg-hover);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* 标签容器 - 自动换行展示所有标签 */
.filter-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
}

.filter-tag {
    flex-shrink: 0;
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    font-family: var(--font-family-base);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    user-select: none;
}

.filter-tag:hover {
    background: var(--bg-hover);
    border-color: var(--accent-light);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.filter-tag.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.filter-tag.active:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-1px);
}

.filter-tag .tag-count {
    margin-left: 4px;
    font-size: 11px;
    opacity: 0.7;
}

/* 响应式 */
@media (max-width: 768px) {
    .filter-section {
        margin: 24px auto 24px;
    }

    .filter-container {
        padding: 12px;
    }

    .filter-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .search-input-wrapper {
        max-width: 100%;
    }

    .hero-search-input {
        width: 100% !important;
    }

    .filter-header-right {
        justify-content: space-between;
    }

    .search-input-wrapper input {
        height: 34px;
        font-size: 12px;
    }

    .filter-tag {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* ============================================
   动画
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    animation: fadeInUp 0.5s var(--ease-out) backwards;
}

.tool-card:nth-child(1) { animation-delay: 0.05s; }
.tool-card:nth-child(2) { animation-delay: 0.1s; }
.tool-card:nth-child(3) { animation-delay: 0.15s; }
.tool-card:nth-child(4) { animation-delay: 0.2s; }
.tool-card:nth-child(5) { animation-delay: 0.25s; }
.tool-card:nth-child(6) { animation-delay: 0.3s; }
.tool-card:nth-child(7) { animation-delay: 0.35s; }
.tool-card:nth-child(8) { animation-delay: 0.4s; }
.tool-card:nth-child(9) { animation-delay: 0.45s; }

/* ============================================
   滚动条
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ============================================
   选中样式
   ============================================ */

::selection {
    background: rgba(0, 102, 255, 0.3);
    color: white;
}






