/* ============================================
   Design Tokens (from Stitch Tailwind Config)
   ============================================ */
:root {
    /* Colors */
    --primary: #000666;
    --on-primary: #ffffff;
    --primary-container: #1a237e;
    --on-primary-container: #8690ee;
    --primary-fixed: #e0e0ff;
    --primary-fixed-dim: #bdc2ff;

    --secondary: #0061a4;
    --secondary-fixed: #d1e4ff;
    --secondary-fixed-dim: #9ecaff;
    --on-secondary: #ffffff;
    --on-secondary-fixed: #001d36;
    --on-secondary-fixed-variant: #00497d;
    --secondary-container: #33a0fd;
    --on-secondary-container: #00355c;

    --tertiary: #002104;
    --tertiary-fixed: #94f990;
    --tertiary-fixed-dim: #78dc77;
    --on-tertiary: #ffffff;
    --on-tertiary-fixed: #002204;
    --on-tertiary-fixed-variant: #005313;
    --tertiary-container: #00390a;
    --on-tertiary-container: #48ab4d;

    --error: #ba1a1a;
    --error-container: #ffdad6;
    --on-error: #ffffff;
    --on-error-container: #93000a;

    --background: #f7f9fc;
    --on-background: #191c1e;
    --surface: #f7f9fc;
    --surface-dim: #d8dadd;
    --surface-bright: #f7f9fc;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f2f4f7;
    --surface-container: #eceef1;
    --surface-container-high: #e6e8eb;
    --surface-container-highest: #e0e3e6;
    --on-surface: #191c1e;
    --on-surface-variant: #454652;
    --surface-variant: #e0e3e6;
    --outline: #767683;
    --outline-variant: #c6c5d4;
    --inverse-surface: #2d3133;
    --inverse-on-surface: #eff1f4;
    --inverse-primary: #bdc2ff;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-base: 4px;
    --container-margin: 20px;

    /* Border Radius */
    --radius-default: 4px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-3xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-main: 0 10px 30px -5px rgba(26, 35, 126, 0.08);
    --shadow-plate-inset: inset 0 2px 4px rgba(26, 35, 126, 0.05);
    --shadow-plate-focus: 0 0 0 2px #000666;

    /* Brand Colors */
    --wechat-green: #07C160;
    --alipay-blue: #1677FF;
    --secondary-blue: #33a0fd;
    --guide-gold: #B88600;
    --guide-text: #856404;
    --guide-bg: #FFF9E6;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-headline-md: 600 20px/28px var(--font-family);
    --font-body-md: 400 14px/20px var(--font-family);
    --font-body-lg: 400 16px/24px var(--font-family);
    --font-label-md: 500 12px/16px var(--font-family);
}

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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background: var(--background);
    color: var(--on-background);
    min-height: 100dvh;
}

.icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    flex: 1;
    padding: 60px var(--container-margin) 32px;
}

/* ============================================
   Decorative Section
   ============================================ */
.decorative-section {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.icon-circle {
    width: 96px;
    height: 96px;
    margin: 0 auto var(--spacing-md);
    background: var(--secondary-fixed);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-main);
}

.icon-large {
    width: 48px;
    height: 48px;
    color: var(--primary);
}

.headline {
    font: var(--font-headline-md);
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: var(--spacing-xs);
}

.subtitle {
    font: var(--font-body-md);
    color: var(--outline);
}

.auto-detect-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: calc(-1 * var(--spacing-md)) 0 var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--on-secondary-fixed-variant);
    background: var(--secondary-fixed);
    border-radius: var(--radius-xl);
    font: var(--font-body-md);
}

.auto-detect-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 73, 125, 0.25);
    border-top-color: var(--secondary);
    border-radius: var(--radius-full);
    animation: autoDetectSpin 0.8s linear infinite;
}

@keyframes autoDetectSpin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Plate Card
   ============================================ */
.plate-card {
    background: var(--surface-container-lowest);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-main);
    margin-bottom: var(--spacing-lg);
}

.plate-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.card-title {
    font: var(--font-body-md);
    font-weight: 700;
    color: var(--on-surface);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
}

