[v-cloak] { display: none !important; }

:root {
    --page-bg: #f8f9fc;
    --card-bg: rgba(255, 255, 255, 0.72);
    --card-border: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    --text-main: #1a1a2e;
    --text-muted: #6b7280;
    --text-soft: #9ca3af;
    --line: rgba(0, 0, 0, 0.06);

    --brand: #1a1a2e;
    --brand-deep: #2d2d44;
    --brand-soft: #f3f4f6;
    --brand-text: #1a1a2e;

    --green: #10b981;
    --danger: #ef4444;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: linear-gradient(180deg, #f0f2f8 0%, #f8f9fc 40%, #ffffff 100%);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

input, textarea {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

button { border: 0; cursor: pointer; }
::-webkit-scrollbar { display: none; }

/* ===== Theme per page ===== */
body.theme-meituan {
    --brand: #FFD100;
    --brand-deep: #F5A623;
    --brand-soft: #FFF8E1;
    --brand-text: #8B6914;
    background: linear-gradient(180deg, #fffdf5 0%, #fefcf8 40%, #ffffff 100%);
}

body.theme-pdd {
    --brand: #E02E24;
    --brand-deep: #C41E14;
    --brand-soft: #FFF0EF;
    --brand-text: #9B1B13;
    background: linear-gradient(180deg, #fef8f8 0%, #fdfafa 40%, #ffffff 100%);
}

body.theme-taobao {
    --brand: #FF5000;
    --brand-deep: #E04500;
    --brand-soft: #FFF3ED;
    --brand-text: #993000;
    background: linear-gradient(180deg, #fffaf5 0%, #fefcf9 40%, #ffffff 100%);
}

body.theme-rabbit {
    --brand: #4a86e8;
    --brand-deep: #2d5fc7;
    --brand-soft: #eef3fc;
    --brand-text: #1d3a7a;
    background: linear-gradient(180deg, #f5f8fe 0%, #f9fbff 40%, #ffffff 100%);
}

body.theme-rabbit .primary-btn {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* ===== Layout ===== */
.shell {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 18px 16px 28px;
}

.page-top {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: -18px -16px 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* ===== Cards ===== */
.card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.soft-card {
    background: rgba(248, 249, 252, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.hero-card {
    background: linear-gradient(135deg, var(--brand-soft), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

/* ===== Buttons ===== */
.icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: white;
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.primary-btn {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep)) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-btn:disabled {
    opacity: 1;
    color: white !important;
    -webkit-text-fill-color: white !important;
}

.primary-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.primary-btn .btn-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.primary-btn .btn-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

body.theme-meituan .primary-btn { color: #1a1a2e; }

.secondary-btn {
    min-height: 40px;
    border-radius: 12px;
    background: #f3f4f6;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
    transition: background 0.15s ease;
}

.secondary-btn:active { background: #e5e7eb; }

.brand-btn {
    min-height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep)) !important;
    color: white;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

body.theme-meituan .brand-btn { color: #1a1a2e; }

/* ===== Inputs ===== */
.input-box {
    min-height: 46px;
    border-radius: 14px;
    background: #f3f4f6;
    border: 1.5px solid transparent;
    padding: 12px 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.input-box:focus-within {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* ===== Section Title ===== */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 900;
    color: var(--text-main);
}

.section-title::before {
    content: "";
    width: 4px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand), var(--brand-deep));
}

/* ===== Utilities ===== */
.pill-btn {
    min-height: 32px;
    border-radius: 999px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.hero-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-soft), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.95);
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quick-action-card {
    border-radius: 18px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 252, 0.96));
    text-align: left;
}

.quick-action-card.primary {
    background: linear-gradient(135deg, var(--brand-soft), rgba(255, 255, 255, 0.98));
    border-color: rgba(255, 255, 255, 0.98);
}

.quick-action-card .action-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.quick-action-card .action-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--text-main);
}

.quick-action-card .action-desc {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-muted);
}

.section-chip {
    min-height: 26px;
    border-radius: 999px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--brand-soft);
    color: var(--brand-text);
    font-size: 10px;
    font-weight: 800;
}

.form-panel {
    padding: 14px;
    border-radius: 18px;
    background: rgba(248, 249, 252, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.result-shell {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.popup-sheet {
    background: #f4f7fb;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.popup-head {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #d1d5db;
    margin: 0 auto 18px;
}

.popup-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 14px;
}

.popup-qr {
    background: #ffffff;
    border: 1px solid #dbe5fa;
    border-radius: 18px;
    padding: 12px;
}

.home-popup-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    padding: 12px;
}

.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); }

.active-scale {
    transition: transform 0.15s ease, opacity 0.15s ease;
    cursor: pointer;
}
.active-scale:active { transform: scale(0.97); opacity: 0.85; }

/* ===== Sidebar ===== */
.sidebar-glass {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.nav-item.active,
.nav-item-active {
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.nav-item-active {
    color: white;
    font-weight: 700;
}

.nav-icon-bubble {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== Meituan input status colors ===== */
.input-box textarea.text-\[\#0a84ff\] { color: #0a84ff; }
.input-box textarea.text-\[\#ef4444\] { color: #ef4444; }
