/* =========================================================
   定制侠 H5 设计系统 —— Apple-inspired
   规范来源：DESIGN.md
   目标：移动端优先、仅面向手机浏览器（H5），不考虑 PC
   ========================================================= */

/* ---------------------------------------------------------
   1. Design Tokens
   --------------------------------------------------------- */
:root {
    /* --- Brand & Accent --- */
    --dz-primary: #0066cc;          /* Action Blue —— 全站唯一交互色 */
    --dz-primary-focus: #0071e3;    /* 键盘焦点环 */
    --dz-primary-on-dark: #2997ff;  /* 深色瓷砖上的链接色 */

    /* --- Text --- */
    --dz-ink: #1d1d1f;
    --dz-body: #1d1d1f;
    --dz-body-on-dark: #ffffff;
    --dz-body-muted: #cccccc;
    --dz-ink-80: #333333;
    --dz-ink-48: #7a7a7a;

    /* --- Surface --- */
    --dz-canvas: #ffffff;
    --dz-parchment: #f5f5f7;
    --dz-pearl: #fafafc;
    --dz-tile-1: #272729;
    --dz-tile-2: #2a2a2c;
    --dz-tile-3: #252527;
    --dz-black: #000000;
    --dz-chip: rgba(210, 210, 215, 0.64);
    --dz-on-primary: #ffffff;

    /* --- Hairlines --- */
    --dz-divider: #f0f0f0;
    --dz-hairline: #e0e0e0;

    /* --- Radius --- */
    --dz-r-xs: 5px;
    --dz-r-sm: 8px;
    --dz-r-md: 11px;
    --dz-r-lg: 18px;
    --dz-r-pill: 9999px;

    /* --- Spacing --- */
    --dz-s-1: 4px;
    --dz-s-2: 8px;
    --dz-s-3: 12px;
    --dz-s-4: 17px;
    --dz-s-5: 24px;
    --dz-s-6: 32px;
    --dz-s-7: 48px;
    --dz-gutter: 20px;
    --dz-section: 56px;             /* 手机上瓷砖的上下留白 */

    /* --- Elevation：全系统仅一枚投影，只给产品图 --- */
    --dz-shadow-product: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;

    /* --- Motion --- */
    --dz-ease: cubic-bezier(0.25, 0.1, 0.25, 1);

    /* --- Font --- */
    --dz-font-display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont,
        "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Helvetica Neue", sans-serif;
    --dz-font-text: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont,
        "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Helvetica Neue", sans-serif;

    /* --- Layout --- */
    --dz-nav-h: 44px;
    --dz-subnav-h: 52px;
    --dz-maxw: 640px;
    --dz-safe-b: env(safe-area-inset-bottom, 0px);
    --dz-safe-t: env(safe-area-inset-top, 0px);
}

/* ---------------------------------------------------------
   2. Reset & Base
   --------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--dz-font-text);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.47;
    letter-spacing: -0.374px;
    color: var(--dz-body);
    background: var(--dz-canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    min-height: 100vh;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    border: 0;
}

a {
    color: var(--dz-primary);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--dz-font-display);
    font-weight: 600;
    letter-spacing: -0.2px;
    line-height: 1.1;
}

[hidden] {
    display: none !important;
}

/* ---------------------------------------------------------
   3. Typography Scale（移动端 clamp 流体缩放）
   --------------------------------------------------------- */
.dz-hero,
.dz-display {
    font-family: var(--dz-font-display);
    font-size: clamp(30px, 9vw, 40px);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.28px;
}

