/* ============================================================
   HIPOIT 云市场 · 插件详情页样式
   作用域：.hp-page（不影响站内其它页面）
   ============================================================ */

.hp-page {
    --hp-primary: #05c3c6;
    --hp-primary-deep: #00a4a6;
    --hp-primary-soft: rgba(5, 195, 198, .08);
    --hp-ink: #101828;
    --hp-text: #475467;
    --hp-muted: #98a2b3;
    --hp-line: #e6edf3;
    --hp-bg: #f6f9fb;
    font-family: 微軟正黑體, gothicb, "Microsoft YaHei", 微软雅黑, PingFangTC-Medium, sans-serif;
    background: var(--hp-bg);
    color: var(--hp-text);
    padding: 148px 0 70px;
    -webkit-font-smoothing: antialiased;
}

.hp-page * {
    box-sizing: border-box;
}

.hp-page img {
    max-width: 100%;
}

/* ---------- 面包屑 ---------- */
.hp-crumb {
    margin-bottom: 22px;
}

.hp-crumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
    color: var(--hp-muted);
    line-height: 1.6;
}

.hp-crumb-list li {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.hp-crumb-list li + li::before {
    content: "/";
    margin: 0 10px;
    color: #cbd5e1;
}

.hp-crumb-list a {
    color: var(--hp-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.hp-crumb-list a:hover {
    color: var(--hp-primary-deep);
}

.hp-crumb-list .is-current {
    color: var(--hp-text);
    font-weight: 600;
    max-width: 60vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 头部信息区 ---------- */
.hp-hero {
    margin-bottom: 24px;
}

.hp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 336px;
    gap: 24px;
    align-items: start;
}

.hp-hero-main {
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 20px;
    padding: 30px 32px 26px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.hp-hero-head {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.hp-cover {
    flex: 0 0 132px;
    width: 132px;
    height: 132px;
    border-radius: 18px;
    border: 1px solid var(--hp-line);
    background: linear-gradient(180deg, #f8fbfc 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
}

.hp-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hp-hero-title {
    min-width: 0;
    flex: 1 1 auto;
}

.hp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.hp-tag {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    color: var(--hp-primary-deep);
    background: var(--hp-primary-soft);
    border: 1px solid rgba(5, 195, 198, .18);
}

.hp-tag-solid {
    color: #fff;
    background: linear-gradient(90deg, #05c3c6, #00b0b3);
    border-color: transparent;
}

.hp-hero-title h1 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--hp-ink);
    letter-spacing: -.2px;
}

.hp-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
    color: var(--hp-text);
    max-width: 780px;
}

.hp-facts {
    list-style: none;
    margin: 22px 0 0;
    padding: 18px 0 0;
    border-top: 1px dashed var(--hp-line);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 0;
}

.hp-facts li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 28px;
    margin-right: 28px;
    border-right: 1px solid var(--hp-line);
}

.hp-facts li:last-child {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
}

.hp-facts-k {
    font-size: 12px;
    color: var(--hp-muted);
    letter-spacing: .5px;
}

.hp-facts-v {
    font-size: 15px;
    font-weight: 600;
    color: var(--hp-ink);
}

/* ---------- 价格与操作卡 ---------- */
.hp-buy {
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.hp-price-line {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--hp-line);
}

.hp-price-cur {
    font-size: 16px;
    font-weight: 600;
    color: var(--hp-primary-deep);
}

.hp-price-num {
    font-size: 30px;
    font-weight: 700;
    color: var(--hp-primary-deep);
    line-height: 1.1;
    letter-spacing: -.5px;
}

.hp-price-unit {
    font-size: 12px;
    color: var(--hp-muted);
    margin-left: 4px;
}

.hp-price-rows {
    padding: 12px 0 4px;
}

.hp-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--hp-text);
    padding: 5px 0;
}

.hp-price-row b {
    font-weight: 600;
    color: var(--hp-ink);
}

.hp-buy-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

/* ---------- 获取方式卡（无价格、无购买按钮） ---------- */
.hp-get {
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 20px;
    padding: 26px 24px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    text-align: center;
}

.hp-get-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--hp-primary-soft);
    border: 1px solid rgba(5, 195, 198, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hp-primary-deep);
    font-size: 21px;
}

.hp-get-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--hp-ink);
}

.hp-get-text {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--hp-text);
}

.hp-get-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--hp-muted);
}

