﻿/* =============================================
   AI工具导航 - 浅色主题 (仿 q.sslphp.com / Tailwind 风格)
   ============================================= */

/* ========== CSS 变量 ========== */
:root {
    --primary: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --accent: #8b5cf6;
    --accent-50: #f5f3ff;
    --accent-100: #ede9fe;
    --amber: #f59e0b;
    --amber-50: #fffbeb;
    --amber-800: #92400e;
    --green: #10b981;
    --green-50: #ecfdf5;
    --rose: #f43f5e;
    --rose-50: #fff1f2;
    --bg: #f9fafb;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --text: var(--gray-800);
    --text-secondary: var(--gray-500);
    --text-muted: var(--gray-400);
    --border: var(--gray-100);
    --border-light: var(--gray-200);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-hover: 0 10px 25px rgba(0,0,0,.1);
    --transition: all 0.2s ease;
}

/* ========== 基础重置 ========== */
* { box-sizing: border-box; }

body {
    background: var(--bg);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

.main-content { min-height: calc(100vh - 300px); }

/* ========== 导航栏 - 白色 ========== */
.navbar {
    background: var(--white) !important;
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
    min-height: 64px;
    transition: var(--transition);
}
.navbar .container {
    display: flex;
    align-items: center;
    min-height: 64px;
}
.navbar-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}
.navbar-brand .brand-logo {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #fff;
}
.navbar .navbar-nav { display: flex; align-items: center; gap: 4px; }
.navbar .nav-link {
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: 8px;
    color: var(--gray-600) !important;
    font-size: 0.9rem;
    transition: var(--transition);
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-50);
}
.navbar .search-inline { position: relative; margin-left: 8px; }
.navbar .search-inline input {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    color: var(--text);
    padding: 8px 38px 8px 16px;
    font-size: 0.88rem;
    width: 200px;
    transition: var(--transition);
}
.navbar .search-inline input::placeholder { color: var(--gray-400); }
.navbar .search-inline input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
    width: 240px;
    background: var(--white);
}
.navbar .search-inline .search-btn {
    position: absolute; right: 4px; top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none; color: #fff;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; cursor: pointer;
    transition: var(--transition);
}
.navbar .search-inline .search-btn:hover { background: var(--primary-600); }

.navbar .btn-submit {
    background: var(--primary);
    border: none; color: #fff;
    padding: 8px 18px; border-radius: var(--radius-full);
    font-weight: 600; font-size: 0.88rem;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 4px;
}
.navbar .btn-submit:hover { background: var(--primary-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.navbar .btn-login {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    padding: 7px 18px; border-radius: var(--radius-full);
    font-weight: 500; font-size: 0.88rem;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 4px;
}
.navbar .btn-login:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

.navbar .dropdown-menu {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 6px;
    margin-top: 8px;
}
.navbar .dropdown-item {
    color: var(--gray-700);
    border-radius: 6px; padding: 8px 14px;
    font-size: 0.9rem; transition: var(--transition);
}
.navbar .dropdown-item:hover { background: var(--primary-50); color: var(--primary); }
.navbar .dropdown-divider { border-color: var(--gray-100); margin: 4px 0; }
.navbar .navbar-toggler { border: none; padding: 4px 8px; width: 40px; height: 40px; display: none; align-items: center; justify-content: center; }
.navbar .navbar-toggler:focus { box-shadow: none; }
.navbar .navbar-toggler i { font-size: 1.2rem; color: var(--gray-700); }

@media (max-width: 991px) {
    .navbar .navbar-toggler { display: flex; }
}

.navbar .nav-link.active { color: var(--primary) !important; background: var(--primary-50); font-weight: 600; }

@media (max-width: 991px) {
    .navbar .navbar-collapse { background: var(--white); border-radius: 0 0 12px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 16px; }
    .navbar .navbar-collapse .navbar-nav { gap: 2px; }
    .navbar .navbar-collapse .nav-link { padding: 10px 14px !important; border-radius: 8px; }
    .navbar .navbar-collapse .navbar-user { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gray-100); }
    .navbar .navbar-collapse .navbar-user .nav-item { width: 100%; }
    .navbar .navbar-collapse .navbar-user .btn-login,
    .navbar .navbar-collapse .navbar-user .btn-submit { width: 100%; justify-content: center; margin-bottom: 8px; }

    .navbar .search-inline-mobile {
        display: flex !important; align-items: center; gap: 8px;
        margin-top: 12px;
        background: var(--gray-50);
        border: 1px solid var(--gray-200);
        border-radius: 50px;
        padding: 6px 14px;
    }
    .navbar .search-inline-mobile i { color: var(--gray-400); font-size: 0.9rem; }
    .navbar .search-inline-mobile input {
        flex: 1;
        border: none;
        background: transparent;
        outline: none;
        padding: 8px 0;
        font-size: 0.9rem;
        color: var(--text);
    }
    .navbar .search-inline-mobile input::placeholder { color: var(--gray-400); }
}

@media (min-width: 992px) {
    .navbar .navbar-collapse { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
    .navbar .navbar-collapse .navbar-nav { gap: 4px; }
    .navbar .navbar-collapse .navbar-user { margin-top: 0; padding-top: 0; border-top: none; }
}

/* ========== Footer ========== */
.site-footer {
    background: #fff;
    border-top: 1px solid #f1f5f9;
    padding: 48px 0 20px;
    margin-top: 60px;
}

.site-footer .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
}

.site-footer .footer-col-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.site-footer .footer-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.site-footer .footer-brand-desc {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 14px;
    line-height: 1.6;
}

.site-footer .footer-brand-tags {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.site-footer .footer-brand-tags span {
    font-size: 0.85rem;
    color: #3b82f6;
    font-weight: 500;
}

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

.site-footer .footer-list li {
    margin-bottom: 10px;
}

.site-footer .footer-list li a,
.site-footer .footer-list li {
    font-size: 0.88rem;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer .footer-list li a:hover {
    color: #3b82f6;
}

.site-footer .footer-friend {
    padding: 24px 0;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.site-footer .footer-friend-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    flex-shrink: 0;
}

.site-footer .footer-friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.site-footer .footer-friend-links a {
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer .footer-friend-links a:hover {
    color: #3b82f6;
}

.site-footer .footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.site-footer .footer-copy {
    font-size: 0.82rem;
    color: #94a3b8;
}

.site-footer .footer-sep {
    margin: 0 10px;
    color: #e2e8f0;
}

.site-footer .footer-beian {
    color: #94a3b8;
    text-decoration: none;
}

.site-footer .footer-beian:hover {
    color: #3b82f6;
}

@media (max-width: 992px) {
    .site-footer .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 576px) {
    .site-footer .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .site-footer .footer-friend {
        flex-direction: column;
        gap: 12px;
    }
}

/* ========== 面包屑 ========== */
.breadcrumb { background: transparent; padding: 0; font-size: 0.85rem; margin-bottom: 20px; }
.breadcrumb .breadcrumb-item a { color: var(--gray-400); }
.breadcrumb .breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb .breadcrumb-item.active { color: var(--gray-600); }
.breadcrumb-item+.breadcrumb-item::before { color: var(--gray-300); content: "\203A "; font-size: 1rem; line-height: 1; }

/* ========== Hero区域 ========== */
.hero-section {
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 50%, #f0f9ff 100%);
    padding: 64px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: "";
    position: absolute; top: -40%; right: -15%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,.06) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section::after {
    content: "";
    position: absolute; bottom: -30%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,.05) 0%, transparent 70%);
    border-radius: 50%;
}
@keyframes floatSlow {
    0%, 100% { transform: translate(0,0); }
    50% { transform: translate(25px,-15px); }
}
.hero-section .container { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--white);
    border: 1px solid var(--primary-200);
    color: var(--primary);
    padding: 5px 15px; border-radius: var(--radius-full);
    font-size: 0.85rem; font-weight: 500;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.hero-section h1 {
    font-size: 2.8rem; font-weight: 800;
    letter-spacing: -1.5px; line-height: 1.2;
    color: var(--gray-900);
}
.hero-section h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-section .hero-subtitle {
    font-size: 1.1rem; color: var(--gray-500);
    margin-bottom: 8px;
}
.hero-section .hero-stats {
    font-size: 0.9rem; color: var(--gray-400);
    margin-bottom: 28px;
}
.hero-section .hero-stats strong { color: var(--primary); font-weight: 700; }

.hero-search {
    max-width: 580px; margin: 0 auto;
}
.hero-search .input-group { box-shadow: 0 4px 24px rgba(0,0,0,.08); border-radius: var(--radius-full); }
.hero-search .form-control {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    color: var(--text);
    padding: 15px 22px; font-size: 1rem;
    transition: var(--transition);
}
.hero-search .form-control::placeholder { color: var(--gray-400); }
.hero-search .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59,130,246,.08);
}
.hero-search .btn-search {
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    padding: 15px 32px; font-size: 1rem;
    font-weight: 700;
    background: var(--primary);
    border: none; color: #fff;
    transition: var(--transition);
}
.hero-search .btn-search:hover { background: var(--primary-600); }