.dz-h1 {
    font-family: var(--dz-font-display);
    font-size: clamp(28px, 7.6vw, 40px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.2px;
}

.dz-h2 {
    font-family: var(--dz-font-text);
    font-size: clamp(24px, 6.6vw, 34px);
    font-weight: 600;
    line-height: 1.47;
    letter-spacing: -0.374px;
}

.dz-lead {
    font-family: var(--dz-font-display);
    font-size: clamp(20px, 6vw, 28px);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: 0.196px;
}

.dz-lead-airy {
    font-family: var(--dz-font-text);
    font-size: clamp(18px, 5.4vw, 24px);
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0;
}

.dz-tagline {
    font-family: var(--dz-font-display);
    font-size: clamp(18px, 5.2vw, 21px);
    font-weight: 600;
    line-height: 1.19;
    letter-spacing: 0.231px;
}

.dz-body-strong {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.24;
    letter-spacing: -0.374px;
}

.dz-caption {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.43;
    letter-spacing: -0.224px;
}

.dz-caption-strong {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.29;
    letter-spacing: -0.224px;
}

.dz-fine {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.12px;
}

.dz-micro {
    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.08px;
}

.dz-muted {
    color: var(--dz-ink-48);
}

.dz-muted-80 {
    color: var(--dz-ink-80);
}

/* ---------------------------------------------------------
   4. Layout —— 容器与全幅瓷砖
   --------------------------------------------------------- */
.container,
.dz-container {
    width: 100%;
    max-width: var(--dz-maxw);
    margin-inline: auto;
    padding-inline: var(--dz-gutter);
}

/* 瓷砖：整幅、无圆角、无边框、无阴影 —— 颜色切换即分界 */
.dz-tile {
    padding-block: var(--dz-section);
}

.dz-tile--light {
    background: var(--dz-canvas);
    color: var(--dz-ink);
}

.dz-tile--parchment {
    background: var(--dz-parchment);
    color: var(--dz-ink);
}

.dz-tile--dark {
    background: var(--dz-tile-1);
    color: var(--dz-body-on-dark);
}

.dz-tile--dark-2 {
    background: var(--dz-tile-2);
    color: var(--dz-body-on-dark);
}

.dz-tile--dark-3 {
    background: var(--dz-tile-3);
    color: var(--dz-body-on-dark);
}

.dz-tile--dark a,
.dz-tile--dark-2 a,
.dz-tile--dark-3 a {
    color: var(--dz-primary-on-dark);
}

.dz-tile--dark .dz-muted,
.dz-tile--dark-2 .dz-muted,
.dz-tile--dark-3 .dz-muted {
    color: var(--dz-body-muted);
}

.dz-stack > * + * {
    margin-top: var(--dz-s-3);
}

.dz-center {
    text-align: center;
}

/* 通用网格：手机 2 列，窄屏自动降为 1 列 */
.dz-grid {
    display: grid;
    gap: var(--dz-s-3);
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

.dz-grid--1 {
    grid-template-columns: 1fr;
}

.dz-chips {
    display: grid;
    gap: var(--dz-s-2);
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}

/* ---------------------------------------------------------
   5. Global Nav —— 44px 纯黑条 + 汉堡菜单
   --------------------------------------------------------- */
.dz-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--dz-black);
    color: var(--dz-body-on-dark);
    padding-top: var(--dz-safe-t);
}

.dz-nav__inner {
    height: var(--dz-nav-h);
    max-width: var(--dz-maxw);
    margin-inline: auto;
    padding-inline: var(--dz-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--dz-s-3);
}

.dz-nav__brand {
    display: flex;
    align-items: center;
    gap: var(--dz-s-2);
    color: var(--dz-body-on-dark);
    font-family: var(--dz-font-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.374px;
    min-height: 44px;
}

.dz-nav__brand img {
    height: 26px;
    width: auto;
}

.dz-nav__back {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding-inline: var(--dz-s-2);
    color: var(--dz-body-on-dark);
    font-size: 14px;
    letter-spacing: -0.224px;
}

.dz-nav__back:active {
    opacity: 0.6;
}

.dz-nav--minimal .dz-nav__inner {
    justify-content: center;
}

.dz-nav__toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-right: -10px;
}

.dz-nav__bars,
.dz-nav__bars::before,
.dz-nav__bars::after {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s var(--dz-ease), opacity 0.2s var(--dz-ease);
}

.dz-nav__bars {
    position: relative;
}

.dz-nav__bars::before,
.dz-nav__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.dz-nav__bars::before {
    top: -6px;
}

.dz-nav__bars::after {
    top: 6px;
}

.dz-nav.is-open .dz-nav__bars {
    background: transparent;
}

.dz-nav.is-open .dz-nav__bars::before {
    transform: translateY(6px) rotate(45deg);
}

.dz-nav.is-open .dz-nav__bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* 下拉托盘 */
.dz-tray {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--dz-nav-h) + var(--dz-safe-t));
    bottom: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.94);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s var(--dz-ease), transform 0.25s var(--dz-ease);
    overflow-y: auto;
    padding-bottom: calc(var(--dz-s-7) + var(--dz-safe-b));
}

