.hhb-modern-page {
    --hhb-brand: #ff8a00;
    --hhb-brand-dark: #ee6f00;
    --hhb-brand-soft: #fff5e8;
    --hhb-ink: #172033;
    --hhb-muted: #778198;
    --hhb-line: #e9edf4;
    --hhb-success: #18a875;
    --hhb-danger: #f04444;
    --hhb-blue: #3378ff;
    color: var(--hhb-ink);
    font: 14px/1.6 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.content { background: #f5f7fb; }
.content > .inner { width: min(1280px, calc(100% - 40px)); }
.hhb-modern-page *, .hhb-modern-page *::before, .hhb-modern-page *::after { box-sizing: border-box; }
.hhb-modern-page button { font: inherit; }
.hhb-modern-page .sao_download2, .hhb-modern-page .gameHeadNew { display: none !important; }

.hhb-modern-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.07fr) minmax(430px, .93fr);
    gap: 30px;
    padding: 26px;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(31, 42, 68, .08);
}

.hhb-modern-gallery { min-width: 0; }
.hhb-modern-gallery-main {
    position: relative;
    height: 455px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #101621;
    border-radius: 16px;
}
.hhb-modern-gallery-main::before {
    position: absolute;
    inset: 0;
    content: "";
    background: radial-gradient(circle at 50% 30%, rgba(63, 117, 205, .18), transparent 60%);
    pointer-events: none;
}
.hhb-modern-gallery-main > img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}
.hhb-modern-image-count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 5px 11px;
    color: #fff;
    background: rgba(8, 13, 22, .66);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    font-size: 12px;
}
.hhb-modern-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.hhb-modern-thumb {
    height: 76px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #eef1f5;
    cursor: pointer;
    transition: .2s ease;
}
.hhb-modern-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hhb-modern-thumb:hover { transform: translateY(-2px); }
.hhb-modern-thumb.active { border-color: var(--hhb-brand); box-shadow: 0 4px 14px rgba(255, 138, 0, .22); }

