@charset "utf-8";
/* ===== 单页通用样式：工具箱 / 数据排行 / 运营教程 ===== */

.page-main { background: #f7f7f7; padding: 24px 0 40px; }
.page-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.page-content { flex: 1; min-width: 0; }
.page-side { width: 300px; flex-shrink: 0; }

/* ===== 页头 hero ===== */
.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff0f3 0%, #fff 50%, #f0f7ff 100%);
    border-bottom: 1px solid #f0e0e4;
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 20px 40px;
    text-align: center;
}
.page-hero-title {
    font-size: 34px;
    font-weight: 800;
    color: #333;
    margin-bottom: 12px;
    letter-spacing: 2px;
}
.page-hero-title em {
    font-style: normal;
    background: linear-gradient(90deg, #fe2c55, #e8235e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-hero-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 22px;
}
.page-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.stat-cell .stat-num {
    font-size: 24px;
    font-weight: 800;
    color: #fe2c55;
    line-height: 1.2;
}
.stat-cell .stat-label { font-size: 12px; color: #999; margin-top: 2px; }

/* ===== 筛选条 ===== */
.page-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.search-pill {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #fe2c55;
    border-radius: 40px;
    padding-left: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(254, 44, 85, .08);
}
.search-pill input {
    width: 200px;
    height: 38px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
}
.search-pill input::placeholder { color: #bbb; }
.search-pill button {
    height: 32px;
    margin-right: 3px;
    padding: 0 18px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #fe2c55, #e8235e);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all .3s;
}
.search-pill button:hover { box-shadow: 0 4px 14px rgba(254, 44, 85, .35); }
.tab-pill {
    padding: 7px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #eee;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all .3s;
}
.tab-pill:hover { color: #fe2c55; border-color: rgba(254, 44, 85, .4); }
.tab-pill.active {
    background: #fe2c55;
    border-color: #fe2c55;
    color: #fff;
    box-shadow: 0 4px 14px rgba(254, 44, 85, .25);
}

/* ===== 分组标题 ===== */
.group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 14px;
}
.group-head h2 {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.group-head h2 i { color: #fe2c55; }
.group-head .group-line { flex: 1; height: 1px; background: #eee; }
.group-head .group-count { font-size: 12px; color: #aaa; }
.tool-group { margin-bottom: 26px; }

/* 卡片扩展 */
.tool-card.is-soon { cursor: default; opacity: .78; }
.tool-card.is-soon:hover { opacity: 1; }
.tool-card-badge {
    position: absolute;
    top: 8px; right: 8px;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: #fe2c55;
}
.tool-card-badge.soon { background: #c3c3c3; }
.no-result {
    display: none;
    padding: 40px 0;
    text-align: center;
    color: #aaa;
    font-size: 14px;
    background: #fff;
    border: 1px dashed #eee;
    border-radius: 12px;
}

/* ===== 数据排行 ===== */
.rank-panel { display: none; }
.rank-panel.active { display: block; }
.rank-table-wrap {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th {
    background: #fafafa;
    font-size: 13px;
    color: #888;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #f2f2f2;
    white-space: nowrap;
}
.rank-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f7f7f7;
    font-size: 13px;
    color: #555;
    vertical-align: middle;
}
.rank-table tbody tr:last-child td { border-bottom: none; }
.rank-table tbody tr:hover { background: #fff6f7; }
.rank-no {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #ccc;
}
.rank-no.top1 { background: #fe2c55; }
.rank-no.top2 { background: #ff6b81; }
.rank-no.top3 { background: #ffa502; }
.rank-video { display: flex; align-items: center; gap: 10px; }
.cover-pill {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    flex-shrink: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rank-video-title {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.rank-video-meta { font-size: 11px; color: #aaa; margin-top: 3px; }
.trend-up { color: #fe2c55; }
.trend-down { color: #2f9e44; }
.trend-flat { color: #bbb; }
.rank-tags-pill {
    display: inline-block;
    padding: 1px 8px;
    margin-right: 4px;
    background: #fff0f3;
    color: #fe2c55;
    border-radius: 4px;
    font-size: 11px;
}
.bar-wrap {
    width: 90px;
    height: 6px;
    background: #f2f2f2;
    border-radius: 6px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}
.bar-inner {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #fe2c55, #ff9a9e);
}
.rank-update-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #999;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #eee;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

/* ===== 侧栏小卡 ===== */
.side-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
}
.side-card-head {
    padding: 11px 14px;
    border-bottom: 1px solid #f5f5f5;
    background: #fafafa;
}
.side-card-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}
.side-card-head h3 i { color: #fe2c55; font-size: 13px; }
.side-card-body { padding: 12px 14px; }
.side-card-body p { color: #666; font-size: 13px; line-height: 1.7; margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px 16px;
    border-left: 3px solid #fe2c55;
}
.stat-box .num { font-size: 22px; font-weight: 800; color: #333; }
.stat-box .num small { font-size: 12px; font-weight: 400; color: #999; margin-left: 2px; }
.stat-box .label { font-size: 12px; color: #999; margin-top: 2px; }

/* 步骤列表 */
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed #f2f2f2;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}
.step-list li:last-child { border-bottom: none; }
.step-no {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff0f3;
    color: #fe2c55;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* ===== 运营教程 ===== */
.path-timeline {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 26px;
}
.path-timeline .tl-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.tl-item { position: relative; padding: 12px 14px 12px 16px; border-left: 3px solid #ffe1e7; }
.tl-item:last-child { border-left-color: #fe2c55; }
.tl-item .tl-dot {
    position: absolute;
    left: -8px;
    top: 14px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fe2c55;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #ffe1e7;
}
.tl-item .tl-step { font-size: 11px; color: #fe2c55; font-weight: 700; letter-spacing: 1px; }
.tl-item h4 { font-size: 15px; color: #333; margin: 4px 0 6px; font-weight: 700; }
.tl-item p { font-size: 12px; color: #999; line-height: 1.6; margin: 0; }

.tut-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.tut-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    gap: 14px;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}
.tut-card:hover {
    border-color: rgba(254, 44, 85, .3);
    box-shadow: 0 6px 20px rgba(254, 44, 85, .08);
    transform: translateY(-2px);
}
.tut-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tut-body { flex: 1; min-width: 0; }
.tut-body h3 { font-size: 15px; font-weight: 700; color: #333; margin: 0 0 6px; }
.tut-body p {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    margin: 0 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.tut-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tut-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    background: #f5f5f5;
    color: #888;
}
.tut-tag.lv1 { background: #e8f7ee; color: #2f9e44; }
.tut-tag.lv2 { background: #fff4e5; color: #f08c00; }
.tut-tag.lv3 { background: #fff0f3; color: #fe2c55; }
.tut-tag.time { background: #f2f7ff; color: #4c6ef5; }
.tut-level {
    position: absolute;
    top: 0; right: 0;
    padding: 3px 10px;
    font-size: 11px;
    color: #fff;
    background: #fe2c55;
    border-radius: 0 12px 0 10px;
}

/* FAQ */
.faq-list { background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; }
.faq-item { border-bottom: 1px solid #f5f5f5; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
    padding: 14px 18px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .2s;
    font-weight: 600;
}
.faq-q:hover { background: #fff6f7; }
.faq-q i.fa { color: #fe2c55; font-size: 13px; }
.faq-q .arrow { margin-left: auto; color: #bbb; transition: transform .3s; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
    display: none;
    padding: 0 18px 16px 40px;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}
.faq-item.open .faq-a { display: block; }

/* 通用：空态按钮 */
.btn-soon {
    display: inline-block;
    margin-top: 4px;
    padding: 6px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fe2c55, #e8235e);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}
.btn-soon:hover { color: #fff; opacity: .9; }

/* ===== 响应式 ===== */
@media (max-width: 1000px) {
    .page-layout { flex-direction: column; }
    .page-side { width: 100%; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .tut-grid { grid-template-columns: 1fr; }
    .path-timeline .tl-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .page-hero-title { font-size: 26px; }
    .page-hero-desc { font-size: 14px; }
    .page-hero-stats { gap: 24px; }
    .search-pill { width: 100%; }
    .search-pill input { flex: 1; width: auto; }
    .rank-table th:nth-child(4),
    .rank-table td:nth-child(4),
    .rank-table th:nth-child(5),
    .rank-table td:nth-child(5) { display: none; }
    .stat-grid { grid-template-columns: 1fr; }
    .path-timeline .tl-row { grid-template-columns: 1fr; }
    .rank-video-title { max-width: 160px; }
}