.dz-nav.is-open .dz-tray {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dz-tray__inner {
    max-width: var(--dz-maxw);
    margin-inline: auto;
    padding-inline: var(--dz-gutter);
}

.dz-tray a {
    display: flex;
    align-items: center;
    min-height: 54px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    letter-spacing: -0.374px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dz-tray a:active {
    background: rgba(255, 255, 255, 0.06);
}

.dz-tray a.is-current {
    color: var(--dz-primary-on-dark);
}

.dz-tray__foot {
    margin-top: var(--dz-s-5);
    font-size: 12px;
    color: var(--dz-body-muted);
    line-height: 1.6;
}

/* Sub-nav：磨砂玻璃 */
.dz-subnav {
    position: sticky;
    top: calc(var(--dz-nav-h) + var(--dz-safe-t));
    z-index: 998;
    min-height: var(--dz-subnav-h);
    display: flex;
    align-items: center;
    background: rgba(245, 245, 247, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dz-subnav__inner {
    width: 100%;
    max-width: var(--dz-maxw);
    margin-inline: auto;
    padding: var(--dz-s-2) var(--dz-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--dz-s-3);
}

.dz-subnav__title {
    font-family: var(--dz-font-display);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.19;
    letter-spacing: 0.231px;
    color: var(--dz-ink);
}

.dz-subnav__meta {
    font-size: 14px;
    color: var(--dz-ink-48);
    letter-spacing: -0.224px;
}

.dz-subnav__links {
    display: flex;
    gap: var(--dz-s-4);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dz-subnav__links::-webkit-scrollbar {
    display: none;
}

.dz-subnav__links a {
    font-size: 14px;
    line-height: 1.29;
    letter-spacing: -0.224px;
    color: var(--dz-ink-80);
    white-space: nowrap;
}

.dz-subnav__links a.is-current {
    color: var(--dz-primary);
}

/* ---------------------------------------------------------
   6. Buttons
   --------------------------------------------------------- */
.dz-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 11px 22px;
    border-radius: var(--dz-r-pill);
    background: var(--dz-primary);
    color: var(--dz-on-primary);
    font-family: var(--dz-font-text);
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.374px;
    text-align: center;
    transition: transform 0.2s var(--dz-ease), background-color 0.2s var(--dz-ease), opacity 0.2s var(--dz-ease);
}

.dz-btn:active,
.btn:active {
    transform: scale(0.95);
}

.dz-btn:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--dz-primary-focus);
    outline-offset: 2px;
}

.dz-btn--ghost,
.btn-outline {
    background: transparent;
    color: var(--dz-primary);
    box-shadow: inset 0 0 0 1px var(--dz-primary);
}

.dz-btn--pearl {
    background: var(--dz-pearl);
    color: var(--dz-ink-80);
    border-radius: var(--dz-r-md);
    min-height: 36px;
    padding: 8px 14px;
    font-size: 14px;
    line-height: 1.29;
    box-shadow: inset 0 0 0 1px var(--dz-divider);
}

.dz-btn--large {
    min-height: 50px;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 300;
}

.dz-btn--block {
    display: flex;
    width: 100%;
}

.dz-btn--dark {
    background: var(--dz-ink);
    color: var(--dz-body-on-dark);
    border-radius: var(--dz-r-sm);
    min-height: 36px;
    padding: 8px 15px;
    font-size: 14px;
    line-height: 1.29;
}

.dz-btn[disabled],
.btn[disabled] {
    opacity: 0.4;
    pointer-events: none;
}

.dz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dz-s-3);
    justify-content: center;
}

.dz-actions--stack {
    flex-direction: column;
}

/* 文字链接 */
.dz-link,
.text-link {
    color: var(--dz-primary);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.374px;
}

.dz-on-dark .dz-link,
.dz-tile--dark .dz-link {
    color: var(--dz-primary-on-dark);
}

/* ---------------------------------------------------------
   7. Cards
   --------------------------------------------------------- */
.dz-card {
    background: var(--dz-canvas);
    color: var(--dz-ink);
    border: 1px solid var(--dz-hairline);
    border-radius: var(--dz-r-lg);
    padding: var(--dz-s-5);
}

.dz-card--flat {
    border: 0;
    background: var(--dz-canvas);
}

