/* ============ 实用工具栏目专属样式 ============ */
/* 复用 style.css 中的 .top-bar / .page-header / .filter-section / .search-wrap 等公用样式 */

/* ============ 两列布局：主内容 + 右侧栏 ============ */
.tools-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1100px) {
    .tools-layout {
        grid-template-columns: 1fr;
    }
    .tools-sidebar {
        order: -1;
    }
}

/* ============ 分类筛选（封面页：类型 + 适合人群） ============ */
.tools-cat-nav {
    margin-bottom: 24px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tools-cat-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tools-cat-group + .tools-cat-group {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #f3f4f6;
}

.tools-cat-group-label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 72px;
}

.tools-cat-group-label svg {
    width: 14px;
    height: 14px;
    color: #6366f1;
}

.tools-cat-group .tools-cat-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.tools-cat-nav a {
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    background: #f9fafb;
}

.tools-cat-nav a:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
}

.tools-cat-nav a.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

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

.tools-section-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.tools-section-title h2 svg {
    width: 20px;
    height: 20px;
    color: #6366f1;
}

/* 精选推荐标题字号 */
.tools-section-title.featured-title h2 {
    font-size: 16px;
}

.tools-section-title .more-link {
    font-size: 13px;
    color: #6366f1;
    text-decoration: none;
}

/* ============ 商品卡片网格（列表页） ============ */
.tools-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

@media (max-width: 768px) {
    .tools-card-grid {
        grid-template-columns: 1fr;
    }
}

/* 商品卡片 */
.tool-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

/* 卡片图片区 */
.tool-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
    overflow: hidden;
}

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

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

/* 角标 */
.tool-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

.tool-card-badge.rec {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.tool-card-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
}

.tool-card-badge.free {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

/* 卡片内容区 */
.tool-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.tool-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card-title:hover {
    color: #6366f1;
}

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

/* 标签区 */
.tool-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.tool-tag {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.6;
    text-decoration: none;
}

.tool-tag.cat {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    font-weight: 600;
}

.tool-tag.audience {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    font-weight: 500;
}

.tool-tag.normal {
    background: #f3f4f6;
    color: #6b7280;
}

/* 卡片底部：价格 + 购买 + 元信息 */
.tool-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

.tool-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tool-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.tool-price .symbol {
    font-size: 13px;
    color: #ef4444;
    font-weight: 600;
}

.tool-price .num {
    font-size: 22px;
    color: #ef4444;
    font-weight: 800;
    line-height: 1;
}

/* 咨询价样式（无价格时） */
.tool-price-consult {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #8b5cf6;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border-radius: 999px;
    line-height: 1.4;
    letter-spacing: 1px;
}

.tool-price.free .num {
    font-size: 18px;
    color: #10b981;
}

.tool-price.origin {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 6px;
}

/* 购买按钮 */
.tool-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-buy-btn.taobao {
    background: linear-gradient(135deg, #ff6a00, #ee0a24);
    color: #fff;
}

.tool-buy-btn.taobao:hover {
    box-shadow: 0 4px 12px rgba(238, 10, 36, 0.35);
    transform: translateY(-1px);
}

.tool-buy-btn.contact {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.tool-buy-btn.contact:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.tool-buy-btn.free {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

/* 元信息 */
.tool-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
}

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

.tool-card-meta svg {
    width: 12px;
    height: 12px;
}

/* ============ 精选展示卡片（封面页大图卡片） ============ */
.tools-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

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

@media (max-width: 600px) {
    .tools-featured-grid {
        grid-template-columns: 1fr;
    }
}

.tool-feature-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tool-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.18);
}

.tool-feature-img {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
    overflow: hidden;
}

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

.tool-feature-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.tool-feature-body {
    padding: 16px 18px 18px;
}

.tool-feature-title {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
    text-decoration: none;
    display: block;
}

.tool-feature-title:hover {
    color: #6366f1;
}

.tool-feature-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-feature-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============ 热销排行榜 ============ */
.tools-hot-list {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.tools-hot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #f3f4f6;
    text-decoration: none;
    transition: background 0.2s;
}

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

.tools-hot-item:hover {
    background: rgba(99, 102, 241, 0.03);
    border-radius: 8px;
}

.tools-hot-rank {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    background: #f3f4f6;
    flex-shrink: 0;
}

.tools-hot-rank.top1 {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
}

.tools-hot-rank.top2 {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
}

.tools-hot-rank.top3 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
}

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

