

body.m-body {
    --m-brand: var(--primary);
    --m-brand-600: var(--primary-600);
    --m-brand-50: var(--primary-50);
    --m-ink: #1e1b3a;
    --m-muted: #6b7280;
    --m-surface: #ffffff;
    --m-bg: #f5f5fb;
    --m-border: #e7e6f2;
    --m-radius: 18px;
    background: var(--m-bg);
}
body.m-body::before {
    background:
        radial-gradient(52rem 36rem at 10% -12%, rgba(79, 70, 229, .10), transparent 60%),
        radial-gradient(46rem 34rem at 100% 0%, rgba(124, 58, 237, .08), transparent 55%),
        linear-gradient(var(--m-bg), var(--m-bg));
}

body.m-body main {
    max-width: 1120px;
}

/* -------------------------------------------------------------- navbar --- */
body.m-body header,
.m-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--m-border);
}
.m-nav-inner {
    max-width: 1120px; margin: 0 auto;
    padding: .8rem 1.25rem;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.m-brand { display: flex; align-items: center; gap: .6rem; color: var(--m-ink); }
.m-brand-mark {
    width: 34px; height: 34px; flex: none;
    display: grid; place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--m-brand), var(--accent));
    color: #fff; font-size: 1rem;
}
.m-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.m-brand-text strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.m-brand-text small { font-size: .72rem; color: var(--m-muted); }

.m-search { position: relative; flex: 1; min-width: 180px; max-width: 400px; }
.m-search input {
    width: 100%; padding: .58rem 1rem .58rem 2.5rem;
    border: 1px solid var(--border-strong); border-radius: 999px;
    background: var(--m-surface); font-size: .9rem; color: var(--m-ink); outline: 0;
    transition: border-color .15s, box-shadow .15s;
}
.m-search input:focus { border-color: var(--m-brand); box-shadow: 0 0 0 4px var(--m-brand-50); }
.m-search-icon { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--text-3); }

.m-nav-links { display: flex; align-items: center; gap: .45rem; margin-left: auto; flex-wrap: wrap; }
.m-nav-links a {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .46rem .95rem; border-radius: 999px;
    border: 1px solid var(--border-strong); background: var(--m-surface);
    font-size: .82rem; font-weight: 600; color: var(--text-2);
    transition: all .15s; white-space: nowrap;
}
.m-nav-links a:hover { border-color: var(--m-brand); color: var(--m-brand); background: var(--m-brand-50); }
.m-nav-links a.m-nav-cta { background: var(--m-brand); border-color: var(--m-brand); color: #fff; }
.m-nav-links a.m-nav-cta:hover { background: var(--m-brand-600); color: #fff; }

/* ---------------------------------------------------------------- hero --- */
.m-hero {
    text-align: center;
    padding: 2.6rem 1.25rem 1.5rem;
    max-width: 820px; margin: 0 auto;
}
.m-hero-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .32rem .85rem; border-radius: 999px;
    background: var(--m-brand-50); color: var(--m-brand-600);
    font-size: .78rem; font-weight: 700; margin-bottom: 1rem;
}
.m-hero h1 {
    font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.25;
    letter-spacing: -.02em; color: var(--m-ink);
}
.m-hero p { margin-top: .9rem; color: var(--m-muted); font-size: 1rem; }
.m-hero-trust {
    list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
    gap: .55rem; margin-top: 1.3rem;
}
.m-hero-trust li {
    padding: .34rem .8rem; border-radius: 999px;
    background: var(--m-surface); border: 1px solid var(--m-border);
    font-size: .8rem; font-weight: 600; color: var(--text-2);
}

/* ============================ single-page buy (现代模板首页) ============= */
.m-shell { max-width: 1000px; }
.m-buy {
    background: var(--m-surface);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    padding: 1.8rem 1.6rem 1.6rem;
    box-shadow: var(--sh);
}
.m-buy-head { text-align: center; margin-bottom: 1.4rem; }
.m-buy-head h1 {
    font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.28;
    letter-spacing: -.02em; color: var(--m-ink);
}
.m-typing {
    margin-top: .7rem; min-height: 1.5em;
    color: var(--m-brand-600); font-size: .96rem; font-weight: 600;
}
.m-typing-caret { animation: m-blink 1s step-end infinite; font-weight: 400; margin-left: 1px; }
@keyframes m-blink { 50% { opacity: 0; } }
.m-buy-searchnote { text-align: center; color: var(--m-muted); font-size: .86rem; margin-bottom: 1rem; }
.m-buy-searchnote a, .m-empty a { color: var(--m-brand); }
.m-empty {
    text-align: center; padding: 2.5rem 1rem; color: var(--m-muted);
    background: var(--m-bg); border: 1px solid var(--m-border); border-radius: var(--m-radius);
}

.m-order-form { display: block; }

/* package selector — 并排竖排单选卡，卡框内含商品说明 -------------------- */
.m-package-track {
    display: grid; gap: .9rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin-bottom: 1.4rem;
    align-items: stretch;
}
.m-package-card { position: relative; cursor: pointer; display: flex; }
.m-package-card input { position: absolute; opacity: 0; pointer-events: none; }
.m-package-body {
    display: flex; flex-direction: column; gap: .5rem;
    flex: 1; min-width: 0;
    padding: 1rem 1.05rem;
    border: 1.5px solid var(--m-border); border-radius: 14px;
    background: var(--m-surface); transition: border-color .15s, box-shadow .15s, background .15s;
}
.m-package-card:hover .m-package-body { border-color: rgba(79, 70, 229, .4); }
.m-package-card.is-active .m-package-body {
    border-color: var(--m-brand);
    box-shadow: 0 0 0 4px var(--m-brand-50);
    background: #fdfdff;
}
.m-package-card.is-soldout { cursor: not-allowed; }
.m-package-card.is-soldout .m-package-body { opacity: .55; }
.m-package-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.m-package-name { font-weight: 800; color: var(--m-ink); font-size: 1rem; line-height: 1.35; }
.m-package-radio {
    flex: none; margin-top: .15rem; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--border-strong); transition: border-color .15s;
}
.m-package-card.is-active .m-package-radio {
    border-color: var(--m-brand);
    background: radial-gradient(circle at center, var(--m-brand) 0 5px, transparent 6px);
}
.m-package-price { font-size: 1.2rem; font-weight: 800; color: var(--price); }
.m-package-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.m-tag {
    font-size: .72rem; font-weight: 700; padding: .16rem .5rem; border-radius: 999px;
    background: var(--m-brand-50); color: var(--m-brand-600);
}
.m-tag-ghost { background: var(--surface-2); color: var(--text-2); }
.m-tag-warn { background: var(--danger-bg); color: var(--danger); }


