/* AI工具导航站 - 共享样式 */

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* 头部导航 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #555;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.menu-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    font-size: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.back-home:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.sidebar-nav {
    padding: 20px;
}

.sidebar-nav-item {
    display: block;
    padding: 14px 16px;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 4px;
    transition: all 0.3s;
    font-weight: 500;
}

.sidebar-nav-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

.sidebar-nav-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* 主要内容区 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* 首页核心引导区 */
.home-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 38px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -1.2px;
    margin-bottom: 12px;
}

.hero-title span {
    color: #fff7b8;
}

.hero-desc {
    max-width: 620px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 14px 0 16px;
}

.hero-primary-link,
.hero-secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 13px;
    transition: all 0.25s;
}

.hero-primary-link {
    color: #5b5fe8;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.15);
}

.hero-secondary-link {
    color: white;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-primary-link:hover,
.hero-secondary-link:hover {
    transform: translateY(-1px);
}

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

.hero-stat {
    min-width: 108px;
    padding: 10px 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stat strong {
    display: block;
    font-size: 17px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.hero-stat span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(248,250,255,0.98) 100%);
    color: #222;
    border-radius: 22px;
    padding: 20px;
    border: 1px solid rgba(102, 126, 234, 0.12);
    box-shadow: 0 16px 50px rgba(55, 65, 120, 0.1);
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 8% 0%, rgba(102,126,234,0.12), transparent 30%),
        radial-gradient(circle at 92% 16%, rgba(240,147,251,0.14), transparent 26%);
    pointer-events: none;
}

.hero-panel-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.panel-kicker {
    display: block;
    font-size: 12px;
    color: #764ba2;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: 0.04em;
}

.hero-panel-header h2 {
    font-size: 22px;
    line-height: 1.25;
    margin: 0;
    color: #1f2937;
}

.hero-panel-header a {
    color: #667eea;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.08);
}

.hero-category-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.hero-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 92px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 18px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    transition: all 0.25s;
}

.hero-category-card:hover {
    transform: translateY(-3px);
    background: white;
    border-color: rgba(102, 126, 234, 0.22);
    box-shadow: 0 12px 26px rgba(102, 126, 234, 0.14);
}

.hero-category-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 10px 22px rgba(102, 126, 234, 0.16);
}

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

.hero-tool-list {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    display: grid;
    grid-template-columns: auto repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 10px;
}

.hero-tool-title {
    font-size: 13px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-tool-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    min-width: 0;
}

.hero-tool-item:hover {
    background: white;
}

.hero-tool-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-tool-item span:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.hero-tool-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.hero-tool-item small {
    display: block;
    margin-top: 3px;
    color: #888;
    font-size: 12px;
}

.hero-tool-item > i {
    color: #b0b5c4;
    font-size: 12px;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    color: #999;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

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

/* 分类英雄区 */
.category-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px;
    color: white;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    transform: rotate(15deg);
}

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

.category-hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-hero-desc {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 600px;
}

.category-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
}

/* 子分类标签 */
.sub-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.sub-tag {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    font-family: inherit;
    color: #666;
}

.sub-tag:hover {
    border-color: #667eea;
    color: #667eea;
}

.sub-tag.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

.tool-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    min-height: 176px;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    color: white;
}

.tool-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tool-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 136px;
}

.tool-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 10px;
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    color: #667eea;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 8px;
}

.tool-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    flex-wrap: wrap;
}

.tool-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

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

.detail-btn {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.12);
}

.detail-btn:hover {
    background: rgba(102, 126, 234, 0.14);
    transform: translateY(-1px);
}

.official-btn {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.24);
}

.official-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(102, 126, 234, 0.34);
}

/* 相关分类 */
.related-categories {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #eee;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #667eea;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.04);
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.related-card i {
    font-size: 20px;
    color: #667eea;
}

/* ===== 详情页样式 ===== */

.tool-detail-hero {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.04);
}

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

.tool-detail-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.detail-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
}

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

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

.tool-detail-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}

.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: #ffc107;
}

.rating-value {
    font-weight: 600;
    color: #333;
}

.meta-users, .meta-price {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
}

.btn-secondary:hover {
    background: #e8e8e8;
    color: #333;
}

/* 标签页 */
.detail-tabs {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.04);
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.tab-btn {
    padding: 16px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    font-family: inherit;
}