.hp-btn-sm {
    height: 42px;
    font-size: 14px;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.hp-btn i {
    font-size: 15px;
}

.hp-btn-primary {
    color: #fff;
    background: linear-gradient(90deg, #05c3c6 0%, #00b0b3 100%);
    box-shadow: 0 8px 18px rgba(5, 195, 198, .22);
}

.hp-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(5, 195, 198, .30);
}

.hp-btn-ghost {
    color: var(--hp-primary-deep);
    background: #fff;
    border-color: rgba(5, 195, 198, .45);
}

.hp-btn-ghost:hover {
    color: var(--hp-primary-deep);
    background: var(--hp-primary-soft);
    border-color: var(--hp-primary);
    transform: translateY(-1px);
}

.hp-buy-note {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--hp-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hp-buy-note i {
    color: var(--hp-primary);
}

/* ---------- 正文 + 侧栏 ---------- */
.hp-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
    margin-bottom: 30px;
}

.hp-panel {
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 20px;
    padding: 28px 30px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.hp-panel + .hp-panel {
    margin-top: 20px;
}

.hp-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.hp-panel-title {
    position: relative;
    margin: 0;
    padding-left: 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--hp-ink);
    line-height: 1.4;
}

.hp-panel-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, #05c3c6, #00b0b3);
}

/* 富文本排版 */
.hp-article {
    font-size: 15px;
    line-height: 1.9;
    color: var(--hp-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hp-article > *:first-child {
    margin-top: 0;
}

.hp-article > *:last-child {
    margin-bottom: 0;
}

.hp-article h2,
.hp-article h3,
.hp-article h4 {
    color: var(--hp-ink);
    font-weight: 700;
    line-height: 1.5;
    margin: 30px 0 12px;
}

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

.hp-article h3 {
    font-size: 17px;
}

.hp-article p {
    margin: 0 0 14px;
}

.hp-article ul,
.hp-article ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.hp-article li {
    margin-bottom: 8px;
}

.hp-article a {
    color: var(--hp-primary-deep);
    text-decoration: none;
    border-bottom: 1px solid rgba(5, 195, 198, .3);
}

.hp-article a:hover {
    border-bottom-color: var(--hp-primary);
}

.hp-article img {
    border-radius: 12px;
    margin: 8px 0 18px;
    height: auto;
}

.hp-article blockquote {
    margin: 0 0 18px;
    padding: 14px 18px;
    border-left: 3px solid var(--hp-primary);
    border-radius: 0 10px 10px 0;
    background: var(--hp-primary-soft);
    color: var(--hp-text);
}

.hp-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 18px;
    font-size: 14px;
}

.hp-article table th,
.hp-article table td {
    border: 1px solid var(--hp-line);
    padding: 10px 12px;
    text-align: left;
}

.hp-article table th {
    background: #f8fafc;
    color: var(--hp-ink);
    font-weight: 600;
}

.hp-article code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #f2f6f9;
    font-size: 13px;
    color: #0f766e;
}

/* 规格列表 */
.hp-spec {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-spec li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    font-size: 13.5px;
    border-bottom: 1px dashed var(--hp-line);
}

.hp-spec li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.hp-spec span {
    color: var(--hp-muted);
}

.hp-spec b,
.hp-spec a {
    color: var(--hp-ink);
    font-weight: 600;
    text-decoration: none;
}

.hp-spec a:hover {
    color: var(--hp-primary-deep);
}

/* ---------- 推荐 ---------- */
.hp-reco-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.hp-reco-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--hp-ink);
}

.hp-reco-head a {
    font-size: 13px;
    color: var(--hp-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.hp-reco-head a:hover {
    color: var(--hp-primary-deep);
}

.hp-reco-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.hp-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 16px;
    padding: 18px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.hp-card:hover {
    transform: translateY(-3px);
    border-color: rgba(5, 195, 198, .35);
    box-shadow: 0 12px 26px rgba(16, 24, 40, .08);
}

.hp-card-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #f4f9fa;
    border: 1px solid var(--hp-line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
}

.hp-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

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

.hp-card-body h3 {
    margin: 0 0 6px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--hp-ink);
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-card-body p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--hp-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-card-more {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hp-primary-deep);
}

/* ---------- 响应式 ---------- */
@media (min-width: 1200px) and (max-width: 1699px) {
    /* 避开右侧浮动客服条 */
    .hp-page > .container {
        padding-right: 82px;
    }
}

@media (max-width: 1199px) {
    .hp-hero-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .hp-body-grid {
        grid-template-columns: minmax(0, 1fr) 270px;
    }
}

@media (max-width: 991px) {
    .hp-page {
        padding: 136px 0 50px;
    }

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

    .hp-hero-main {
        padding: 24px 20px 20px;
    }

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

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

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

    .hp-panel {
        padding: 22px 20px;
    }

    .hp-crumb-list .is-current {
        max-width: 46vw;
    }
}

@media (max-width: 575px) {
    .hp-page {
        padding: 106px 0 40px;
    }

    .hp-hero-head {
        gap: 14px;
    }

    .hp-cover {
        flex: 0 0 84px;
        width: 84px;
        height: 84px;
        padding: 10px;
        border-radius: 14px;
    }

    .hp-hero-title h1 {
        font-size: 19px;
        margin-bottom: 8px;
    }

    .hp-facts {
        gap: 10px 0;
    }

    .hp-facts li {
        padding-right: 16px;
        margin-right: 16px;
    }

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

    .hp-price-num {
        font-size: 26px;
    }
}