.m-package-detail {
    /*margin-top: auto;*/
    display: block;
    border-top: 1px dashed var(--m-border);
    padding-top: .7rem;
}
.m-package-detail-label {
    display: block; font-size: .78rem; font-weight: 800;
    color: var(--m-muted); margin-bottom: .35rem;
}
.m-package-detail .detail-body {
    display: block;
    font-size: .84rem; color: var(--text-2); line-height: 1.6;
    /*max-height: 190px;*/ overflow: auto;
    padding-right: .3rem;
}
.m-package-card.is-active .m-package-detail .detail-body { max-height: 460px; }
.m-package-detail .detail-body :is(h1,h2,h3,h4) { color: var(--m-ink); margin: .7rem 0 .35rem; font-size: .9rem; }
.m-package-detail .detail-body p { margin: .45rem 0; }
.m-package-detail .detail-body img { border-radius: 8px; margin: .5rem 0; }

body.m-body .m-submit {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: .6rem;
    font-size: 1rem; padding: .85rem 1rem; border-radius: 12px;
}
body.m-body .m-submit #m-submit-price { font-weight: 800; opacity: .95; }
body.m-body .m-order-form .m-hero-trust { margin-top: 1.1rem; }

/* --------------------------------------------------- section scaffolding - */
.m-section { margin-top: 2.6rem; }
.m-section-head { text-align: center; max-width: 640px; margin: 0 auto 1.4rem; }
.m-section-head h2 { font-size: 1.4rem; letter-spacing: -.01em; color: var(--m-ink); }
.m-section-head p { margin-top: .5rem; color: var(--m-muted); font-size: .92rem; }

/* ---------------------------------------------------------- categories --- */
body.m-body .categories { justify-content: center; }
body.m-body .category-btn {
    border-radius: 999px; border: 1px solid var(--border-strong);
    background: var(--m-surface); font-weight: 600;
}
body.m-body .category-btn.active {
    background: var(--m-brand); border-color: var(--m-brand); color: #fff;
}

/* -------------------------------------------------------- product grid --- */
body.m-body .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.1rem;
}
body.m-body .product-card {
    display: flex; flex-direction: column;
    background: var(--m-surface);
    border: 1px solid var(--m-border); border-radius: var(--m-radius);
    overflow: hidden; transition: transform .16s, box-shadow .16s, border-color .16s;
}
body.m-body .product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 70, 229, .35);
    box-shadow: var(--sh-lg);
}
body.m-body .product-card .product-info { padding: 1rem 1.05rem 1.15rem; }
body.m-body .product-card .product-title { font-size: 1rem; color: var(--m-ink); }
body.m-body .product-card .product-price { color: var(--price); font-weight: 800; }
body.m-body .buy-btn {
    background: var(--m-brand); color: #fff; border-radius: 999px;
    padding: .44rem 1rem; font-weight: 700; font-size: .82rem;
}
body.m-body .product-card:hover .buy-btn { background: var(--m-brand-600); }