.tools-hot-name {
    font-size: 14px;
    color: #1f2937;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tools-hot-item:hover .tools-hot-name {
    color: #6366f1;
}

.tools-hot-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 11px;
    margin-top: 2px;
}

.tools-hot-cat {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    font-weight: 600;
    white-space: nowrap;
}

/* 热销排行关键词标签 */
.tools-hot-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 11px;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    white-space: nowrap;
}

.tools-hot-audience {
    color: #4b5563;
    font-weight: 500;
}

.tools-hot-audience::before {
    content: '👤 ';
}

.tools-hot-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.tools-hot-price {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 15px;
    font-weight: 800;
    color: #ef4444;
}

.tools-hot-price svg {
    width: 13px;
    height: 13px;
}

.tools-hot-price.free {
    color: #10b981;
    font-size: 13px;
}

.tools-hot-consult {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    white-space: nowrap;
    transition: all 0.2s;
}

.tools-hot-consult:hover {
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

/* ============ 右侧栏 ============ */
.tools-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}

.tools-side-section {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.tools-side-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tools-side-title svg {
    width: 16px;
    height: 16px;
    color: #6366f1;
}

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

.tools-side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f9fafb;
    text-decoration: none;
}

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

.tools-side-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

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

.tools-side-name {
    font-size: 13px;
    color: #1f2937;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tools-side-item:hover .tools-side-name {
    color: #6366f1;
}

.tools-side-desc {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.tools-side-price {
    font-size: 14px;
    font-weight: 700;
    color: #ef4444;
    flex-shrink: 0;
}

/* 标签云 */
.tools-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tools-tag-cloud-item {
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.tools-tag-cloud-item {
    background: #f3f4f6;
    color: #6b7280;
}

.tools-tag-cloud-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.tools-tag-cloud-item[data-size="lg"] {
    font-size: 14px;
    font-weight: 600;
}

.tools-tag-cloud-item[data-size="md"] {
    font-size: 13px;
}

/* ============ 详情页 ============ */
.tools-detail {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.tools-detail-header {
    margin-bottom: 24px;
}

.tools-detail-title {
    font-size: 26px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.3;
    margin-bottom: 12px;
}

.tools-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: #6b7280;
}

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

.tools-detail-meta svg {
    width: 14px;
    height: 14px;
}

/* 详情页主体：左图右信息 */
.tools-detail-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    margin-bottom: 28px;
}

@media (max-width: 900px) {
    .tools-detail-main {
        grid-template-columns: 1fr;
    }
}

/* 商品图集 */
.tools-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tools-gallery-main {
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
}

.tools-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tools-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.tools-gallery-thumbs img {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.tools-gallery-thumbs img.active,
.tools-gallery-thumbs img:hover {
    border-color: #6366f1;
}

/* 详情页右侧信息卡 */
.tools-info-card {
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
    border-radius: 14px;
    padding: 22px;
    position: sticky;
    top: 20px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.tools-info-price {
    margin-bottom: 18px;
}

.tools-info-price .label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.tools-info-price .current {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.tools-info-price .current .symbol {
    font-size: 18px;
    color: #ef4444;
    font-weight: 600;
}

.tools-info-price .current .num {
    font-size: 36px;
    color: #ef4444;
    font-weight: 900;
    line-height: 1;
}

.tools-info-price .current.free .num {
    font-size: 28px;
    color: #10b981;
}

.tools-info-price .origin {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 8px;
}

.tools-info-rows {
    margin-bottom: 18px;
}

.tools-info-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(139, 92, 246, 0.15);
    font-size: 13px;
}

.tools-info-row:last-child {
    border-bottom: none;
}

.tools-info-row .k {
    color: #9ca3af;
    width: 70px;
    flex-shrink: 0;
}

.tools-info-row .v {
    color: #374151;
    flex: 1;
}

.tools-buy-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tools-buy-buttons .tool-buy-btn {
    justify-content: center;
    padding: 12px;
    font-size: 15px;
}

/* 详情内容 */
.tools-detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
}

.tools-detail-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 24px 0 12px;
    padding-left: 12px;
    border-left: 4px solid #6366f1;
}

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

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

.tools-detail-content ul,
.tools-detail-content ol {
    padding-left: 24px;
    margin-bottom: 12px;
}

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

.tools-detail-content blockquote {
    background: #f9fafb;
    border-left: 4px solid #6366f1;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
    color: #6b7280;
}

.tools-detail-content pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    font-size: 13px;
}