.tab-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

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

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

/* 详情区块 */
.detail-section {
    margin-bottom: 32px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section h2 i {
    color: #667eea;
}

.feature-list, .pros-list, .cons-list, .tips-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.feature-list li, .pros-list li, .cons-list li, .tips-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 14px;
}

.feature-list li i {
    color: #667eea;
}

.pros-list li i {
    color: #10b981;
}

.cons-list li i {
    color: #ef4444;
}

.tips-list li i {
    color: #f59e0b;
}

.best-for {
    padding: 16px;
    background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
    border-radius: 10px;
    border-left: 4px solid #667eea;
    color: #555;
}

/* 评分细分 */
.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.rating-label {
    width: 100px;
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
}

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

.rating-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.rating-score {
    width: 40px;
    text-align: right;
    font-weight: 600;
    color: #667eea;
}

/* 价格卡片 */
.pricing-info {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.pricing-card {
    background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
    border: 2px solid rgba(102,126,234,0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    min-width: 200px;
}

.pricing-tier {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.pricing-note {
    font-size: 13px;
    color: #888;
}

/* 教程内容 */
.tutorial-content {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    line-height: 1.8;
}

.tutorial-content p {
    color: #555;
}

/* FAQ */
.faq-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.04);
}

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

.faq-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 相关工具 */
.related-tools-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(0,0,0,0.04);
}

/* 页脚 */
.footer {
    background: white;
    border-top: 1px solid #eee;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    text-align: center;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.footer-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-link-group {
    text-align: center;
}

