/* 首页：门户式布局
   ① 首屏 banner + 右侧自营/工具  ② 免责声明条  ③ 推荐商品条  ④ 收录平台密排网格
   目标是一屏尽量多给信息，所以网格用小格子、行高压紧。 */

/* 宽度不单独写死，跟随 .home-container 的 1440px，
   这样首页正文和顶栏、广告条永远对齐 */
.hp { padding: 18px 28px 56px; }

/* 作者样式里的 display 会盖掉浏览器默认的 [hidden]{display:none}，
   分类筛选靠 hidden 属性控制显隐，这里必须显式兜底 */
.hp [hidden] { display: none !important; }

/* ---------- ① 首屏 ---------- */
.hp-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
    align-items: stretch;
}

.hp-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    min-height: 316px;
}
.hp-slide { display: none; height: 100%; }
.hp-slide.is-on { display: block; }
.hp-slide img { width: 100%; height: 316px; object-fit: cover; display: block; }

.hp-dots {
    position: absolute;
    left: 0; right: 0; bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.hp-dots span {
    width: 16px; height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
}
.hp-dots span.is-on { background: #fff; }

/* 右侧栏 */
.hp-side { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; min-width: 0; }
.hp-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    min-width: 0;
}
.hp-panel-hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}
.hp-panel-hd h2 { font-size: 16px; font-weight: 650; }
.hp-panel-hd span { font-size: 12px; color: #fff; background: var(--accent); padding: 2px 6px; border-radius: 3px; }
.hp-panel-empty { padding: 26px 4px; font-size: 13.5px; line-height: 1.8; color: var(--text-muted); }

.hp-mine-list { list-style: none; margin: 0; padding: 0; }
.hp-mine-list a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 6px;
    margin: 0 -6px;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border-light);
}
.hp-mine-list li:last-child a { border-bottom: 0; }
.hp-mine-list a:hover { background: var(--primary-light); }
.hp-mine-list img {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    object-fit: cover;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
}
.hp-mine-txt { min-width: 0; }
.hp-mine-txt strong {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hp-mine-txt strong em {
    font-style: normal;
    margin-left: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--accent);
    background: #fbeade;
    padding: 1px 4px;
    border-radius: 2px;
}
.hp-mine-txt small {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hp-mine-price { text-align: right; white-space: nowrap; }
.hp-mine-price b { display: block; font-size: 15px; font-weight: 700; color: var(--price); }
.hp-mine-price s { font-size: 12px; color: var(--text-muted); }

.hp-tool {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--primary-light);
    border-color: var(--primary-soft);
}
.hp-tool-hd strong { display: block; font-size: 15px; font-weight: 650; color: var(--primary); }
.hp-tool-hd span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-secondary); }
.hp-tool-form { display: flex; gap: 7px; margin-top: 11px; }
.hp-tool-form input {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-size: 13.5px;
    outline: 0;
}
.hp-tool-form input:focus { border-color: var(--primary); }
.hp-tool-form button {
    height: 34px;
    padding: 0 15px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.hp-tool-form button:hover { background: var(--primary-hover); }
.hp-tool-links { display: flex; gap: 16px; margin-top: 11px; font-size: 13px; }
.hp-tool-links a { color: var(--text-secondary); }
.hp-tool-links a:hover { color: var(--primary); }

/* ---------- ② 免责声明条 ---------- */
.hp-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 0 16px;
    height: 46px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.hp-notice:hover { border-color: var(--primary); }
.hp-notice-tag {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    padding-right: 14px;
    border-right: 1px solid var(--border);
}
.hp-notice-txt {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hp-notice-more { flex-shrink: 0; font-size: 13px; color: var(--text-muted); }

/* ---------- ④ 收录平台网格 ---------- */
.hp-sec-hd {
    display: flex;
    flex-wrap: wrap;
}
.hp-sec-hd h2 {
    line-height: 1.3;
}
.hp-sec-more { margin-left: auto; }

.hp-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 14px;
}
.hp-cell {
    display: grid;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.hp-cell:hover { transform: translateY(-2px); border-color: var(--primary-soft); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.hp-cell-ico {
    border: 1px solid var(--border);
    object-fit: contain;
    background: var(--bg-card);
    display: grid;
    place-items: center;
}
.hp-cell-txt { min-width: 0; }
.hp-cell-txt strong {
    display: block;
    font-weight: 600;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hp-cell-txt small {
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp a:focus-visible, .hp button:focus-visible, .hp input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 1180px) {
    .hp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hp-top { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 980px) {
    .hp-top { grid-template-columns: minmax(0, 1fr); }
    .hp-side { grid-template-rows: auto auto; }
        .hp-hero { min-height: 240px; }
    .hp-slide img { height: 240px; }
    .hp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .hp { padding: 14px 16px 44px; }
        .hp-hero { min-height: 180px; }
    .hp-slide img { height: 180px; }

        .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .hp-notice { height: auto; padding: 11px 13px; gap: 10px; }
    .hp-notice-txt { white-space: normal; font-size: 13.5px; line-height: 1.7; }
    .hp-notice-more { display: none; }

    .hp-tool-form input { font-size: 17px; }
}

/* ---------- ⑤ 精选副业 ---------- */
.hp-sh { margin-top: 26px; }

.hp-sh-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.hp-sh-card {
    display: flex;
    flex-direction: column;
    padding: 16px 17px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.hp-sh-card:hover { border-color: var(--primary); background: #f8fafe; }
.hp-sh-badge {
    align-self: flex-start;
    padding: 2px 7px;
    border-radius: 3px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
}
.hp-sh-card h3 {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.65;
    color: #26292e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-sh-card:hover h3 { color: var(--primary); }
.hp-sh-card p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.85;
    color: #4f535c;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-sh-foot {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 13px;
    font-size: 12.5px;
    color: var(--text-muted);
}
.hp-sh-foot img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.hp-sh-author {
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hp-sh-foot time { margin-left: auto; flex-shrink: 0; font-variant-numeric: tabular-nums; }

@media (max-width: 980px) {
    .hp-sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .hp-sh-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    .hp-sh-card { padding: 13px 14px 12px; }
}

/* 卡片：头像 + 标题一行，简介单独一行；.hp-cell-txt 用 contents 拆开，两段文字直接参与网格 */
.hp-grid { gap: 16px; }
.hp-cell {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas: "ico name" "desc desc";
    gap: 12px;
    padding: 16px 18px;
    border-color: var(--border-light);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.hp-cell-ico { grid-area: ico; width: 44px; height: 44px; border-radius: 50%; }
.hp-cell-txt { display: contents; }
.hp-cell-txt strong { grid-area: name; font-size: 16px; font-weight: 700; }
.hp-cell-txt small { grid-area: desc; display: block; white-space: nowrap; font-size: 13.5px; font-weight: 400; color: var(--text-secondary); }
@media (max-width: 700px) {
    .hp-grid { gap: 10px; }
    .hp-cell { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; padding: 12px 13px; border-radius: 14px; }
    .hp-cell-ico { width: 34px; height: 34px; }
    .hp-cell-txt strong { font-size: 14.5px; }
    .hp-cell-txt small { font-size: 12.5px; }
}

.hp-cat-more { display: flex; justify-content: flex-end; margin-top: 18px; }
.hp-cat-more a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 20px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    transition: background .2s;
}
.hp-cat-more a i { font-size: 13px; transition: transform .2s; }
.hp-cat-more a:hover { background: var(--primary-soft); }
.hp-cat-more a:hover i { transform: translateX(3px); }
@media (max-width: 700px) {
    .hp-cat-more { margin-top: 12px; }
    .hp-cat-more a { height: 38px; padding: 0 16px; font-size: 14px; }
}

/* 展示内容与文章阅读预览 */
.hp-sh-empty { padding: 30px; margin-top: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; color: var(--text-secondary); }
.hp-demo-dialog { position: relative; margin: auto; width: min(560px, calc(100% - 32px)); max-height: 85vh; overflow: auto; padding: 26px 28px 24px; border: 1px solid var(--border); border-radius: 16px; color: var(--text-primary); box-shadow: 0 20px 80px #0f172a33; }
.hp-demo-dialog::backdrop { background: #2b2e3466; }
.hp-demo-dialog h2 { font-size: 21px; line-height: 1.5; margin: 0 0 16px; }
.hp-demo-dialog p { font-size: 16px; line-height: 1.9; }
.hp-demo-dialog small { display: block; margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--border); font-size: 13.5px; line-height: 1.8; color: var(--text-secondary); }
/* 关闭按钮从浮动改成绝对定位：float 会挤在标题那一行的行盒里，
   把「居中」的标题顶得偏左，看着就是歪的 */
.hp-demo-close { position: absolute; top: 18px; right: 18px; z-index: 1; border: 1px solid var(--border); background: #fff; color: var(--text-secondary); padding: 5px 12px; border-radius: 6px; font: inherit; font-size: 14px; line-height: 1.5; cursor: pointer; }
.hp-demo-close:hover { border-color: var(--primary); color: var(--primary); }

/* 二维码类弹窗：整体居中，标题两侧留出关闭按钮的宽度，保证视觉上真的居中 */
.hp-qr-dialog,
.hp-trial-dialog { text-align: center; }
.hp-qr-dialog h2,
.hp-trial-dialog h2 { padding: 0 58px; }
.hp-qr-dialog p,
.hp-trial-dialog p { font-size: 15px; color: var(--text-secondary); }
.hp-qr-img,
.hp-trial-dialog img {
    display: block;
    width: 200px;
    height: auto;
    max-width: 100%;
    margin: 16px auto 14px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}
.hp-trial-dialog img { width: 220px; }
.hp-qr-dialog small,
.hp-trial-dialog small { text-align: center; }

.hp-strip-grid {
    display: grid;
}

.hp-strip-txt { min-width: 0; }

/* 六个广告位使用固定装饰图标，与广告标题和内容无关。 */
.hp-strip-ico {
    display: block;
    flex-shrink: 0;
    filter: none;
}

.hp-ad-tag {
    position: absolute;
    font-weight: 600;
    letter-spacing: .5px;
    pointer-events: none;
}
.hp-strip-item strong {
    line-height: 1.5;
    color: #26292e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hp-strip-item:hover strong { color: var(--primary); }
.hp-strip-item small {
    line-height: 1.7;
    color: #4f535c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-strip-item-vacant small { color: var(--text-muted); }

/* 收录平台：每个分类独立成块 */
.hp-cat-sec { margin-top: 24px; }
.hp-cat-sec .hp-grid { margin-top: 14px; }

/* 自适应双页轮播：生图底图 + 实时文字，避免整图缩放裁切文案。 */
.hp-hero { display: grid; isolation: isolate; }
.hp-hero > .hp-slide { grid-area: 1 / 1; display: flex; visibility: hidden; pointer-events: none; min-height: 380px; height: auto; padding-bottom: 58px; }
.hp-hero > .hp-slide.is-on { visibility: visible; pointer-events: auto; }
.hp-supply { align-items: center; padding: 30px 36px 58px; background: linear-gradient(135deg, #f5f8fe 0%, #e0e9fc 100%); }

.hp-supply h1 { line-height: 1.25; letter-spacing: -1px; color: #202226; }
.hp-supply h1 em { margin-right: 9px; font-style: normal; color: var(--primary); }
.hp-supply h2 { margin-top: 10px; font-size: clamp(18px, 1.75vw, 25px); line-height: 1.45; font-weight: 700; color: #30333a; }

.hp-supply-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.hp-supply-actions a,
.hp-discover-actions a,
.hp-discover-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 9px 18px; border: 1px solid #E1E7F0; border-radius: 10px; background: #fff; color: #30333a; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s, filter .15s; }
.hp-supply-actions a:hover,
.hp-discover-actions a:hover,
.hp-discover-actions button:hover { border-color: var(--hero-accent); color: var(--hero-accent); }
.hp-supply-actions .hp-supply-main,
.hp-discover-actions .hp-discover-main { border-color: var(--hero-accent); background: var(--hero-accent); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--hero-accent) 28%, transparent); }
.hp-supply-actions .hp-supply-main:hover,
.hp-discover-actions .hp-discover-main:hover { color: #fff; filter: brightness(1.06); }
.hp-discover { align-items: center; padding: 30px 36px 58px; }

.hp-discover p { max-width: 590px; margin-top: 12px; color: var(--text-secondary); }
.hp-discover p strong { color: #a94816; font-weight: 700; }
.hp-discover-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.hp-carousel-controls { position: absolute; left: 50%; transform: translateX(-50%); z-index: 2; }
.hp-carousel-controls .hp-dots { position: static; display: flex; }
.hp-dots button { display: block; padding: 0; border: 0; cursor: pointer; }

.hp-trial-dialog { text-align: center; }
.hp-trial-dialog > img { display: block; margin: 22px auto 0; max-width: 100%; height: auto; }
@media (max-width: 1180px) and (min-width: 981px) {
    .hp-discover { padding-left: 26px; padding-right: 26px; }
}
@media (max-width: 700px) {
    .hp-hero > .hp-slide { min-height: 430px; }
 .hp-supply { padding: 26px 22px 64px; background-position: 28% center; }

 .hp-supply h2 { font-size: 20px; }

     .hp-supply-actions { gap: 8px; }
 /* 主按钮独占一行，下面两个各分一半，把整行撑满——原来它们只占左半边，右边空一块 */
     .hp-supply-actions a { flex: 1 1 0; min-width: 0; font-size: 13px; white-space: nowrap; }
 .hp-supply-actions .hp-supply-main { flex: 0 0 100%; width: 100%; }
 .hp-discover { padding: 26px 22px 64px; background-position: 25% center; }

 .hp-discover-actions { gap: 8px; margin-top: 18px; }
 /* 第二张轮播同理：主按钮占一行，下面两个各分一半 */
 .hp-discover-actions a, .hp-discover-actions button { flex: 1 1 0; min-width: 0; font-size: 13px; padding: 9px 11px; white-space: nowrap; }
 .hp-discover-actions .hp-discover-main { flex: 0 0 100%; width: 100%; }
}

/* ============================================================
   首页 AI 工具卡片：左分类 / 右工具格，固定高度
============================================================ */
.hp-tools { margin-top: 26px; }
.hp-tools-card {
    display: grid;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}
.hp-tools-tabs {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
}
.hp-tools-tabs::-webkit-scrollbar { display: none; }
.hp-tools-tab {
    display: flex;
    align-items: center;
    flex: none;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: color .15s, background .15s;
}
.hp-tools-tab i { text-align: center; }

.hp-tools-body { min-width: 0; overflow: hidden; }
.hp-tools-panel { display: flex; flex-direction: column; height: 100%; }
.hp-tools-panel[hidden] { display: none; }
.hp-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    flex: 1;
}
.hp-titem {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 12px;
    border: 1px solid var(--border-light);
    transition: border-color .15s, background .15s;
}

.hp-titem img,
.hp-titem-initial {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover;
    background: var(--border-light);
}
.hp-titem-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-style: normal;
    font-weight: 700;
}
.hp-titem span { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.hp-titem strong,
.hp-titem em { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hp-titem strong { color: var(--text-primary); font-size: 15px; font-weight: 600; }
.hp-titem em { color: var(--text-muted); font-size: 13px; font-style: normal; }
.hp-tools-more {
    align-self: flex-end;
    margin-top: 12px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}
.hp-tools-more i { font-size: 12px; }

/* ============================================================
   首页 AI 产品广场
============================================================ */
.hp-square { margin-top: 26px; }
.hp-square-grid {
    display: grid;
    margin-top: 14px;
}
.hp-square-card {
    overflow: hidden;
}

.hp-square-body { padding: 12px 14px 14px; }

.hp-square-body h3 { margin-top: 4px; overflow: hidden; font-size: 16px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.hp-square-body p { margin-top: 2px; overflow: hidden; color: var(--text-muted); font-size: 13.5px; white-space: nowrap; text-overflow: ellipsis; }

@media (max-width: 1100px) {
    .hp-tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    /* 窄屏：分类变成顶部横向滑动条，工具格两列，高度随内容 */
        .hp-tools-card { display: block; }
        .hp-tools-tabs { flex-direction: row; overflow-x: auto; border-bottom: 1px solid var(--border-light); }

        .hp-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-tools-grid .hp-titem:nth-child(n+9) { display: none; }
    .hp-titem { padding: 0 9px; gap: 8px; }
    .hp-titem img, .hp-titem-initial { width: 30px; height: 30px; }
}

/* ============================================================
   首页 AI 官方订阅：三张卡片
============================================================ */
.hp-official { margin-top: 26px; }
.hp-official-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}
.hp-official-card {
    display: flex;
    flex-direction: column;
    padding: 18px 20px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hp-official-card:hover { border-color: var(--primary-soft); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hp-official-hd { display: flex; align-items: center; gap: 12px; }
.hp-official-hd img { flex: none; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border-light); }
.hp-official-hd div { display: flex; flex-direction: column; min-width: 0; }
.hp-official-hd strong { color: var(--text-primary); font-size: 16.5px; font-weight: 700; }
.hp-official-hd span { color: var(--text-muted); font-size: 12.5px; }
.hp-official-plans { list-style: none; margin: 12px 0 0; padding-top: 6px; border-top: 1px dashed var(--border); }
.hp-official-plans li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; }
.hp-official-name { min-width: 0; overflow: hidden; color: var(--text-primary); font-size: 14.5px; white-space: nowrap; text-overflow: ellipsis; }
.hp-official-low { display: flex; align-items: baseline; gap: 8px; margin-left: auto; white-space: nowrap; }
.hp-official-low i { color: var(--text-muted); font-size: 13px; font-style: normal; }
.hp-official-low b { color: var(--text-primary); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hp-official-low small { margin-right: 1px; font-size: 12px; }
.hp-official-more { margin-top: auto; padding-top: 8px; color: var(--primary); font-size: 13px; font-weight: 500; }
.hp-official-more i { font-size: 11px; transition: transform .2s; }
.hp-official-card:hover .hp-official-more i { transform: translateX(3px); }
@media (max-width: 1000px) {
    .hp-official-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   首屏轮播（第 1 张比价 + 折线图，第 2 张 AI 工具 + 轨道动画）
============================================================ */
.hp-supply,
.hp-aitools {
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 36px 40px 56px;
}
/* 三张轮播用同一套视觉：浅色底 + 一个主色（--hero-accent），标签 / 重点词 / 主按钮 / 点缀都跟着主色走。
   原来三张是浅蓝、深蓝、橙色三种明度，来回切换跳得厉害，看着不像一套 */
.hp-supply {
    --hero-accent: #3478E5;
    background:
        radial-gradient(480px 280px at 100% 0%, rgba(52, 120, 229, .14), transparent 70%),
        radial-gradient(420px 240px at 0% 100%, rgba(106, 92, 246, .08), transparent 70%),
        linear-gradient(135deg, #F7FAFF 0%, #EAF1FF 100%);
}
.hp-supply-copy { flex: 1 1 0; min-width: 0; max-width: 440px; width: auto; }
.hp-supply-kicker,
.hp-discover-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    margin-bottom: 14px;
    padding: 0 12px;
    border: 1px solid #E1E7F0;
    border: 1px solid color-mix(in srgb, var(--hero-accent) 18%, transparent);
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    color: var(--hero-accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
}
/* 三张标题同一个字号、行高；重点词用主色，不再额外加右边距（模板里本来就有空格，加了显得断开） */
.hp-supply h1,
.hp-aitools-title,
.hp-discover h2 { font-size: clamp(28px, 2.5vw, 36px); line-height: 1.3; letter-spacing: -.5px; color: #1F2430; }
/* 说明文字让浏览器平衡每行长度，避免最后一行只剩「看。」「用。」一两个字（不支持的浏览器照常换行） */
.hp-supply-sub,
.hp-discover p { text-wrap: pretty; }
.hp-supply h1 em,
.hp-aitools-title em,
.hp-discover h2 em { margin-right: 0; font-style: normal; color: var(--hero-accent); }
.hp-supply-sub { margin-top: 12px; color: var(--text-secondary); font-size: 15px; line-height: 1.75; }
.hp-supply-points { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; list-style: none; }
.hp-supply-points li { display: inline-flex; align-items: center; gap: 6px; color: var(--text-primary); font-size: 13.5px; font-weight: 500; }
.hp-supply-points i { color: var(--hero-accent); font-size: 13px; }
.hp-supply-actions { margin-top: 22px; }


/* 折线图卡片 */
.hp-chart {
    position: relative;
    flex: 0 0 52%;
    min-width: 0;
    padding: 16px 16px 8px;
    border: 1px solid rgba(52, 120, 229, .10);
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 8px 24px rgba(36, 50, 71, .06);
    color: inherit;
}
.hp-chart-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hp-chart-hd strong { color: var(--text-primary); font-size: 15px; font-weight: 700; }
.hp-chart-hd span { color: var(--text-muted); font-size: 12px; }
.hp-chart-legend { display: flex; gap: 14px; margin-top: 8px; color: var(--text-secondary); font-size: 12px; }
.hp-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.hp-chart-legend i, .hp-chart-tip i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; }
.hp-chart-svg { display: block; width: 100%; height: 210px; margin-top: 4px; overflow: visible; }
.hp-chart-grid { stroke: #EDF1F7; stroke-width: 1; }
.hp-chart-axis { fill: var(--text-muted); font-size: 10.5px; font-family: inherit; }
.hp-chart-guide { stroke: #C5CEDB; stroke-dasharray: 3 3; transition: opacity .15s; }
.hp-chart-line { animation: hp-chart-draw 1.4s ease-out forwards; }
.hp-chart-dot { opacity: 0; animation: hp-chart-fade .3s ease-out 1.1s forwards; }
@keyframes hp-chart-draw { to { stroke-dashoffset: 0; } }
@keyframes hp-chart-fade { to { opacity: 1; } }
.hp-chart-tip {
    position: absolute;
    top: 64px;
    min-width: 150px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(36, 50, 71, .94);
    color: #fff;
    font-size: 12px;
    line-height: 1.7;
    transform: translateX(-50%);
    pointer-events: none;
}
.hp-chart-tip b { display: block; margin-bottom: 2px; }
.hp-chart-tip span { display: flex; align-items: center; gap: 6px; }
.hp-chart-tip em { margin-left: auto; padding-left: 10px; font-style: normal; font-weight: 600; }

/* AI 工具轨道动画 */
.hp-orbit { position: relative; flex: none; width: 300px; height: 300px; margin-right: 34px; }
.hp-orbit-ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.hp-orbit-ring.r1 { width: 112px; height: 112px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 12px rgba(52, 120, 229, .06); }
.hp-orbit-ring.r2 { width: 196px; height: 196px; border: 1.5px dashed rgba(52, 120, 229, .25); }
.hp-orbit-ring.r3 { width: 296px; height: 296px; border: 1.5px dashed rgba(52, 120, 229, .16); }
.hp-orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 22px;
    background: var(--grad-primary);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .5px;
    box-shadow: 0 14px 30px rgba(52, 120, 229, .35);
    animation: hp-core-pulse 3s ease-in-out infinite;
}
.hp-orbit-spin { position: absolute; inset: 0; animation: hp-orbit-spin 36s linear infinite; }
.hp-orbit-spin.s2 { --r: 98px; animation-duration: 28s; }
.hp-orbit-spin.s3 { --r: 148px; animation-direction: reverse; }
.hp-orbit-spin img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    padding: 5px;
    border-radius: 13px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 8px 20px rgba(36, 50, 71, .14);
    transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
    animation: hp-orbit-upright 28s linear infinite;
}
/* 图标跟着轨道转，同时反向自转保持正立 */
.hp-orbit-spin.s3 img { animation-duration: 36s; animation-direction: reverse; }
@keyframes hp-orbit-spin { to { transform: rotate(360deg); } }
@keyframes hp-orbit-upright {
    from { transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))) rotate(0deg); }
    to   { transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))) rotate(-360deg); }
}
@keyframes hp-core-pulse { 0%, 100% { box-shadow: 0 14px 30px rgba(52, 120, 229, .35); } 50% { box-shadow: 0 14px 40px rgba(52, 120, 229, .55); } }
@media (prefers-reduced-motion: reduce) {
    .hp-orbit-spin, .hp-orbit-spin img, .hp-orbit-core { animation-duration: 0s; }
}
@media (max-width: 1180px) {
    .hp-chart { flex-basis: 48%; }
    .hp-orbit { transform: scale(.85); margin-right: 0; }
}
@media (max-width: 860px) {
    .hp-chart, .hp-orbit { display: none; }
    .hp-supply-copy { max-width: none; }
}

/* ============================================================
   广告位卡片：2×3 网格（外层标题栏见下方「广告推广（第二版）」）
============================================================ */

.hp-strip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.hp-strip-item {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.hp-strip-item:hover { border-color: var(--primary-soft); background: var(--primary-light); }
.hp-strip-ico { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.hp-strip-ico.is-fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 18px;
}
.hp-strip-item strong { padding-right: 34px; font-size: 15px; font-weight: 600; }
.hp-strip-item small { margin-top: 3px; font-size: 12.5px; }
.hp-strip-item-vacant { border-style: dashed; background: #FBFCFE; }
.hp-strip-item-vacant .hp-strip-ico.is-fa { background: #fff; border: 1px solid var(--border); color: var(--text-muted); }
.hp-strip-item-vacant strong { color: var(--text-secondary); }
.hp-strip-item-vacant:hover .hp-strip-ico.is-fa { border-color: var(--primary-soft); color: var(--primary); }
.hp-strip-item-vacant:hover strong { color: var(--primary); }
.hp-ad-tag {
    top: 10px;
    right: 12px;
    padding: 0 6px;
    border-radius: 5px;
    background: var(--border-light);
    color: var(--text-muted);
    font-size: 11px;
    line-height: 18px;
}
.hp-ad-tag.is-vacant { background: var(--primary-light); color: var(--primary); }
@media (max-width: 980px) {
    .hp-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 10px; }
}
@media (max-width: 560px) {
    .hp-strip-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   板块标题栏（重做）：图标块 + 标题 + 淡色说明 + 胶囊「全部」，不再用竖线和下划线
============================================================ */
.hp-cat-sec, .hp-sh, .hp-tools, .hp-square, .hp-official { margin-top: 36px; }
.hp-sec-hd {
    align-items: center;
    gap: 6px 12px;
    padding-bottom: 0;
    border-bottom: 0;
}
.hp-sec-hd h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
    border-left: 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
}
.hp-sec-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 14px;
}
.hp-sec-note { color: var(--text-muted); font-size: 13.5px; }
.hp-sec-more {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 13px;
    transition: color .15s, border-color .15s;
}
.hp-sec-more:hover { border-color: var(--primary-soft); color: var(--primary); }
.hp-cat-sec .hp-grid, .hp-tools-card, .hp-square-grid, .hp-official-grid, .hp-sh-grid { margin-top: 16px; }
@media (max-width: 700px) {
    .hp-sec-hd h2 { font-size: 18px; }
    .hp-sec-ico { width: 28px; height: 28px; font-size: 13px; }
    .hp-sec-note { display: none; }
}

/* ============================================================
   首页 AI 工具卡片左侧分类（重做）：白底列表，选中项浅蓝底 + 左侧竖条
============================================================ */
.hp-tools-card { grid-template-columns: 180px minmax(0, 1fr); height: auto; }
.hp-tools-tabs {
    gap: 2px;
    padding: 12px 10px;
    background: #fff;
    border-right: 1px solid var(--border-light);
}
.hp-tools-tab {
    position: relative;
    gap: 10px;
    height: 38px;
    padding: 0 10px;
    border-radius: 9px;
    color: var(--text-secondary);
    font-size: 14.5px;
}
.hp-tools-tab i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--bg-page);
    color: var(--text-muted);
    font-size: 12px;
    transition: background .15s, color .15s;
}
.hp-tools-tab:hover { background: var(--bg-page); color: var(--text-primary); }
.hp-tools-tab.is-on {
    background: var(--primary-light);
    box-shadow: none;
    color: var(--primary);
    font-weight: 600;
}
.hp-tools-tab.is-on::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--primary);
}
.hp-tools-tab.is-on i { background: var(--primary); color: #fff; }
.hp-tools-body { padding: 18px; }
.hp-tools-grid { grid-auto-rows: 72px; gap: 12px; overflow: visible; }
.hp-titem { border-color: var(--border); border-radius: 12px; }
.hp-titem:hover { border-color: var(--primary-soft); background: var(--primary-light); }
@media (max-width: 768px) {
    .hp-tools-tab.is-on::before { display: none; }
    .hp-tools-tab i { display: none; }
}

/* ---------- 第 2 张：AI 工具（浅紫底） ---------- */
.hp-aitools {
    --hero-accent: #6A5CF6;
    background:
        radial-gradient(460px 280px at 88% 30%, rgba(106, 92, 246, .16), transparent 70%),
        radial-gradient(420px 260px at 0% 110%, rgba(52, 120, 229, .10), transparent 70%),
        linear-gradient(135deg, #F8F7FF 0%, #EEEBFF 100%);
}
.hp-aitools .hp-supply-sub { color: var(--text-secondary); }
.hp-aitools-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.hp-aitools-cats a {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(106, 92, 246, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
    color: #30333a;
    font-size: 13px;
    transition: background .15s, border-color .15s, color .15s;
}
.hp-aitools-cats a:hover { background: #fff; border-color: rgba(106, 92, 246, .4); color: var(--hero-accent); }
.hp-aitools-cats i { color: var(--hero-accent); font-size: 12px; }
.hp-aitools-cats span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hp-aitools-cats b { color: var(--text-muted); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
/* 手机上一行三个太窄，分类名会被截成「AI…」，改成一行两个 */
@media (max-width: 640px) {
    .hp-aitools-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .hp-aitools-cats a { height: 38px; padding: 0 12px; font-size: 13.5px; }
}
.hp-aitools .hp-orbit-ring.r1 { background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 14px rgba(106, 92, 246, .06), 0 0 60px rgba(106, 92, 246, .18); }
.hp-aitools .hp-orbit-ring.r2 { border-color: rgba(106, 92, 246, .28); }
.hp-aitools .hp-orbit-ring.r3 { border-color: rgba(106, 92, 246, .16); }
.hp-aitools .hp-orbit-core { background: linear-gradient(135deg, #8B7CFF 0%, #6A5CF6 100%); color: #fff; box-shadow: 0 14px 30px rgba(106, 92, 246, .35); animation: none; }
.hp-orbit-tag {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(106, 92, 246, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    color: #30333a;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    animation: hp-tag-float 4.5s ease-in-out infinite;
}
.hp-orbit-tag i { font-size: 11px; color: var(--hero-accent); }
.hp-orbit-tag.t1 { top: -6px;  left: -40px; }
.hp-orbit-tag.t2 { top: 52px;  right: -54px; animation-delay: -1.1s; }
.hp-orbit-tag.t3 { bottom: 40px; left: -58px; animation-delay: -2.2s; }
.hp-orbit-tag.t4 { bottom: -6px; right: -24px; animation-delay: -3.3s; }
@keyframes hp-tag-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- 第 3 张：AI 副业 ---------- */
.hp-discover {
    --hero-accent: #EA580C;
    justify-content: space-between;
    gap: 28px;
    padding: 36px 40px 56px;
    background:
        radial-gradient(460px 280px at 92% 10%, rgba(251, 146, 60, .16), transparent 70%),
        radial-gradient(420px 260px at 0% 110%, rgba(52, 120, 229, .06), transparent 70%),
        linear-gradient(135deg, #FFFAF5 0%, #FFF1E6 100%);
}
.hp-discover-copy { flex: 1 1 0; min-width: 0; max-width: 470px; width: auto; }
.hp-discover p { font-size: 15px; line-height: 1.75; }

.hp-ideas { flex: 0 0 46%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hp-idea {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border: 1px solid rgba(234, 88, 12, .10);
    border-radius: 14px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 8px 22px rgba(36, 50, 71, .06);
    animation: hp-tag-float 6s ease-in-out infinite;
}
.hp-idea:nth-child(2) { animation-delay: -1.5s; }
.hp-idea:nth-child(3) { animation-delay: -3s; }
.hp-idea:nth-child(4) { animation-delay: -4.5s; }
.hp-idea i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 6px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FDBA74, #EA580C);
    color: #fff;
    font-size: 15px;
}
.hp-idea strong { color: #1F2430; font-size: 15px; font-weight: 700; }
.hp-idea span { color: var(--text-secondary); font-size: 12.5px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) {
    .hp-orbit-tag, .hp-idea { animation: none; }
}
@media (max-width: 1180px) {
    .hp-ideas { flex-basis: 44%; } .hp-idea span { display: none; }
}
@media (max-width: 860px) {
    .hp-ideas { display: none; } .hp-discover-copy { max-width: none; }
}

/* ============================================================
   首页 AI 产品广场（重做）：紧凑横排卡片，每行 4 个
============================================================ */
.hp-square-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hp-square-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    transform: none;
    transition: border-color .2s, background .2s;
}
.hp-square-card:hover { border-color: var(--primary-soft); background: var(--primary-light); box-shadow: none; transform: none; }
.hp-square-thumb {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 56px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-page);
}
.hp-square-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.hp-square-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hp-square-body strong { overflow: hidden; color: var(--text-primary); font-size: 15px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.hp-square-body > em { overflow: hidden; color: var(--text-muted); font-size: 12.5px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.hp-square-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 12px; }
.hp-square-meta > i { padding: 0 6px; border-radius: 4px; background: var(--primary-light); color: var(--primary); font-style: normal; line-height: 18px; }
.hp-square-meta b { color: var(--text-muted); font-weight: 400; }
.hp-square-submit { border-style: dashed; background: #FBFCFE; }
.hp-square-submit .hp-square-thumb { border: 0; background: var(--primary-light); color: var(--primary); font-size: 18px; }
.hp-square-submit strong { color: var(--primary); }
@media (max-width: 1100px) {
    .hp-square-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .hp-square-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   轮播指示点（重做）：半透明胶囊底座，选中项拉长成胶囊，浅色深色背景都看得清
============================================================ */
.hp-carousel-controls { bottom: 16px; }
.hp-carousel-controls .hp-dots {
    gap: 6px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.hp-dots button {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(36, 50, 71, .25);
    box-shadow: none;
    transition: width .25s ease, background .25s ease;
}
.hp-dots button:hover { background: rgba(36, 50, 71, .45); }
.hp-dots button.is-on { width: 20px; background: var(--primary); }

/* ============================================================
   广告推广（第二版）：去掉左侧大块，标题栏和其它板块一致，下面 3 列广告位
============================================================ */
.hp-ads { margin-top: 28px; }
.hp-ads .hp-strip-grid { display: grid; margin-top: 16px; padding: 0; }
.hp-ads-rule { margin-left: auto; color: var(--text-muted); font-size: 13px; }
.hp-ads-rule:hover { color: var(--primary); }
.hp-ads-buy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.hp-ads-buy i { font-size: 11px; }
.hp-ads-buy:hover { background: var(--primary-hover); }

/* ============================================================
   广告位卡片（第三版）：白底实线卡片，每格一种色调，悬停轻微上浮
============================================================ */
.hp-ads .hp-strip-item,
.hp-ads .hp-strip-item-vacant {
    border: 1px solid var(--border);
    border-style: solid;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hp-ads .hp-strip-item:hover { border-color: var(--primary-soft); background: #fff; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hp-ads .hp-strip-item-vacant strong { color: var(--text-primary); }
.hp-ads .hp-strip-item-vacant small { color: var(--text-muted); }
.hp-ads .hp-strip-item-vacant:hover strong { color: var(--primary); }
.hp-ads .hp-strip-ico.is-fa { border: 0; font-size: 18px; }
.ad-tone-0 { background: #EAF2FF !important; color: #3478E5 !important; }
.ad-tone-1 { background: #F1ECFF !important; color: #7C3AED !important; }
.ad-tone-2 { background: #E8F8F1 !important; color: #059669 !important; }
.ad-tone-3 { background: #FFF1E6 !important; color: #EA580C !important; }
.ad-tone-4 { background: #FDEBF4 !important; color: #DB2777 !important; }
.ad-tone-5 { background: #E6F7FA !important; color: #0891B2 !important; }
.hp-ads .hp-ad-tag.is-vacant { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.hp-ads .hp-strip-item:hover .hp-ad-tag.is-vacant { border-color: var(--primary-soft); color: var(--primary); }
