/* 懂AI工具导航 - 深色大气风格 (参考toolify.ai) */

.ai-nav-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 24px;
    background: #0f172a;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Hero区 - 大气深色 */
.ai-nav-hero {
    text-align: center;
    padding: 60px 40px 50px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid #1e293b;
    position: relative;
    overflow: hidden;
}

.ai-nav-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.ai-nav-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 12px;
    position: relative;
    letter-spacing: -0.02em;
}

.ai-nav-hero h1 span {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-nav-hero > p {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 30px;
    position: relative;
}

/* 统计卡片 */
.ai-nav-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    position: relative;
}

.ai-nav-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 16px 28px;
    min-width: 100px;
    transition: all 0.3s;
}

.ai-nav-stat:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.ai-nav-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #60a5fa;
    line-height: 1;
}

.ai-nav-stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* 搜索框 - 深色风格 */
.ai-nav-search {
    max-width: 700px;
    margin: 0 auto 28px;
    position: relative;
    display: flex;
    align-items: center;
}

.ai-nav-search input {
    width: 100%;
    padding: 16px 56px 16px 24px;
    font-size: 1.05rem;
    border: 2px solid #334155;
    border-radius: 14px;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
    background: #1e293b;
    color: #f8fafc;
}

.ai-nav-search input::placeholder {
    color: #64748b;
}

.ai-nav-search input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    background: #1e293b;
}

.ai-nav-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.ai-nav-search button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-50%) scale(1.05);
}

/* 筛选标签 */
.ai-nav-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ai-nav-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    border-radius: 24px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.ai-nav-filter:hover,
.ai-nav-filter.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.ai-nav-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.ai-nav-search button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-50%) scale(1.02);
}

/* 分类标签云 - 顶部横向滚动 */
.ai-nav-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0;
    position: relative;
}

.ai-nav-categories a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    border-radius: 24px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.ai-nav-categories a:hover,
.ai-nav-categories a.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 精选推荐区 */
.ai-nav-featured {
    padding: 40px;
    border-bottom: 1px solid #1e293b;
}

.ai-nav-featured h2 {
    font-size: 1.4rem;
    color: #f8fafc;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.ai-nav-featured h2::before {
    content: "⭐";
    font-size: 1.2rem;
}

.ai-nav-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* 工具卡片 - 深色风格 */
.ai-tool-card {
    background: linear-gradient(145deg, #1e293b 0%, #1a2332 100%);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid #334155;
    position: relative;
    overflow: hidden;
}

.ai-tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s;
}

.ai-tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: #3b82f6;
}

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

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

.ai-tool-card-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: bold;
    color: #60a5fa;
    border: 1px solid #475569;
    flex-shrink: 0;
}

.ai-tool-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    flex-grow: 1;
}

.ai-tool-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.ai-tool-card-title a:hover {
    color: #60a5fa;
}

.ai-tool-card-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #334155;
    gap: 12px;
}