.footer-link-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-link {
    display: block;
    color: #888;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 13px;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

/* 响应式 */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        background: #f6f7fb;
    }

    .header-content {
        height: auto;
        min-height: 64px;
        padding: 10px 14px;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .menu-btn {
        font-size: 22px;
        padding: 8px;
    }

    .logo {
        gap: 8px;
    }

    .logo-icon {
        font-size: 26px;
    }

    .logo-text {
        font-size: 18px;
        line-height: 1.1;
    }

    .logo-subtitle {
        display: none;
    }

    .header-content > div:first-child {
        flex: 1;
        min-width: 0;
    }

    .header-content > div:last-child {
        width: 100%;
        gap: 8px !important;
    }

    .header-search {
        flex: 1;
        min-width: 0;
    }

    .header-search input {
        width: 100% !important;
        height: 42px;
        font-size: 14px !important;
        border-radius: 12px !important;
    }

    .back-home {
        padding: 9px 12px;
        white-space: nowrap;
        border-radius: 12px;
        background: rgba(102, 126, 234, 0.08);
    }

    .main-content {
        padding: 16px 12px;
    }

    .sidebar {
        width: 86vw;
        max-width: 320px;
        left: -90vw;
    }

    .sidebar-header {
        padding: 16px;
    }

    .sidebar-nav {
        padding: 14px;
    }

    .sidebar-nav-item {
        padding: 13px 14px;
        font-size: 15px;
    }

    .home-hero {
        padding: 0;
        border-radius: 18px;
        margin-bottom: 24px;
    }

    .home-hero-content {
        display: block;
    }

    .hero-badge {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 25px;
        letter-spacing: -0.6px;
        margin-bottom: 10px;
    }

    .hero-desc {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .hero-actions {
        margin: 12px 0 10px;
        gap: 8px;
    }

    .hero-primary-link,
    .hero-secondary-link {
        flex: 1;
        justify-content: center;
        min-width: 138px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .hero-stats {
        display: none;
        gap: 8px;
    }

    .hero-stat {
        min-width: 0;
        padding: 12px 10px;
        text-align: center;
    }

    .hero-stat strong {
        font-size: 16px;
    }

    .hero-panel {
        padding: 14px;
        border-radius: 18px;
    }

    .hero-panel-header {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
    }

    .hero-panel-header h2 {
        font-size: 17px;
    }

    .hero-panel-header a {
        padding: 7px 10px;
        font-size: 12px;
    }

    .hero-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hero-category-card {
        min-height: 82px;
        padding: 10px 8px;
        font-size: 12px;
        border-radius: 16px;
    }

    .hero-category-icon {
        width: 36px;
        height: 36px;
        border-radius: 13px;
    }

    .hero-tool-list {
        display: none;
    }

    .section {
        margin-bottom: 34px !important;
    }

    .section > div[style*="justify-content:space-between"] {
        align-items: flex-start !important;
        gap: 10px;
        flex-direction: column;
    }

    .section-title {
        font-size: 19px;
        line-height: 1.35;
        margin-bottom: 16px;
    }

    .category-hero {
        padding: 26px 20px;
        border-radius: 18px;
        margin-bottom: 22px;
    }

    .category-hero-title {
        font-size: 24px;
        align-items: flex-start;
        line-height: 1.25;
    }

    .category-hero-desc {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .category-stats {
        gap: 10px;
        flex-wrap: wrap;
    }

    .stat-item {
        padding: 7px 12px;
        font-size: 13px;
    }

    .sub-tags {
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .sub-tag {
        flex: 0 0 auto;
        padding: 9px 15px;
        font-size: 13px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-category-tools-grid .tool-card:nth-child(n+7) {
        display: none;
    }

    .tool-card {
        padding: 16px;
        gap: 13px;
        border-radius: 16px;
        min-height: auto;
    }

    .tool-icon {
        width: 50px;
        height: 50px;
        border-radius: 13px;
        font-size: 21px;
    }

    .tool-info {
        min-height: auto;
    }

    .tool-name {
        font-size: 15px;
        white-space: normal;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .tool-desc {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }

    .tool-card-actions {
        width: 100%;
        gap: 8px;
        padding-top: 12px;
    }

    .tool-card-btn {
        flex: 1;
        min-width: 112px;
        min-height: 38px;
        padding: 9px 10px;
        font-size: 12px;
    }

    .tool-detail-hero,
    .detail-tabs,
    .faq-section,
    .related-tools-section {
        border-radius: 18px;
    }

    .tool-detail-hero {
        padding: 22px 18px;
    }

    .tool-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .tool-detail-logo {
        width: 72px;
        height: 72px;
        border-radius: 18px;
        font-size: 32px;
    }

    .tool-detail-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .tool-detail-desc {
        font-size: 14px;
    }

    .tool-detail-meta {
        justify-content: center;
        gap: 10px 14px;
        margin-bottom: 18px;
    }

    .meta-users, .meta-price {
        font-size: 13px;
    }

    .tool-detail-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .tool-detail-actions .btn-primary,
    .tool-detail-actions .btn-secondary {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        padding: 12px 16px;
    }

    .tab-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tab-buttons::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex: 0 0 auto;
        padding: 14px 16px;
        font-size: 14px;
    }

    .tab-content {
        padding: 22px 16px;
    }

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

    .detail-section h2 {
        font-size: 18px;
        line-height: 1.35;
    }

    .feature-list, .pros-list, .cons-list, .tips-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-list li, .pros-list li, .cons-list li, .tips-list li {
        padding: 12px 13px;
        align-items: flex-start;
    }

    .pricing-info {
        flex-direction: column;
    }

    .pricing-card {
        width: 100%;
        min-width: 0;
        padding: 20px;
    }

    .rating-item {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .rating-label {
        width: auto;
        flex: 1 1 100%;
    }

    .rating-bar {
        flex: 1 1 calc(100% - 48px);
    }

    .tutorial-content {
        padding: 16px;
        font-size: 14px;
        word-break: break-word;
    }

    .faq-section,
    .related-tools-section {
        padding: 22px 16px;
    }

    .faq-item {
        padding: 16px;
    }

    .faq-question {
        font-size: 15px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .related-card {
        padding: 14px 16px;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }

    .footer {
        margin-top: 36px;
        padding: 32px 16px 18px;
    }

    .footer-desc {
        font-size: 14px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        right: 16px;
        bottom: 18px;
        font-size: 18px;
    }
}

@media (max-width: 420px) {
    .header-content {
        padding: 9px 12px;
    }

    .logo-text {
        font-size: 17px;
    }

    .back-home span {
        display: none;
    }

    .back-home {
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
    }

    .home-hero {
        padding: 16px 12px;
    }

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

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

    .hero-primary-link,
    .hero-secondary-link {
        width: 100%;
    }

    .hero-category-grid {
        grid-template-columns: 1fr;
    }

    .tool-card {
        padding: 14px;
    }

    .tool-card-actions {
        flex-direction: column;
    }

    .tool-card-btn {
        width: 100%;
    }

    .tool-detail-title {
        font-size: 22px;
    }
}

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

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

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}
