@import '@dukang/shared-ui/base.css'; .order-list-thumb { width: 64px; height: 64px; border-radius: 8px; flex-shrink: 0; } .store-detail-cover { width: 100%; height: 200px; } /* ── 门店详情页(stitch user/22) ── */ .store-detail-page { min-height: 100vh; background: var(--color-background); padding-bottom: 100px; } .store-detail-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 56px; padding: 0 var(--space-page); display: flex; align-items: center; justify-content: space-between; transition: background 0.3s, box-shadow 0.3s; background: rgba(250, 249, 247, 0.8); backdrop-filter: blur(10px); } .store-detail-header.solid { background: rgba(250, 249, 247, 0.95); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05); } .store-detail-header-btn { width: 40px; height: 40px; border: none; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; background: transparent; color: var(--color-heritage-red); cursor: pointer; flex-shrink: 0; transition: transform 0.15s, background 0.2s; } .store-detail-header-btn:active { transform: scale(0.95); background: var(--color-surface-container-high); } .store-detail-header-title { flex: 1; opacity: 0; transition: opacity 0.3s; padding: 0 8px; } .store-detail-header-title.visible { opacity: 1; } .store-detail-main { padding-top: 56px; padding-bottom: 24px; } .store-detail-hero { background: var(--color-card); } .store-detail-carousel-wrap { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; } .store-detail-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; width: 100%; height: 100%; -ms-overflow-style: none; scrollbar-width: none; } .store-detail-carousel::-webkit-scrollbar { display: none; } .store-detail-carousel-item { flex: 0 0 100%; scroll-snap-align: start; height: 100%; } .store-detail-carousel-item .app-image, .store-detail-carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; } .store-detail-carousel-placeholder { width: 100%; height: 100%; background: var(--color-surface-container); } .store-detail-carousel-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 4px 12px; border-radius: var(--radius-full); background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(8px); pointer-events: none; } .store-detail-carousel-dot { width: 6px; height: 6px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.4); transition: opacity 0.3s, transform 0.3s; } .store-detail-carousel-dot.active { background: #fff; opacity: 1; transform: scale(1.2); } .store-detail-info-wrap { padding: 0 var(--space-page); margin-top: -24px; position: relative; z-index: 10; } .store-detail-info-card { padding: var(--space-md); background: var(--color-card); border-radius: var(--radius-lg); border: 1px solid rgba(166, 29, 36, 0.05); box-shadow: 0 4px 20px rgba(166, 29, 36, 0.05); } .store-detail-info-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } .store-detail-name { font-family: var(--font-headline); font-size: 20px; font-weight: 600; line-height: 28px; color: var(--color-ink-black); margin-bottom: 4px; } .store-detail-hours { font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; color: var(--color-on-surface-variant); margin-top: 4px; } .store-detail-category { display: inline-block; margin-top: 8px; padding: 2px 8px; font-size: 12px; color: var(--color-on-surface-variant); background: var(--color-surface-container-low); border-radius: var(--radius-sm); } .store-detail-status { flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: var(--radius-md); background: rgba(45, 106, 79, 0.1); color: var(--color-success-green, #2d6a4f); font-family: var(--font-label); font-size: 12px; font-weight: 500; } .store-detail-status.closed { background: var(--color-surface-container-high); color: var(--color-on-surface-variant); } .store-detail-status-dot { width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--color-success-green, #2d6a4f); animation: store-status-pulse 2s ease-in-out infinite; } @keyframes store-status-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .store-detail-tip { display: flex; gap: 8px; align-items: flex-start; margin: var(--space-md) var(--space-page) 0; padding: 12px; background: var(--color-surface-container-low); border: 1px solid rgba(166, 29, 36, 0.1); border-radius: var(--radius-md); } .store-detail-tip .material-symbols-outlined { font-size: 18px; color: var(--color-heritage-red); flex-shrink: 0; } .store-detail-tip p { font-family: var(--font-label); font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--color-on-surface-variant); } .store-detail-location { padding: 0 var(--space-page); margin-top: var(--space-lg); } .store-detail-location-card { background: var(--color-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 4px 20px rgba(166, 29, 36, 0.05); } .store-detail-map { position: relative; height: 160px; background: var(--color-surface-dim); } .store-detail-map .app-image, .store-detail-map img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; } .store-detail-map-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(255, 255, 255, 0.4), transparent); pointer-events: none; } .store-detail-location-body { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md); } .store-detail-location-text { flex: 1; min-width: 0; } .store-detail-location-text p { font-size: 14px; line-height: 20px; color: var(--color-on-surface); } .store-detail-distance { display: flex; align-items: center; gap: 4px; margin-top: 4px !important; font-family: var(--font-label); font-size: 12px; color: var(--color-subtle-gray, #999); } .store-detail-distance .material-symbols-outlined { font-size: 14px; } .store-detail-location-actions { display: flex; gap: 12px; flex-shrink: 0; } .store-detail-action-btn { width: 44px; height: 44px; border: none; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; background: var(--color-surface-container-high); color: var(--color-heritage-red); cursor: pointer; transition: background 0.2s, opacity 0.2s; } .store-detail-action-btn:active { opacity: 0.85; } .store-detail-action-btn--primary { background: var(--color-heritage-red); color: #fff; } .store-detail-services { padding: 0 var(--space-page); margin-top: var(--space-lg); } .store-detail-services h3 { font-family: var(--font-headline); font-size: 18px; font-weight: 600; color: var(--color-ink-black); margin-bottom: var(--space-md); } .store-detail-service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gutter); } .store-detail-service-item { display: flex; flex-direction: column; align-items: center; padding: 8px; background: var(--color-surface-container-low); border-radius: var(--radius-lg); gap: 4px; } .store-detail-service-item .material-symbols-outlined { font-size: 24px; color: var(--color-heritage-red); } .store-detail-service-item span:last-child { font-family: var(--font-label); font-size: 12px; color: var(--color-on-surface-variant); text-align: center; } .store-detail-intro { padding: 0 var(--space-page); margin-top: var(--space-lg); } .store-detail-intro h3 { font-family: var(--font-headline); font-size: 18px; font-weight: 600; color: var(--color-ink-black); margin-bottom: var(--space-md); } .store-detail-intro-card { position: relative; padding: var(--space-md); background: var(--color-card); border-radius: var(--radius-lg); border-left: 4px solid var(--color-heritage-red); box-shadow: inset 0 0 40px rgba(166, 29, 36, 0.02); overflow: hidden; } .store-detail-intro-card p { font-size: 14px; line-height: 1.6; color: var(--color-on-surface-variant); text-align: justify; } .store-detail-intro-foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-md); padding-top: 8px; border-top: 1px solid var(--color-surface-container-high); } .store-detail-intro-avatars { display: flex; } .store-detail-intro-avatars span { width: 32px; height: 32px; border-radius: var(--radius-full); border: 2px solid var(--color-card); margin-left: -8px; background: var(--color-surface-dim); } .store-detail-intro-avatars span:first-child { margin-left: 0; background: var(--color-surface-dim); } .store-detail-intro-avatars span:nth-child(2) { background: var(--color-surface-container-high); } .store-detail-intro-avatars span:nth-child(3) { background: var(--color-primary-fixed, #ffdad7); } .store-detail-intro-stat { font-family: var(--font-label); font-size: 12px; color: var(--color-subtle-gray, #999); } .store-detail-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; padding: var(--space-page); background: rgba(250, 249, 247, 0.9); backdrop-filter: blur(12px); border-top: 1px solid var(--color-surface-container-high); } .store-detail-footer-inner { display: flex; align-items: center; gap: var(--space-md); max-width: 480px; margin: 0 auto; } .store-detail-balance { display: flex; flex-direction: column; flex-shrink: 0; } .store-detail-balance-label { font-family: var(--font-label); font-size: 12px; color: var(--color-subtle-gray, #999); } .store-detail-balance-value { font-family: var(--font-headline); font-size: 18px; font-weight: 600; color: var(--color-heritage-red); } .store-detail-redeem-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border: none; border-radius: var(--radius-lg); background: var(--color-heritage-red); color: #fff; font-family: var(--font-headline); font-size: 18px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 24px rgba(166, 29, 36, 0.2); transition: opacity 0.2s, transform 0.15s; } .store-detail-redeem-btn:active { transform: scale(0.98); opacity: 0.9; } /* ── 子页面统一顶栏(确认订单 / 地址 / 支付 / 订单详情) ── */ :root { --sub-page-header-offset: calc(56px + 12px); } .sub-page-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 56px; padding: 0 var(--space-page); display: flex; align-items: center; justify-content: center; background: var(--color-background); box-shadow: var(--shadow-card); } .sub-page-header-back { position: absolute; left: var(--space-page); top: 50%; transform: translateY(-50%); width: 40px; height: 40px; margin-left: -8px; border: none; background: none; display: flex; align-items: center; justify-content: center; color: var(--color-heritage-red); cursor: pointer; transition: transform 0.15s; } .sub-page-header-back:active { transform: translateY(-50%) scale(0.95); } .sub-page-header-back .material-symbols-outlined { font-size: 24px; } .sub-page-body { padding-top: var(--sub-page-header-offset, 68px); } /* ── Tab 主页面统一顶栏 ── */ .tab-main-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: center; height: 56px; padding: 0 var(--space-page); background: var(--color-background); box-shadow: var(--shadow-card); } .tab-main-header-extra { position: absolute; right: var(--space-page); top: 50%; transform: translateY(-50%); } .tab-main-city { display: flex; align-items: center; gap: 4px; color: var(--color-heritage-red); font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; max-width: 46vw; } .tab-main-city--readonly { pointer-events: none; user-select: none; } .tab-main-city-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; } .tab-main-city .material-symbols-outlined { font-size: 20px; } /* ── 门店列表(stitch user_门店列表_143) ── */ .store-page { background: var(--color-background); padding-bottom: 80px; min-height: 100vh; } .store-header { position: sticky; top: 0; z-index: 50; background: var(--color-background); } .store-toolbar { padding: 0 var(--space-page) var(--space-md); display: flex; flex-direction: column; gap: var(--space-gutter); } .store-location { display: inline-flex; align-items: center; gap: 4px; border: none; background: none; padding: 0; color: var(--color-on-surface-variant); font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; cursor: pointer; } .store-location .material-symbols-outlined { font-size: 18px; } .store-location-arrow { font-size: 16px !important; } .store-search { position: relative; } .store-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--color-outline); pointer-events: none; } .store-search input { width: 100%; height: 44px; padding: 0 16px 0 40px; border: none; border-radius: var(--radius-md); background: var(--color-surface-container-low); font-size: 14px; line-height: 20px; color: var(--color-on-surface); outline: none; } .store-search input:focus { box-shadow: 0 0 0 1px rgba(130, 0, 18, 0.2); } .store-search input::placeholder { color: var(--color-subtle-gray); } .store-category-bar { background: var(--color-background); border-bottom: 1px solid rgba(226, 190, 188, 0.1); } .store-category-tabs { display: flex; overflow-x: auto; padding: 12px var(--space-page); gap: 32px; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .store-category-tabs::-webkit-scrollbar { display: none; } .store-category-tab { position: relative; flex-shrink: 0; border: none; background: none; padding: 0; font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; line-height: 16px; color: var(--color-on-surface-variant); white-space: nowrap; cursor: pointer; transition: color 0.2s; } .store-category-tab.active { color: var(--color-heritage-red); } .store-category-tab.active::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 16px; height: 2px; background: var(--color-heritage-red); border-radius: 1px; } .store-list { padding: 24px var(--space-page); display: flex; flex-direction: column; gap: var(--space-md); } .store-card { display: flex; gap: var(--space-md); padding: var(--space-gutter); background: var(--color-card); border-radius: var(--radius-lg); border: var(--border-card); box-shadow: var(--shadow-card); transition: transform 0.1s; cursor: pointer; } .store-card:active { transform: scale(0.98); } .store-card-cover { flex-shrink: 0; width: 96px; height: 96px; border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface-container); } .store-card-cover .app-image, .store-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; } .store-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; } .store-card-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .store-card-name { font-family: var(--font-headline); font-size: 18px; font-weight: 600; line-height: 26px; color: var(--color-on-surface); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; } .store-card-distance { flex-shrink: 0; font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; color: var(--color-on-surface-variant); margin-top: 4px; } .store-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; } .store-card-hours { font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; color: var(--color-on-surface-variant); } .store-card-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: 8px; } .store-card-address { font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; color: var(--color-on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; margin-right: 8px; } .store-redeem-btn { flex-shrink: 0; padding: 6px 16px; background: var(--color-heritage-red); color: var(--color-on-primary); font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; border-radius: var(--radius-md); text-decoration: none; transition: transform 0.1s; } .store-redeem-btn:active { transform: scale(0.95); } .store-empty { text-align: center; padding: 48px var(--space-md); color: var(--color-subtle-gray); font-size: 14px; } .store-list-end { text-align: center; padding: var(--space-md) 0; font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; color: var(--color-outline); } /* Product cards (legacy pages) */ .product-card { overflow: hidden; padding: 0; } .product-card img { width: 100%; height: 200px; object-fit: cover; } .product-body { padding: var(--space-md); } .product-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; } .product-name { font-family: var(--font-headline); font-weight: 700; font-size: 16px; } .product-price { color: var(--color-heritage-red); font-weight: 700; font-size: 18px; } .product-sub { color: var(--color-subtle-gray); font-size: 13px; margin-bottom: 12px; } .product-actions { display: flex; justify-content: space-between; align-items: center; } .order-tabs { overflow-x: auto; white-space: nowrap; } .order-tabs .tab { flex: none; min-width: 72px; display: inline-block; } /* ── 首页(stitch user_商品列表_15) ── */ .home-page { background: var(--color-background); padding-bottom: 80px; } .home-aroma-nav { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px var(--space-page); background: rgba(250, 249, 247, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-surface-container); position: sticky; top: 56px; z-index: 40; } /* 首页有城市栏顶栏时 top=56;无额外内容已不渲染顶栏时贴顶 */ .home-page:not(:has(.tab-main-header)) .home-aroma-nav { top: 0; } .home-aroma-tab { border: none; background: none; padding: 6px 12px; font-family: var(--font-headline); font-size: 18px; font-weight: 600; line-height: 26px; color: var(--color-subtle-gray); border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; } .home-aroma-tab.active { color: var(--color-heritage-red); border-bottom-color: var(--color-heritage-red); } .home-aroma-tab.muted { opacity: 0.65; cursor: pointer; } .home-product-card { background: var(--color-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); } .home-product-link { display: block; color: inherit; text-decoration: none; } .home-product-link:active { opacity: 0.96; } .home-product-actions { padding: 0 var(--space-gutter) var(--space-gutter); display: flex; justify-content: flex-end; } .home-carousel-wrap { position: relative; width: 100%; aspect-ratio: 21 / 21; flex-shrink: 0; background: var(--color-surface-container); overflow: hidden; } .home-carousel-item .app-image { width: 100%; height: 100%; } .home-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; height: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .home-carousel::-webkit-scrollbar { display: none; } .home-carousel-item { flex: 0 0 100%; scroll-snap-align: start; height: 100%; } .home-carousel-item .app-image, .home-carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; } .home-carousel-placeholder { width: 100%; height: 100%; background: var(--color-surface-container); } .home-carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px 8px; border-radius: var(--radius-full); background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(4px); pointer-events: none; } .home-carousel-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); } .home-carousel-dot.active { background: #fff; } .home-product-body { padding: var(--space-gutter); display: flex; flex-direction: column; gap: 4px; } .home-product-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .home-product-name { font-family: var(--font-headline); font-size: 18px; font-weight: 600; line-height: 26px; color: var(--color-on-surface); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .home-product-price { font-family: var(--font-headline); font-size: 24px; font-weight: 600; line-height: 32px; color: var(--color-heritage-red); flex-shrink: 0; } .home-product-sub { font-size: 14px; line-height: 20px; color: var(--color-on-surface-variant); } .home-product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; } .home-coupon-badge { position: relative; display: inline-flex; align-items: center; background: var(--color-aged-amber); color: var(--color-on-secondary-container); padding: 4px 12px; border-radius: 2px; font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; } .home-coupon-badge::before, .home-coupon-badge::after { content: ''; position: absolute; top: 50%; width: 8px; height: 8px; background: var(--color-card); border-radius: 50%; transform: translateY(-50%); } .home-coupon-badge::before { left: -4px; } .home-coupon-badge::after { right: -4px; } .home-buy-btn { background: var(--color-heritage-red); color: var(--color-on-primary); padding: 6px 20px; border-radius: var(--radius-full); font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; transition: opacity 0.2s, transform 0.1s; } .home-buy-btn:active { transform: scale(0.95); opacity: 0.9; } .cross-city-banner { display: flex; align-items: center; gap: 8px; margin: var(--space-gutter) var(--space-page); padding: 12px var(--space-md); background: var(--color-secondary-container); color: var(--color-on-secondary-container); border-radius: var(--radius-md); font-size: 14px; } .form-select { width: 100%; padding: 12px; border: 1px solid var(--color-outline-variant); border-radius: var(--radius-md); background: var(--color-card); } .pay-page .pay-body { text-align: center; padding-left: var(--space-page); padding-right: var(--space-page); padding-bottom: 48px; } .pay-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: rgba(45, 106, 79, 0.1); display: flex; align-items: center; justify-content: center; color: var(--color-success-green); } .pay-icon .material-symbols-outlined { font-size: 40px; } .pay-wechat-auth-card { margin-top: 24px; padding: 16px; border-radius: 12px; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); text-align: center; } .pay-wechat-auth-title { font-size: 16px; font-weight: 600; color: var(--color-on-surface); margin: 0 0 8px; } .pay-wechat-auth-desc { font-size: 13px; color: var(--color-muted, #999); margin: 0 0 16px; line-height: 1.5; } .pay-wechat-auth-btn { width: 100%; max-width: 280px; margin: 0 auto; } .pay-wechat-auth-msg { margin-top: 16px; font-size: 13px; color: var(--color-primary, #a02d30); line-height: 1.5; } .success-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: rgba(45, 106, 79, 0.1); color: var(--color-success-green); font-size: 32px; line-height: 64px; font-weight: 700; } .redeem-success-page { padding-bottom: 24px; } .redeem-success-hero { text-align: center; padding: 24px 16px 8px; } .redeem-success-amount { margin-top: 12px; font-size: 28px; font-weight: 700; color: var(--color-primary, #a02d30); } .redeem-success-details { margin: 16px; } .redeem-success-detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); font-size: 14px; } .redeem-success-detail-row:last-child { border-bottom: none; } .redeem-success-detail-row span:first-child { color: var(--color-on-surface-variant, #666); flex-shrink: 0; } .redeem-success-detail-row span:last-child { text-align: right; word-break: break-all; } .redeem-success-mono { font-family: ui-monospace, monospace; font-size: 13px; } .redeem-success-rating { margin: 0 16px; } .redeem-success-rating-title { margin: 0 0 16px; font-weight: 600; text-align: center; } .redeem-rating-row { margin-bottom: 20px; } .redeem-rating-label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--color-on-surface-variant, #666); } .redeem-star-row { display: flex; justify-content: center; gap: 8px; } .redeem-star-btn { border: none; background: none; font-size: 32px; line-height: 1; color: #ddd; cursor: pointer; padding: 0; } .redeem-star-btn.active { color: #ffc107; } /* ── 登录页(stitch user_用户登录页_C端小程序) ── */ .login-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--color-background); color: var(--color-on-surface); } .login-header { padding: 64px var(--space-page) 40px; display: flex; flex-direction: column; align-items: center; } .login-logo-wrap { position: relative; width: 120px; height: 120px; margin-bottom: 32px; } .login-logo { width: 100%; height: 100%; border-radius: var(--radius-lg); background: var(--color-card); box-shadow: var(--shadow-card); padding: 8px; } .login-logo .app-image-img.is-loaded { width: 100%; height: 100%; object-fit: contain; } .login-logo-badge { position: absolute; bottom: -8px; right: -8px; background: var(--color-heritage-red); color: var(--color-on-primary); font-family: var(--font-label); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full); } .login-welcome { text-align: center; } .login-welcome-title { font-family: var(--font-headline); font-size: 20px; font-weight: 600; line-height: 28px; color: var(--color-ink-black); letter-spacing: -0.01em; } .login-welcome-sub { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--color-on-surface-variant); opacity: 0.8; } .login-main { flex: 1; padding: 0 var(--space-page) 48px; max-width: 480px; width: 100%; margin: 0 auto; } .login-wechat-btn { width: 100%; height: 56px; border: none; border-radius: var(--radius-lg); background: var(--color-heritage-red); color: var(--color-on-primary); display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--font-headline); font-size: 18px; font-weight: 600; line-height: 26px; cursor: pointer; box-shadow: 0 8px 24px rgba(166, 29, 36, 0.1); transition: transform 0.15s; } .login-wechat-btn:active { transform: scale(0.98); } .login-wechat-icon { font-size: 24px; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; } .login-divider { display: flex; align-items: center; gap: 16px; margin: 32px 0; } .login-divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent 0%, var(--color-surface-variant) 50%, transparent 100%); } .login-divider-text { font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; color: var(--color-subtle-gray); flex-shrink: 0; } .login-card { background: var(--color-card); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-card); } .login-card-title { font-family: var(--font-headline); font-size: 18px; font-weight: 600; line-height: 26px; margin-bottom: 16px; } .login-field { display: flex; align-items: center; border-bottom: 1px solid var(--color-surface-variant); padding-bottom: 8px; margin-bottom: 16px; transition: border-color 0.2s; } .login-field:focus-within { border-bottom-color: var(--color-heritage-red); } .login-field-prefix { font-size: 16px; font-weight: 500; color: var(--color-on-surface); margin-right: 12px; flex-shrink: 0; } .login-field-input { flex: 1; border: none; background: transparent; padding: 0; font-size: 16px; line-height: 24px; color: var(--color-on-surface); min-width: 0; } .login-field-input:focus { outline: none; } .login-field-input::placeholder { color: var(--color-subtle-gray); } .login-get-code { border: none; background: none; padding: 0; flex-shrink: 0; font-size: 14px; font-weight: 500; color: var(--color-heritage-red); cursor: pointer; white-space: nowrap; } .login-get-code.disabled { color: var(--color-subtle-gray); cursor: not-allowed; } .login-msg { font-size: 13px; color: var(--color-heritage-red); margin-bottom: 12px; } .login-sms-btn { width: 100%; height: 48px; margin-top: 8px; border: 1px solid rgba(166, 29, 36, 0.2); border-radius: var(--radius-lg); background: transparent; color: var(--color-heritage-red); font-family: var(--font-headline); font-size: 18px; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.15s; } .login-sms-btn:hover { background: rgba(166, 29, 36, 0.05); } .login-sms-btn:active { transform: scale(0.98); } .login-sms-btn:disabled { opacity: 0.6; cursor: not-allowed; } .login-footer { padding: 0 var(--space-page) calc(env(safe-area-inset-bottom, 0px) + 32px); max-width: 480px; width: 100%; margin: 0 auto; } .login-agreement { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 16px; font-family: var(--font-label); font-size: 12px; font-weight: 500; line-height: 16px; letter-spacing: 0.05em; color: var(--color-on-surface-variant); cursor: pointer; } .login-agreement input { margin-top: 0; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--color-heritage-red); } .login-agreement a { color: var(--color-heritage-red); text-decoration: none; } /* ── 商品详情页(stitch user_商品详情页) ── */ .product-detail-page { min-height: 100vh; background: var(--color-background); padding-bottom: 80px; } .product-detail-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 56px; padding: 0 var(--space-page); display: flex; align-items: center; justify-content: space-between; transition: background 0.3s, box-shadow 0.3s; background: transparent; } .product-detail-header.solid { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05); } .product-detail-header-btn { width: 40px; height: 40px; border: none; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); cursor: pointer; flex-shrink: 0; transition: transform 0.15s, background 0.3s; } .product-detail-header.solid .product-detail-header-btn { background: transparent; } .product-detail-header-btn:active { transform: scale(0.95); } .product-detail-header-title { flex: 1; opacity: 0; transition: opacity 0.3s; padding: 0 8px; } .product-detail-header-title.visible { opacity: 1; } .product-detail-main { padding-bottom: 24px; } .product-detail-hero { background: var(--color-card); } .detail-carousel-wrap { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; } .detail-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; width: 100%; height: 100%; -ms-overflow-style: none; scrollbar-width: none; } .detail-carousel::-webkit-scrollbar { display: none; } .detail-carousel-item { flex: 0 0 100%; scroll-snap-align: start; height: 100%; } .detail-carousel-item .app-image, .detail-carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; } .detail-carousel-placeholder { width: 100%; height: 100%; background: var(--color-surface-container); } .detail-carousel-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; } .detail-carousel-dot { height: 4px; width: 6px; border-radius: var(--radius-full); background: rgba(153, 153, 153, 0.3); transition: width 0.3s, background 0.3s; } .detail-carousel-dot.active { width: 24px; background: var(--color-heritage-red); } .product-detail-info { padding: var(--space-md) var(--space-page) var(--space-lg); } .product-detail-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 8px; } .product-detail-price-symbol { font-family: var(--font-headline); font-size: 16px; font-weight: 600; color: var(--color-heritage-red); } .product-detail-price-value { font-family: var(--font-headline); font-size: 32px; font-weight: 700; line-height: 40px; letter-spacing: -0.02em; color: var(--color-heritage-red); } .product-detail-name { font-family: var(--font-headline); font-size: 20px; font-weight: 700; line-height: 28px; color: var(--color-ink-black); margin-bottom: 4px; } .product-detail-subtitle { font-size: 14px; line-height: 20px; color: var(--color-on-surface-variant); margin-bottom: 24px; } .product-detail-promo { position: relative; padding: 16px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff9e6 0%, #fff0c2 100%); border: 1px solid rgba(255, 191, 0, 0.1); box-shadow: 0 4px 20px rgba(166, 29, 36, 0.05); overflow: hidden; } .product-detail-promo-glow { position: absolute; top: -16px; right: -16px; width: 80px; height: 80px; border-radius: 50%; background: rgba(166, 29, 36, 0.05); filter: blur(24px); } .product-detail-promo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; position: relative; z-index: 1; } .product-detail-promo-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--color-heritage-red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .product-detail-promo-icon .material-symbols-outlined { font-size: 20px; color: var(--color-on-primary); font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; } .product-detail-promo-title { font-family: var(--font-headline); font-size: 16px; font-weight: 700; line-height: 22px; color: var(--color-on-secondary-fixed-variant, #574500); } .product-detail-promo-amount { color: var(--color-heritage-red); margin-left: 4px; } .product-detail-promo-desc { font-size: 14px; line-height: 22px; color: rgba(87, 69, 0, 0.8); padding-left: 52px; position: relative; z-index: 1; } .product-detail-promo-deco { position: absolute; bottom: 8px; right: 16px; font-size: 64px; opacity: 0.1; pointer-events: none; } .product-detail-content { background: var(--color-card); border-radius: 24px 24px 0 0; padding-top: var(--space-lg); padding-bottom: 24px; } .product-detail-section-head { display: flex; align-items: center; gap: 8px; padding: 0 var(--space-page); margin-bottom: var(--space-md); } .product-detail-section-bar { width: 4px; height: 20px; border-radius: var(--radius-full); background: var(--color-heritage-red); } .product-detail-section-head h3 { font-family: var(--font-headline); font-size: 18px; font-weight: 600; color: var(--color-ink-black); } .product-detail-banner { width: 100%; display: block; min-height: 120px; } .product-detail-banner .app-image-img.is-loaded { width: 100%; height: auto; } .product-detail-copy { padding: var(--space-lg) var(--space-page); } .product-detail-story { text-align: center; margin-bottom: 24px; } .product-detail-story h4 { font-family: var(--font-headline); font-size: 18px; font-weight: 700; color: var(--color-heritage-red); margin-bottom: 8px; } .product-detail-story p { font-size: 14px; line-height: 22px; color: var(--color-on-surface-variant); } .product-detail-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .product-detail-feature { background: var(--color-surface-container-low); border: 1px solid rgba(226, 190, 188, 0.3); border-radius: var(--radius-lg); padding: 16px; text-align: center; } .product-detail-feature .material-symbols-outlined { font-size: 24px; color: var(--color-heritage-red); } .product-detail-feature-title { font-family: var(--font-headline); font-size: 14px; font-weight: 600; color: var(--color-ink-black); margin-top: 8px; } .product-detail-feature-desc { font-size: 12px; color: var(--color-subtle-gray); margin-top: 4px; } .product-detail-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; height: 80px; padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px); display: flex; align-items: center; gap: 16px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-top: 1px solid rgba(226, 190, 188, 0.1); max-width: 480px; margin: 0 auto; } .product-detail-bar-home { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; color: var(--color-on-surface-variant); text-decoration: none; font-size: 10px; font-weight: 500; } .product-detail-bar-home .material-symbols-outlined { font-size: 24px; } .product-detail-buy-btn { flex: 1; height: 48px; border: none; border-radius: var(--radius-full); background: var(--color-heritage-red); color: var(--color-on-primary); font-family: var(--font-headline); font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgba(166, 29, 36, 0.2); transition: transform 0.15s; } .product-detail-buy-btn:active { transform: scale(0.98); } .fill-icon { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; } /* ── 确认订单页(stitch user_确认订单页_物流到付版) ── */ .order-confirm-page { min-height: 100vh; background: var(--color-background); padding-bottom: 96px; } .order-confirm-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 56px; padding: 0 var(--space-page); display: flex; align-items: center; background: var(--color-background); } .order-confirm-back { margin-right: 16px; border: none; background: none; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--color-primary); cursor: pointer; } .order-confirm-back .material-symbols-outlined { font-size: 24px; } .order-confirm-title { font-family: var(--font-headline); font-size: 20px; font-weight: 600; line-height: 28px; color: var(--color-heritage-red); } .order-confirm-main { padding-left: var(--space-page); padding-right: var(--space-page); padding-bottom: 32px; display: flex; flex-direction: column; gap: var(--space-md); max-width: 480px; margin: 0 auto; } .order-confirm-card { background: var(--color-card); border-radius: var(--radius-lg); padding: var(--space-md); box-shadow: 0 4px 20px rgba(166, 29, 36, 0.05); } .order-confirm-address { width: 100%; border: none; text-align: left; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: opacity 0.15s; } .order-confirm-address:active { opacity: 0.8; } .order-confirm-pin { flex-shrink: 0; color: var(--color-heritage-red); font-size: 24px; } .order-confirm-address-body { flex: 1; min-width: 0; } .order-confirm-address-row { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; } .order-confirm-address-name { font-family: var(--font-headline); font-size: 18px; font-weight: 600; color: var(--color-ink-black); } .order-confirm-address-phone { font-size: 14px; color: var(--color-on-surface-variant); } .order-confirm-address-detail { font-size: 14px; line-height: 22px; color: var(--color-on-surface-variant); } .order-confirm-address-placeholder { flex: 1; font-size: 16px; color: var(--color-subtle-gray); } .order-confirm-chevron { flex-shrink: 0; color: var(--color-outline-variant); font-size: 24px; } .order-confirm-warning { display: flex; gap: 12px; align-items: flex-start; background: #fff5f5; border: 1px solid rgba(166, 29, 36, 0.1); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); } .order-confirm-warning-icon { flex-shrink: 0; font-size: 20px; color: var(--color-heritage-red); margin-top: 2px; } .order-confirm-warning-text { flex: 1; font-family: var(--font-label); font-size: 12px; font-weight: 500; line-height: 18px; letter-spacing: 0.05em; color: var(--color-heritage-red); } .order-confirm-product { display: flex; gap: 16px; } .order-confirm-product-thumb { width: 96px; height: 96px; flex-shrink: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-container); } .order-confirm-product-thumb .app-image, .order-confirm-product-thumb img { width: 100%; height: 100%; object-fit: cover; } .order-confirm-product-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 4px 0; min-width: 0; } .order-confirm-product-name { font-family: var(--font-headline); font-size: 18px; font-weight: 600; color: var(--color-ink-black); } .order-confirm-product-spec { margin-top: 4px; font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; color: var(--color-subtle-gray); } .order-confirm-product-meta { display: flex; justify-content: space-between; align-items: flex-end; } .order-confirm-qty-stepper { display: flex; align-items: center; gap: 8px; } .order-confirm-qty-btn { width: 28px; height: 28px; border: 1px solid var(--color-outline-variant); border-radius: 6px; background: var(--color-card); color: var(--color-on-surface-variant); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; } .order-confirm-qty-btn .material-symbols-outlined { font-size: 18px; } .order-confirm-qty-btn:disabled { opacity: 0.4; cursor: not-allowed; } .order-confirm-qty-btn--plus { border-color: var(--color-heritage-red); background: var(--color-heritage-red); color: var(--color-on-primary); } .order-confirm-qty-value { min-width: 20px; text-align: center; font-size: 14px; font-weight: 500; color: var(--color-on-surface); } .order-confirm-product-price { font-family: var(--font-headline); font-size: 18px; font-weight: 600; color: var(--color-heritage-red); } .order-confirm-product-qty { font-size: 14px; color: var(--color-on-surface-variant); } .order-confirm-benefit { background: #fff5f5; border: 1px solid rgba(255, 191, 0, 0.3); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); position: relative; overflow: hidden; } .coupon-notch::before, .coupon-notch::after { content: ''; position: absolute; top: 50%; width: 12px; height: 12px; background: var(--color-background); border-radius: 50%; transform: translateY(-50%); z-index: 1; } .coupon-notch::before { left: -6px; } .coupon-notch::after { right: -6px; } .order-confirm-benefit-inner { display: flex; align-items: center; gap: 12px; } .order-confirm-benefit-badge { flex-shrink: 0; background: var(--color-aged-amber); color: var(--color-on-secondary-fixed-variant, #574500); font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 4px; } .order-confirm-benefit-text { font-family: var(--font-headline); font-size: 16px; font-weight: 600; color: var(--color-heritage-red); } .order-confirm-row-card { display: flex; justify-content: space-between; align-items: center; } .order-confirm-row-label { font-size: 16px; color: var(--color-on-surface); } .order-confirm-row-value { font-size: 14px; color: var(--color-on-surface); } .order-confirm-delivery-value { text-align: right; } .order-confirm-delivery-hint { margin-top: 2px; font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; color: var(--color-success-green); } .order-confirm-summary { display: flex; flex-direction: column; gap: 12px; } .order-confirm-summary-line { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--color-on-surface-variant); } .order-confirm-freight-cod { color: var(--color-heritage-red); font-weight: 700; } .order-confirm-summary-total { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--color-surface-variant); } .order-confirm-summary-total > span:first-child { font-family: var(--font-headline); font-size: 18px; font-weight: 600; color: var(--color-ink-black); } .order-confirm-total-amount { font-family: var(--font-headline); font-size: 32px; font-weight: 700; line-height: 40px; letter-spacing: -0.02em; color: var(--color-heritage-red); } .order-confirm-loading { text-align: center; padding: 24px; font-size: 14px; color: var(--color-subtle-gray); } .order-confirm-msg { font-size: 14px; color: var(--color-heritage-red); text-align: center; } .order-confirm-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: var(--color-card); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 -4px 20px rgba(166, 29, 36, 0.05); padding-bottom: env(safe-area-inset-bottom, 0px); } .order-confirm-footer-inner { height: 80px; padding: 0 var(--space-page); display: flex; justify-content: space-between; align-items: center; max-width: 480px; margin: 0 auto; } .order-confirm-pay-label { display: flex; align-items: baseline; gap: 4px; } .order-confirm-pay-prefix { font-size: 14px; color: var(--color-on-surface-variant); } .order-confirm-pay-amount { font-family: var(--font-headline); font-size: 32px; font-weight: 700; line-height: 40px; letter-spacing: -0.02em; color: var(--color-heritage-red); } .order-confirm-pay-btn { border: none; background: var(--color-heritage-red); color: var(--color-on-primary); font-family: var(--font-headline); font-size: 18px; font-weight: 600; padding: 14px 40px; border-radius: var(--radius-lg); box-shadow: 0 8px 24px rgba(166, 29, 36, 0.2); cursor: pointer; transition: transform 0.15s, opacity 0.15s; } .order-confirm-pay-btn:active:not(:disabled) { transform: scale(0.95); } .order-confirm-pay-btn:disabled { opacity: 0.6; cursor: not-allowed; } /* ── 新增/编辑地址页(stitch user_新增地址页面) ── */ .address-edit-page { min-height: 100vh; background: var(--color-background); padding-bottom: 96px; } .address-edit-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 56px; padding: 0 var(--space-page); display: flex; align-items: center; justify-content: space-between; background: var(--color-background); } .address-edit-back { border: none; background: none; padding: 0; color: var(--color-primary); cursor: pointer; display: flex; align-items: center; transition: transform 0.15s; } .address-edit-back:active { transform: scale(0.95); } .address-edit-title { font-family: var(--font-headline); font-size: 20px; font-weight: 600; line-height: 28px; color: var(--color-primary); } .address-edit-header-spacer { width: 24px; } .address-edit-main { padding-left: var(--space-page); padding-right: var(--space-page); padding-bottom: 32px; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-md); } .address-edit-card { background: var(--color-card); border-radius: var(--radius-lg); padding: var(--space-md); border: 1px solid rgba(130, 0, 18, 0.05); box-shadow: 0 4px 20px rgba(166, 29, 36, 0.05); } .address-edit-field { margin-bottom: 24px; width: 100%; border: none; background: none; text-align: left; padding: 0; } .address-edit-field--last { margin-bottom: 8px; } .address-edit-region { cursor: pointer; } .address-edit-region:active .address-edit-line--picker { opacity: 0.7; } .address-edit-label { display: block; font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; color: var(--color-on-surface-variant); margin-bottom: 8px; margin-left: 4px; } .address-edit-line { display: flex; align-items: center; border-bottom: 1px solid var(--color-outline-variant); padding: 8px 0; transition: border-color 0.2s, box-shadow 0.2s; } .address-edit-line:focus-within { border-bottom-color: var(--color-heritage-red); box-shadow: 0 1px 0 0 rgba(166, 29, 36, 0.1); } .address-edit-line--picker { justify-content: space-between; } .address-edit-input { flex: 1; border: none; background: transparent; font-size: 16px; line-height: 24px; color: var(--color-on-surface); min-width: 0; padding: 0; } .address-edit-input:focus { outline: none; } .address-edit-input::placeholder { color: var(--color-subtle-gray); } .address-edit-prefix { font-size: 16px; color: var(--color-on-surface-variant); margin-right: 8px; flex-shrink: 0; } .address-edit-field-icon { font-size: 20px; color: var(--color-outline); flex-shrink: 0; } .address-edit-region-placeholder { font-size: 16px; color: var(--color-subtle-gray); } .address-edit-region-value { font-size: 16px; color: var(--color-on-surface); } .address-edit-textarea-wrap { border: 1px solid var(--color-outline-variant); border-radius: var(--radius-lg); padding: 12px; background: var(--color-surface-container-low); transition: border-color 0.2s, box-shadow 0.2s; } .address-edit-textarea-wrap:focus-within { border-color: var(--color-heritage-red); box-shadow: 0 0 0 1px rgba(166, 29, 36, 0.1); } .address-edit-textarea { width: 100%; border: none; background: transparent; font-size: 16px; line-height: 24px; color: var(--color-on-surface); resize: none; padding: 0; } .address-edit-textarea:focus { outline: none; } .address-edit-textarea::placeholder { color: var(--color-subtle-gray); } .address-edit-default { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .address-edit-default-info { display: flex; align-items: center; gap: 12px; min-width: 0; } .address-edit-default-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--color-primary-fixed, #ffdad7); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .address-edit-default-icon .material-symbols-outlined { font-size: 20px; color: var(--color-primary); } .address-edit-default-title { font-family: var(--font-headline); font-size: 18px; font-weight: 600; color: var(--color-on-surface); } .address-edit-default-desc { font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; color: var(--color-on-surface-variant); margin-top: 2px; } .address-edit-toggle { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; cursor: pointer; } .address-edit-toggle input { position: absolute; opacity: 0; width: 0; height: 0; } .address-edit-toggle-track { width: 44px; height: 24px; border-radius: var(--radius-full); background: var(--color-surface-container-highest); transition: background 0.2s; } .address-edit-toggle-thumb { position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-card); border: 1px solid rgba(0, 0, 0, 0.08); transition: transform 0.2s; pointer-events: none; } .address-edit-toggle input:checked ~ .address-edit-toggle-track { background: var(--color-heritage-red); } .address-edit-toggle input:checked ~ .address-edit-toggle-thumb { transform: translateX(20px); } .address-edit-security { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; color: rgba(130, 0, 18, 0.6); } .address-edit-security .material-symbols-outlined { font-size: 18px; } .address-edit-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: flex; gap: 12px; padding: var(--space-md) var(--space-page) calc(env(safe-area-inset-bottom, 0px) + var(--space-md)); background: var(--color-background); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 -4px 20px rgba(166, 29, 36, 0.05); max-width: 480px; margin: 0 auto; } .address-edit-cancel-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 1px solid var(--color-outline); border-radius: var(--radius-lg); background: transparent; color: var(--color-on-surface-variant); font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; cursor: pointer; transition: transform 0.15s, background 0.15s; } .address-edit-cancel-btn:hover { background: rgba(166, 29, 36, 0.05); } .address-edit-cancel-btn:active { transform: scale(0.98); } .address-edit-save-btn { flex: 2; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: none; border-radius: var(--radius-lg); background: var(--color-heritage-red); color: var(--color-on-primary); font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; cursor: pointer; box-shadow: 0 8px 24px rgba(166, 29, 36, 0.2); transition: transform 0.15s, opacity 0.15s; } .address-edit-save-btn:active:not(:disabled) { transform: scale(0.98); } .address-edit-save-btn:disabled { opacity: 0.7; cursor: not-allowed; } .address-edit-picker-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(26, 26, 26, 0.4); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; } .address-edit-picker-sheet { width: 100%; max-width: 480px; background: var(--color-background); border-radius: 24px 24px 0 0; padding: var(--space-lg) var(--space-page) calc(env(safe-area-inset-bottom, 0px) + var(--space-lg)); animation: address-picker-slide 0.3s ease; } @keyframes address-picker-slide { from { transform: translateY(100%); } to { transform: translateY(0); } } .address-edit-picker-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; } .address-edit-picker-head h4 { font-family: var(--font-headline); font-size: 20px; font-weight: 600; color: var(--color-on-surface); } .address-edit-picker-head button { border: none; background: none; padding: 0; color: var(--color-on-surface-variant); cursor: pointer; } .address-edit-picker-list { max-height: 384px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; } .address-edit-picker-item { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px; border: 1px solid var(--color-outline-variant); border-radius: var(--radius-lg); background: var(--color-card); font-size: 16px; color: var(--color-on-surface); cursor: pointer; text-align: left; transition: background 0.15s; } .address-edit-picker-item.selected { background: var(--color-primary-fixed, #ffdad7); } .address-edit-picker-item .material-symbols-outlined { color: var(--color-primary); } .address-edit-picker-confirm { width: 100%; margin-top: 32px; height: 52px; border: none; border-radius: var(--radius-lg); background: var(--color-primary); color: var(--color-on-primary); font-family: var(--font-headline); font-size: 18px; font-weight: 600; cursor: pointer; transition: transform 0.15s; } .address-edit-picker-confirm:active { transform: scale(0.95); } .region-picker-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(26, 26, 26, 0.45); display: flex; align-items: flex-end; justify-content: center; } .region-picker-sheet { width: 100%; max-width: 480px; background: #fff; border-radius: 16px 16px 0 0; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); max-height: 56vh; display: flex; flex-direction: column; animation: address-picker-slide 0.28s ease; } .region-picker-toolbar { display: flex; align-items: stretch; padding: 0 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); flex-shrink: 0; } .region-picker-tabs { flex: 1; display: flex; align-items: stretch; gap: 28px; min-width: 0; } .region-picker-tab { position: relative; border: none; background: none; padding: 14px 0 12px; font-size: 15px; line-height: 22px; color: var(--color-subtle-gray); cursor: pointer; white-space: nowrap; } .region-picker-tab.active { color: var(--color-on-surface); font-weight: 500; } .region-picker-tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--color-heritage-red); border-radius: 1px; } .region-picker-tab:disabled { opacity: 0.45; cursor: not-allowed; } .region-picker-confirm { flex-shrink: 0; border: none; background: none; padding: 14px 0 12px 12px; font-size: 15px; line-height: 22px; color: var(--color-subtle-gray); cursor: pointer; } .region-picker-confirm.ready { color: var(--color-heritage-red); font-weight: 500; } .region-picker-confirm:disabled { cursor: not-allowed; } .region-picker-list { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 0 8px; } .region-picker-option { display: block; width: 100%; border: none; background: none; text-align: left; padding: 14px 20px; font-size: 16px; line-height: 24px; color: var(--color-on-surface); cursor: pointer; } .region-picker-option:active { background: rgba(0, 0, 0, 0.03); } .region-picker-option.selected { color: var(--color-heritage-red); } .region-picker-option--all { font-weight: 500; } .address-edit-line--region { min-height: 48px; align-items: center; } .address-edit-error { margin: 0 var(--space-page); color: var(--color-heritage-red); font-size: 13px; line-height: 1.4; } .app-toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px) + 16px); transform: translateX(-50%); z-index: 100; max-width: calc(100% - 40px); padding: 10px 16px; border-radius: var(--radius-md); background: rgba(26, 26, 26, 0.88); color: #fff; font-size: 13px; line-height: 1.4; text-align: center; pointer-events: none; } /* ── 地址管理列表页(stitch user_地址管理列表页) ── */ .address-list-page { min-height: 100vh; background: var(--color-background); padding-bottom: 96px; } .address-list-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 48px; padding: 0 16px; display: flex; align-items: center; background: var(--color-background); } .address-list-back { width: 40px; height: 40px; margin-left: -8px; border: none; background: none; display: flex; align-items: center; justify-content: center; color: var(--color-heritage-red); cursor: pointer; } .address-list-title { flex: 1; text-align: center; margin-right: 32px; font-family: var(--font-headline); font-size: 20px; font-weight: 600; color: var(--color-on-surface); } .address-list-main { padding-left: var(--space-page); padding-right: var(--space-page); padding-bottom: 32px; max-width: 480px; margin: 0 auto; } .address-list-empty { text-align: center; padding: 48px 0; font-size: 14px; color: var(--color-subtle-gray); } .address-list-cards { display: flex; flex-direction: column; gap: 16px; } .address-list-card { background: var(--color-card); border-radius: var(--radius-lg); padding: 20px; border: 1px solid transparent; box-shadow: 0 4px 20px rgba(166, 29, 36, 0.05); transition: transform 0.15s, background 0.15s, border-color 0.15s; } .address-list-card.is-selectable { cursor: pointer; } .address-list-card.is-default { border-color: rgba(166, 29, 36, 0.05); } .address-list-card.is-selected { border-color: rgba(166, 29, 36, 0.25); background: var(--color-surface-container-low); } .address-list-card:active { transform: scale(0.98); } .address-list-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .address-list-card-contact { display: flex; align-items: center; gap: 12px; } .address-list-name { font-family: var(--font-headline); font-size: 18px; font-weight: 600; color: var(--color-ink-black); } .address-list-phone { font-size: 16px; color: var(--color-subtle-gray); } .address-list-default-badge { padding: 2px 8px; background: var(--color-heritage-red); color: var(--color-on-primary); font-size: 10px; font-weight: 700; letter-spacing: 0.05em; border-radius: 4px; } .address-list-detail { font-size: 14px; line-height: 22px; color: var(--color-on-surface-variant); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .address-list-divider { height: 1px; background: var(--color-surface-container-highest); margin-bottom: 16px; } .address-list-actions { display: flex; justify-content: space-between; align-items: center; } .address-list-default-label { display: flex; align-items: center; gap: 4px; color: var(--color-heritage-red); font-size: 12px; font-weight: 500; opacity: 0.8; } .address-list-default-label .material-symbols-outlined { font-size: 18px; } .address-list-set-default { display: flex; align-items: center; gap: 4px; border: none; background: none; padding: 0; color: var(--color-subtle-gray); font-size: 12px; font-weight: 500; cursor: pointer; } .address-list-set-default .material-symbols-outlined { font-size: 18px; } .address-list-set-default:active { opacity: 0.6; } .address-list-action-btns { display: flex; gap: 16px; } .address-list-action-btn { display: flex; align-items: center; gap: 4px; border: none; background: none; padding: 0; color: var(--color-on-surface-variant); font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; cursor: pointer; } .address-list-action-btn .material-symbols-outlined { font-size: 18px; } .address-list-action-btn:active { opacity: 0.6; } .address-list-brand { margin-top: 32px; padding: 32px 0; display: flex; flex-direction: column; align-items: center; opacity: 0.2; } .address-list-brand-icon { width: 64px; height: 64px; border: 1px solid var(--color-heritage-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; } .address-list-brand-icon .material-symbols-outlined { font-size: 32px; color: var(--color-heritage-red); } .address-list-brand p { font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; color: var(--color-subtle-gray); } .address-list-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; padding: 16px var(--space-page) calc(env(safe-area-inset-bottom, 0px) + 16px); background: rgba(250, 249, 247, 0.8); backdrop-filter: blur(12px); border-top: 1px solid rgba(227, 226, 224, 0.5); } .address-list-add-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 440px; margin: 0 auto; height: 56px; border-radius: var(--radius-lg); background: var(--color-heritage-red); color: var(--color-on-primary); text-decoration: none; font-family: var(--font-headline); font-size: 18px; font-weight: 600; box-shadow: 0 8px 24px rgba(166, 29, 36, 0.1); transition: transform 0.15s; } .address-list-add-btn:active { transform: scale(0.98); } .address-list-add-btn .material-symbols-outlined { font-size: 20px; } /* ── 订单详情 / 补发订单详情(stitch 补发订单详情页) ── */ .order-detail-page { min-height: 100vh; background: var(--color-background); padding-bottom: 88px; } .order-detail-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 48px; padding: 0 16px; display: flex; align-items: center; background: var(--color-background); } .order-detail-back { border: none; background: none; padding: 0; color: var(--color-heritage-red); cursor: pointer; display: flex; align-items: center; } .order-detail-title { flex: 1; text-align: center; margin-right: 24px; font-family: var(--font-headline); font-size: 20px; font-weight: 600; color: var(--color-on-surface); } .order-detail-main { min-height: calc(100vh - var(--sub-page-header-offset, 68px)); } /* 固定顶栏留白:置于各页面 main 布局规则之后,避免 padding 简写覆盖 */ .order-confirm-main.sub-page-body, .address-edit-main.sub-page-body, .address-list-main.sub-page-body, .order-detail-main.sub-page-body, .pay-page .pay-body.sub-page-body { padding-top: var(--sub-page-header-offset, 68px); } .order-detail-banner { background: var(--color-heritage-red); padding: 32px var(--space-page) 48px; display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; } .order-detail-banner-text h2 { font-family: var(--font-headline); font-size: 24px; font-weight: 600; color: var(--color-on-primary); line-height: 32px; } .order-detail-banner-text p { margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, 0.8); } .order-detail-banner-icon { font-size: 48px; color: rgba(255, 255, 255, 0.9); } .order-detail-cards { padding: 0 var(--space-page) 24px; margin-top: -24px; position: relative; z-index: 10; display: flex; flex-direction: column; gap: 16px; max-width: 480px; margin-left: auto; margin-right: auto; } .order-detail-card { background: var(--color-card); border-radius: var(--radius-lg); padding: var(--space-page); box-shadow: 0 4px 20px rgba(166, 29, 36, 0.05); } .order-detail-section-title { font-family: var(--font-headline); font-size: 18px; font-weight: 600; margin-bottom: 24px; padding-left: 12px; border-left: 4px solid var(--color-heritage-red); } .order-detail-timeline { display: flex; flex-direction: column; } .order-detail-step { position: relative; padding-left: 32px; padding-bottom: 32px; } .order-detail-step:last-child { padding-bottom: 0; } .order-detail-step:not(:last-child)::after { content: ''; position: absolute; left: 11px; top: 24px; width: 2px; height: calc(100% - 16px); background: var(--color-surface-container-highest); } .order-detail-step--done:not(:last-child)::after, .order-detail-step--active:not(:last-child)::after { background: var(--color-heritage-red); } .order-detail-step-dot { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1; } .order-detail-step--done .order-detail-step-dot { background: var(--color-heritage-red); color: var(--color-on-primary); } .order-detail-step--done .order-detail-step-dot .material-symbols-outlined { font-size: 16px; font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 24; } .order-detail-step--active .order-detail-step-dot { background: var(--color-heritage-red); box-shadow: 0 0 12px rgba(166, 29, 36, 0.3); } .order-detail-step-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--color-on-primary); animation: order-step-pulse 1.5s ease-in-out infinite; } @keyframes order-step-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.85); } } .order-detail-step--pending .order-detail-step-dot { background: var(--color-surface-container-highest); border: 2px solid var(--color-surface-variant); } .order-detail-step-idle { width: 8px; height: 8px; border-radius: 50%; background: var(--color-subtle-gray); } .order-detail-step-title { font-family: var(--font-headline); font-size: 18px; font-weight: 600; } .order-detail-step--done .order-detail-step-title, .order-detail-step--active .order-detail-step-title { color: var(--color-on-surface); } .order-detail-step--done:first-child .order-detail-step-title { color: var(--color-heritage-red); } .order-detail-step--active .order-detail-step-title { color: var(--color-on-surface); } .order-detail-step--pending .order-detail-step-title { color: var(--color-subtle-gray); } .order-detail-step-time, .order-detail-step-desc { margin-top: 4px; font-size: 14px; color: var(--color-subtle-gray); } .order-detail-step--active .order-detail-step-desc { color: var(--color-on-surface-variant); } .order-detail-reship-info { display: flex; flex-direction: column; gap: 16px; } .order-detail-info-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; font-size: 14px; } .order-detail-info-row > span:first-child { color: var(--color-on-surface-variant); flex-shrink: 0; } .order-detail-info-row > span:last-child, .order-detail-info-row > a { font-family: var(--font-headline); font-size: 16px; font-weight: 600; color: var(--color-on-surface); text-align: right; } .order-detail-origin-link { color: var(--color-heritage-red) !important; text-decoration: none; font-family: ui-monospace, monospace; letter-spacing: -0.02em; } .order-detail-product { display: flex; gap: 16px; } .order-detail-product-thumb { width: 96px; height: 96px; flex-shrink: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-container); } .order-detail-product-thumb .app-image, .order-detail-product-thumb img { width: 100%; height: 100%; object-fit: cover; } .order-detail-product-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 4px 0; } .order-detail-product-name { font-family: var(--font-headline); font-size: 18px; font-weight: 600; color: var(--color-on-surface); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .order-detail-product-spec { margin-top: 4px; font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; color: var(--color-on-surface-variant); } .order-detail-product-meta { display: flex; justify-content: space-between; align-items: center; } .order-detail-product-price { font-family: var(--font-headline); font-size: 18px; font-weight: 600; color: var(--color-heritage-red); } .order-detail-product-qty { font-family: var(--font-label); font-size: 12px; font-weight: 500; color: var(--color-on-surface-variant); } .order-detail-benefit-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(227, 226, 224, 0.5); display: flex; justify-content: space-between; align-items: center; } .order-detail-benefit-left { display: flex; align-items: center; gap: 8px; } .order-detail-benefit-badge { position: relative; background: var(--color-aged-amber); color: var(--color-on-secondary-container); font-family: var(--font-label); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 4px; overflow: hidden; } .order-detail-benefit-badge::before, .order-detail-benefit-badge::after { content: ''; position: absolute; top: 50%; width: 8px; height: 8px; background: var(--color-card); border-radius: 50%; transform: translateY(-50%); } .order-detail-benefit-badge::before { left: -4px; } .order-detail-benefit-badge::after { right: -4px; } .order-detail-benefit-note { font-family: var(--font-label); font-size: 12px; color: var(--color-on-surface-variant); } .order-detail-benefit-info { font-size: 20px; color: var(--color-on-surface-variant); } .order-detail-address-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; } .order-detail-address-head .material-symbols-outlined { color: var(--color-heritage-red); font-size: 24px; } .order-detail-address-head h3 { font-family: var(--font-headline); font-size: 18px; font-weight: 600; } .order-detail-address-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .order-detail-address-name { font-family: var(--font-headline); font-size: 16px; font-weight: 600; } .order-detail-address-body p { font-size: 14px; line-height: 22px; color: var(--color-on-surface); } .order-detail-meta .order-detail-pay-amount { color: var(--color-heritage-red); } .order-detail-order-no { font-family: ui-monospace, monospace; font-size: 14px !important; } .order-detail-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; padding: 12px var(--space-page) calc(env(safe-area-inset-bottom, 0px) + 12px); background: var(--color-card); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 -4px 20px rgba(166, 29, 36, 0.05); } .order-detail-cs-btn { width: 100%; max-width: 440px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: none; border-radius: var(--radius-lg); background: var(--color-heritage-red); color: var(--color-on-primary); font-family: var(--font-headline); font-size: 18px; font-weight: 600; cursor: pointer; transition: transform 0.15s; } .order-detail-cs-btn:active { transform: scale(0.95); } .order-detail-cs-btn .material-symbols-outlined { font-size: 20px; } /* ── 订单详情 Stitch 版(user/40 支持修改地址) ── */ .order-detail-page--stitch { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 88px); } .order-detail-topbar { position: sticky; top: 0; z-index: 50; height: 64px; padding: 0 var(--space-page); display: flex; align-items: center; justify-content: space-between; background: var(--color-surface); box-shadow: 0 4px 20px rgba(166, 29, 36, 0.05); } .order-detail-topbar-title { flex: 1; margin-left: 8px; font-family: var(--font-headline); font-size: 20px; font-weight: 700; color: var(--color-heritage-red); } .order-detail-topbar-actions { display: flex; align-items: center; gap: 16px; } .order-detail-topbar-btn { border: none; background: none; padding: 0; color: var(--color-on-surface-variant); cursor: pointer; display: flex; align-items: center; justify-content: center; } .order-detail-topbar-btn .material-symbols-outlined { font-size: 22px; } .order-detail-main--stitch { padding: var(--space-md) var(--space-page) 24px; display: flex; flex-direction: column; gap: var(--space-md); max-width: 480px; margin: 0 auto; } .order-detail-status-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-heritage-red); padding: 24px; color: var(--color-on-primary); box-shadow: 0 8px 24px rgba(166, 29, 36, 0.15); } .order-detail-status-deco { position: absolute; right: -40px; top: -40px; opacity: 0.1; pointer-events: none; } .order-detail-status-deco .material-symbols-outlined { font-size: 120px; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; } .order-detail-status-body { position: relative; z-index: 1; } .order-detail-status-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; } .order-detail-status-head h2 { font-family: var(--font-headline); font-size: 20px; font-weight: 700; line-height: 28px; } .order-detail-status-body p { font-size: 14px; line-height: 20px; opacity: 0.9; } .order-detail-progress-card { padding: 16px 8px 12px !important; } .order-detail-progress { display: flex; justify-content: space-between; align-items: flex-start; } .order-detail-progress-step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; } .order-detail-progress-line { position: absolute; top: 14px; left: 50%; width: 100%; height: 2px; background: var(--color-surface-container-highest); z-index: 0; } .order-detail-progress-line.done { background: var(--color-heritage-red); } .order-detail-progress-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--color-surface-container-highest); } .order-detail-progress-step.done .order-detail-progress-dot { background: var(--color-heritage-red); color: var(--color-on-primary); } .order-detail-progress-step.done .order-detail-progress-dot .material-symbols-outlined { font-size: 16px; font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 24; } .order-detail-progress-step.active .order-detail-progress-dot { background: var(--color-heritage-red); box-shadow: 0 0 0 4px var(--color-primary-fixed, #ffdad7); } .order-detail-progress-pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: order-step-pulse 1.5s ease-in-out infinite; } .order-detail-progress-idle { width: 8px; height: 8px; border-radius: 50%; background: var(--color-subtle-gray); } .order-detail-progress-label { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--color-subtle-gray); text-align: center; white-space: nowrap; } .order-detail-progress-step.done .order-detail-progress-label, .order-detail-progress-step.active .order-detail-progress-label { color: var(--color-on-surface); } .order-detail-progress-step.active .order-detail-progress-label { color: var(--color-heritage-red); font-weight: 600; } .order-detail-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; } .order-detail-card-head h3, .order-detail-card-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-headline); font-size: 18px; font-weight: 600; color: var(--color-on-surface); margin: 0 0 16px; } .order-detail-card-head h3 { margin-bottom: 0; } .order-detail-card-head .material-symbols-outlined, .order-detail-card-title .material-symbols-outlined { font-size: 20px; color: var(--color-on-surface-variant); } .order-detail-edit-btn { border: none; background: none; display: inline-flex; align-items: center; gap: 4px; color: var(--color-heritage-red); font-size: 12px; font-weight: 500; cursor: pointer; } .order-detail-edit-btn .material-symbols-outlined { font-size: 16px; } .order-detail-kv-list { display: flex; flex-direction: column; gap: 12px; } .order-detail-kv-list--bordered { padding-bottom: 16px; border-bottom: 1px solid rgba(227, 226, 224, 0.6); } .order-detail-kv { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; font-size: 14px; line-height: 20px; } .order-detail-kv > span:first-child { color: var(--color-on-surface-variant); flex-shrink: 0; } .order-detail-kv > span:last-child, .order-detail-kv > a { font-weight: 500; color: var(--color-on-surface); text-align: right; } .order-detail-kv--address > span:last-child { max-width: 68%; } .order-detail-kv--muted { font-size: 12px; } .order-detail-kv--muted > span { color: var(--color-on-surface-variant) !important; font-weight: 400 !important; } .order-detail-kv--total { padding-top: 8px; align-items: baseline; } .order-detail-kv--total > span:first-child { font-weight: 700; color: var(--color-on-surface); } .order-detail-kv-inline { display: inline-flex; align-items: center; gap: 8px; } .order-detail-copy-btn { border: 1px solid rgba(166, 29, 36, 0.3); background: none; color: var(--color-heritage-red); font-size: 10px; line-height: 1; padding: 2px 4px; border-radius: 2px; cursor: pointer; } .order-detail-summary { padding-top: 16px; display: flex; flex-direction: column; gap: 8px; } .order-detail-pay-total { font-family: var(--font-headline); font-size: 20px; font-weight: 700; color: var(--color-heritage-red) !important; } .order-detail-benefit-panel { margin-top: 16px; padding: 16px; border-radius: var(--radius-lg); background: rgba(255, 191, 0, 0.1); border: 1px solid rgba(255, 191, 0, 0.2); display: flex; align-items: center; justify-content: space-between; gap: 12px; } .order-detail-benefit-panel-left { display: flex; align-items: center; gap: 12px; min-width: 0; } .order-detail-benefit-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--color-aged-amber, #ffbf00); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .order-detail-benefit-amount { display: flex; align-items: baseline; gap: 4px; font-family: var(--font-headline); font-weight: 600; color: var(--color-on-secondary-fixed-variant, #574500); } .order-detail-benefit-amount span:first-child { font-size: 18px; } .order-detail-benefit-amount span:last-child { font-size: 12px; } .order-detail-benefit-sub { margin-top: 2px; font-size: 10px; color: var(--color-on-secondary-fixed-variant, #574500); opacity: 0.7; } .order-detail-benefit-use { border: none; background: var(--color-aged-amber, #ffbf00); color: var(--color-on-secondary-fixed-variant, #574500); font-size: 12px; font-weight: 700; padding: 8px 16px; border-radius: var(--radius-full); cursor: pointer; flex-shrink: 0; } .order-detail-link { color: var(--color-heritage-red); text-decoration: none; font-weight: 500; } .order-detail-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 16px; padding: 16px var(--space-page) calc(env(safe-area-inset-bottom, 0px) + 16px); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); box-shadow: 0 -4px 20px rgba(166, 29, 36, 0.05); } .order-detail-action-outline, .order-detail-action-primary { height: 48px; border-radius: var(--radius-lg); font-family: var(--font-headline); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; } .order-detail-action-outline { flex: 1; border: 1px solid var(--color-heritage-red); background: transparent; color: var(--color-heritage-red); } .order-detail-action-primary { flex: 1.5; border: none; background: var(--color-heritage-red); color: var(--color-on-primary); box-shadow: 0 4px 12px rgba(166, 29, 36, 0.2); } .order-detail-action-primary:disabled { opacity: 0.7; cursor: not-allowed; } .order-address-modal-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(26, 26, 26, 0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: var(--space-page); } .order-address-modal { width: 100%; max-width: 400px; background: var(--color-surface); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-card); } .order-address-modal-head { display: flex; align-items: center; gap: 8px; color: var(--color-heritage-red); margin-bottom: 16px; } .order-address-modal-head h3 { font-family: var(--font-headline); font-size: 18px; font-weight: 600; } .order-address-modal-body { background: var(--color-surface-container); border-radius: var(--radius-lg); padding: 16px; font-size: 14px; line-height: 1.5; color: var(--color-on-surface-variant); } .order-address-modal-target { margin-top: 8px; color: var(--color-on-surface); font-weight: 500; } .order-address-modal-actions { display: flex; gap: 12px; margin-top: 20px; } .order-address-modal-actions button { flex: 1; height: 44px; border-radius: var(--radius-lg); border: 1px solid var(--color-outline-variant); background: var(--color-card); font-size: 15px; cursor: pointer; } .order-address-modal-actions button.primary { border: none; background: var(--color-heritage-red); color: var(--color-on-primary); font-weight: 600; } /* ── 我的 - 个人中心(stitch user/18) ── */ .mine-page { min-height: 100vh; padding-bottom: 80px; background: var(--color-background); color: var(--color-on-surface); } .mine-fill-icon { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; } .mine-header { position: relative; padding: 32px var(--space-page) 96px; background: linear-gradient(135deg, #820012 0%, var(--color-heritage-red) 40%, #d4a373 100%); overflow: hidden; } .mine-header-texture { position: absolute; inset: 0; opacity: 0.05; background-image: url('https://www.transparenttextures.com/patterns/handmade-paper.png'); pointer-events: none; } .mine-header-glow { position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); filter: blur(48px); pointer-events: none; } .mine-profile { position: relative; display: flex; align-items: center; gap: 16px; } .mine-avatar-wrap { position: relative; flex-shrink: 0; } .mine-wechat-badge { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: #07c160; color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); } .mine-wechat-badge .material-symbols-outlined { font-size: 14px; } .mine-avatar { width: 80px; height: 80px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); overflow: hidden; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .mine-avatar .app-image-img.is-loaded { object-fit: cover; } .mine-profile-info { flex: 1; min-width: 0; } .mine-profile-name { font-family: var(--font-headline); font-size: 20px; font-weight: 600; line-height: 28px; color: var(--color-on-primary); } .mine-profile-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; } .mine-profile-id { font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.8); } .mine-member-tag { padding: 2px 8px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.1); font-family: var(--font-label); font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, 0.9); } .mine-settings-btn { flex-shrink: 0; width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--color-on-primary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.1s; } .mine-settings-btn:active { transform: scale(0.95); } .mine-main { position: relative; margin-top: -40px; padding: 0 var(--space-page) 32px; display: flex; flex-direction: column; gap: var(--space-gutter); } .mine-card { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border-radius: var(--radius-lg); border: 1px solid rgba(166, 29, 36, 0.05); box-shadow: 0 4px 20px rgba(166, 29, 36, 0.05); padding: 20px; } .mine-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; } .mine-card-head-orders { margin-bottom: 24px; } .mine-card-title { display: flex; align-items: center; font-family: var(--font-headline); font-size: 18px; font-weight: 600; line-height: 26px; color: var(--color-ink-black); } .mine-card-title-icon { margin-right: 8px; font-size: 22px; color: var(--color-heritage-red); } .mine-card-link { display: inline-flex; align-items: center; font-family: var(--font-label); font-size: 12px; font-weight: 500; color: var(--color-subtle-gray); transition: transform 0.1s; } .mine-card-link .material-symbols-outlined { font-size: 16px; margin-left: 2px; } .mine-card-link:active { transform: scale(0.95); } .mine-asset-panel { position: relative; display: flex; align-items: flex-end; justify-content: space-between; padding: 16px; border-radius: var(--radius-md); background: var(--color-card); border: 1px solid rgba(226, 190, 188, 0.3); overflow: hidden; } .mine-asset-notch { position: absolute; right: -16px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--color-background); } .mine-asset-notch-line { position: absolute; top: 0; bottom: 0; right: 72px; border-right: 1px dashed rgba(226, 190, 188, 0.5); } .mine-asset-label { font-family: var(--font-label); font-size: 12px; font-weight: 500; color: var(--color-on-surface-variant); margin-bottom: 4px; } .mine-asset-amount { display: flex; align-items: baseline; gap: 2px; } .mine-asset-currency { font-family: var(--font-headline); font-size: 28px; font-weight: 700; line-height: 28px; color: var(--color-heritage-red); } .mine-asset-value { font-family: var(--font-headline); font-size: 32px; font-weight: 700; line-height: 1; color: var(--color-heritage-red); } .mine-asset-cta { position: relative; z-index: 1; padding: 8px 16px; border-radius: var(--radius-md); background: var(--color-primary); color: var(--color-on-primary); font-family: var(--font-label); font-size: 12px; font-weight: 500; transition: transform 0.1s; } .mine-asset-cta:active { transform: scale(0.95); } .mine-order-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .mine-order-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 0; transition: transform 0.1s; } .mine-order-item:active { transform: scale(0.95); } .mine-order-icon-wrap { position: relative; } .mine-order-icon { font-size: 28px; color: var(--color-on-surface-variant); } .mine-order-badge { position: absolute; top: -4px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--radius-full); background: var(--color-heritage-red); color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; } .mine-order-label { font-family: var(--font-label); font-size: 12px; font-weight: 500; color: var(--color-on-surface-variant); } .mine-services { padding: 0; overflow: hidden; } .mine-service-item { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px; border: none; background: none; text-align: left; cursor: pointer; color: inherit; transition: background 0.15s; } .mine-service-item:not(:last-child) { border-bottom: 1px solid rgba(226, 190, 188, 0.2); } .mine-service-item:active { background: var(--color-surface-container-low); } .mine-service-left { display: flex; align-items: center; gap: 16px; } .mine-service-icon-wrap { width: 40px; height: 40px; border-radius: 50%; background: rgba(130, 0, 18, 0.05); color: var(--color-heritage-red); display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s; } .mine-service-icon-wrap .material-symbols-outlined { font-size: 20px; } .mine-service-item:active .mine-service-icon-wrap { background: var(--color-heritage-red); color: var(--color-on-primary); } .mine-service-label { font-size: 14px; line-height: 20px; color: var(--color-ink-black); } .mine-service-right { display: flex; align-items: center; gap: 4px; } .mine-service-badge { font-family: var(--font-label); font-size: 12px; font-weight: 500; color: var(--color-heritage-red); } .mine-service-chevron { font-size: 24px; color: var(--color-subtle-gray); } .mine-footer { padding: 16px 0; text-align: center; } .mine-version { font-family: var(--font-label); font-size: 12px; color: rgba(153, 153, 153, 0.6); } .mine-logout { margin-top: 16px; border: none; background: none; font-family: var(--font-label); font-size: 12px; font-weight: 500; color: var(--color-heritage-red); cursor: pointer; transition: opacity 0.15s; } .mine-logout:active { opacity: 0.6; } .mine-toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px) + 16px); transform: translateX(-50%); z-index: 100; max-width: calc(100% - 40px); padding: 10px 16px; border-radius: var(--radius-md); background: rgba(26, 26, 26, 0.88); color: #fff; font-size: 13px; line-height: 1.4; text-align: center; pointer-events: none; } /* ── 餐券核销页(stitch user/30) ── */ .redeem-page { min-height: 100vh; background: var(--color-background); } .redeem-header { position: sticky; top: 0; z-index: 50; height: 56px; padding: 0 var(--space-page); display: flex; align-items: center; justify-content: center; background: var(--color-background); box-shadow: 0 4px 20px rgba(166, 29, 36, 0.05); } .redeem-header-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: none; background: transparent; color: var(--color-heritage-red); display: flex; align-items: center; justify-content: center; cursor: pointer; } .redeem-header-btn:first-of-type { left: var(--space-page); } .redeem-header-btn:last-of-type { right: var(--space-page); } .redeem-main { padding: var(--space-md) var(--space-page) 32px; } .redeem-balance-card { position: relative; overflow: hidden; margin-bottom: var(--space-lg); padding: var(--space-lg); border-radius: var(--radius-lg); background: var(--color-primary-container, #a61d24); color: var(--color-on-primary-container, #ffb9b4); box-shadow: 0 4px 20px rgba(166, 29, 36, 0.1); } .redeem-balance-pattern { position: absolute; inset: 0; opacity: 0.1; pointer-events: none; background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0); background-size: 24px 24px; } .redeem-balance-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; } .redeem-balance-label { font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; margin-bottom: 8px; } .redeem-balance-amount { display: flex; align-items: baseline; gap: 4px; } .redeem-balance-symbol { font-family: var(--font-headline); font-size: 24px; font-weight: 600; } .redeem-balance-value { font-family: var(--font-headline); font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; } .redeem-form-card { padding: 24px; margin-bottom: var(--space-md); background: var(--color-card); border-radius: var(--radius-lg); border: 1px solid var(--color-surface-container-high); box-shadow: 0 4px 20px rgba(166, 29, 36, 0.05); } .redeem-form-label { display: block; font-family: var(--font-label); font-size: 12px; font-weight: 500; color: var(--color-on-surface-variant); margin-bottom: 16px; } .redeem-amount-row { display: flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--color-surface-container-high); padding-bottom: 8px; transition: border-color 0.2s; } .redeem-form-card:focus-within .redeem-amount-row { border-color: var(--color-heritage-red); } .redeem-amount-symbol { font-family: var(--font-headline); font-size: 32px; font-weight: 700; color: var(--color-ink-black); } .redeem-amount-input { flex: 1; border: none; background: transparent; font-family: var(--font-headline); font-size: 40px; font-weight: 700; color: var(--color-ink-black); outline: none; min-width: 0; height: 64px; } .redeem-amount-input::-webkit-inner-spin-button, .redeem-amount-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } .redeem-amount-input::placeholder { color: var(--color-surface-container-high); } .redeem-amount-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-family: var(--font-label); font-size: 12px; color: var(--color-on-surface-variant); } .redeem-fill-max { border: none; background: transparent; color: var(--color-heritage-red); font-weight: 700; cursor: pointer; } .redeem-msg { margin: 0 0 var(--space-md); font-size: 13px; color: var(--color-error, #ba1a1a); text-align: center; } .redeem-submit-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border: none; border-radius: var(--radius-lg); background: var(--color-heritage-red); color: #fff; font-family: var(--font-headline); font-size: 18px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 24px rgba(166, 29, 36, 0.2); transition: transform 0.15s, opacity 0.2s; } .redeem-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; } .redeem-submit-btn:not(:disabled):active { transform: scale(0.98); } .redeem-security { display: flex; align-items: flex-start; gap: 8px; margin-top: var(--space-lg); padding: 0 8px; } .redeem-security .material-symbols-outlined { font-size: 18px; color: var(--color-aged-amber, #ffbf00); flex-shrink: 0; } .redeem-security p { font-size: 12px; line-height: 1.5; color: var(--color-on-surface-variant); } .redeem-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: var(--space-page); opacity: 0; pointer-events: none; transition: opacity 0.3s; } .redeem-modal.open { opacity: 1; pointer-events: auto; } .redeem-modal-backdrop { position: absolute; inset: 0; background: rgba(26, 26, 26, 0.6); backdrop-filter: blur(4px); } .redeem-modal-panel { position: relative; width: 100%; max-width: 360px; background: var(--color-card); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2); transform: scale(0.9); transition: transform 0.3s; } .redeem-modal.open .redeem-modal-panel { transform: scale(1); } .redeem-modal-head { padding: 24px 24px 16px; text-align: center; border-bottom: 1px solid var(--color-surface-container); } .redeem-modal-head h3 { font-family: var(--font-headline); font-size: 18px; font-weight: 600; color: var(--color-heritage-red); margin-bottom: 4px; } .redeem-modal-head p { font-size: 14px; color: var(--color-on-surface-variant); } .redeem-modal-body { padding: 32px 24px 16px; display: flex; flex-direction: column; align-items: center; } .redeem-qr-wrap { padding: 12px; border: 4px solid rgba(166, 29, 36, 0.1); border-radius: var(--radius-lg); margin-bottom: 24px; } .redeem-qr-box { position: relative; width: 192px; height: 192px; background: #fff; overflow: hidden; } .redeem-qr-img { width: 100%; height: 100%; object-fit: contain; display: block; } .redeem-qr-placeholder { width: 100%; height: 100%; background: var(--color-surface-container); } .redeem-qr-scanline { position: absolute; left: 0; right: 0; height: 2px; background: rgba(166, 29, 36, 0.4); box-shadow: 0 0 10px rgba(166, 29, 36, 0.5); animation: redeem-scan 3s ease-in-out infinite; } @keyframes redeem-scan { 0%, 100% { top: 0; opacity: 0.1; } 50% { top: 95%; opacity: 0.8; } } .redeem-timer { display: flex; flex-direction: column; align-items: center; margin-bottom: 16px; border-radius: var(--radius-md); } .redeem-timer.active { animation: redeem-pulse 2s infinite; } @keyframes redeem-pulse { 0% { box-shadow: 0 0 0 0 rgba(166, 29, 36, 0.2); } 70% { box-shadow: 0 0 0 10px rgba(166, 29, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(166, 29, 36, 0); } } .redeem-timer-value { font-family: var(--font-headline); font-size: 24px; font-weight: 700; color: var(--color-ink-black); } .redeem-timer-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-on-surface-variant); margin-top: 2px; } .redeem-modal-amount { width: 100%; padding: 12px; border-radius: var(--radius-md); background: var(--color-surface-container); text-align: center; } .redeem-modal-amount p { font-family: var(--font-label); font-size: 12px; color: var(--color-on-surface-variant); } .redeem-modal-amount-value { font-family: var(--font-headline); font-size: 18px; font-weight: 600; color: var(--color-heritage-red) !important; margin-top: 4px; } .redeem-modal-cancel { width: 100%; padding: 16px; border: none; background: var(--color-surface-container-high); color: var(--color-ink-black); font-weight: 700; cursor: pointer; transition: background 0.2s; } .redeem-modal-cancel:active { background: var(--color-surface-variant); } /* ── 好客权益专页(stitch user/14) ── */ .benefit-page { min-height: 100vh; background: var(--color-background); padding-bottom: 80px; } .benefit-header { position: sticky; top: 0; z-index: 50; height: 56px; padding: 0 var(--space-page); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--color-background); } .benefit-header-city { display: flex; align-items: center; gap: 4px; border: none; background: transparent; color: var(--color-heritage-red); font-family: var(--font-label); font-size: 12px; font-weight: 500; cursor: pointer; justify-self: start; } .benefit-header-city .material-symbols-outlined { font-size: 20px; } .benefit-header-btn { width: 40px; height: 40px; border: none; background: transparent; color: var(--color-on-surface-variant); display: flex; align-items: center; justify-content: center; cursor: pointer; justify-self: end; } .benefit-main { padding: 16px var(--space-page) 24px; display: flex; flex-direction: column; gap: var(--space-md); } .benefit-hero { position: relative; overflow: hidden; padding: var(--space-md); border-radius: var(--radius-lg); background: var(--color-card); border: 1px solid rgba(226, 190, 188, 0.2); box-shadow: 0 4px 20px rgba(166, 29, 36, 0.05); background-image: radial-gradient(circle at 20% 30%, rgba(166, 29, 36, 0.05) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(166, 29, 36, 0.03) 0%, transparent 50%); } .benefit-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: var(--space-md); } .benefit-hero-label { font-family: var(--font-label); font-size: 12px; color: var(--color-on-surface-variant); margin-bottom: 4px; } .benefit-hero-amount { display: flex; align-items: baseline; gap: 2px; color: var(--color-heritage-red); } .benefit-hero-symbol { font-family: var(--font-headline); font-size: 32px; font-weight: 700; line-height: 40px; } .benefit-hero-value { font-family: var(--font-headline); font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; } .benefit-hero-logo { width: 48px !important; height: 48px !important; opacity: 0.9; flex-shrink: 0; } .benefit-hero-link { display: inline-flex; align-items: center; gap: 2px; border: none; background: transparent; color: var(--color-heritage-red); font-family: var(--font-label); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; } .benefit-hero-link .material-symbols-outlined { font-size: 16px; } .benefit-use-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border: none; border-radius: var(--radius-lg); background: var(--color-heritage-red); color: #fff; font-family: var(--font-headline); font-size: 18px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 12px rgba(166, 29, 36, 0.2); transition: transform 0.15s; } .benefit-use-btn .material-symbols-outlined.filled { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; } .benefit-use-btn:active { transform: scale(0.98); } .benefit-tabs { display: flex; border-bottom: 1px solid rgba(226, 190, 188, 0.1); scroll-margin-top: 72px; } .benefit-tab { flex: 1; padding: 12px 0; border: none; border-bottom: 2px solid transparent; background: transparent; font-family: var(--font-label); font-size: 12px; font-weight: 500; color: var(--color-on-surface-variant); cursor: pointer; transition: color 0.2s, border-color 0.2s; } .benefit-tab.active { color: var(--color-heritage-red); font-weight: 700; border-bottom-color: var(--color-heritage-red); } .benefit-list { display: flex; flex-direction: column; gap: 16px; } .benefit-card { background: var(--color-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(226, 190, 188, 0.05); box-shadow: 0 4px 20px rgba(166, 29, 36, 0.05); } .benefit-card--clickable { cursor: pointer; } .benefit-card--clickable:active { opacity: 0.96; } .benefit-card-inner { display: flex; min-height: 128px; } .benefit-card-value { position: relative; flex-shrink: 0; width: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; text-align: center; background: var(--color-aged-amber, #ffbf00); color: var(--color-on-secondary-container, #745c00); } .benefit-card-value-label { font-family: var(--font-label); font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; margin-bottom: 4px; } .benefit-card-value-amount { display: flex; align-items: baseline; gap: 1px; font-family: var(--font-headline); font-weight: 700; } .benefit-card-value-amount span:first-child { font-size: 14px; } .benefit-card-value-amount span:last-child { font-size: 24px; line-height: 28px; } .benefit-card-notch { position: absolute; top: 50%; right: -6px; width: 12px; height: 12px; border-radius: var(--radius-full); background: var(--color-background); transform: translateY(-50%); box-shadow: inset 1px 0 2px rgba(0, 0, 0, 0.05); } .benefit-card-body { flex: 1; min-width: 0; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; } .benefit-card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; } .benefit-card-title { flex: 1; min-width: 0; font-family: var(--font-headline); font-size: 14px; font-weight: 600; color: var(--color-on-surface); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .benefit-card-badge { flex-shrink: 0; padding: 2px 8px; border-radius: var(--radius-full); background: rgba(130, 0, 18, 0.1); color: var(--color-heritage-red); font-size: 10px; font-weight: 700; } .benefit-card-desc { margin-top: 8px; font-size: 11px; line-height: 1.3; color: var(--color-on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .benefit-card-progress-wrap { margin-top: 8px; } .benefit-card-progress-labels { display: flex; justify-content: space-between; font-family: var(--font-label); font-size: 10px; color: var(--color-on-surface-variant); margin-bottom: 6px; } .benefit-card-progress { height: 6px; border-radius: var(--radius-full); background: var(--color-surface-container); overflow: hidden; } .benefit-card-progress-bar { height: 100%; background: var(--color-aged-amber, #ffbf00); border-radius: var(--radius-full); transition: width 0.3s; } .benefit-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; } .benefit-card-no { font-family: var(--font-label); font-size: 10px; font-style: italic; color: rgba(153, 153, 153, 0.6); text-transform: uppercase; text-decoration: none; } .benefit-card-redeem { border: none; background: transparent; color: var(--color-heritage-red); font-family: var(--font-label); font-size: 12px; font-weight: 700; cursor: pointer; } .benefit-card-redeem:active { opacity: 0.6; } .benefit-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 80px 16px; text-align: center; } .benefit-empty .material-symbols-outlined { font-size: 64px; color: var(--color-outline-variant, #e2bebc); } .benefit-empty p { font-size: 14px; color: var(--color-on-surface-variant); } /* ── 会话启动 / 手机验证 ── */ .session-boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--color-surface, #fff); } .session-boot-text { font-size: 14px; color: var(--color-on-surface-variant, #666); } .phone-verify-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; } .phone-verify-backdrop { position: absolute; inset: 0; border: none; background: rgba(0, 0, 0, 0.45); cursor: pointer; } .phone-verify-sheet { position: relative; z-index: 1; width: 100%; max-width: 480px; background: #fff; border-radius: 16px 16px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12); } .phone-verify-title { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: var(--color-on-surface, #333); } .phone-verify-desc { margin: 0 0 20px; font-size: 13px; color: var(--color-on-surface-variant, #666); line-height: 1.5; } .phone-verify-skip { display: block; width: 100%; margin-top: 12px; padding: 10px; border: none; background: transparent; font-size: 14px; color: var(--color-on-surface-variant, #888); cursor: pointer; } .login-msg--hint { color: var(--color-success, #2d6a4f); } /* Contact customer sheet */ .contact-customer-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; justify-content: flex-end; } .contact-customer-sheet { background: #faf9f7; border-radius: 16px 16px 0 0; padding: 20px 20px calc(16px + env(safe-area-inset-bottom)); max-width: 480px; width: 100%; margin: 0 auto; } .contact-customer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; } .contact-customer-head h3 { margin: 0; font-size: 18px; font-weight: 600; color: #1a1c1b; } .contact-customer-close { border: none; background: transparent; padding: 4px; color: #5a413f; } .contact-customer-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; } .contact-customer-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; border: 1px solid rgba(226, 190, 188, 0.3); border-radius: 12px; background: #f4f3f1; text-align: left; } .contact-customer-option-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(166, 29, 36, 0.1); color: #a61d24; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .contact-customer-option-title { margin: 0; font-size: 15px; font-weight: 600; color: #1a1c1b; } .contact-customer-option-sub { margin: 4px 0 0; font-size: 12px; color: #5a413f; } .contact-customer-chevron { margin-left: auto; color: #5a413f; } .contact-customer-cancel { width: 100%; padding: 16px; border: none; border-radius: 12px; background: #e3e2e0; font-size: 16px; font-weight: 600; color: #1a1c1b; } .customer-service-page { min-height: 100vh; display: flex; flex-direction: column; background: #faf9f7; } .customer-service-page--oa .customer-service-oa-body { flex: 1; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; } .customer-service-wecom-title { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: #1a1c1b; } .customer-service-wecom-hint { margin: 0 0 28px; font-size: 13px; line-height: 1.5; color: #5a413f; } .customer-service-wecom-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 320px; padding: 14px 20px; border: none; border-radius: 12px; background: #a61d24; color: #fff; font-size: 16px; font-weight: 600; } .customer-service-wecom-btn .material-symbols-outlined { font-size: 22px; } .customer-service-phone-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-size: 14px; color: #a61d24; text-decoration: none; } .after-sale-page { min-height: 100dvh; background: #faf9f7; display: flex; flex-direction: column; } .after-sale-steps { display: flex; justify-content: space-around; padding: 12px 16px; background: #fff; border-bottom: 1px solid rgba(0, 0, 0, 0.06); } .after-sale-step { font-size: 12px; color: #999; } .after-sale-step.is-active, .after-sale-step.is-done { color: #a61d24; font-weight: 600; } .after-sale-body { flex: 1; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); } .after-sale-type-list, .after-sale-order-list, .after-sale-form, .after-sale-success { display: flex; flex-direction: column; gap: 12px; } .after-sale-type-item, .after-sale-order-item { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(226, 190, 188, 0.35); background: #fff; } .after-sale-type-item.is-selected, .after-sale-order-item.is-selected { border-color: #a61d24; box-shadow: 0 0 0 1px #a61d24 inset; } .after-sale-order-no { margin: 0; font-size: 14px; font-weight: 600; color: #1a1c1b; } .after-sale-order-meta { margin: 4px 0 0; font-size: 12px; color: #5a413f; } .after-sale-primary, .after-sale-secondary { width: 100%; padding: 14px; border-radius: 12px; border: none; font-size: 15px; font-weight: 600; } .after-sale-primary { background: #a61d24; color: #fff; } .after-sale-secondary { background: #e3e2e0; color: #1a1c1b; } .after-sale-actions { display: flex; gap: 12px; margin-top: 8px; } .after-sale-label { font-size: 13px; color: #5a413f; margin-top: 4px; } .after-sale-textarea, .after-sale-input { width: 100%; border: 1px solid #e3e2e0; border-radius: 10px; padding: 10px 12px; font-size: 14px; background: #fff; box-sizing: border-box; } .after-sale-evidence { display: flex; flex-wrap: wrap; gap: 8px; } .after-sale-evidence-img, .after-sale-evidence-add { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; } .after-sale-evidence-add { display: flex; align-items: center; justify-content: center; border: 1px dashed #ccc; background: #fff; font-size: 24px; color: #999; } .after-sale-summary { margin: 0; padding: 12px; border-radius: 10px; background: rgba(166, 29, 36, 0.06); font-size: 13px; color: #a61d24; } .after-sale-empty, .after-sale-empty-box { text-align: center; color: #999; padding: 24px 0; } .after-sale-success { align-items: center; text-align: center; padding-top: 40px; } .after-sale-success-icon { font-size: 56px; color: #2e7d32; } .after-sale-success-title { margin: 8px 0 4px; font-size: 18px; font-weight: 600; } .after-sale-success-no, .after-sale-success-hint { margin: 0; font-size: 13px; color: #5a413f; } .after-sale-ticket-head { display: flex; justify-content: space-between; width: 100%; font-size: 13px; font-weight: 600; } .after-sale-ticket-status { color: #a61d24; } .after-sale-ticket-card { flex-direction: column; align-items: flex-start; } .after-sale-file-link { margin-top: 8px; font-size: 13px; color: #a61d24; } .invoice-chip-row { display: flex; flex-wrap: wrap; gap: 8px; } .invoice-chip { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(166, 29, 36, 0.25); background: #fff; font-size: 12px; color: #a61d24; } .invoice-chip.is-selected { background: #a61d24; color: #fff; border-color: #a61d24; } .invoice-chip:disabled { opacity: 0.4; } /* 微信 H5 系统标题已展示:隐藏页内重复标题;仅标题顶栏收起 */ .app-page-title { display: none !important; } header:has(> .app-page-title:only-child), .app-page-header:has(> .app-page-title:only-child) { display: none !important; height: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; overflow: hidden; border: none !important; box-shadow: none !important; }