.ai-tool-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-tool-tag {
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ai-tool-tag.free {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ai-tool-tag.china {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ai-tool-tag.featured {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.ai-tool-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.ai-tool-card-link:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 主内容区 - 侧边栏 + 内容区 */
.ai-nav-main {
    display: flex;
    gap: 32px;
    padding: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

/* 左侧分类侧边栏 */
.ai-nav-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    background: linear-gradient(145deg, #1e293b 0%, #1a2332 100%);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 24px 0;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.ai-nav-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid #334155;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}

.ai-nav-sidebar-header svg {
    color: #3b82f6;
}

.ai-nav-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-nav-sidebar li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.ai-nav-sidebar li a:hover,
.ai-nav-sidebar li a.active {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-left-color: #3b82f6;
}

.ai-nav-sidebar .cat-icon {
    font-size: 1.1rem;
}

.ai-nav-sidebar .cat-count {
    margin-left: auto;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 右侧内容区 */
.ai-nav-content {
    flex: 1;
    min-width: 0;
}

/* 工具栏 - 排序和计数 */
.ai-nav-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #334155;
}

.ai-nav-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-nav-sort-label {
    color: #64748b;
    font-size: 0.9rem;
    margin-right: 4px;
}

.ai-nav-sort-btn {
    padding: 8px 16px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    border-radius: 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.ai-nav-sort-btn:hover,
.ai-nav-sort-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.ai-nav-view-count {
    color: #64748b;
    font-size: 0.9rem;
}

.ai-nav-view-count strong {
    color: #60a5fa;
}

/* 工具网格 - 自适应列数 */
.ai-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 工具网格 - 4列大气布局 */
.ai-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 分类标题区 */
.ai-nav-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #334155;
}

.ai-nav-section-header h2 {
    font-size: 1.4rem;
    color: #f8fafc;
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-nav-section-count {
    color: #64748b;
    font-size: 0.9rem;
}

/* 空状态 */
.ai-nav-empty {
    text-align: center;
    padding: 80px 40px;
    color: #64748b;
}

.ai-nav-empty svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.ai-nav-empty p {
    font-size: 1.1rem;
}

/* 加载状态 */
.ai-nav-loading {
    text-align: center;
    padding: 60px;
    color: #64748b;
}

.ai-nav-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #334155;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

/* 响应式 - 移动端适配 */
@media (max-width: 1200px) {
    .ai-nav-hero h1 {
        font-size: 2.5rem;
    }
    
    .ai-nav-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .ai-nav-container {
        padding: 0;
    }
    
    .ai-nav-hero {
        padding: 50px 20px 40px;
    }
    
    .ai-nav-hero h1 {
        font-size: 2rem;
    }
    
    .ai-nav-hero p {
        font-size: 1rem;
    }
    
    .ai-nav-search {
        margin-bottom: 30px;
    }
    
    .ai-nav-search input {
        padding: 14px 50px 14px 20px;
        font-size: 1rem;
    }
    
    .ai-nav-categories {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .ai-nav-categories a {
        flex-shrink: 0;
    }
    
    .ai-nav-featured,
    .ai-nav-main {
        padding: 24px 16px;
    }
    
    .ai-nav-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-tool-card {
        padding: 20px;
    }
    
    .ai-tool-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .ai-tool-card-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ai-nav-hero {
        padding: 40px 16px 30px;
    }
    
    .ai-nav-hero h1 {
        font-size: 1.6rem;
        letter-spacing: -0.01em;
    }
    
    .ai-nav-hero p {
        font-size: 0.9rem;
    }
    
    .ai-nav-hero .tool-count {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .ai-nav-search input {
        padding: 12px 44px 12px 16px;
        font-size: 0.95rem;
        border-radius: 12px;
    }
    
    .ai-nav-search button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .ai-nav-categories a {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .ai-nav-featured h2,
    .ai-nav-section-header h2 {
        font-size: 1.2rem;
    }
    
    .ai-tool-card {
        padding: 16px;
    }
    
    .ai-tool-card-logo {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        font-size: 1.3rem;
    }
    
    .ai-tool-card-title {
        font-size: 1rem;
    }
    
    .ai-tool-card-desc {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }
    
    .ai-tool-tag {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .ai-tool-card-link {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 375px) {
    .ai-nav-hero {
        padding: 32px 12px 24px;
    }
    
    .ai-nav-hero h1 {
        font-size: 1.4rem;
    }
    
    .ai-nav-hero p {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .ai-nav-search {
        margin-bottom: 24px;
    }
    
    .ai-nav-featured,
    .ai-nav-main {
        padding: 20px 12px;
    }
    
    .ai-nav-featured-grid {
        gap: 16px;
    }
    
    .ai-tool-card {
        padding: 14px;
    }
    
    .ai-tool-card-logo {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        font-size: 1.2rem;
    }
    
    .ai-tool-card-header {
        gap: 12px;
        margin-bottom: 10px;
    }
}

/* 滚动条美化 */
.ai-nav-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.ai-nav-container::-webkit-scrollbar-track {
    background: #0f172a;
}

.ai-nav-container::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.ai-nav-container::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ==================== AI工具详情页样式 - 白色主题 ==================== */

/* 评论和评分区域的白色主题适配 - 深色标题条 */
.aitool-rating-section,
.aitool-comment-section,
.aitool-content-section {
    background: #ffffff;
    border: 1px solid #1e293b;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.aitool-rating-section h3,
.aitool-comment-section h3,
.aitool-content-section h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #1e293b;
    position: relative;
}

.aitool-rating-section h3::after,
.aitool-comment-section h3::after,
.aitool-content-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

/* 评分区域 */
.aitool-avg-score {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.aitool-avg-num {
    font-size: 3.5rem;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
}

.aitool-avg-info {
    flex: 1;
}

#avg-stars {
    margin-bottom: 8px;
}

.aitool-stars-display {
    font-size: 24px;
    letter-spacing: 2px;
}

.aitool-stars-display .aitool-star {
    color: #d1d5db;
}

.aitool-stars-display .aitool-star.filled {
    color: #f59e0b;
}

.aitool-avg-count {
    color: #6b7280;
    font-size: 14px;
}

/* 用户评分 */
.aitool-user-rating {
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.aitool-user-rating h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

.aitool-star-picker {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.aitool-star-picker .aitool-star {
    font-size: 32px;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
}

.aitool-star-picker .aitool-star:hover,
.aitool-star-picker .aitool-star.hover-fill {
    color: #fbbf24;
}

.aitool-star-picker .aitool-star.filled {
    color: #f59e0b;
}

.aitool-rating-label {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
    min-height: 20px;
}

.aitool-submit-rating,
.aitool-submit-comment {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.aitool-submit-rating:hover,
.aitool-submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -8px rgba(59, 130, 246, 0.5);
}

.aitool-submit-rating:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 评论表单 */
.aitool-comment-form-row {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.aitool-comment-form input[type="text"] {
    flex: 1;
}

/* 评论列表 */
.aitool-comment-item {
    display: flex;
    gap: 16px;
}

.aitool-comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.aitool-comment-body {
    flex: 1;
}

.aitool-comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.aitool-comment-name {
    font-weight: 600;
    color: #111827;
}

.aitool-comment-stars {
    font-size: 14px;
}

.aitool-comment-date {
    color: #9ca3af;
    font-size: 13px;
    margin-left: auto;
}

.aitool-no-comment {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 15px;
}

/* 内容区域 */
.aitool-content-body {
    color: #4b5563;
    line-height: 1.8;
    font-size: 16px;
}

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

/* 按钮样式 */
.aitool-btn-visit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.aitool-btn-visit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.5);
}

.aitool-btn-share {
    background: #f9fafb;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.aitool-btn-share:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* ==================== AI工具详情页样式 - 深色点缀白色主题 ==================== */

.aitool-detail-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(180deg, #0f172a 0%, #0f172a 400px, #f8fafc 400px);
    min-height: 100vh;
}

/* 面包屑 */
.aitool-breadcrumb {
    margin: 0 20px 20px;
    padding-top: 20px;
    font-size: 14px;
    color: #94a3b8;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 15px;
}

.aitool-breadcrumb a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}

.aitool-breadcrumb a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.aitool-breadcrumb span {
    margin: 0 10px;
    color: #64748b;
}

/* 顶部信息卡 - 深色背景 */
.aitool-detail-header {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 0;
    padding: 40px 20px;
    margin-bottom: 40px;
    display: flex;
    gap: 30px;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.aitool-detail-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, transparent);
}

.aitool-detail-header .aitool-logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.aitool-detail-header .aitool-logo img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.aitool-detail-info {
    flex: 1;
}

.aitool-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.aitool-detail-cats {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.aitool-detail-cat-tag {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.aitool-detail-cat-tag:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
}

.aitool-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.aitool-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.aitool-badge.free {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.aitool-badge.china {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.aitool-badge.featured {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.aitool-detail-desc {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 24px 0;
}

.aitool-detail-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.aitool-detail-actions .aitool-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.aitool-detail-actions .aitool-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
}

.aitool-detail-actions .aitool-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.6);
}

.aitool-detail-actions .aitool-btn.secondary {
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    border: 2px solid #475569;
}

.aitool-detail-actions .aitool-btn.secondary:hover {
    background: rgba(30, 41, 59, 1);
    border-color: #64748b;
}

/* 内容区域 - 白色背景,深色边框点缀 */
.aitool-detail-content {
    background: #ffffff;
    border: 1px solid #1e293b;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.aitool-detail-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px 0;
}

.aitool-detail-content p {
    color: #4b5563;
    line-height: 1.8;
    font-size: 16px;
    margin: 0 0 16px 0;
}

/* 评分和评论区 - 白色背景,深色标题条 */
.aitool-detail-stats {
    background: #ffffff;
    border: 1px solid #1e293b;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.aitool-detail-stats h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 30px 0;
}

.aitool-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.aitool-stat-item {
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.aitool-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 8px;
}

.aitool-stat-label {
    color: #6b7280;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .aitool-detail-wrap {
        background: linear-gradient(180deg, #0f172a 0%, #0f172a 500px, #f8fafc 500px);
    }

    .aitool-breadcrumb {
        margin: 0 15px 20px;
        padding-top: 15px;
    }

    .aitool-detail-header {
        flex-direction: column;
        padding: 30px 15px;
        border-radius: 0;
    }

    .aitool-detail-header .aitool-logo {
        width: 80px;
        height: 80px;
        font-size: 38px;
    }

    .aitool-detail-title {
        font-size: 1.8rem;
    }

    .aitool-detail-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .aitool-detail-content,
    .aitool-detail-stats,
    .aitool-rating-section,
    .aitool-comment-section,
    .aitool-content-section,
    .aitool-share-section {
        margin-left: 15px;
        margin-right: 15px;
        padding: 30px 20px;
        border-radius: 16px;
    }

    .aitool-detail-stats h2 {
        font-size: 1.5rem;
    }
}

/* ==================== 详情页额外优化样式 ==================== */

/* 评分星星样式 */
.aitool-rating-stars {
    color: #f59e0b;
    font-size: 24px;
    letter-spacing: 2px;
}

.aitool-rating-stars .empty {
    color: #d1d5db;
}

/* 评论区域 */
.aitool-comment-form {
    background: #f9fafb;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
}

.aitool-comment-form textarea {
    width: 100%;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.6;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.2s;
}

.aitool-comment-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.aitool-comment-form input[type="text"],
.aitool-comment-form input[type="email"] {
    width: 100%;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 15px;
    color: #1f2937;
    font-size: 15px;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.aitool-comment-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.aitool-comment-form button[type="submit"] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.aitool-comment-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.5);
}

/* 评论列表 */
.aitool-comment-list {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
}

.aitool-comment {
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
}

.aitool-comment:last-child {
    border-bottom: none;
}

.aitool-comment-author {
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.aitool-comment-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.aitool-comment-text {
    color: #4b5563;
    line-height: 1.7;
}

/* 分享区域 - 深色背景突出显示 */
.aitool-share-section {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.aitool-share-section h3 {
    color: #f8fafc;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.aitool-share-section > p {
    color: #94a3b8;
    margin-bottom: 20px;
    font-size: 14px;
}

.aitool-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.aitool-share-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.aitool-share-btn:hover {
    background: rgba(30, 41, 59, 1);
    border-color: #64748b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 社交媒体分享按钮颜色 */
.aitool-share-btn.weibo:hover {
    color: #e6162d;
    border-color: #e6162d;
    background: rgba(230, 22, 45, 0.15);
    box-shadow: 0 4px 15px rgba(230, 22, 45, 0.3);
}

.aitool-share-btn.wechat:hover {
    color: #07c160;
    border-color: #07c160;
    background: rgba(7, 193, 96, 0.15);
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
}

.aitool-share-btn.qq:hover {
    color: #12b7f5;
    border-color: #12b7f5;
    background: rgba(18, 183, 245, 0.15);
    box-shadow: 0 4px 15px rgba(18, 183, 245, 0.3);
}

.aitool-share-btn.qzone:hover {
    color: #feca57;
    border-color: #feca57;
    background: rgba(254, 202, 87, 0.15);
    box-shadow: 0 4px 15px rgba(254, 202, 87, 0.3);
}

.aitool-share-btn.copy:hover {
    color: #8b5cf6;
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* 收藏按钮 */
.aitool-favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.aitool-favorite-btn:hover {
    background: #f3f4f6;
    color: #3b82f6;
    border-color: #3b82f6;
}

.aitool-favorite-btn.active {
    color: #f59e0b;
    border-color: #f59e0b;
    background: #fffbeb;
}

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

.aitool-tag {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.aitool-tag:hover {
    background: #f3f4f6;
    color: #3b82f6;
    border-color: #3b82f6;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .aitool-comment-form,
    .aitool-comment-list {
        padding: 20px 15px;
        margin-left: 0;
        margin-right: 0;
        border-radius: 16px;
    }

    .aitool-share-buttons {
        gap: 10px;
    }

    .aitool-share-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