.dz-card__title {
    font-family: var(--dz-font-text);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.24;
    letter-spacing: -0.374px;
    color: var(--dz-ink);
    margin-bottom: var(--dz-s-1);
}

.dz-card__text {
    font-size: 14px;
    line-height: 1.43;
    letter-spacing: -0.224px;
    color: var(--dz-ink-48);
}

.dz-media {
    background: var(--dz-parchment);
    border-radius: var(--dz-r-sm);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

.dz-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品图落地阴影 —— 全系统唯一投影 */
.dz-product {
    box-shadow: var(--dz-shadow-product);
}

/* ---------------------------------------------------------
   8. Forms
   --------------------------------------------------------- */
.form-group,
.dz-field {
    margin-bottom: var(--dz-s-4);
}

.form-group label,
.dz-field__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.29;
    letter-spacing: -0.224px;
    color: var(--dz-ink);
    margin-bottom: var(--dz-s-2);
}

.dz-input,
.dz-select,
.dz-textarea,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--dz-r-pill);
    background: var(--dz-canvas);
    color: var(--dz-ink);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.374px;
    -webkit-appearance: none;
    appearance: none;
    transition: box-shadow 0.2s var(--dz-ease);
}

.dz-textarea,
.form-group textarea {
    border-radius: var(--dz-r-md);
    min-height: 96px;
    resize: vertical;
}

.dz-select,
.form-group select {
    background-image: linear-gradient(45deg, transparent 50%, var(--dz-ink-48) 50%),
        linear-gradient(135deg, var(--dz-ink-48) 50%, transparent 50%);
    background-position: calc(100% - 22px) center, calc(100% - 16px) center;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 44px;
}

.dz-input:focus,
.dz-select:focus,
.dz-textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--dz-primary-focus);
}

.error-text {
    display: none;
    margin-top: 6px;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.4;
    color: #d70015;
    letter-spacing: -0.12px;
}

.error-text.show {
    display: block;
}

.agreement-section {
    margin-block: var(--dz-s-4);
}

.agreement-row {
    display: flex;
    align-items: flex-start;
    gap: var(--dz-s-2);
    font-size: 14px;
    line-height: 1.43;
    color: var(--dz-ink-80);
}

.agreement-row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--dz-primary);
}

.agreement-error {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    color: #d70015;
}

.agreement-error.show {
    display: block;
}

/* ---------------------------------------------------------
   9. Toast / Loading / Modal / Lightbox
   --------------------------------------------------------- */
.toast,
.dz-toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--dz-s-6) + var(--dz-safe-b));
    z-index: 2000;
    max-width: calc(100vw - 40px);
    padding: 12px 20px;
    border-radius: var(--dz-r-md);
    background: rgba(29, 29, 31, 0.92);
    color: #fff;
    font-size: 14px;
    line-height: 1.43;
    letter-spacing: -0.224px;
    text-align: center;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transform: translate(-50%, 16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--dz-ease), transform 0.25s var(--dz-ease);
}

.toast.show,
.dz-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast.success,
.dz-toast.success {
    background: rgba(0, 102, 204, 0.95);
}

.toast.error,
.dz-toast.error {
    background: rgba(197, 42, 42, 0.95);
}

.loading-overlay,
.dz-loading {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    place-items: center;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.loading-overlay.show,
.dz-loading.show {
    display: grid;
}

.loading-overlay.hidden,
.dz-loading.hidden {
    display: none;
}

.loading-content {
    display: grid;
    gap: var(--dz-s-3);
    justify-items: center;
}

.loading-spinner,
.spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--dz-primary);
    animation: dz-spin 0.8s linear infinite;
}

.loading-text {
    font-size: 14px;
    color: var(--dz-ink-48);
    letter-spacing: -0.224px;
}

@keyframes dz-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .loading-spinner,
    .spinner {
        animation-duration: 2s;
    }
    * {
        transition-duration: 0.01ms !important;
    }
}

/* 弹窗：手机端使用底部抽屉 */
.modal-overlay,
.dz-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 0;
}

.modal-overlay.show,
.dz-modal.show {
    display: flex;
}

.modal-overlay.hidden,
.dz-modal.hidden {
    display: none;
}