.tools-detail-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #ef4444;
}

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

.tools-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.tools-detail-content th,
.tools-detail-content td {
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
}

.tools-detail-content th {
    background: #f9fafb;
    font-weight: 600;
}

/* 详情页标签 */
.tools-detail-tags {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============ 微信联系弹窗 ============ */
.tool-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-contact-modal[hidden] {
    display: none;
}

.tool-contact-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.tool-contact-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 340px;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tool-contact-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.tool-contact-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px;
}

.tool-contact-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-contact-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tool-contact-id {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #374151;
}

.tool-contact-id code {
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    color: #6366f1;
}

.tool-contact-copy {
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #6366f1;
    background: #fff;
    color: #6366f1;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-contact-copy:hover {
    background: #6366f1;
    color: #fff;
}

.tool-contact-tip {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* ============ 分页 ============ */
.tools-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
}

.tools-pagination a {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.tools-pagination a:hover {
    color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.tools-pagination a.curpage {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

/* ============ 空状态 ============ */
.tools-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.tools-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ============ 封面页 Hero ============ */
.tools-hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 16px;
    padding: 36px 40px;
    margin-bottom: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.tools-hero::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.tools-hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px;
    position: relative;
}

.tools-hero p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    max-width: 500px;
    line-height: 1.7;
    position: relative;
}

.tools-hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 20px;
    position: relative;
}

.tools-hero-stat .num {
    font-size: 24px;
    font-weight: 800;
}

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

/* ============ 联系购买：双按钮（微信联系 + 授权查询） ============ */
.tools-contact-actions {
    display: flex;
    gap: 10px;
}

.tools-contact-actions .tool-buy-btn {
    flex: 1;
    justify-content: center;
    padding: 9px 12px;
    font-size: 13px;
}

.tool-buy-btn.auth {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
}

.tool-buy-btn.auth:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

/* ============ 广告展示区 ============ */
.tools-ad-section {
    margin-bottom: 24px;
}

.tools-ad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

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

@media (max-width: 560px) {
    .tools-ad-grid {
        grid-template-columns: 1fr;
    }
}

.tools-ad-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
}

.tools-ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.18);
}

.tools-ad-img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.tools-ad-body {
    padding: 12px 14px;
}

.tools-ad-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    margin-bottom: 6px;
}

.tools-ad-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
    line-height: 1.4;
}

.tools-ad-desc {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 标签 chips 容器 */
.tools-ad-tags,
.tool-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

/* 圆角胶囊标签 */
.tools-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.6;
    color: #6366f1;
    background: #eef2ff;
    white-space: nowrap;
}

/* 类型标签（leixing）用不同配色 */
.tools-tag-chip.type {
    color: #059669;
    background: #ecfdf5;
}

/* 精选卡片标签上方留出间距 */
.tool-feature-tags {
    margin-top: 8px;
    margin-bottom: 12px;
}

/* 新品卡片底部 meta 区：浅色横线 + 阅读/评论/分享 */
.tools-ad-foot {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.tools-ad-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1;
}

.tools-ad-meta svg {
    flex-shrink: 0;
}

/* ============ 定制开发接单版块 ============ */
.tools-custom-section {
    background: linear-gradient(135deg, #fff 0%, #faf5ff 100%);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.tools-custom-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.tools-custom-icon svg {
    width: 32px;
    height: 32px;
}

.tools-custom-body {
    flex: 1;
    min-width: 240px;
}

.tools-custom-title {
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 6px;
}

.tools-custom-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.7;
}

.tools-custom-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tools-custom-feature {
    font-size: 12px;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.tools-custom-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.tools-custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.45);
}

/* ============ 定制开发申请弹窗 ============ */
.tool-dev-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-dev-modal[hidden] {
    display: none;
}

.tool-dev-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.tool-dev-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 380px;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tool-dev-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.tool-dev-title {
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 6px;
}

.tool-dev-subtitle {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 18px;
}

.tool-dev-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-dev-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tool-dev-id {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #374151;
}

.tool-dev-id code {
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    color: #6366f1;
}

.tool-dev-copy {
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #6366f1;
    background: #fff;
    color: #6366f1;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-dev-copy:hover {
    background: #6366f1;
    color: #fff;
}

.tool-dev-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.7;
    margin: 10px 0 0;
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    text-align: left;
}