.checkbox {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-default);
    border: 1px solid var(--outline);
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-text {
    font: var(--font-label-md);
    color: var(--on-surface-variant);
}

/* ============================================
   Plate Input Grid
   ============================================ */
.plate-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--spacing-base);
    margin-bottom: var(--spacing-md);
}

.plate-cell {
    height: 56px;
    background: var(--surface-container-low);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(198, 197, 212, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-plate-inset);
}

.plate-cell:active {
    transform: scale(0.96);
    opacity: 0.9;
}

.plate-cell.active {
    border-color: var(--primary);
    background: var(--surface-container-lowest);
    box-shadow: var(--shadow-plate-focus);
}

.plate-cell.filled {
    background: var(--surface-container-lowest);
}

.plate-char {
    font: var(--font-headline-md);
    font-weight: 700;
    color: var(--primary);
}

.placeholder {
    font: var(--font-headline-md);
    font-weight: 600;
    color: var(--outline);
}

/* Energy Cell */
.energy-cell {
    background: rgba(148, 249, 144, 0.2);
    border: 2px dashed var(--tertiary-fixed);
    flex-direction: column;
    gap: 2px;
}

.energy-icon {
    width: 20px;
    height: 20px;
    color: var(--tertiary-fixed-dim);
}

.energy-text {
    font-family: var(--font-family);
    font-size: 8px;
    font-weight: 500;
    color: var(--on-tertiary-fixed-variant);
    line-height: 1;
}

/* ============================================
   Special Plate Input
   ============================================ */
.special-plate {
    margin-bottom: var(--spacing-md);
}

.special-plate-input {
    width: 100%;
    height: 56px;
    line-height: 56px;
    border: 1px solid rgba(198, 197, 212, 0.3);
    border-radius: var(--radius-lg);
    padding: 0 var(--spacing-md);
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-family);
    color: var(--primary);
    background: var(--surface-container-low);
    box-shadow: var(--shadow-plate-inset);
    outline: none;
    transition: all 0.2s ease;
}

.special-plate-input::placeholder {
    font-size: 14px;
    font-weight: 600;
    color: var(--outline);
}

.special-plate-input:focus {
    border-color: var(--primary);
    background: var(--surface-container-lowest);
    box-shadow: var(--shadow-plate-focus);
}

/* ============================================
   Recent Search
   ============================================ */
.recent-search {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.recent-label {
    font: var(--font-label-md);
    color: var(--outline);
}

.history-tag {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--surface-container-low);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background-color 0.2s;
}

.history-tag:active {
    background: var(--surface-container-high);
}

.history-text {
    font: var(--font-body-md);
    font-weight: 700;
    color: var(--primary);
}

.close-icon {
    width: 16px;
    height: 16px;
    color: var(--outline);
}

/* ============================================
   Query Button
   ============================================ */
.query-btn {
    width: 100%;
    height: 56px;
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--radius-xl);
    font: var(--font-headline-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    box-shadow: 0 4px 12px rgba(0, 6, 102, 0.2);
    transition: all 0.2s ease;
}

.query-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

.query-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.query-btn.disabled:active {
    transform: none;
}

/* ============================================
   Keyboard Overlay
   ============================================ */
.keyboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.keyboard-container {
    width: 100%;
    max-width: 100%;
    background: var(--surface-container-lowest);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--spacing-md);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.keyboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-xs);
}

.keyboard-title {
    font: var(--font-body-md);
    font-weight: 600;
    color: var(--on-surface);
}

.keyboard-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--surface-container-low);
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--outline);
}

/* ============================================
   Keyboard Grid
   ============================================ */
.keyboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    justify-content: center;
}

.province-grid {
    justify-content: flex-start;
}

