/* AI Hub - 现代AI工具箱站风格 (跟随logo配色) */

:root {
    --bg-primary: #f0f2f5;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --border-light: #e5e7eb;
    --border-glass: rgba(255, 255, 255, 0.5);
    --text-primary: #172033;
    --text-secondary: #4a5568;
    --text-muted: #94a3b8;
    --accent-blue: #2563eb;
    --accent-green: #0f9f6e;
    --accent-dark: #172033;
    --accent-gradient: linear-gradient(135deg, #172033 0%, #2563eb 58%, #0f9f6e 100%);
    --accent-gradient-soft: linear-gradient(135deg, #2563eb 0%, #0f9f6e 100%);
    --shadow-sm: 0 1px 2px rgba(23, 32, 51, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(23, 32, 51, 0.08), 0 2px 4px -1px rgba(23, 32, 51, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(23, 32, 51, 0.08), 0 4px 6px -2px rgba(23, 32, 51, 0.04);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 页面布局 */
.page-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo-icon svg {
    width: 100%;
    height: 100%;
}

.sidebar-logo-text {
    font-size: 18px;
    font-weight: 700;
}

.sidebar-search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.sidebar-search input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.sidebar-nav {
    flex: 1;
    padding: 12px 16px;
}

.sidebar-nav-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    margin-bottom: 4px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-nav-item:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
}

.sidebar-nav-item.active {
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-blue);
}

.sidebar-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    width: 100%;
    box-sizing: border-box;
}

/* Hero区域 */
.hero-section {
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    padding: 48px;
    margin-bottom: 32px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

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

.hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 28px;
    font-weight: 700;
}

.hero-stat-label {
    font-size: 13px;
    opacity: 0.8;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* 区块标题 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

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

.section-title i {
    color: var(--accent-blue);
}

.section-more {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.3s;
}

.section-more:hover {
    opacity: 0.8;
}

/* 分类网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

/* 热门分类一行显示（上图标下文字） */
.category-row {
    display: flex;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 32px;
    flex-wrap: nowrap;
}

.category-card-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    flex: 1;
    max-width: 120px;
}

.category-card-mini:hover {
    transform: translateY(-2px);
}

.category-card-mini .category-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    transition: box-shadow 0.3s;
}

.category-card-mini:hover .category-card-icon {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-card-mini .category-card-name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.category-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.category-card-name {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.category-card-count {
    font-size: 12px;
    color: var(--text-muted);
}

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

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.tool-card-link {
    display: flex;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.tool-card-actions {
    display: flex;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.tool-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    flex: 1;
    justify-content: center;
}

.tool-card-btn.detail-btn {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
}

.tool-card-btn.detail-btn:hover {
    background: rgba(37, 99, 235, 0.15);
}

.tool-card-btn.official-btn {
    background: rgba(15, 159, 110, 0.1);
    color: #0f9f6e;
}

.tool-card-btn.official-btn:hover {
    background: rgba(15, 159, 110, 0.2);
}

.tool-card-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

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

.tool-card-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

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

.tool-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.tool-card-tag {
    padding: 2px 8px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* 热门榜单 */
.ranking-list {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

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

.ranking-item:hover {
    background: rgba(37, 99, 235, 0.04);
}

.ranking-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.ranking-number.top {
    background: var(--accent-gradient-soft);
    color: white;
}

.ranking-number.normal {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.ranking-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

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

.ranking-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.ranking-desc {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.ranking-stars {
    color: #f59e0b;
}

/* 页脚 */
.footer {
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border-light);
    margin-top: 48px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    text-align: center;
}

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

.footer-text a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 工具详情页 */
.tool-detail-hero {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.tool-detail-header {
    display: flex;
    gap: 24px;
}

.tool-detail-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
    overflow: hidden;
}

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

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

.tool-detail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tool-detail-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.tool-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars {
    color: #f59e0b;
    font-size: 14px;
}

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

.meta-users, .meta-price {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

.tool-detail-actions {
    display: flex;
    gap: 12px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-gradient-soft);
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    border: 1px solid var(--border-light);
    cursor: pointer;
}

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

/* 详情标签页 */
.detail-tabs {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-primary);
}

.tab-btn {
    padding: 14px 24px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.tab-btn:hover {
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.05);
}

.tab-btn.active {
    color: var(--accent-blue);
    border-bottom: 2px solid var(--accent-blue);
    margin-bottom: -1px;
    background: var(--bg-card);
}

.tab-content {
    display: none;
    padding: 24px;
}

.tab-content.active {
    display: block;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h2 i {
    color: var(--accent-blue);
}

.feature-list, .pros-list, .cons-list, .tips-list {
    list-style: none;
}

.feature-list li, .pros-list li, .cons-list li, .tips-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
}

.feature-list li i {
    color: #10b981;
    margin-top: 3px;
}

.pros-list li i {
    color: #10b981;
    margin-top: 3px;
}

.cons-list li i {
    color: #ef4444;
    margin-top: 3px;
}

.tips-list li i {
    color: #f59e0b;
    margin-top: 3px;
}

.best-for {
    background: rgba(37, 99, 235, 0.05);
    border-left: 3px solid var(--accent-blue);
    padding: 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-label {
    width: 80px;
    font-size: 14px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: var(--accent-gradient-soft);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.rating-score {
    width: 40px;
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
}

.pricing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.pricing-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.pricing-tier {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pricing-note {
    font-size: 13px;
    color: var(--text-muted);
}

.tutorial-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.tutorial-content p {
    margin-bottom: 12px;
}

/* FAQ区域 */
.faq-section {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

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

.faq-question {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.faq-answer {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 相关工具 */
.related-tools-section {
    margin-bottom: 24px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* 子分类筛选标签 */
.sub-tag {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.sub-tag:hover {
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--accent-blue);
}

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

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========== 详情页（参考 chatgpt.html 布局） ========== */
.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 20px;
}

.tool-brief {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.crumb {
    margin: 0 0 16px;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 700;
}

.tool-identity {
    display: flex;
    gap: 18px;
    align-items: center;
}

.tool-identity img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.tool-identity-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    flex-shrink: 0;
}

.tool-identity h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

.tool-identity > div > span {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 14px;
}

.lead {
    max-width: 780px;
    margin: 20px 0 0;
    color: #38445a;
    font-size: 17px;
    line-height: 1.9;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.detail-tags .tag {
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.detail-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.detail-actions .primary {
    background: var(--accent-gradient-soft);
    color: #fff;
}

.detail-actions .primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.detail-actions .secondary {
    background: #edf4ff;
    color: var(--accent-blue);
}

.detail-actions .secondary:hover {
    background: #dbeafe;
}

/* 右侧指标面板 */
.detail-aside {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 0;
}

.metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.metric:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.metric:first-child {
    padding-top: 0;
}

.metric span {
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
}

.metric strong {
    text-align: right;
    font-size: 14px;
    color: var(--text-primary);
}

/* 内容双栏布局 */
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
}

.content-stack {
    display: grid;
    gap: 16px;
}

.content-block {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.content-block h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.content-block p,
.content-block li {
    color: #455167;
    line-height: 1.85;
}

.content-block p {
    margin: 0;
}

/* 功能网格 & 场景网格 */
.feature-grid,
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mini-card {
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    transition: all 0.3s;
}

.mini-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow-sm);
}

.mini-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--text-primary);
}

.mini-card span {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* 优缺点 */
.pros-cons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pros-cons h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.pros-cons ul {
    margin: 0;
    padding-left: 20px;
}

.pros-cons li {
    padding: 4px 0;
    font-size: 14px;
}

/* 右侧粘性面板 */
.sticky-panel {
    position: sticky;
    top: 18px;
    align-self: start;
    display: grid;
    gap: 16px;
}

.related-panel,
.faq-panel {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 12px;
}

.related-panel h2,
.faq-panel h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.related-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    background: var(--bg-primary);
}

.related-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow-sm);
}

.related-card img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.related-card-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.related-card strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.related-card > span > span {
    color: var(--text-muted);
    font-size: 12px;
}

.faq-item {
    padding: 0;
    border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    padding-top: 14px;
}

.faq-item:first-child h3 {
    padding-top: 0;
}

.faq-item p {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item:last-child p {
    margin-bottom: 0;
}

/* ========== 响应式 - 手机端 ========== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

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

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .footer {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .content-wrapper {
        padding: 16px;
    }

    /* Hero */
    .hero-section {
        padding: 28px 20px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-value {
        font-size: 20px;
    }

    .hero-stat-label {
        font-size: 12px;
    }

    /* 统计卡片 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }

    .stat-card {
        padding: 14px;
        gap: 12px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .stat-value {
        font-size: 16px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* 热门分类 - 手机端4列两行 */
    .category-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        margin-bottom: 20px;
    }

    .category-card-mini {
        flex: 0 0 calc(25% - 12px);
        max-width: none;
    }

    .category-card-mini .category-card-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .category-card-mini .category-card-name {
        font-size: 11px;
    }

    /* 分类网格 */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 16px 10px;
    }

    .category-card-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .category-card-name {
        font-size: 13px;
    }

    .category-card-count {
        font-size: 11px;
    }

    /* 子分类标签 */
    .sub-tag {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* 工具卡片 */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tool-card {
        padding: 14px;
        gap: 10px;
    }

    .tool-card-link {
        gap: 12px;
    }

    .tool-card-actions {
        gap: 8px;
        padding-top: 10px;
    }

    .tool-card-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .tool-card-logo {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .tool-card-body {
        min-width: 0;
        overflow: hidden;
    }

    .tool-card-name {
        font-size: 15px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tool-card-desc {
        font-size: 12px;
    }

    /* 区块标题 */
    .section-header {
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 17px;
    }

    /* 热门榜单 */
    .ranking-item {
        padding: 12px 14px;
        gap: 12px;
    }

    .ranking-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .ranking-logo {
        width: 36px;
        height: 36px;
    }

    .ranking-name {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ranking-desc {
        font-size: 11px;
    }

    .ranking-stats {
        display: none;
    }

    /* 分类页 */
    .category-hero h1 {
        font-size: 22px;
    }

    .category-hero p {
        font-size: 14px;
    }

    /* 详情页 Hero */
    .detail-hero,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .tool-brief {
        padding: 20px;
    }

    .tool-identity {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tool-identity img,
    .tool-identity-icon {
        width: 56px;
        height: 56px;
    }

    .tool-identity h1 {
        font-size: 24px;
    }

    .lead {
        font-size: 15px;
        margin-top: 16px;
    }

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

    .detail-actions {
        flex-direction: column;
    }

    .detail-actions a {
        width: 100%;
        text-align: center;
    }

    .detail-aside {
        padding: 16px;
    }

    .metric {
        padding: 10px 0;
    }

    /* 内容块 */
    .content-block {
        padding: 18px;
    }

    .content-block h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .feature-grid,
    .scenario-grid,
    .pros-cons {
        grid-template-columns: 1fr;
    }

    .mini-card {
        padding: 12px;
    }

    .mini-card strong {
        font-size: 14px;
    }

    /* 粘性面板 */
    .sticky-panel {
        position: static;
    }

    .related-panel,
    .faq-panel {
        padding: 16px;
    }

    .related-card {
        padding: 10px;
        gap: 10px;
    }

    .faq-item h3 {
        font-size: 14px;
    }

    .faq-item p {
        font-size: 12px;
    }

    /* 标签页 */
    .tab-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* 页脚 */
    .footer-content {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 20px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
    }

    /* 热门分类 - 小屏4列紧凑 */
    .category-row {
        gap: 12px;
    }

    .category-card-mini {
        flex: 0 0 calc(25% - 9px);
    }

    .category-card-mini .category-card-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .category-card-mini .category-card-name {
        font-size: 10px;
    }

    .content-wrapper {
        padding: 12px;
    }

    .tool-card-logo {
        width: 40px;
        height: 40px;
    }
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient-soft);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    align-items: center;
    justify-content: center;
}

/* 侧边栏遮罩 */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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