.modal-content,
.dz-modal__panel {
    width: 100%;
    max-width: var(--dz-maxw);
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--dz-canvas);
    border-radius: var(--dz-r-lg) var(--dz-r-lg) 0 0;
    padding: var(--dz-s-5) var(--dz-s-5) calc(var(--dz-s-5) + var(--dz-safe-b));
    animation: dz-sheet-up 0.28s var(--dz-ease);
}

@keyframes dz-sheet-up {
    from {
        transform: translateY(24px);
        opacity: 0.4;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--dz-s-3);
    margin-bottom: var(--dz-s-4);
}

.modal-header h3 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.231px;
}

.modal-close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin: -10px -10px -10px 0;
    font-size: 24px;
    line-height: 1;
    color: var(--dz-ink-48);
}

.modal-footer {
    display: flex;
    gap: var(--dz-s-3);
    margin-top: var(--dz-s-5);
}

.modal-footer .dz-btn,
.modal-footer .btn {
    flex: 1;
}

/* 灯箱 */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2300;
    display: none;
    background: var(--dz-black);
}

.lightbox.show {
    display: block;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: calc(var(--dz-s-7) + var(--dz-safe-t)) 0 calc(var(--dz-s-7) + var(--dz-safe-b));
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: calc(var(--dz-s-2) + var(--dz-safe-t));
    right: var(--dz-s-2);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: #fff;
    background: var(--dz-chip);
    border-radius: 50%;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    font-size: 30px;
    color: #fff;
    background: var(--dz-chip);
    border-radius: 50%;
}

.lightbox-prev {
    left: var(--dz-s-2);
}

.lightbox-next {
    right: var(--dz-s-2);
}

.lightbox-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--dz-s-3) + var(--dz-safe-b));
    text-align: center;
    color: var(--dz-body-muted);
    font-size: 14px;
    letter-spacing: -0.224px;
}

/* ---------------------------------------------------------
   10. Footer
   --------------------------------------------------------- */
.dz-footer {
    background: var(--dz-parchment);
    color: var(--dz-ink-80);
    padding-block: var(--dz-s-7);
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: -0.12px;
}

.dz-footer__inner {
    max-width: var(--dz-maxw);
    margin-inline: auto;
    padding-inline: var(--dz-gutter);
}

.dz-footer__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--dz-s-5);
}

.dz-footer__col--wide {
    grid-column: 1 / -1;
}

.dz-footer__title {
    font-family: var(--dz-font-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.29;
    letter-spacing: -0.224px;
    color: var(--dz-ink);
    margin-bottom: var(--dz-s-2);
}

.dz-footer a {
    display: block;
    color: var(--dz-ink-80);
    font-size: 17px;
    font-weight: 400;
    line-height: 2.41;
    letter-spacing: 0;
    text-decoration: none;
}

.dz-footer p {
    font-size: 12px;
    line-height: 1.7;
    color: var(--dz-ink-48);
}

.dz-footer__legal {
    margin-top: var(--dz-s-5);
    padding-top: var(--dz-s-4);
    border-top: 1px solid var(--dz-hairline);
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
    color: var(--dz-ink-48);
}

.dz-footer__legal a {
    display: inline;
    font-size: 12px;
    line-height: 1.8;
    color: var(--dz-ink-48);
    text-decoration: underline;
}

.dz-footer__qr {
    width: 104px;
    height: 104px;
    border-radius: var(--dz-r-sm);
}

/* ---------------------------------------------------------
   11. Page-level 通用块（沿用原有 class 词汇）
   --------------------------------------------------------- */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--dz-s-3);
    min-height: 44px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--dz-s-2);
    font-family: var(--dz-font-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.374px;
    color: var(--dz-ink);
}

.logo img {
    height: 28px;
    width: auto;
}

.main-content {
    padding-block: var(--dz-s-5) var(--dz-s-7);
}

.hero {
    padding-block: var(--dz-s-6) var(--dz-s-6);
    text-align: center;
    background: var(--dz-parchment);
}