.hero-quick-tags {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px; margin-top: 18px;
}
.hero-quick-tags a {
    padding: 6px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    color: var(--gray-500);
    font-size: 0.85rem; font-weight: 500;
    transition: var(--transition);
}
.hero-quick-tags a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
    transform: translateY(-1px);
}

/* ========== 统计栏 ========== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: -36px;
    position: relative; z-index: 3;
    margin-bottom: 36px;
}
.stat-item {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.stat-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-200); }
.stat-item .stat-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: 10px;
}
.stat-item .stat-num { font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; color: var(--gray-900); line-height: 1.2; }
.stat-item .stat-label { font-size: 0.8rem; color: var(--gray-400); margin-top: 2px; }

/* ========== 分类导航 ========== */
.category-nav {
    display: flex; flex-wrap: wrap; gap: 8px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 10px 14px;
    box-shadow: var(--shadow-sm);
}
.category-nav .cat-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: var(--radius-full);
    font-size: 0.85rem; font-weight: 500;
    background: transparent;
    color: var(--gray-500);
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none; white-space: nowrap;
}
.cat-btn-icon {
    width: 22px; height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.cat-btn-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-nav .cat-btn:hover {
    color: var(--primary);
    background: var(--primary-50);
    border-color: var(--primary-100);
}
.category-nav .cat-btn.active {
    background: var(--primary);
    color: #fff; border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(59,130,246,.25);
}

/* ========== 区块标题 ========== */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.section-header .section-title-group { display: flex; align-items: center; gap: 10px; }
.section-header .section-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.section-header h3 {
    font-weight: 700; font-size: 1.2rem;
    color: var(--gray-800);
    margin: 0; letter-spacing: -0.2px;
}
.section-header .section-subtitle { font-size: 0.82rem; color: var(--gray-400); margin-left: 6px; font-weight: 400; }
.section-header .more-link {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--gray-400); font-size: 0.85rem; font-weight: 500;
    padding: 6px 14px; border-radius: var(--radius-full);
    transition: var(--transition);
}
.section-header .more-link:hover { color: var(--primary); background: var(--primary-50); }

/* ========== 工具卡片 - q.sslphp.com 风格 ========== */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.tool-card-wrap { height: 100%; }
.tool-card-link { text-decoration: none !important; color: inherit !important; display: block; height: 100%; }

.tool-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 20px 18px 16px;
    transition: var(--transition);
    display: flex; flex-direction: column;
    height: 100%;
}
.tool-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.tool-card-body { padding: 0 !important; display: flex; flex-direction: column; height: 100%; }