.hhb-modern-summary { min-width: 0; display: flex; flex-direction: column; }
.hhb-modern-eyebrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hhb-modern-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.hhb-modern-badge-dark { color: #fff; background: #20293a; }
.hhb-modern-badge-green { color: #087957; background: #e9faf4; }
.hhb-modern-badge-outline { color: #a76500; background: #fff9ed; border: 1px solid #ffd89c; }
.hhb-modern-favorite { margin-left: auto; padding: 4px 8px; color: #7a8395; border: 0; background: transparent; cursor: pointer; }
.hhb-modern-favorite span { color: var(--hhb-brand); font-size: 20px; vertical-align: -1px; }
.hhb-modern-title { margin: 15px 0 12px; font-size: 21px; line-height: 1.55; font-weight: 700; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.hhb-modern-meta { display: flex; align-items: center; gap: 18px; color: #8a93a5; font-size: 12px; }
.hhb-modern-copy { color: var(--hhb-brand-dark); border: 0; background: transparent; padding: 0; cursor: pointer; }
.hhb-modern-price-panel { display: flex; align-items: center; margin-top: 17px; padding: 17px 18px; background: linear-gradient(105deg, #fff7ec, #fffaf5); border: 1px solid #ffead0; border-radius: 14px; }
.hhb-modern-price-label { color: #7c8494; margin-right: 18px; }
.hhb-modern-price { color: var(--hhb-danger); font-size: 36px; line-height: 1; font-weight: 750; letter-spacing: -1px; }
.hhb-modern-price small { font-size: 18px; font-weight: 700; }
.hhb-modern-price-note { margin-left: auto; color: #9b7252; font-size: 12px; }

.hhb-modern-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 16px; overflow: hidden; background: var(--hhb-line); border: 1px solid var(--hhb-line); border-radius: 12px; }
.hhb-modern-fact { min-height: 58px; padding: 10px 13px; background: #fafbfc; }
.hhb-modern-fact span { display: block; color: #929bad; font-size: 11px; }
.hhb-modern-fact strong { display: block; margin-top: 2px; color: #3b4558; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hhb-modern-payments { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.hhb-modern-payments > span:first-child { color: #727c8f; margin-right: 3px; }
.hhb-modern-pay-tag { padding: 4px 9px; border: 0; border-radius: 7px; font-size: 12px; font-weight: 600; cursor: pointer; }
.hhb-modern-pay-purple { color: #7c48d6; background: #f2ebff; }
.hhb-modern-pay-green { color: #118f67; background: #e5f8f1; }
.hhb-modern-pay-blue { color: #2879cb; background: #e8f4ff; }
.hhb-modern-assurances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 15px; }
.hhb-modern-assurance { padding: 10px; border: 1px solid var(--hhb-line); border-radius: 10px; background: #fff; }
.hhb-modern-assurance b { display: block; font-size: 13px; }
.hhb-modern-assurance span { display: block; margin-top: 2px; color: #8b94a6; font-size: 11px; }
.hhb-modern-assurance:nth-child(1) b { color: #e28300; }
.hhb-modern-assurance:nth-child(2) b { color: var(--hhb-success); }
.hhb-modern-assurance:nth-child(3) b { color: var(--hhb-blue); }
.hhb-modern-actions { display: grid; grid-template-columns: 1fr 1.18fr; gap: 12px; margin-top: auto; padding-top: 18px; }
.hhb-modern-action { height: 50px; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.hhb-modern-action:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(30, 40, 60, .12); }
.hhb-modern-contact { color: var(--hhb-brand-dark); background: #fff8ef; border: 1px solid #ffc978; }
.hhb-modern-buy { color: #fff; border: 0; background: linear-gradient(100deg, #ff9c18, #f27600); }
.hhb-modern-disabled { grid-column: 1 / -1; color: #fff; border: 0; background: #a9b0bd; }

.hhb-modern-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; margin-top: 24px; align-items: start; }
.hhb-modern-content-main { min-width: 0; }
.hhb-modern-card { background: #fff; border: 1px solid #edf0f5; border-radius: 18px; box-shadow: 0 8px 24px rgba(31, 42, 68, .045); }
.hhb-modern-aside { position: sticky; top: 20px; padding: 22px; }
.hhb-modern-aside h2 { margin: 0 0 4px; font-size: 17px; }
.hhb-modern-aside-subtitle { color: #949dae; font-size: 12px; }
.hhb-modern-consultant { display: flex; align-items: center; gap: 14px; padding: 16px; margin-top: 17px; background: var(--hhb-brand-soft); border-radius: 12px; }
.hhb-modern-consultant img { width: 78px; height: 78px; object-fit: contain; background: #fff; border-radius: 8px; }
.hhb-modern-consultant b { display: block; }
.hhb-modern-consultant span { color: #8a725d; font-size: 12px; }
.hhb-modern-steps { margin: 22px 0 0; padding: 0; list-style: none; }
.hhb-modern-steps li { position: relative; min-height: 58px; padding: 0 0 18px 42px; }
.hhb-modern-steps li:not(:last-child)::after { position: absolute; left: 14px; top: 30px; bottom: 0; width: 1px; background: #e2e7ef; content: ""; }
.hhb-modern-step-no { position: absolute; left: 0; top: 0; width: 29px; height: 29px; color: var(--hhb-brand-dark); background: #fff3e3; border-radius: 50%; text-align: center; line-height: 29px; font-weight: 700; }
.hhb-modern-steps b { display: block; font-size: 13px; }
.hhb-modern-steps span { color: #9099aa; font-size: 12px; }
.hhb-modern-safe-tip { padding: 12px; color: #687286; background: #f7f9fc; border-radius: 10px; font-size: 12px; }

.hhb-modern-page .gameBox { width: 100%; background: transparent; }
.hhb-modern-page .goodsDetailsGameTab { width: 100%; margin: 0; overflow: hidden; background: #fff; border: 1px solid #edf0f5; border-radius: 18px; box-shadow: 0 8px 24px rgba(31, 42, 68, .045); }
.hhb-modern-page .goodsDetailsGameTab > ol { display: flex; height: auto; padding: 0 26px; border-bottom: 1px solid var(--hhb-line); background: #fff; }
.hhb-modern-page .goodsDetailsGameTab > ol > li { position: relative; width: auto; height: auto; margin-right: 34px; padding: 19px 2px 17px; color: #737d90; border: 0; background: transparent; font-size: 15px; line-height: 1.6; }
.hhb-modern-page .goodsDetailsGameTab > ol > li.on { color: var(--hhb-ink); font-weight: 700; }
.hhb-modern-page .goodsDetailsGameTab > ol > li.on::after { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--hhb-brand); content: ""; }
.hhb-modern-page .goodsDetailsGameTab > ul { padding: 26px; }
.hhb-modern-page .goodsDetailsGameTab > ul > li { display: none; padding: 0; color: #596477; }
.hhb-modern-page .goodsDetailsGameTab > ul > li:first-child { display: block; }
.hhb-modern-page .goodsDetailsGameTab > ul > li:first-child > p:first-child { display: none; }
.hhb-modern-page .goodsDetailsGameTab p { line-height: 1.9; }
.hhb-modern-page .goodsDetailsGameTab .tabDiv { padding: 14px; margin: 12px 0; background: #f8fafc; border-radius: 10px; }

.hhb-modern-game-images,
.hhb-modern-flow-card { margin-top: 20px; padding: 26px; overflow: hidden; }
.hhb-modern-section-title { margin: 0 0 18px; color: var(--hhb-ink); font-size: 18px; font-weight: 700; }
.hhb-modern-section-title small { margin-left: 10px; color: #9aa2b1; font-size: 12px; font-weight: 400; }
.hhb-modern-game-images > h3 { display: none; }
.hhb-modern-game-images #viewer { padding: 0; }
.hhb-modern-game-images #viewer img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto 18px !important;
    border-radius: 12px;
    background: #101621;
}
.hhb-modern-game-images #viewer img:last-child { margin-bottom: 0 !important; }
.hhb-modern-flow-content { text-align: center; }
.hhb-modern-flow-content > li { display: block !important; padding: 0 !important; list-style: none; }
.hhb-modern-flow-content img { display: block; width: min(100%, 720px) !important; height: auto !important; margin: 0 auto !important; }

.hhb-modern-qr-modal { position: fixed; inset: 0; z-index: 10020; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(10, 16, 28, .62); }
.hhb-modern-qr-panel { position: relative; width: min(420px, 100%); padding: 20px; text-align: center; background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(0, 0, 0, .25); }
.hhb-modern-qr-panel img { display: block; width: 100%; max-height: 560px; object-fit: contain; border-radius: 12px; }
.hhb-modern-qr-panel p { margin: 13px 0 0; color: #596477; }
.hhb-modern-qr-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; color: #fff; border: 0; border-radius: 50%; background: rgba(20, 27, 39, .72); cursor: pointer; font-size: 22px; line-height: 30px; }

@media (max-width: 1050px) {
    .hhb-modern-hero { grid-template-columns: 1fr; }
    .hhb-modern-gallery-main { height: 520px; }
    .hhb-modern-content-grid { grid-template-columns: 1fr; }
    .hhb-modern-aside { position: static; }
}

@media (max-width: 680px) {
    .content > .inner { width: min(100% - 24px, 1280px); }
    .hhb-modern-hero { padding: 14px; border-radius: 16px; }
    .hhb-modern-gallery-main { height: 300px; }
    .hhb-modern-thumbs { gap: 6px; }
    .hhb-modern-thumb { height: 54px; }
    .hhb-modern-title { font-size: 18px; }
    .hhb-modern-facts { grid-template-columns: 1fr 1fr; }
    .hhb-modern-assurances { grid-template-columns: 1fr; }
    .hhb-modern-content-grid { margin-top: 14px; }
}
