/* 极简下单 / 登录 — 表单与按钮 */
.flow-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.25rem;
    padding-right: 2rem;
}
.flow-hint {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}
.flow-err {
    font-size: 0.85rem;
    color: var(--accent);
    min-height: 1.25rem;
    margin-bottom: 0.5rem;
}

.flow-steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
}
.flow-step {
    color: var(--muted);
    font-weight: 500;
}
.flow-step.active { color: var(--ink); font-weight: 600; }
.flow-step-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 40px;
}

.flow-product-line {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.flow-product-line span:first-child {
    width: 32px;
    height: 32px;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.flow-product-line span:nth-child(2) {
    flex: 1;
    color: var(--ink);
    font-weight: 500;
}
.flow-product-line strong {
    color: var(--accent);
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem;
}

.flow-form input[type="text"],
.flow-form input[type="tel"],
.flow-form input[type="email"],
.flow-form input[type="password"],
.flow-form textarea {
    width: 100%;
    padding: 0.9rem 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 0.25rem;
    border-radius: 0;
    resize: vertical;
}
.flow-form textarea {
    min-height: 6rem;
    line-height: 1.55;
}
.flow-form input:focus,
.flow-form textarea:focus {
    outline: none;
    border-bottom-color: var(--ink);
}
.flow-form input::placeholder { color: #bbb; }

.flow-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted);
    margin: 1rem 0 1.25rem;
    cursor: pointer;
}
.flow-check input { width: auto; accent-color: var(--ink); }

.flow-btn {
    width: 100%;
    padding: 1rem;
    background: var(--ink);
    color: var(--paper);
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
}
.flow-btn:hover { opacity: 0.88; }
.flow-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.flow-btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border);
    margin-top: 0.5rem;
}
.flow-link {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.5rem;
    border: none;
    background: none;
    color: var(--muted);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.flow-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    background: var(--paper);
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    margin-bottom: 1rem;
}
.flow-textarea:focus { outline: none; border-color: var(--ink); }

.flow-label {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    display: block;
}

.review-card {
    background: var(--paper);
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--ink);
}
.review-card dt {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.65rem;
}
.review-card dt:first-child { margin-top: 0; }
.review-card dd { margin: 0.15rem 0 0; font-weight: 500; }
.review-card .review-product {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

/* 支付方式卡片 */
.pay-method-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.pay-method-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    background: #fff;
    text-align: left;
    width: 100%;
    font: inherit;
    color: inherit;
}
.pay-method-item:hover {
    border-color: color-mix(in srgb, var(--ink) 25%, var(--border));
}
@media (hover: hover) {
    .pay-method-item:hover {
        transform: translateY(-1px);
    }
}
.pay-method-item.active {
    border-color: var(--ink);
    background: var(--paper);
}
.pay-method-item:active { opacity: 0.95; }
.pay-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.pay-icon svg { width: 28px; height: 28px; display: block; }
.pay-icon-alipay { background: #1677ff; }
.pay-icon-wxpay { background: #07c160; }
.pay-icon-douyinpay { background: #1a1a2e; }
.pay-method-info { flex: 1; min-width: 0; }
.pay-method-info strong { display: block; font-size: 0.95rem; font-weight: 600; }
.pay-method-info span { font-size: 0.75rem; color: var(--muted); }
.pay-method-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    font-size: 0.7rem;
    color: transparent;
}
.pay-method-item.active .pay-method-check {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.pay-confirm-btn {
    margin-top: 0.5rem;
    position: relative;
    min-height: 48px;
}
#payPickerConfirm.flow-btn {
    position: relative;
    min-height: 48px;
}
.pay-confirm-btn.loading .pay-btn-text,
#payPickerConfirm.loading .pay-btn-text { opacity: 0; }
.pay-confirm-btn.loading::after,
#payPickerConfirm.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: paySpin 0.7s linear infinite;
    left: 50%;
    top: 50%;
    margin: -10px 0 0 -10px;
}
.pay-safe-hint { text-align: center; font-size: 0.75rem; color: var(--muted); margin-top: 0.85rem; }

.pay-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(26, 26, 46, 0.72);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease;
}
.pay-loading-box {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2);
    max-width: 320px;
    width: 100%;
}
.pay-loading-box p { font-weight: 600; font-size: 1rem; margin: 1rem 0 0.35rem; color: var(--ink); }
.pay-loading-sub { font-size: 0.8rem; color: var(--muted); }
.pay-loading-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: paySpin 0.8s linear infinite;
}
@keyframes paySpin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.done-icon {
    width: 48px;
    height: 48px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0.5rem 0 1rem;
}
.done-no {
    font-family: ui-monospace, monospace;
    font-size: 0.9rem;
    color: var(--ink);
    margin: 0.75rem 0;
    letter-spacing: 0.05em;
}

.oauth-stack { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.oauth-stack a.oauth-btn {
    display: block;
    text-align: center;
    padding: 0.85rem;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
}
.oauth-stack a.oauth-btn.wechat { border-color: #07c160; color: #07c160; }
.oauth-stack a.oauth-btn.qq { border-color: #12b7f5; color: #12b7f5; }
.oauth-stack a.oauth-btn.alipay { border-color: #1677ff; color: #1677ff; }
.oauth-stack a.oauth-btn.github { border-color: #24292f; color: #24292f; }
.oauth-stack a.oauth-btn.google { border-color: #4285f4; color: #4285f4; }
.oauth-stack a.oauth-btn.microsoft { border-color: #0078d4; color: #0078d4; }
.oauth-stack a.oauth-btn.facebook { border-color: #1877f2; color: #1877f2; }

.flow-or {
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
    margin: 0.75rem 0;
}
.flow-captcha {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0.5rem 0;
}
.flow-captcha input { flex: 1; }
.flow-captcha img { cursor: pointer; border: 1px solid var(--border); }

.hidden { display: none !important; }

.nav-cart-btn, .nav-link-btn {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
}
.nav-cart-btn { position: relative; }
.cart-badge {
    display: inline-block;
    min-width: 1.1rem;
    padding: 0 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    vertical-align: top;
}
.cart-list { max-height: 50vh; overflow-y: auto; margin: 1rem 0; }
.cart-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.65rem;
    padding: 1rem 0 1.25rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.cart-item-thumb {
    grid-row: 1 / span 2;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0eeea;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cart-item-info {
    min-width: 0;
    grid-column: 2;
}
.cart-item-foot {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}
.cart-item-info strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.45;
    word-break: break-word;
}
.cart-item-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.25rem;
}
.cart-qty {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.cart-qty button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}
.cart-qty span {
    min-width: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}
.cart-item-remove {
    border: none;
    background: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}
.cart-item-remove:hover { color: var(--ink); }
.cart-foot {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.cart-total strong { font-size: 1.15rem; color: var(--accent); }
.cart-empty { text-align: center; color: var(--muted); padding: 2rem 0; }
.checkout-lines {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--paper);
    border: 1px solid var(--border);
}
.checkout-lines li { margin: 0.25rem 0; list-style: none; }
.track-result {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--border);
    font-size: 0.9rem;
}
.track-result dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; }
.track-result dt { color: var(--muted); }
.track-items { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--border); }