/* ------------------------------------------------------------ why cards -- */
.m-why-grid, .m-step-grid {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.m-card {
    background: var(--m-surface); border: 1px solid var(--m-border);
    border-radius: var(--m-radius); padding: 1.3rem;
}
.m-card-ico {
    width: 40px; height: 40px; border-radius: 11px;
    display: grid; place-items: center; font-size: 1.15rem;
    background: var(--m-brand-50); color: var(--m-brand-600); margin-bottom: .8rem;
}
.m-card h3 { font-size: 1rem; color: var(--m-ink); margin-bottom: .35rem; }
.m-card p { font-size: .88rem; color: var(--m-muted); }
.m-step { position: relative; padding-left: 3.1rem; }
.m-step-idx {
    position: absolute; left: 0; top: 0;
    width: 2.1rem; height: 2.1rem; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800;
    background: var(--m-brand); color: #fff;
}

/* guide notes + risk (参考站「流程与注意事项」) ------------------------- */
.m-note-grid {
    display: grid; gap: 1rem; margin-top: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.m-note {
    border: 1px solid var(--m-border); border-radius: 14px;
    padding: 1.15rem 1.25rem; background: var(--m-surface);
}
.m-note h3 { font-size: .98rem; color: var(--m-ink); margin-bottom: .55rem; }
.m-note ul { margin: 0; padding-left: 1.1rem; }
.m-note li { font-size: .87rem; color: var(--m-muted); margin: .3rem 0; }
.m-note--violet { border-left: 3px solid var(--m-brand); }
.m-note--amber  { border-left: 3px solid var(--warning); background: var(--warning-bg); }
.m-note--amber li { color: #7c5b12; }
.m-risk {
    margin-top: 1rem; padding: 1rem 1.2rem;
    border: 1px dashed var(--danger-bd); border-radius: 12px;
    background: var(--danger-bg);
}
.m-risk h3 { font-size: .92rem; color: var(--danger); margin-bottom: .35rem; }
.m-risk p { font-size: .86rem; color: #9f1239; }

/* ------------------------------------------------------- FAQ accordion --- */
.m-faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .7rem; }
.m-faq-item {
    background: var(--m-surface); border: 1px solid var(--m-border);
    border-radius: 14px; overflow: hidden;
}
.m-faq-item summary {
    list-style: none; cursor: pointer;
    padding: 1rem 1.15rem; font-weight: 700; color: var(--m-ink);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.m-faq-item summary::-webkit-details-marker { display: none; }
.m-faq-plus { flex: none; color: var(--m-brand); font-size: 1.2rem; transition: transform .18s; }
.m-faq-item[open] .m-faq-plus { transform: rotate(45deg); }
.m-faq-item > p { padding: 0 1.15rem 1.1rem; color: var(--m-muted); font-size: .9rem; }

/* -------------------------------------------------------- breadcrumb ----- */
body.m-body .crumbs, .m-crumbs {
    display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
    font-size: .84rem; color: var(--m-muted); margin-bottom: 1.2rem;
}
.m-crumbs a:hover { color: var(--m-brand); }
.m-crumbs-sep { color: var(--text-3); }

/* ---------------------------------------------------------- detail page -- */
body.m-body .detail-container {
    background: var(--m-surface); border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
}
body.m-body .detail-title { color: var(--m-ink); }
body.m-body .detail-price { color: var(--price); }
body.m-body .submit-btn {
    background: var(--m-brand); border-radius: 999px;
}
body.m-body .submit-btn:hover { background: var(--m-brand-600); }
body.m-body .detail-content-card,
body.m-body .query-box,
body.m-body .auth-card,
body.m-body .success-card,
body.m-body .pay-card {
    background: var(--m-surface); border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
}
body.m-body .tab-nav-btn.active { color: var(--m-brand); border-bottom-color: var(--m-brand); }
body.m-body .back-link { display: none; }

/* -------------------------------------------------------------- footer --- */
body.m-body { display: flex; flex-direction: column; min-height: 100vh; }
body.m-body > * { width: 100%; }
body.m-body .site-footer, .m-footer {
    max-width: none; width: 100%; margin: 3.5rem 0 0;
    background: var(--m-ink); color: #cfcbe6;
    padding: 2.4rem 1.25rem 2rem;
}
body.m-body > .site-footer { margin-top: auto; }
.m-footer-inner { max-width: 1120px; margin: 0 auto; }
.m-footer-nav, .m-footer-keywords {
    display: flex; flex-wrap: wrap; gap: .3rem .95rem; justify-content: center;
}
.m-footer-nav a { color: #e6e4f5; font-size: .85rem; font-weight: 600; }
.m-footer-nav a:hover { color: #fff; text-decoration: underline; }
.m-footer-keywords { margin-top: .9rem; }
.m-footer-keywords a { color: #a9a3cf; font-size: .8rem; }
.m-footer-keywords a:hover { color: #fff; }
.m-footer-meta { text-align: center; margin-top: 1.3rem; font-size: .8rem; color: #8f89b8; line-height: 1.8; }
body.m-body .footer-ticker { color: #d7d4ec; text-align: center; margin-bottom: 1rem; }
body.m-body .footer-ticker a { color: #fff; text-decoration: underline; }

/* --------------------------------------------------------------- misc ---- */
@media (max-width: 640px) {
    .m-nav-links { width: 100%; margin-left: 0; }
    .m-search { order: 3; max-width: none; }
}