.tool-card .tool-card-top {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 10px;
}
.tool-card .tool-icon {
    width: 44px; height: 44px; border-radius: 10px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); overflow: hidden;
    background: var(--gray-50);
}
.tool-card .tool-icon img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.tool-card .tool-icon .icon-placeholder { font-size: 1.1rem; }
.tool-card .tool-card-info { flex: 1; min-width: 0; }
.tool-card .tool-name {
    font-size: 0.9rem; font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.3;
}
.tool-card .tool-category {
    font-size: 0.72rem; color: var(--primary);
    display: inline-flex; align-items: center; gap: 3px;
    background: var(--primary-50);
    padding: 2px 8px; border-radius: var(--radius-full);
    font-weight: 500;
}
.tool-card .tool-desc {
    font-size: 0.8rem; color: var(--gray-500);
    line-height: 1.5; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 12px;
}
.tool-card .tool-card-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 10px; border-top: 1px solid var(--gray-50);
}
.tool-card .tool-stats { display: flex; gap: 10px; font-size: 0.75rem; color: var(--gray-400); }
.tool-card .tool-stats span { display: inline-flex; align-items: center; gap: 3px; }
.tool-card .tool-link-arrow {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--gray-50);
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-400); font-size: 0.8rem;
    transition: var(--transition);
}
.tool-card:hover .tool-link-arrow { background: var(--primary); color: #fff; }

/* ========== 排行榜列表项 (横向卡片) ========== */
.rank-list { display: flex; flex-direction: column; gap: 8px; }

.rank-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    transition: var(--transition);
    text-decoration: none !important;
    color: inherit !important;
}
.rank-item:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow);
    transform: translateX(3px);
}
.rank-item .rank-num {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
    flex-shrink: 0;
    background: var(--gray-100); color: var(--gray-500);
}
.rank-item:nth-child(1) .rank-num { background: #fef3c7; color: #d97706; }
.rank-item:nth-child(2) .rank-num { background: #f1f5f9; color: #64748b; }
.rank-item:nth-child(3) .rank-num { background: #fef2f2; color: #dc2626; }

.rank-item .rank-icon {
    width: 40px; height: 40px; border-radius: 10px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--gray-50); overflow: hidden;
}
.rank-item .rank-icon img { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }
.rank-item .rank-icon .icon-placeholder { font-size: 1rem; color: var(--gray-400); }

.rank-item .rank-info { flex: 1; min-width: 0; }
.rank-item .rank-name { font-weight: 600; font-size: 0.92rem; color: var(--gray-800); margin-bottom: 2px; }
.rank-item .rank-desc { font-size: 0.78rem; color: var(--gray-400); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rank-item .rank-stats { display: flex; gap: 14px; font-size: 0.78rem; color: var(--gray-400); flex-shrink: 0; }
.rank-item .rank-stats span { display: inline-flex; align-items: center; gap: 4px; }
.rank-item .rank-goto { color: var(--primary); font-weight: 600; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }

/* ========== AI推荐区域 ========== */
.ai-recommend-section {
    background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    text-align: center;
    position: relative; overflow: hidden;
}
.ai-recommend-section .ai-icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff;
    margin-bottom: 18px; position: relative; z-index: 1;
    box-shadow: 0 8px 25px rgba(59,130,246,.25);
}
.ai-recommend-section h3 { font-weight: 700; font-size: 1.35rem; color: var(--gray-800); margin-bottom: 6px; position: relative; z-index: 1; }
.ai-recommend-section p { color: var(--gray-500); margin-bottom: 20px; position: relative; z-index: 1; max-width: 460px; margin-left: auto; margin-right: auto; }
.ai-recommend-section .btn-ai-chat {
    background: var(--primary);
    border: none; color: #fff;
    padding: 12px 30px; border-radius: var(--radius-full);
    font-weight: 700; font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(59,130,246,.25);
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: 8px;
}
.ai-recommend-section .btn-ai-chat:hover { background: var(--primary-600); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59,130,246,.35); color: #fff; }

/* ========== 详情页 ========== */
.detail-header {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.detail-header .tool-logo {
    width: 80px; height: 80px;
    border-radius: 16px;
    object-fit: contain;
    background: var(--gray-50);
    padding: 8px; border: 1px solid var(--gray-100);
}
.detail-header .tool-logo-placeholder {
    width: 80px; height: 80px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; background: var(--gray-50);
    border: 1px solid var(--gray-100);
    color: var(--gray-400);
}
.detail-header .tag-badge {
    background: var(--primary-50);
    color: var(--primary);
    padding: 4px 12px; border-radius: var(--radius-full);
    font-size: 0.8rem; font-weight: 500;
}
.detail-section {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 22px; margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}
.detail-section-title {
    font-weight: 700; font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
    display: flex; align-items: center; gap: 8px;
}
.detail-content { color: var(--gray-600); line-height: 1.8; font-size: 0.92rem; }
.detail-content ul { list-style: none; padding: 0; margin: 0; }
.detail-content ul li { padding: 7px 0; border-bottom: 1px solid var(--gray-50); }
.detail-content ul li:last-child { border-bottom: none; }

/* 网站预览 */
.website-preview {
    border: 1px solid var(--gray-200);
    border-radius: 10px; overflow: hidden;
    background: var(--gray-50);
}
.preview-bar {
    background: #e5e7eb;
    padding: 9px 14px;
    display: flex; align-items: center; gap: 7px;
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot:nth-child(1) { background: #ff5f57; }
.preview-dot:nth-child(2) { background: #febc2e; }
.preview-dot:nth-child(3) { background: #28c840; }
.preview-url {
    font-size: 0.75rem; color: var(--gray-500); margin-left: 8px;
    font-family: "SF Mono","Menlo",monospace;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.preview-body {
    padding: 36px 20px; text-align: center;
    min-height: 160px;
    display: flex; align-items: center; justify-content: center;
}

/* 侧边栏 */
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 20px; margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}
.sidebar-card .sidebar-title {
    font-weight: 700; font-size: 0.95rem;
    color: var(--gray-800);
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}
.related-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 0; border-bottom: 1px solid var(--gray-50);
}
.related-item:last-child { border-bottom: none; }

/* ========== 表单 ========== */
.auth-card, .user-content-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.auth-card .card-body { padding: 36px; }
.user-content-card { padding: 28px; }
.auth-header-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff;
    margin-bottom: 14px;
    box-shadow: 0 6px 20px rgba(59,130,246,.2);
}
.form-label { color: var(--gray-700); font-size: 0.88rem; margin-bottom: 5px; font-weight: 500; }
.form-control, .form-select {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 11px 15px; font-size: 0.92rem;
    transition: var(--transition);
}
.form-control::placeholder { color: var(--gray-400); }
.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,.08);
    background: var(--white);
    color: var(--text);
}
.form-select option { background: var(--white); color: var(--text); }
textarea.form-control { resize: vertical; min-height: 90px; }

/* 登录Tab切换 */
.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid #f1f5f9;
}
.auth-tab {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-400);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.auth-tab:hover { color: var(--primary); }
.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.auth-tab i { margin-right: 6px; }

/* 微信扫码登录 */
.wechat-login-area {
    padding: 10px 0 20px;
}
.wechat-qr-wrap {
    width: 220px;
    height: 220px;
    margin: 0 auto 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.wechat-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.wechat-qr-placeholder {
    text-align: center;
    color: var(--gray-400);
}
.wechat-qr-placeholder i {
    font-size: 3rem;
    color: #07c160;
    margin-bottom: 10px;
}
.wechat-qr-placeholder p {
    font-size: 0.85rem;
    margin: 0;
}

.wechat-login-tip {
    text-align: center;
}
.wechat-login-tip p {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin: 0 0 4px;
    font-weight: 500;
}
.wechat-login-tip span {
    font-size: 0.82rem;
    color: var(--gray-400);
}

.wechat-login-status {
    text-align: center;
    padding: 30px 0;
}
.wechat-status-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.wechat-login-status p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
}

.wechat-login-refresh {
    text-align: center;
    margin-top: 10px;
}

.wechat-login-agree {
    text-align: center;
    font-size: 0.82rem;
    color: var(--gray-500);
    margin: 16px 0;
}
.wechat-login-agree label {
    cursor: pointer;
    user-select: none;
}
.wechat-login-agree a {
    color: var(--primary);
    text-decoration: none;
}

.wechat-login-info {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px;
}
.wechat-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-bottom: 6px;
}
.wechat-info-item:last-child { margin-bottom: 0; }
.wechat-info-item i { color: #07c160; }

/* 后台微信配置 */
.wechat-qrcode-upload {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.wechat-qrcode-preview {
    width: 180px;
    height: 180px;
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f9fafb;
}
.wechat-qrcode-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.qrcode-empty {
    text-align: center;
    color: #98a2b3;
}
.qrcode-empty i {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: block;
}
.qrcode-empty p {
    font-size: 0.82rem;
    margin: 0;
}
.qrcode-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.qrcode-actions .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* OAuth模式登录样式 */
.wechat-login-area.oauth-mode {
    padding: 30px 20px;
}

.oauth-login-btn-wrap {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.oauth-login-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #07c160, #06ad56);
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
    transition: all 0.3s ease;
}

.oauth-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
    color: white;
}

.oauth-login-btn i {
    font-size: 1.5rem;
}

.oauth-login-tip {
    text-align: center;
    margin-top: 15px;
}

.oauth-login-tip p {
    color: #374151;
    font-size: 0.95rem;
    margin: 0 0 5px 0;
}

.oauth-login-tip span {
    color: #6b7280;
    font-size: 0.85rem;
}

.oauth-config-tip {
    text-align: center;
    padding: 40px 20px;
    color: #f59e0b;
}

.oauth-config-tip i {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.oauth-config-tip p {
    font-size: 0.95rem;
    margin: 0;
}

/* 按钮 */
.btn-primary {
    background: var(--primary);
    border: none; color: #fff;
    font-weight: 600; border-radius: var(--radius-full);
    padding: 10px 24px; font-size: 0.9rem;
    transition: var(--transition);
}
.btn-primary:hover { background: var(--primary-600); transform: translateY(-1px); box-shadow: var(--shadow-md); color: #fff; }
.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 600; border-radius: var(--radius-full);
    padding: 10px 24px; font-size: 0.9rem;
    transition: var(--transition);
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-outline-warning {
    background: transparent;
    border: 1px solid var(--amber);
    color: var(--amber);
    font-weight: 600; border-radius: var(--radius-full);
    padding: 10px 24px; font-size: 0.9rem;
    transition: var(--transition);
}
.btn-outline-warning:hover, .btn-outline-warning.active { background: var(--amber); color: #fff; }
.btn-outline-danger {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: var(--radius-full); padding: 8px 14px;
    font-weight: 500; font-size: 0.85rem;
    transition: var(--transition);
}
.btn-outline-danger:hover { background: #ef4444; color: #fff; }
.btn-warning {
    background: var(--amber);
    border: none; color: #fff;
    font-weight: 600; border-radius: var(--radius-full);
    padding: 10px 24px; font-size: 0.9rem;
    transition: var(--transition);
}
.btn-warning:hover { opacity: 0.9; color: #fff; }

/* ========== 排序栏 ========== */
.sort-bar { display: flex; gap: 6px; }
.sort-bar .btn {
    border-radius: var(--radius-full); padding: 6px 16px;
    font-size: 0.84rem; font-weight: 500;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-500);
    transition: var(--transition);
}
.sort-bar .btn:hover { border-color: var(--primary); color: var(--primary); }
.sort-bar .btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ========== 空态 ========== */
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state .empty-icon { font-size: 3.5rem; color: var(--gray-300); margin-bottom: 18px; }
.empty-state h5 { color: var(--gray-500); font-weight: 600; }
.empty-state p { color: var(--gray-400); }

/* ========== 分页 ========== */
.pagination {
    gap: 6px;
    justify-content: center;
    margin: 30px 0;
    display: flex;
    align-items: center;
}
.page-item {
    display: inline-block;
}
.page-item .page-link {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 10px !important;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    text-decoration: none;
}
.page-item .page-link:hover {
    background: #f0f4ff;
    color: #4f46e5;
    border-color: #c7d2fe;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
}
.page-item.active .page-link {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.page-item.disabled .page-link {
    background: #f8fafc;
    border-color: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
    pointer-events: none;
}
.page-ellipsis {
    padding: 0 8px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

/* ========== 用户中心 ========== */
.user-sidebar {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.user-sidebar .user-avatar {
    padding: 26px 18px; text-align: center;
    background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
    border-bottom: 1px solid var(--gray-100);
}
.user-sidebar .user-avatar .avatar-circle {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(59,130,246,.2);
}
.user-sidebar .user-avatar .user-name { font-weight: 700; font-size: 0.95rem; color: var(--gray-800); }
.user-sidebar .nav-link {
    color: var(--gray-600);
    padding: 12px 18px; font-weight: 500; font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
    display: flex; align-items: center; gap: 8px;
}
.user-sidebar .nav-link:hover { background: var(--primary-50); color: var(--primary); }
.user-sidebar .nav-link.active { color: var(--primary); background: var(--primary-50); border-left-color: var(--primary); }

/* ========== 兼容旧版样式 ========== */
.tool-icon-wrap {
    width: 44px; height: 44px;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    transition: transform 0.3s;
    background: var(--gray-50);
    flex-shrink: 0;
}
.tool-card:hover .tool-icon-wrap { transform: scale(1.05); }
.tool-icon-wrap img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.tool-icon-placeholder {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.tool-info { flex: 1; text-align: center; }
.tool-title {
    font-size: 0.9rem; font-weight: 600;
    margin-bottom: 2px; line-height: 1.3;
    color: var(--gray-800);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.tool-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px; padding-top: 8px;
    border-top: 1px solid var(--gray-50);
    font-size: 0.73rem; flex-shrink: 0;
}
.tool-footer .tool-meta { color: var(--gray-400); }
.tool-footer .tool-goto {
    color: var(--primary); font-weight: 600;
    opacity: 0; transform: translateX(-5px);
    transition: all 0.3s;
}
.tool-card:hover .tool-footer .tool-goto { opacity: 1; transform: translateX(0); }

/* 旧版 card */
.tool-card .card-body { padding: 20px 16px !important; }

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .tool-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .hero-section h1 { font-size: 2.2rem; }
    .tool-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .hero-search .form-control { padding: 13px 18px; font-size: 0.92rem; }
    .hero-search .btn-search { padding: 13px 22px; font-size: 0.92rem; }
    .rank-item .rank-stats { display: none; }
}
@media (max-width: 768px) {
    .hero-section { padding: 44px 0 58px; }
    .hero-section h1 { font-size: 1.75rem; }
    .hero-section .hero-subtitle { font-size: 0.95rem; }
    .tool-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: -28px; }
    .stat-item { padding: 14px 10px; }
    .stat-item .stat-num { font-size: 1.3rem; }
    .ai-recommend-section { padding: 28px 18px; }
    .category-nav { gap: 6px; padding: 8px 10px; }
    .category-nav .cat-btn { padding: 5px 12px; font-size: 0.8rem; }
    .navbar .search-inline input { width: 150px; }
    .navbar .search-inline input:focus { width: 180px; }
    .section-header h3 { font-size: 1.05rem; }
    .rank-item { padding: 12px 14px; gap: 10px; }
    .rank-item .rank-goto { display: none; }
}
@media (max-width: 576px) {
    .hero-section h1 { font-size: 1.4rem; }
    .tool-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .tool-card { padding: 14px 10px 12px; }
    .tool-card .tool-icon { width: 36px; height: 36px; }
    .tool-card .tool-icon img { width: 28px; height: 28px; }
    .tool-card .tool-name { font-size: 0.82rem; }
    .tool-card .tool-desc { font-size: 0.73rem; }
    .hero-search .btn-search { padding: 13px 16px; font-size: 0.85rem; }
    .detail-header { padding: 18px; }
    .detail-header .tool-logo, .detail-header .tool-logo-placeholder { width: 60px; height: 60px; border-radius: 12px; }
}

/* ========== AI资讯页面 ========== */
.news-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px 0;
    color: #fff;
}

.news-hero-header {
    text-align: left;
}

.news-title {
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.news-badge {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.news-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

.news-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.news-section-line {
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #4f46e5, #7c3aed);
    border-radius: 2px;
}

.news-section-text {
    color: #1e293b;
}

.news-timeline {
    position: relative;
}

.news-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

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

.news-time {
    flex-shrink: 0;
    width: 50px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    padding-top: 4px;
}

.news-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    background: #4f46e5;
    border-radius: 50%;
    margin-top: 8px;
    position: relative;
}

.news-dot::after {
    content: '';
    position: absolute;
    left: -4px;
    top: -4px;
    width: 18px;
    height: 18px;
    background: rgba(79, 70, 229, 0.15);
    border-radius: 50%;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-item-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.news-item-title a:hover {
    color: #4f46e5;
}

.news-item-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-item-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.news-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.news-hot-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-hot-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.news-hot-rank {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 6px;
}

.news-hot-rank.top {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
}

.news-hot-content {
    flex: 1;
    min-width: 0;
}

.news-hot-date {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.news-hot-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.news-hot-title:hover {
    color: #4f46e5;
}

.news-hot-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 6px;
}

.news-hot-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 资讯详情页 */
.news-detail {
    background: #fff;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.news-detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    line-height: 1.4;
}

.news-detail-abstract {
    background: #f8fafc;
    border-left: 3px solid #6366f1;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    border-radius: 0 8px 8px 0;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
    color: #64748b;
}

.news-detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-detail-meta-item i {
    color: #94a3b8;
}

.news-detail-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.news-detail-share-label {
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 500;
}

.news-detail-share-wrap {
    display: flex;
    gap: 6px;
}

.news-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.news-share-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f5f3ff;
}

.news-detail-content {
    font-size: 1rem;
    line-height: 1.85;
    color: #334155;
}

.news-detail-content p {
    margin-bottom: 18px;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    margin-top: 28px;
    margin-bottom: 14px;
    font-weight: 700;
    color: #1e293b;
}

.news-detail-content h2 { font-size: 1.3rem; }
.news-detail-content h3 { font-size: 1.15rem; }
.news-detail-content h4 { font-size: 1.05rem; }

.news-detail-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.news-detail-content blockquote {
    border-left: 3px solid #6366f1;
    padding: 10px 18px;
    margin: 20px 0;
    background: #f8fafc;
    color: #475569;
    border-radius: 0 8px 8px 0;
}

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

.news-detail-content li {
    margin-bottom: 6px;
}

.news-detail-content a {
    color: #6366f1;
    text-decoration: underline;
}

.news-detail-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e11d48;
}

.news-detail-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.news-detail-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.news-detail-source {
    display: flex;
    gap: 12px;
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 28px;
    align-items: flex-start;
}

.news-detail-source-icon {
    color: #eab308;
    font-size: 1.1rem;
    flex-shrink: 0;
    padding-top: 2px;
}

.news-detail-source-text {
    font-size: 0.88rem;
    color: #713f12;
    line-height: 1.5;
}

.news-detail-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.news-detail-tags-icon {
    color: #94a3b8;
    font-size: 0.9rem;
}

.news-detail-tag {
    display: inline-block;
    padding: 4px 14px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50px;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s;
}

.news-detail-tag:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.news-nav {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.news-nav-item {
    flex: 1;
    display: block;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.news-nav-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.news-nav-item.next {
    text-align: right;
}

.news-nav-empty {
    opacity: 0.5;
    cursor: default;
}

.news-nav-empty:hover {
    transform: none;
    background: #f8fafc;
}

.news-nav-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 6px;
}

.news-nav-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 相关资讯 */
.news-related-card {
    display: block;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 18px 20px;
    text-decoration: none;
    transition: all 0.2s;
    height: 100%;
}

.news-related-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.news-related-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.news-related-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 10px;
    line-height: 1.5;
}

.news-related-meta {
    display: flex;
    gap: 14px;
    font-size: 0.78rem;
    color: #94a3b8;
}

.news-related-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 资讯分类标签 */
.news-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 14px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.news-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50px;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.25s ease;
    font-weight: 500;
}

.news-tab-item:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-1px);
}

.news-tab-item.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.news-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.news-category-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

@media (max-width: 768px) {
    .news-hero { padding: 28px 0; }
    .news-title { font-size: 1.5rem; }
    .news-detail { padding: 20px; }
    .news-detail-title { font-size: 1.3rem; }
    .news-detail-meta { flex-wrap: wrap; gap: 12px; }
    .news-detail-share { flex-wrap: wrap; }
    .news-nav { flex-direction: column; }
    .news-detail-content { font-size: 0.95rem; }
}

/* ========== 排行榜页面 ========== */
.rank-hero {
    background: #fff;
    padding: 30px 0 20px;
    border-bottom: 1px solid #e2e8f0;
}

.rank-title {
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px;
}

.rank-badge {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.rank-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.rank-main {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.rank-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.rank-tabs-label {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1e293b;
}

.rank-tabs-nav {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
}

.rank-tab {
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.rank-tab:hover {
    color: #1e293b;
}

.rank-tab.active {
    background: #fff;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rank-list-new {
    padding: 0;
}

.rank-item-new {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

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

.rank-item-new:hover {
    background: #f8fafc;
}

.rank-num-new {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 8px;
}

.rank-num-new.top {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
}

.rank-logo {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.rank-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.rank-logo-placeholder {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    color: #94a3b8;
}

.rank-logo-placeholder-small {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.85rem;
}

.rank-info-new {
    flex: 1;
    min-width: 0;
}

.rank-name-new {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-desc-new {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-stats-new {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.rank-stats-new span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rank-visit-btn {
    flex-shrink: 0;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s;
}

.rank-visit-btn:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

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

.rank-sidebar-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.rank-sidebar-title {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
}

.rank-category-list,
.rank-latest-list {
    padding: 8px 12px;
}

.rank-category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.rank-category-item:hover {
    background: #f8fafc;
}

.rank-category-rank {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 6px;
}

.rank-category-rank.top {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}

.rank-category-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    color: #4f46e5;
    font-size: 0.9rem;
}

.rank-category-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
}

.rank-category-count {
    font-size: 0.8rem;
    color: #94a3b8;
}

.rank-latest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.rank-latest-item:hover {
    background: #f8fafc;
}

.rank-latest-logo {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
}

.rank-latest-logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.rank-latest-info {
    flex: 1;
    min-width: 0;
}

.rank-latest-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-latest-cat {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .rank-title { font-size: 1.3rem; }
    .rank-stats-new { display: none; }
    .rank-item-new { padding: 12px; gap: 10px; }
    .rank-logo { width: 36px; height: 36px; }
    .rank-logo img { width: 28px; height: 28px; }
    .rank-name-new { font-size: 0.88rem; }
    .rank-visit-btn { padding: 5px 12px; font-size: 0.8rem; }
}

/* ========== AI工具页面（新版） ========== */
.tools-hero {
    position: relative;
    padding: 40px 0 32px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    overflow: hidden;
}

.tools-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 30%, rgba(124, 58, 237, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.tools-hero-content {
    position: relative;
    text-align: center;
}

.tools-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tools-hero-badge i {
    color: #f59e0b;
}

.tools-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.tools-hero-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0 0 24px;
}

.tools-search-form {
    max-width: 580px;
    margin: 0 auto 20px;
}

.tools-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.tools-search-box:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.12);
}

.tools-search-icon {
    color: #94a3b8;
    font-size: 1rem;
    margin-right: 10px;
}

.tools-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    padding: 8px 0;
    background: transparent;
    color: #1e293b;
}

.tools-search-input::placeholder {
    color: #94a3b8;
}

.tools-search-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.tools-search-btn:hover {
    transform: scale(1.05);
}

.tools-hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tools-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}

.tools-hero-btn:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    background: #f8fafc;
}

/* 侧边栏 */
.tools-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 80px;
}

.tools-sidebar-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.tools-cat-list {
    display: flex;
    flex-direction: column;
}

.tools-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 0.88rem;
    transition: all 0.15s;
    margin-bottom: 2px;
}

.tools-cat-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

.tools-cat-item.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}

.tools-cat-item.active .tools-cat-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.tools-cat-name {
    display: flex;
    align-items: center;
    font-weight: 500;
    gap: 8px;
}
.tools-cat-icon-box {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: #4f46e5;
    background: #eef2ff;
    flex-shrink: 0;
    overflow: hidden;
}
.tools-cat-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tools-cat-item.active .tools-cat-icon-box {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.tools-cat-item.active .tools-cat-icon-box img {
    border-radius: 7px;
}

.tools-cat-count {
    font-size: 0.78rem;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
    color: #64748b;
    font-weight: 500;
}

/* 主内容区 */
.tools-main {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.tools-current-cat {
    font-size: 0.9rem;
    color: #64748b;
}

.tools-current-cat strong {
    color: #1e293b;
    font-weight: 600;
}

.tools-sort-switch {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
}

.tools-sort-btn {
    padding: 5px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.tools-sort-btn.active {
    background: #fff;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 卡片网格 */
.tools-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tools-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}

.tools-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.tools-card-banner {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.tools-card-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

.tools-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    z-index: 1;
}

.tools-tag-hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.tools-tag-free {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    align-self: flex-start;
    margin-top: 4px;
}

.tools-card-preview {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.85);
}

.tools-card-preview-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tools-card-preview-desc {
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.8;
}

.tools-card-body {
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tools-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tools-card-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8fafc;
}

.tools-card-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.tools-logo-placeholder {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 6px;
    color: #94a3b8;
}

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

.tools-card-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tools-card-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.tools-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.tools-card-cat {
    font-size: 0.75rem;
    color: #4f46e5;
    font-weight: 500;
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 4px;
}

.tools-card-stats {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.tools-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* 新版工具卡片 */
.tools-card-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.tool-card-new {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card-new:hover {
    border-color: #c7d2fe;
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.12);
    transform: translateY(-3px);
}

.tool-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.tool-card-logo-wrap {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.tool-card-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-card-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 20px;
}

.tool-card-badges {
    display: flex;
    gap: 6px;
}

.tool-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
}

.tool-badge.hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.tool-card-body-new {
    flex: 1;
    margin-bottom: 12px;
}

.tool-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 6px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-card-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.tool-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.tool-tag-item {
    font-size: 0.72rem;
    color: #6366f1;
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.tool-card-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.tool-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .tools-card-grid { grid-template-columns: repeat(3, 1fr); }
    .tools-card-grid-new { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .tools-card-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-card-grid-new { grid-template-columns: repeat(2, 1fr); }
    .tools-sidebar { display: none; }
    .tools-hero-title { font-size: 1.8rem; }
}

@media (max-width: 576px) {
    .tools-card-grid { grid-template-columns: 1fr; }
    .tools-card-grid-new { grid-template-columns: 1fr; }
    .tools-hero-title { font-size: 1.5rem; }
    .tools-hero-subtitle { font-size: 0.95rem; }
    .tools-search-box { padding: 4px 4px 4px 14px; }
    .tools-search-btn { width: 38px; height: 38px; }
    .tools-card-banner { height: 100px; }
    .tools-hero-actions { gap: 8px; }
    .tools-hero-btn { padding: 6px 14px; font-size: 0.82rem; }
    .tools-filter-bar { flex-direction: column; gap: 10px; align-items: flex-start; }
    .tool-card-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
}
/* ========== 详情页分享功能 ========== */
.detail-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 24px;
}

.detail-header-new {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.detail-logo-box {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #f8fafc;
    overflow: hidden;
}

.detail-logo-box img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.detail-logo-placeholder {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 1.5rem;
}

.detail-title-area {
    flex: 1;
    min-width: 0;
}

.detail-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.detail-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 12px;
    line-height: 1.5;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.detail-tag {
    padding: 3px 10px;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.detail-actions {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.detail-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.detail-action-primary {
    background: #4f46e5;
    color: #fff;
}

.detail-action-primary:hover {
    background: #4338ca;
    color: #fff;
}

.detail-action-fav {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.detail-action-fav:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.detail-action-fav.active {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.detail-action-share {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.detail-action-share:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

.detail-action-mobile {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.detail-action-mobile:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.mobile-access-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-access-modal.active {
    display: flex;
}

.mobile-access-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.mobile-access-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: mobileModalIn 0.25s ease;
}

@keyframes mobileModalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mobile-access-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-access-close:hover {
    background: #e2e8f0;
    color: #334155;
}

.mobile-access-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-access-title i {
    color: #3b82f6;
}

.mobile-access-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.mobile-access-qr img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 6px;
}

.mobile-access-tip {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 16px 0;
}

.mobile-access-url {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
}

.mobile-access-url span {
    flex: 1;
    font-size: 0.8rem;
    color: #475569;
    word-break: break-all;
    text-align: left;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mobile-access-copy {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.mobile-access-copy:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.mobile-access-direct {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff !important;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-access-direct:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.mobile-access-direct i {
    color: #fff;
}

.detail-share-wrap {
    position: relative;
}

.share-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    min-width: 240px;
    z-index: 100;
}

.share-menu-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.share-menu-items {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
    color: #475569;
    font-size: 0.78rem;
}

.share-item:hover {
    background: #f8fafc;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}

.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-qq { background: #12b7f5; }
.share-copy { background: #64748b; }

.share-menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.share-link-text {
    flex: 1;
    font-size: 0.78rem;
    color: #64748b;
    background: #f8fafc;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 5px 12px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
}

.share-copy-btn:hover {
    background: #4338ca;
}

/* Tabs */
.detail-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.detail-tab {
    padding: 10px 20px;
    font-size: 0.92rem;
    color: #64748b;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.detail-tab:hover {
    color: #1e293b;
}

.detail-tab.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.detail-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-rich {
    color: #334155;
    line-height: 1.7;
    margin-bottom: 20px;
}

.detail-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 24px 0 12px;
}

.detail-text-muted {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.feature-table th,
.feature-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.feature-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
    width: 180px;
}

.feature-table td {
    color: #475569;
}

.detail-cta {
    margin-top: 24px;
    text-align: center;
}

.detail-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.detail-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
    color: #fff;
}

.screenshot-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.screenshot-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
}

.screenshot-empty p {
    margin-bottom: 16px;
}

/* 侧边栏 */
.sidebar-card-new {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    overflow: hidden;
}

.sidebar-card-title {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-list {
    padding: 8px 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 0.2s;
}

.stat-item:hover {
    background: #f8fafc;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
}

.stat-eye { background: #3b82f6; }
.stat-fire { background: #f97316; }
.stat-tag { background: #8b5cf6; }

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.stat-free {
    color: #10b981;
}

.related-list {
    padding: 8px 12px;
}

.related-item-new {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.related-item-new:hover {
    background: #f8fafc;
}

.related-logo {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8fafc;
}

.related-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.related-logo-placeholder {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    color: #94a3b8;
}

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

.related-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-cat {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .detail-header-new { flex-direction: column; gap: 14px; }
    .detail-logo-box { width: 56px; height: 56px; }
    .detail-logo-box img { width: 44px; height: 44px; }
    .detail-logo-placeholder { width: 44px; height: 44px; font-size: 1.2rem; }
    .detail-title { font-size: 1.3rem; }
    .detail-actions { flex-wrap: wrap; }
    .detail-action-btn { padding: 7px 14px; font-size: 0.85rem; }
    .feature-table th, .feature-table td { padding: 10px 12px; font-size: 0.82rem; }
    .share-menu { min-width: 220px; }
}

/* ========== AI推荐页 ========== */
.ai-rec-hero {
    position: relative;
    padding: 48px 0 36px;
    background: linear-gradient(180deg, #f0f5ff 0%, #fff 100%);
    overflow: hidden;
    text-align: center;
}

.ai-rec-hero-bg {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.ai-rec-hero-content {
    position: relative;
    z-index: 1;
}

.ai-rec-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.ai-rec-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.ai-rec-hero-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.ai-rec-search {
    max-width: 640px;
    margin: 0 auto;
}

.ai-rec-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-rec-search-box:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.ai-rec-search-icon {
    color: #6366f1;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.ai-rec-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: #1e293b;
    background: transparent;
}

.ai-rec-search-input::placeholder {
    color: #94a3b8;
}

.ai-rec-search-btn {
    padding: 11px 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.ai-rec-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.ai-rec-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.ai-rec-tags-label {
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 500;
}

.ai-rec-tag {
    display: inline-block;
    padding: 5px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}

.ai-rec-tag:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f5f3ff;
}

.ai-rec-results-header {
    margin-bottom: 24px;
}

.ai-rec-results-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
}

.ai-rec-results-count {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6366f1;
    background: #f5f3ff;
    padding: 3px 12px;
    border-radius: 50px;
}

.ai-rec-results-hint {
    font-size: 0.88rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-rec-empty {
    text-align: center;
    padding: 60px 20px;
}

.ai-rec-empty-icon {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.ai-rec-empty h4 {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.ai-rec-empty p {
    color: #64748b;
    margin-bottom: 16px;
}

.ai-rec-empty-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #64748b;
}

.ai-rec-default {
    padding: 10px 0 40px;
}

.ai-rec-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 28px 24px;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}

.ai-rec-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.ai-rec-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.ai-rec-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.ai-rec-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.tools-card-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #8b5cf6;
    background: #f5f3ff;
    padding: 3px 10px;
    border-radius: 50px;
}

.tools-tag-rec {
    background: rgba(251, 191, 36, 0.85);
    color: #fff;
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .ai-rec-hero { padding: 32px 0 24px; }
    .ai-rec-hero-icon { width: 56px; height: 56px; border-radius: 16px; font-size: 1.4rem; }
    .ai-rec-hero-title { font-size: 1.5rem; }
    .ai-rec-hero-subtitle { font-size: 0.9rem; }
    .ai-rec-search-box { padding: 4px 4px 4px 14px; }
    .ai-rec-search-input { padding: 10px 10px; font-size: 0.85rem; }
    .ai-rec-search-btn { padding: 9px 18px; font-size: 0.85rem; }
    .ai-rec-tags { gap: 6px; }
    .ai-rec-tag { padding: 4px 10px; font-size: 0.8rem; }
}

/* ========== 分类页 ========== */
.category-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 40px 0 32px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.category-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 14px;
}

.category-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.category-hero-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.category-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    transition: all 0.25s;
    overflow: hidden;
}

.category-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.category-card-link {
    display: block;
    padding: 24px;
    text-decoration: none;
    color: inherit;
}

.category-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.category-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}
.category-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.category-card:nth-child(1) .category-card-icon { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.category-card:nth-child(2) .category-card-icon { background: linear-gradient(135deg, #ec4899, #f97316); }
.category-card:nth-child(3) .category-card-icon { background: linear-gradient(135deg, #10b981, #06b6d4); }
.category-card:nth-child(4) .category-card-icon { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.category-card:nth-child(5) .category-card-icon { background: linear-gradient(135deg, #3b82f6, #2dd4bf); }
.category-card:nth-child(6) .category-card-icon { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.category-card:nth-child(7) .category-card-icon { background: linear-gradient(135deg, #14b8a6, #84cc16); }
.category-card:nth-child(8) .category-card-icon { background: linear-gradient(135deg, #f97316, #eab308); }
.category-card:nth-child(9) .category-card-icon { background: linear-gradient(135deg, #06b6d4, #6366f1); }
.category-card:nth-child(10) .category-card-icon { background: linear-gradient(135deg, #64748b, #94a3b8); }

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

.category-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
}

.category-card-count {
    font-size: 0.82rem;
    color: #94a3b8;
}

.category-card-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.category-card-tool {
    padding: 3px 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #64748b;
}

.category-card-arrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.88rem;
    font-weight: 600;
    color: #4f46e5;
    transition: gap 0.2s;
}

.category-card:hover .category-card-arrow {
    color: #4338ca;
}

.category-card:hover .category-card-arrow i {
    transform: translateX(3px);
}

.category-card-arrow i {
    transition: transform 0.2s;
}

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

@media (max-width: 576px) {
    .category-grid { grid-template-columns: 1fr; }
    .category-hero { padding: 28px 0 22px; }
    .category-hero-title { font-size: 1.5rem; }
}

/* ========== 个人中心 - 投稿记录 ========== */
.user-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.user-stat-card {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    transition: all 0.2s;
}

.user-stat-card:hover {
    border-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.user-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 6px;
}

.user-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.user-stat-card.stat-approved .user-stat-num { color: #10b981; }
.user-stat-card.stat-pending .user-stat-num { color: #f59e0b; }
.user-stat-card.stat-rejected .user-stat-num { color: #ef4444; }

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

.user-submission-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    transition: all 0.2s;
}

.user-submission-item:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.user-submission-info {
    flex: 1;
    min-width: 0;
}

.user-submission-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-submission-meta {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.user-submission-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 4px;
}

.user-submission-remark {
    font-size: 0.82rem;
    color: #b45309;
    background: #fef3c7;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 4px;
}

.user-submission-status {
    flex-shrink: 0;
    padding-top: 2px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-approved {
    background: #d1fae5;
    color: #059669;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-rejected {
    background: #fee2e2;
    color: #dc2626;
}

.user-submission-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.user-submission-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.user-submission-empty p {
    margin-bottom: 14px;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .user-stat-row { grid-template-columns: repeat(2, 1fr); }
    .user-submission-item { flex-direction: column; gap: 10px; }
    .user-submission-status { align-self: flex-start; }
}

@media (max-width: 576px) {
    .user-stat-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .user-stat-card { padding: 14px 10px; }
    .user-stat-num { font-size: 1.3rem; }
    .user-submission-item { padding: 14px; }
}

/* ========== 移动端侧边栏 ========== */
.sidebar-toggle {
    position: fixed;
    right: 16px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.4);
    z-index: 998;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: sidebarFloat 2.5s ease-in-out infinite;
}

@keyframes sidebarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.sidebar-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.5);
}

.sidebar-toggle:active {
    transform: scale(0.95);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #fff;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
}

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

.sidebar-header {
    padding: 20px 20px 16px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.sidebar-brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.sidebar-brand-sub {
    font-size: 0.78rem;
    opacity: 0.85;
    margin-top: 2px;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.sidebar-search {
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-search form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 12px;
    transition: border-color 0.2s;
}

.sidebar-search form:focus-within {
    border-color: #4f46e5;
}

.sidebar-search i {
    color: #94a3b8;
    margin-right: 8px;
    font-size: 0.9rem;
}

.sidebar-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.88rem;
    padding: 6px 0;
    color: #1e293b;
}

.sidebar-search input::placeholder {
    color: #94a3b8;
}

.mobile-sidebar .sidebar-section {
    padding: 16px 16px 0;
}

.sidebar-section-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-left: 4px;
}

.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-cat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-cat-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

.sidebar-cat-item.active {
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    color: #4f46e5;
    font-weight: 600;
}

.sidebar-cat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #4f46e5;
    background: #eef2ff;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-cat-icon img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 8px;
}

.sidebar-cat-name {
    flex: 1;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-links li a i {
    width: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.sidebar-links li a:hover {
    background: #f8fafc;
    color: #1e293b;
}

.sidebar-links li a:hover i {
    color: #4f46e5;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid #f1f5f9;
}

.sidebar-user {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-user-item i {
    color: #94a3b8;
    width: 20px;
    text-align: center;
}

.sidebar-user-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

.sidebar-user-item:hover i {
    color: #4f46e5;
}

@media (max-width: 991px) {
    .sidebar-toggle {
        display: flex;
    }
}

@media (min-width: 992px) {
    .mobile-sidebar,
    .sidebar-overlay,
    .sidebar-toggle {
        display: none !important;
    }
}

/* ========== 微信登录管理页面 ========== */
.wechat-login-admin .stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.wechat-login-admin .stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: all 0.25s;
    border: 1px solid #f1f5f9;
}

.wechat-login-admin .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.wechat-login-admin .stat-card.active {
    border-color: #16b777;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}

.wechat-login-admin .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.wechat-login-admin .stat-pending .stat-icon {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.wechat-login-admin .stat-confirmed .stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.wechat-login-admin .stat-expired .stat-icon {
    background: linear-gradient(135deg, #64748b, #475569);
}

.wechat-login-admin .stat-info {
    flex: 1;
}

.wechat-login-admin .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.wechat-login-admin .stat-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 4px;
}

.wechat-login-admin .tab-nav {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
}

.wechat-login-admin .tab-nav-item {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.wechat-login-admin .tab-nav-item:hover {
    color: #1e293b;
}

.wechat-login-admin .tab-nav-item.active {
    background: #fff;
    color: #16b777;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wechat-login-admin .badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.wechat-login-admin .badge-orange {
    background: #fff7ed;
    color: #ea580c;
}

.wechat-login-admin .badge-green {
    background: #d1fae5;
    color: #059669;
}

.wechat-login-admin .badge-gray {
    background: #f1f5f9;
    color: #64748b;
}

.wechat-login-admin .badge-red {
    background: #fee2e2;
    color: #dc2626;
}

.wechat-login-admin .badge-blue {
    background: #dbeafe;
    color: #2563eb;
}

.wechat-login-admin .alert {
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid;
    display: flex;
    gap: 12px;
}

.wechat-login-admin .alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.wechat-login-admin .alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.wechat-login-admin .alert ol {
    margin: 10px 0 0 20px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .wechat-login-admin .stats-row {
        grid-template-columns: 1fr;
    }
}

/* ========== 工具评分组件 ========== */
.rating-summary {
    padding: 18px 20px;
}

.rating-avg {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px;
}

.rating-avg-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
    margin-bottom: 8px;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
}

.rating-stars i {
    font-size: 1rem;
    color: #f59e0b;
}

.rating-stars i.fa-regular {
    color: #e2e8f0;
}

.rating-stars .half-star {
    position: relative;
    overflow: hidden;
}

.rating-total {
    font-size: 0.82rem;
    color: #64748b;
}

.rating-dist {
    margin-bottom: 16px;
}

.rating-dist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.rating-dist-row span {
    color: #64748b;
    width: 28px;
    flex-shrink: 0;
}

.rating-dist-bar {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.rating-dist-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0;
}

.rating-dist-count {
    width: 24px;
    text-align: right;
    color: #64748b;
    font-weight: 500;
}

.rate-action {
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.rate-action-label {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 10px;
    text-align: center;
}

.rate-stars {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.rate-stars i {
    font-size: 1.6rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.rate-stars i:hover {
    transform: scale(1.15);
}

.rate-stars i.fa-solid,
.rate-stars i.star-hover {
    color: #f59e0b;
}

@media (max-width: 768px) {
    .rating-avg-num { font-size: 2rem; }
    .rate-stars i { font-size: 1.4rem; }
}

/* ========== 分类页 Hero 区域 ========== */
.category-hero {
    position: relative;
    padding: 50px 0 40px;
    background: linear-gradient(180deg, #f0f4ff 0%, #f8fafc 50%, #fff 100%);
    text-align: center;
    overflow: hidden;
}

.category-hero-all {
    background: linear-gradient(180deg, #f0f4ff 0%, #f8fafc 50%, #fff 100%);
}

.category-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.category-hero-content {
    position: relative;
    z-index: 1;
}

.category-hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3);
}

.category-hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.category-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.category-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-count-badge i {
    color: #6366f1;
}

.category-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    transition: all 0.2s;
}

.category-ai-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: #fff;
}

/* ========== Tab 切换 ========== */
.tools-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.tools-tab-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.tools-tab-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    border-radius: 2px;
    transition: background 0.2s;
}

.tools-tab-item:hover {
    color: #1e293b;
}

.tools-tab-item.active {
    color: #6366f1;
    font-weight: 600;
}

.tools-tab-item.active::after {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.tools-tab-item i {
    font-size: 0.9rem;
}

/* ========== 工具卡片网格 V2 ========== */
.tools-card-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tool-card-v2 {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.tool-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.tool-card-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.tool-card-v2:hover .tool-card-preview img {
    transform: scale(1.05);
}

.preview-logo-bg {
    width: 100%;
    height: 100%;
}

.preview-logo {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    background: #fff;
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #cbd5e1;
}

.verified-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.tool-card-info {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-card-head-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tool-logo-mini {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
}

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

.tool-logo-mini i {
    color: #94a3b8;
    font-size: 1rem;
}

.tool-name-v2 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-desc-v2 {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.tool-card-foot-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.tool-tags-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.tool-tag-v2 {
    display: inline-block;
    padding: 2px 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.72rem;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.tool-stats-v2 {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.tool-stats-v2 span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #94a3b8;
}

.tool-stats-v2 i {
    font-size: 0.8rem;
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .tools-card-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 36px 0 28px;
    }
    
    .category-hero-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
        border-radius: 16px;
    }
    
    .category-hero-title {
        font-size: 1.6rem;
    }
    
    .category-hero-meta {
        gap: 10px;
    }
    
    .category-count-badge,
    .category-ai-btn {
        padding: 6px 14px;
        font-size: 0.82rem;
    }
    
    .tools-tabs {
        gap: 24px;
        padding: 16px 0;
        margin-bottom: 16px;
    }
    
    .tools-tab-item {
        font-size: 0.9rem;
    }
    
    .tools-card-grid-v2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tool-card-info {
        padding: 14px 16px 16px;
    }
}