@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ── Hero banner (compact) ── */
.hero-banner {
    margin-top: 8px;
}

.hero-inner {
    background: linear-gradient(135deg, #3C8CE7 0%, #4a7fd4 100%);
    border-radius: 10px;
    padding: 14px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(60, 140, 231, 0.2);
}

.hero-desc {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
    flex: 1 1 280px;
}

.hero-desc strong {
    color: #ffe082;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.hero-btn:hover {
    opacity: 0.88;
}

.hero-btn.wechat-btn {
    background: #fff;
    color: #07C160;
}

.hero-btn.tg-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

/* ── Notice ── */
.notice-content p,
.tips p {
    margin: 0 0 10px !important;
    padding: 0 !important;
    line-height: 1.75 !important;
    color: #444 !important;
    background: none !important;
    font-family: inherit !important;
    font-size: 14px !important;
    box-sizing: border-box;
}

.notice-content p:last-child,
.tips p:last-child {
    margin-bottom: 0 !important;
}

.notice-content strong,
.tips strong,
.notice-content b,
.tips b {
    font-weight: 700;
}

.notice-content .notice-warn {
    color: #c24f4a;
    font-weight: 700;
    font-size: 15px;
}

.notice-content .notice-tip {
    color: #e03e2d;
}

.notice-content .notice-hours {
    display: inline-block;
    background: linear-gradient(135deg, #e8f4fd, #f0f7ff);
    color: #3C8CE7;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    margin: 4px 0;
}

.main .main-box .tips {
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e8 100%);
    border: 1px solid #ffe0a3;
    border-radius: 10px;
    padding: 14px 18px !important;
}

.main .main-box .tit {
    color: #3C8CE7 !important;
    font-size: 15px !important;
}

/* ── Trust badges ── */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 20px 0;
    padding: 18px 0 6px;
}

.trust-badge {
    flex: 1 1 140px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    font-size: 13px;
    color: #3a4a5c;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 2px 8px rgba(18, 52, 91, 0.05);
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(60, 140, 231, 0.12);
    border-color: #b8d4f0;
}

.trust-badge svg {
    flex-shrink: 0;
}

.trust-badge .badge-label {
    line-height: 1.3;
}

.trust-badge .badge-sub {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #8a9bb0;
    margin-top: 2px;
}

/* ── Main box polish ── */
.main .main-box {
    border-radius: 14px;
    overflow: hidden;
}

.main .title {
    font-size: 17px;
    padding-top: 4px;
}

.main .cate .cate-box {
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.main .cate .cate-box:hover {
    transform: translateY(-1px);
}

.main .cate .cate-box-select {
    border-radius: 12px;
}

/* ── Product cards ── */
.main .goods .goods-box {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.main .goods .goods-box:not(.sold-out):hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(60, 140, 231, 0.16);
    border-color: #3C8CE7;
}

.main .goods .goods-box.sold-out {
    opacity: 0.72;
    filter: grayscale(30%);
}

.main .goods .goods-box.sold-out:hover {
    transform: none;
    box-shadow: 0 4px 10px 0 rgba(135, 142, 154, 0.14);
    border-color: #f1f4fb;
}

.sold-out-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #9e9e9e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
}

.goods-box .retail-price {
    display: inline-block;
    font-size: 11px;
    color: #aaa;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 4px;
}

.main .goods .msg .goods-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    max-width: 200px;
}

.main .goods .msg .goods-price {
    font-size: 15px;
}

.main .goods .msg .goods-num span.out-of-stock {
    color: #c24f4a;
}

/* ── Header ── */
.header .header-box {
    padding-top: 12px;
    padding-bottom: 4px;
}

.header .header-box .site-brand {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.header .header-box .info {
    font-size: 17px;
    font-weight: 700;
    color: #3a4a5c;
    margin-left: 10px;
    white-space: nowrap;
}

.header .header-box .query a {
    border-radius: 22px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ── Floating contact ── */
.float-contact {
    position: fixed;
    right: 20px;
    bottom: calc(20% + 80px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    position: relative;
}

.float-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.float-contact-btn.wechat {
    background: linear-gradient(135deg, #07C160, #06AD56);
}

.float-contact-btn.tg {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
}

.float-contact-btn .tooltip {
    position: absolute;
    right: 58px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.float-contact-btn:hover .tooltip {
    opacity: 1;
}

/* ── Footer ── */
.footer {
    margin-top: 36px;
    padding: 28px 0 24px;
    background: linear-gradient(180deg, transparent, #f7f9fc);
    border-top: 1px solid #e8edf5;
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    font-size: 16px;
    font-weight: 700;
    color: #3a4a5c;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 14px;
}

.footer-links a {
    color: #3C8CE7;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #00b4d8;
}

.footer-copy {
    font-size: 12px;
    color: #9aa5b4;
    line-height: 1.6;
}

.footer-hours {
    font-size: 13px;
    color: #6b7c93;
    margin-bottom: 8px;
}

/* ── Manual service (buy page) ── */
.manual-service-box {
    margin: 0 20px 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff8e8 0%, #fff3d6 100%);
    border: 1px solid #ffe0a3;
    border-radius: 12px;
}

.manual-service-box p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #5a4a32;
    line-height: 1.6;
}

.manual-service-box strong {
    color: #c24f4a;
}

.manual-hours {
    font-size: 13px !important;
    color: #3C8CE7 !important;
    font-weight: 600;
}

.manual-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.manual-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}

.manual-btn:hover {
    transform: translateY(-1px);
}

.manual-btn.wechat {
    background: #07C160;
    color: #fff;
}

.manual-btn.tg {
    background: #2AABEE;
    color: #fff;
}

.buy-manual-cta {
    text-align: center;
    padding: 20px;
    margin: 0 20px 16px;
    background: #f7f9fc;
    border-radius: 12px;
}

.buy-manual-cta p {
    margin: 0;
    font-size: 14px;
    color: #5a6a7e;
}

.buy-manual-cta strong {
    color: #07C160;
}

/* ── Copy toast ── */
.copy-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 13px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .hero-inner {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-desc {
        font-size: 13px;
    }

    .float-contact {
        right: 14px;
        bottom: calc(20% + 70px);
    }

    .float-contact-btn {
        width: 46px;
        height: 46px;
    }

    .float-contact-btn .tooltip {
        display: none;
    }

    .main .goods .msg .goods-name {
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        width: 100%;
    }

    .hero-btn {
        flex: 1;
        justify-content: center;
    }
}