.hero h1 {
    font-family: var(--dz-font-display);
    font-size: clamp(28px, 7.6vw, 40px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.28px;
    color: var(--dz-ink);
}

.hero p {
    margin-top: var(--dz-s-3);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.374px;
    color: var(--dz-ink-48);
}

.section {
    padding-block: var(--dz-section);
}

.section-header {
    margin-bottom: var(--dz-s-5);
}

/* 让 section 的背景铺满屏幕宽度（内容仍限制在 --dz-maxw 内） */
main > section,
main > .container > section {
    padding-block: var(--dz-section);
    margin-inline: calc(-1 * var(--dz-gutter));
    padding-inline: var(--dz-gutter);
}

main > .container > .section {
    margin-inline: calc(-1 * var(--dz-gutter));
    padding-inline: var(--dz-gutter);
}

.section-title {
    font-family: var(--dz-font-display);
    font-size: clamp(24px, 6.6vw, 34px);
    font-weight: 600;
    line-height: 1.47;
    letter-spacing: -0.374px;
    color: var(--dz-ink);
    text-align: center;
}

.section-desc {
    margin-top: var(--dz-s-2);
    font-size: 14px;
    line-height: 1.43;
    color: var(--dz-ink-48);
    text-align: center;
}

.page-title {
    font-family: var(--dz-font-display);
    font-size: clamp(28px, 7.6vw, 40px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.28px;
    color: var(--dz-ink);
    margin-bottom: var(--dz-s-5);
}

.cta-section {
    padding-block: var(--dz-section);
    background: var(--dz-tile-1);
    color: var(--dz-body-on-dark);
    text-align: center;
}

.cta-section h2 {
    font-family: var(--dz-font-display);
    font-size: clamp(24px, 6.6vw, 34px);
    font-weight: 600;
    line-height: 1.47;
    color: #fff;
}

.cta-section p {
    margin-top: var(--dz-s-2);
    font-size: 17px;
    line-height: 1.47;
    color: var(--dz-body-muted);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--dz-s-3);
    margin-top: var(--dz-s-5);
}

.highlight {
    background: var(--dz-parchment);
    border-radius: var(--dz-r-md);
    padding: var(--dz-s-4);
    font-size: 14px;
    line-height: 1.6;
    color: var(--dz-ink-80);
}

.notice-box {
    background: var(--dz-pearl);
    border: 1px solid var(--dz-hairline);
    border-radius: var(--dz-r-lg);
    padding: var(--dz-s-5);
    margin-top: var(--dz-s-5);
}

.notice-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--dz-ink);
    margin-bottom: var(--dz-s-2);
}

.notice-content,
.notice-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dz-ink-80);
}

.warning {
    color: #d70015;
    font-weight: 600;
}

.kefu-qr {
    display: grid;
    gap: var(--dz-s-2);
    justify-items: center;
    margin-top: var(--dz-s-4);
}

.kefu-qr img {
    width: 108px;
    height: 108px;
    border-radius: var(--dz-r-sm);
}

/* 遗留 header/footer 容器（本系统内统一外观） */
.site-header {
    background: var(--dz-black);
    color: var(--dz-body-on-dark);
    padding-top: var(--dz-safe-t);
}

.site-header .logo,
.site-header .logo a {
    color: #fff;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: var(--dz-s-2);
    color: var(--dz-primary);
    font-size: 14px;
    letter-spacing: -0.224px;
}

/* ---------------------------------------------------------
   12. Utilities
   --------------------------------------------------------- */
.hidden {
    display: none !important;
}

.dz-mt-1 { margin-top: var(--dz-s-2); }
.dz-mt-2 { margin-top: var(--dz-s-3); }
.dz-mt-3 { margin-top: var(--dz-s-5); }
.dz-mb-2 { margin-bottom: var(--dz-s-3); }
.dz-mb-3 { margin-bottom: var(--dz-s-5); }
.dz-full { width: 100%; }
.dz-hairline-top { border-top: 1px solid var(--dz-divider); }
.dz-hairline-bottom { border-bottom: 1px solid var(--dz-divider); }

/* 底部悬浮操作条：为 iPhone 安全区预留空间 */
.has-sticky-bar {
    padding-bottom: calc(76px + var(--dz-safe-b));
}

.dz-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: var(--dz-s-3);
    padding: 12px var(--dz-gutter) calc(12px + var(--dz-safe-b));
    background: rgba(245, 245, 247, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.dz-sticky-bar__price {
    flex: 1;
    font-size: 17px;
    letter-spacing: -0.374px;
    color: var(--dz-ink);
}

.dz-sticky-bar .dz-btn {
    flex: 0 0 auto;
    min-width: 128px;
}