.key-btn {
    min-width: 32px;
    height: 42px;
    padding: 0 8px;
    background: var(--surface-container-low);
    border: none;
    border-radius: var(--radius-lg);
    font: var(--font-body-lg);
    font-weight: 500;
    color: var(--on-surface);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key-btn:active {
    background: var(--surface-container-high);
    transform: scale(0.95);
}

.province-grid .key-btn {
    width: calc((100% - 8 * var(--spacing-xs)) / 9);
    min-width: 0;
    padding: 0 8px;
    font-size: 15px;
}

.letter-grid .key-btn {
    width: calc((100% - 9 * var(--spacing-xs)) / 10);
    min-width: 0;
    padding: 0;
}

.delete-btn {
    background: var(--surface-container-high);
    color: var(--on-surface-variant);
}

.delete-btn:active {
    background: var(--surface-container-highest);
}

.delete-btn .icon {
    width: 20px;
    height: 20px;
}

.key-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ============================================
   Payment Content
   ============================================ */
.payment-content {
    padding-top: var(--spacing-sm);
}

/* ============================================
   Plate Display
   ============================================ */
.plate-display {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.plate-label {
    font: var(--font-label-md);
    color: var(--outline);
    margin-bottom: var(--spacing-sm);
}

.plate-number {
    font: var(--font-headline-md);
    font-weight: 500;
    color: var(--on-surface);
}

/* ============================================
   Amount Card
   ============================================ */
.amount-card {
    background: var(--surface-container-lowest);
    border-radius: var(--radius-3xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-main);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    border: 2px solid rgba(0, 6, 102, 0.1);
}

.amount-label {
    font: var(--font-label-md);
    color: var(--outline);
    margin-bottom: var(--spacing-xs);
}

.amount-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: var(--primary);
}

.amount-symbol {
    font-size: 28px;
    font-weight: 700;
    margin-right: var(--spacing-base);
}

.amount-number {
    font-size: 56px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ============================================
   Detail Card
   ============================================ */
.detail-card {
    background: var(--surface-container-lowest);
    border-radius: var(--radius-3xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-main);
    margin-bottom: var(--spacing-lg);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.detail-row + .detail-row {
    border-top: 1px solid var(--outline-variant);
}

.detail-label {
    font: var(--font-body-md);
    color: var(--outline);
}

.detail-value {
    font: var(--font-body-lg);
    font-weight: 700;
    color: var(--on-surface);
}

/* ============================================
   Payment Methods
   ============================================ */
.payment-methods {
    margin-bottom: 120px;
}

.payment-methods-label {
    font: var(--font-label-md);
    color: var(--outline);
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-base);
}

.payment-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--surface-container-lowest);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-main);
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.8;
    margin-bottom: var(--spacing-sm);
}

.payment-option.selected {
    opacity: 1;
    border: 2px solid var(--primary);
}

.payment-option-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.payment-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-icon {
    background: rgba(7, 193, 96, 0.1);
    color: var(--wechat-green);
}

.alipay-icon {
    background: rgba(22, 119, 255, 0.1);
    color: var(--alipay-blue);
}

.payment-icon svg {
    width: 24px;
    height: 24px;
}

.payment-name {
    font: var(--font-body-lg);
    font-weight: 700;
    color: var(--on-surface);
}

.payment-desc {
    font: var(--font-label-md);
    color: var(--outline);
}

.radio-checked {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-primary);
}

.radio-checked svg {
    width: 16px;
    height: 16px;
}

.radio-unchecked {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    border: 2px solid var(--outline-variant);
}

/* ============================================
   Bottom Action
   ============================================ */
.bottom-action {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--spacing-md) var(--container-margin);
    padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(198, 197, 212, 0.1);
}

.pay-btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(180deg, #1a237e 0%, #000666 100%);
    color: var(--on-primary);
    border: none;
    border-radius: var(--radius-full);
    font: var(--font-body-lg);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.25);
    transition: all 0.2s;
}

.pay-btn:active {
    transform: scale(0.97);
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pay-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   Success Page
   ============================================ */
.success-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.success-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 32px;
    animation: fadeInScale 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.success-icon-wrapper {
    margin-bottom: 24px;
}

.success-icon-ring {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: var(--surface-container-low);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 4px 4px 12px rgba(26, 35, 126, 0.05),
                inset -4px -4px 12px rgba(255, 255, 255, 0.8);
}

.success-icon-check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--on-tertiary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(72, 171, 77, 0.3);
}

.success-icon-check svg {
    width: 48px;
    height: 48px;
    color: #fff;
}

.confirming-icon {
    width: 96px;
    height: 96px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: var(--surface-container-low);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: confirmingPulse 1.6s ease-in-out infinite;
}

.confirming-icon svg {
    width: 52px;
    height: 52px;
}

@keyframes confirmingPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 35, 126, 0.12); }
    50% { box-shadow: 0 0 0 14px rgba(26, 35, 126, 0); }
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 8px;
}

.success-subtitle {
    font-size: 16px;
    color: var(--on-surface-variant);
    text-align: center;
    margin-bottom: 32px;
}

.success-detail-card {
    width: 100%;
    background: var(--surface-container-lowest);
    border-radius: var(--radius-2xl);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--surface-container-low);
}

.success-detail-row-last {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.success-detail-label {
    font-size: 12px;
    color: var(--outline);
}

.success-detail-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--on-surface);
}

.success-detail-amount {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}

.success-btn-outline {
    width: 100%;
    height: 56px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--outline-variant);
    border-radius: var(--radius-2xl);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.success-btn-outline:active {
    background: var(--surface-container-low);
    transform: scale(0.98);
}

.success-btn-outline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   Entry Success Page（无牌车入库成功）
   ============================================ */
.entry-success-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.entry-success-main {
    flex: 1;
    padding: 20px 20px 32px;
    overflow-y: auto;
}

.skeuomorphic-card {
    background: var(--surface-container-lowest);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 10px 30px -5px rgba(26, 35, 126, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.success-glow-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--secondary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    filter: drop-shadow(0 0 12px rgba(51, 160, 253, 0.3));
    animation: fadeInScale 0.5s ease forwards;
}

.success-glow-icon svg {
    width: 48px;
    height: 48px;
    color: #fff;
}

.success-title-blue {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-blue);
    margin-bottom: 24px;
}

.info-list {
    border-top: 1px solid var(--surface-container);
    padding-top: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.info-row span:first-child {
    font-size: 14px;
    color: var(--on-surface-variant);
}

.info-row span:last-child {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.guide-banner {
    background: var(--guide-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.03);
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--guide-gold);
}

.guide-header svg {
    width: 20px;
    height: 20px;
}

.guide-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--guide-gold);
}

.guide-text {
    font-size: 14px;
    color: var(--guide-text);
    line-height: 1.6;
}

/* ============================================
   Entry/Exit Failure Page（入库/出库失败）
   ============================================ */
.entry-failure-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.entry-failure-main {
    flex: 1;
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
}

.entry-failure-card {
    background: var(--surface-container-lowest);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.04),
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.fail-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--error);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(186, 26, 26, 0.2);
}

.fail-icon-circle svg {
    width: 48px;
    height: 48px;
    color: var(--on-error);
}

.fail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 16px;
}

.fail-desc {
    font-size: 16px;
    color: var(--on-surface-variant);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
    word-break: break-word;
}

.suggestion-section {
    padding: 24px 0;
}

.suggestion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.suggestion-bar {
    width: 4px;
    height: 16px;
    background: var(--secondary);
    border-radius: 2px;
}

.suggestion-header-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--on-surface);
}

.suggestion-card {
    background: var(--surface-container-lowest);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.04);
    cursor: pointer;
    transition: transform 0.15s;
}

.suggestion-card:active {
    transform: scale(0.98);
}

.suggestion-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--secondary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-secondary-container);
    flex-shrink: 0;
}

.suggestion-icon svg {
    width: 24px;
    height: 24px;
}

.suggestion-info {
    flex: 1;
}

.suggestion-info-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 4px;
}

.suggestion-info-desc {
    font-size: 12px;
    color: var(--on-surface-variant);
    font-weight: 500;
}

/* 页面内提示（替代原生 alert，避免展示域名） */
.app-alert-root {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.app-alert-mask {
    position: absolute;
    inset: 0;
    background: rgba(25, 28, 30, 0.45);
}

.app-alert-panel {
    position: relative;
    width: 100%;
    max-width: 300px;
    background: var(--surface-container-lowest);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-main);
    overflow: hidden;
}

.app-alert-message {
    margin: 0;
    padding: 28px 24px 20px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--on-surface);
    text-align: center;
    word-break: break-word;
}

.app-alert-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-top: 1px solid var(--outline-variant);
    background: transparent;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.app-alert-btn:active {
    background: var(--surface-container-low);
}

