:root {
    --bg-mint: #8fcab8;
    --bg-mint-dark: #7ab5a2;
    --bg-mint-light: #a9decb;
    --kiwi-green: #90c25a;
    --kiwi-green-hover: #7baf49;
    --blush-pink: #f4bac5;
    --pastel-yellow: #f8df81;
    --card-glass: rgba(255, 255, 255, 0.85);
    --text-main: #433830;
    --text-light: #8a7a70;
    --border-radius: 32px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, var(--bg-mint-light) 0%, var(--bg-mint) 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
    letter-spacing: 0.2px;
}
body:has(.view-login) {
    height: 100vh;
    overflow: hidden;
    background: url('/login-bg.png') center center / cover no-repeat fixed;
}

body::before {
    content: '';
    position: absolute;
    top: -20%; left: -10%;
    width: 70vw; height: 70vw;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}
body::after {
    content: '';
    position: absolute;
    bottom: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(244,186,197,0.2) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

body:has(.view-login)::before {
    display: none;
}
body:has(.view-login)::after {
    display: none;
}

.decor-star {
    position: fixed;
    z-index: 1;
    user-select: none;
    filter: drop-shadow(0 4px 12px rgba(248, 223, 129, 0.4));
    pointer-events: none;
}
.decor-star svg { width: 100%; height: 100%; fill: var(--pastel-yellow); }
.star-1 { top: 12%; left: 18%; width: 50px; animation: float 5s ease-in-out infinite; }
.star-2 { bottom: 15%; right: 15%; width: 40px; fill: white; opacity: 0.9; animation: float 4s ease-in-out infinite 1s; }
.star-3 { top: 25%; right: 22%; width: 30px; animation: float 6s ease-in-out infinite 2s; }

@keyframes float {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-15px) rotate(12deg) scale(1.05); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}

#app {
    width: 100%;
    max-width: 900px;
    z-index: 10;
    position: relative;
    display: flex;
    justify-content: center;
}

.view-container {
    width: 100%;
    animation: fadeIn 0.4s ease-out;
}

.view-login {
    max-width: 980px;
    height: calc(100vh - 2rem);
    min-height: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.5rem 0 5.4rem;
}

.view-login::before,
.view-login::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}
.view-login::before {
    display: none;
}
.view-login::after {
    display: none;
}

.login-orbit {
    position: fixed;
    top: 7%;
    left: 6%;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.42);
    box-shadow: inset 0 0 40px rgba(255,255,255,0.25);
    opacity: 0.55;
    pointer-events: none;
}
.login-orbit::after {
    content: '';
    position: absolute;
    width: 230px;
    height: 34px;
    left: -32px;
    top: 68px;
    border: 8px solid rgba(255,255,255,0.48);
    border-top-color: transparent;
    border-left-color: transparent;
    border-radius: 50%;
    transform: rotate(-16deg);
}
.login-sparkle { position: fixed; color: rgba(255,255,255,0.92); font-size: 1.5rem; text-shadow: 0 0 16px rgba(255,255,255,0.8); pointer-events: none; animation: twinkle 3s ease-in-out infinite; }
.sparkle-a { left: 20%; top: 27%; }
.sparkle-b { right: 18%; top: 20%; animation-delay: .7s; }
.sparkle-c { left: 17%; bottom: 47%; animation-delay: 1.4s; }

.header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: slideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 12px 32px rgba(90, 138, 120, 0.25), inset 0 2px 4px rgba(0,0,0,0.05);
    object-fit: cover;
    background-color: white;
    transition: transform 0.3s ease;
}
.header img:hover { transform: scale(1.05) rotate(5deg); }
.header h1 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 900;
    margin-top: 1.2rem;
    text-shadow: 0 4px 16px rgba(118, 169, 150, 0.6);
    letter-spacing: 2px;
}
.view-login .header h1 { font-size: 1.8rem; letter-spacing: 1px; margin-top: 1rem; }
.view-login .header {
    margin-bottom: 1.55rem;
}
.view-login .header img {
    width: 96px;
    height: 96px;
    border-color: rgba(255,255,255,0.92);
    box-shadow: 0 18px 38px rgba(82, 122, 80, 0.24), 0 0 0 10px rgba(255,255,255,0.22);
}
.view-login .header h1 {
    color: #42633b;
    font-size: 2.35rem;
    line-height: 1.1;
    text-shadow: 0 3px 0 rgba(255,255,255,0.78), 0 10px 24px rgba(72, 112, 62, 0.18);
}
.header p {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.5rem;
}
.view-login .header p {
    color: rgba(75, 91, 70, 0.72);
    font-size: 1.08rem;
    letter-spacing: .5px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.main-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.75) 100%);
    border-radius: var(--border-radius);
    padding: 3rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 30px 60px rgba(90, 138, 120, 0.15), inset 0 2px 4px rgba(255, 255, 255, 1), inset 0 -2px 10px rgba(255,255,255,0.5);
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: fadeIn 0.8s ease-out 0.2s both;
}
.view-login .main-card {
    width: min(100%, 540px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 100%);
    padding: 2.35rem 2.45rem;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.82);
    box-shadow: 0 28px 70px rgba(82, 122, 80, 0.16), inset 0 1px 0 rgba(255,255,255,0.95);
}

.login-card-title { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: .55rem; }
.login-card-title h2 { color: #75a95e; font-size: 1.75rem; font-weight: 900; letter-spacing: 1px; }
.title-deco { width: 54px; height: 12px; position: relative; opacity: .75; }
.title-deco::before { content: ''; position: absolute; inset: 5px 0 auto; height: 2px; background: linear-gradient(90deg, transparent, #b8d8a0, transparent); }
.title-deco::after { content: '✦'; position: absolute; left: 50%; top: -5px; transform: translateX(-50%); color: #a7c993; font-size: .85rem; }
.login-card-subtitle { text-align: center; color: var(--text-light); font-weight: 700; margin-bottom: 2rem; }
.login-card-subtitle { margin-bottom: 1.45rem; }

.view-login .input-group { margin-bottom: 1.08rem; }
.view-login .input-group label { color: #4f493f; font-size: 1.02rem; padding-left: 2px; }
.view-login .custom-input {
    padding: 1rem 1.35rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.78);
    border-color: #dfe8ee;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.9);
}
.view-login .custom-input:focus { box-shadow: 0 0 0 5px rgba(144, 194, 90, 0.16), 0 10px 20px rgba(92, 134, 83, 0.06); }
.view-login .btn-primary {
    min-height: 54px;
    border-radius: 20px;
    background: linear-gradient(135deg, #a9d864 0%, #52b879 100%);
    box-shadow: 0 14px 26px rgba(82, 184, 121, 0.22), inset 0 1px 0 rgba(255,255,255,0.55);
}
.view-login .faq-box {
    margin-top: 1.25rem;
    background: rgba(250, 255, 245, 0.82);
    border-style: dashed;
    border-color: rgba(144, 194, 90, 0.38);
    border-radius: 18px;
}

.login-feature-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(780px, calc(100vw - 3rem));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 1.35rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.42);
    border: 1px solid rgba(255,255,255,0.55);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 35px rgba(78, 131, 70, 0.12), inset 0 1px 0 rgba(255,255,255,0.62);
}
.feature-item { display: flex; align-items: center; justify-content: center; gap: .85rem; color: #5d6a55; }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; background: rgba(255,255,255,0.72); border-radius: 50%; box-shadow: 0 6px 14px rgba(83, 120, 70, 0.10); }
.feature-item b { display: block; font-size: 1rem; color: #57644f; }
.feature-item small { display: block; margin-top: 2px; color: rgba(84, 98, 78, .62); font-weight: 700; }
}

/* 登录表单 */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.input-group label {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    padding-left: 5px;
}
.custom-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    font-family: monospace;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    background: rgba(255,255,255,0.8);
    color: var(--text-main);
    transition: all 0.3s ease;
    outline: none;
}
.custom-input:focus {
    border-color: var(--kiwi-green);
    background: white;
    box-shadow: 0 0 0 4px rgba(144, 194, 90, 0.15);
}
.custom-input::placeholder { font-family: 'Nunito', sans-serif; color: #bdc3c7; }

/* 按钮 */
.btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    border-radius: 16px;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--kiwi-green) 0%, #7caf40 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(116, 163, 67, 0.3), inset 0 2px 4px rgba(255,255,255,0.3);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 24px rgba(116, 163, 67, 0.4), inset 0 2px 4px rgba(255,255,255,0.3);
}
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary {
    background: rgba(255,255,255,0.6);
    color: var(--text-main);
    border: 1px solid rgba(0,0,0,0.05);
}
.btn-secondary:hover:not(:disabled) { background: var(--blush-pink); color: white; border-color: transparent; }
.btn-block { width: 100%; padding: 1.2rem; font-size: 1.1rem; border-radius: 20px; }

/* FAQ 手风琴 */
details.faq-box {
    background: #fdfaf0;
    border: 1px dashed rgba(248, 223, 129, 0.8);
    border-radius: 20px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}
details.faq-box.green-box { background: #f4faee; border-color: rgba(144, 194, 90, 0.4); }
details.faq-box[open] { background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.03); border: 1px solid rgba(248, 223, 129, 0.5); }
details.faq-box.green-box[open] { border-color: rgba(144, 194, 90, 0.3); }

details.faq-box summary {
    padding: 1.2rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 800;
    color: #d97706;
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    outline: none;
    transition: background 0.3s;
}
details.faq-box summary::-webkit-details-marker { display: none; }
details.faq-box summary:hover { background: rgba(255,255,255,0.5); }
details.faq-box.green-box summary { color: #4d7c2a; }

.summary-arrow {
    margin-left: auto; width: 24px; height: 24px; background: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
details.faq-box[open] .summary-arrow { transform: rotate(180deg); }

.faq-content { padding: 0 1.2rem 1.2rem 1.2rem; animation: fadeInFaq 0.3s ease; }
.steps { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.step-item { display: flex; gap: 12px; font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }
.step-num {
    background: rgba(248, 223, 129, 0.4); color: #b45309; width: 24px; height: 24px; border-radius: 8px;
    display: flex; justify-content: center; align-items: center; font-weight: 800; font-size: 0.8rem; flex-shrink: 0; margin-top: 2px;
}
.green-box .step-num { background: rgba(144, 194, 90, 0.2); color: #4d7c2a; }
.highlight-text { font-weight: 800; color: var(--kiwi-green); background: rgba(144, 194, 90, 0.1); padding: 2px 6px; border-radius: 6px; }

/* 仪表盘统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.stat-box {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: inset 0 2px 10px rgba(255,255,255,0.5), 0 4px 15px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-box:hover { transform: translateY(-8px); background: white; box-shadow: 0 12px 30px rgba(144, 194, 90, 0.1); }
.stat-label { font-size: 0.9rem; color: var(--text-light); font-weight: 700; margin-bottom: 0.8rem; }
.stat-value { font-size: 2.2rem; font-weight: 900; color: var(--text-main); line-height: 1; }
.stat-value.money { color: var(--kiwi-green); }

/* 列表头部 */
.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.list-header h2 { font-size: 1.2rem; font-weight: 800; color: var(--text-main); position: relative; padding-left: 18px; }
.list-header h2::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 8px; height: 18px; background: var(--kiwi-green); border-radius: 10px; }

/* 数据列表 */
.record-list { display: flex; flex-direction: column; gap: 1rem; max-height: 400px; overflow-y: auto; padding-right: 5px; }
.record-list::-webkit-scrollbar { width: 6px; }
.record-list::-webkit-scrollbar-thumb { background-color: rgba(144, 194, 90, 0.3); border-radius: 10px; }
.empty-state { text-align: center; padding: 3rem; color: var(--text-light); font-weight: 600; background: rgba(255,255,255,0.5); border-radius: 20px; border: 2px dashed rgba(0,0,0,0.05); }

.record-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 1.5rem; background: rgba(255, 255, 255, 0.9);
    border-radius: 20px; border: 2px solid transparent; position: relative; overflow: hidden;
    animation: slideLeft 0.3s ease-out backwards;
}
.record-item:hover { background: white; border-color: rgba(144, 194, 90, 0.3); transform: scale(1.02); z-index: 2; box-shadow: 0 8px 24px rgba(144, 194, 90, 0.08); }
.record-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, var(--kiwi-green), var(--blush-pink)); opacity: 0; transition: opacity 0.3s; }
.record-item:hover::before { opacity: 1; }

.record-item.compensated { opacity: 0.6; filter: grayscale(1); pointer-events: none; }

.record-info { display: flex; align-items: center; gap: 18px; }
.custom-checkbox {
    appearance: none; width: 24px; height: 24px; border: 2px solid #cbd5e1; border-radius: 50%;
    cursor: pointer; position: relative; background: white; flex-shrink: 0;
}
.custom-checkbox:checked { background: var(--kiwi-green); border-color: var(--kiwi-green); box-shadow: 0 0 10px rgba(144,194,90,0.4); }
.custom-checkbox:checked::after { content: '✓'; color: white; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 14px; font-weight: bold; }
.custom-checkbox:disabled { cursor: not-allowed; opacity: 0.5; }

.record-icon { font-size: 1.8rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.record-detail h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.record-detail p { font-size: 0.85rem; color: var(--text-light); display: flex; align-items: center; gap: 10px; }
.badge { background: #f1f5f9; padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; color: #64748b; }

.record-action { display: flex; align-items: center; gap: 2rem; }
.record-price { font-size: 1.3rem; font-weight: 900; font-family: monospace; color: var(--text-main); }

.history-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 2px dashed rgba(144, 194, 90, 0.25); }
.history-summary { margin: -0.5rem 0 1rem; color: var(--text-light); font-weight: 700; }
.history-list { max-height: 320px; }
.history-item { background: rgba(255, 255, 255, 0.72); }
.history-item .record-price { color: var(--kiwi-green); }
.balance-change { margin-top: 4px; color: var(--kiwi-green) !important; font-weight: 800; }
.compact-empty { padding: 1.5rem; }

/* Dashboard compensation page */
.dashboard-view {
    max-width: 1160px;
    margin: 0 auto;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}
.dashboard-title { display: flex; align-items: flex-start; gap: 14px; }
.title-pill { width: 12px; height: 24px; margin-top: 8px; border-radius: 999px; background: linear-gradient(180deg, #86d387, #4aa989); box-shadow: 0 8px 18px rgba(74,169,137,.28); }
.dashboard-title h1 { margin: 0; font-size: 2rem; color: #2f3537; letter-spacing: .5px; }
.dashboard-title p { margin-top: .45rem; color: #7a8791; font-weight: 700; }
.shield-badge { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 10px; font-size: .9rem; color: white; background: linear-gradient(145deg, #7ed26c, #43b47f); box-shadow: 0 8px 18px rgba(67,180,127,.24); vertical-align: middle; }
.dashboard-actions { display: flex; align-items: center; gap: .9rem; }
.rule-link { border: none; background: transparent; color: #3a9b75; font-weight: 900; cursor: pointer; padding: .7rem .9rem; border-radius: 12px; }
.rule-link:hover { background: rgba(73, 174, 132, .08); }
.rules-panel { margin: -0.6rem 0 1.6rem; padding: 1.35rem 1.5rem; border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(247,253,249,.94)); border: 1px solid rgba(75, 174, 130, .18); box-shadow: 0 16px 38px rgba(57,91,78,.07); animation: fadeIn .2s ease-out; }
.rules-title { font-size: 1.05rem; font-weight: 900; color: #2f7f62; margin-bottom: 1rem; }
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.rule-item { padding: .95rem; border-radius: 14px; background: rgba(239, 250, 243, .78); border: 1px solid rgba(77, 178, 129, .10); }
.rule-item b { display: block; color: #344046; font-size: .95rem; margin-bottom: .38rem; }
.rule-item span { color: #71808a; font-size: .88rem; line-height: 1.55; font-weight: 700; }
.rules-note { margin: 1rem 0 0; padding-top: .95rem; border-top: 1px dashed rgba(77, 178, 129, .22); color: #8a6b36; font-weight: 800; line-height: 1.6; }

.dashboard-stats { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 1.8rem; }
.dash-stat { display: flex; align-items: center; gap: 1.4rem; min-height: 132px; padding: 1.65rem 1.9rem; border-radius: 20px; background: rgba(255,255,255,.92); box-shadow: 0 18px 46px rgba(57, 91, 78, .08), inset 0 1px 0 rgba(255,255,255,.9); border: 1px solid rgba(234, 244, 240, .95); text-align: left; }
.dash-stat .stat-icon { width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; color: white; font-size: 2rem; box-shadow: 0 14px 28px rgba(80, 120, 110, .16); }
.stat-blue .stat-icon { background: linear-gradient(145deg, #78a5ff, #4467ee); }
.stat-green .stat-icon { background: linear-gradient(145deg, #84deb0, #50bd82); }
.stat-purple .stat-icon { background: linear-gradient(145deg, #a78bfa, #7656df); }
.dash-stat .stat-label { color: #3e4549; font-size: 1rem; padding: 0; margin-bottom: .2rem; }
.dash-stat .stat-value { font-size: 2.4rem; color: #2f3537; }
.dash-stat .stat-value.money { color: #31996f; }
.stat-unit, .stat-hint { color: #8a96a0; font-weight: 800; }
.stat-hint { margin-top: .25rem; font-size: .92rem; }

.dashboard-card, .history-card { padding: 1.8rem 2rem; border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 18px 50px rgba(57,91,78,.08), inset 0 1px 0 rgba(255,255,255,.9); border: 1px solid rgba(234,244,240,.95); }
.dashboard-list-header { align-items: center; margin-bottom: 1.35rem; }
.dashboard-list-header h2 { font-size: 1.35rem; }
.dashboard-list-header p { color: #7d8790; font-weight: 700; margin-top: .35rem; }

.dashboard-table { display: block; max-height: 560px; overflow: auto; padding: 0; border-radius: 16px; border: 1px solid #eef2f5; background: #fff; }
.record-row { display: grid; grid-template-columns: 112px minmax(260px, 1.7fr) 170px 180px 110px 110px 110px; align-items: center; gap: 1rem; min-width: 1050px; padding: 1rem .9rem; border-bottom: 1px solid #edf1f4; animation: slideLeft .25s ease-out backwards; }
.record-row.table-head { position: sticky; top: 0; z-index: 2; color: #3f464a; font-size: .9rem; font-weight: 900; background: linear-gradient(180deg, #f7f9fb, #f1f5f8); box-shadow: 0 1px 0 #e8eef2; }
.record-row:not(.table-head):hover { background: #fbfdfc; }
.status-cell { display: flex; align-items: center; gap: .55rem; }
.confirmed-dot { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #83cc55; color: white; font-weight: 900; }
.status-badge, .refund-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: .38rem .65rem; font-size: .82rem; font-weight: 900; white-space: nowrap; }
.status-badge { color: #4aa04f; background: #eef9e9; }
.refund-badge { color: #20a66b; background: #e6f8ef; }
.order-cell strong { display: block; color: #31373a; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-cell small { display: block; color: #9aa3aa; font-weight: 800; margin-top: .32rem; }
.time-cell { color: #6f7a84; font-weight: 800; }
.token-badge { color: #4771a7; background: #eef5ff; border-radius: 999px; padding: .42rem .75rem; font-weight: 900; white-space: nowrap; }
.detail-btn { border: 1px solid #d9e1e7; background: white; color: #59646c; font-weight: 900; border-radius: 999px; padding: .58rem 1rem; cursor: pointer; }
.detail-btn:hover { border-color: #56b682; color: #31996f; box-shadow: 0 8px 18px rgba(49,153,111,.12); }

.dashboard-action-bar { margin-top: 0; border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,255,255,.9)); box-shadow: 0 18px 35px rgba(49,153,111,.10); border: 1px solid #eef3f0; }
.action-wallet { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: #dbf6e8; font-size: 1.9rem; flex-shrink: 0; }
.dashboard-action-bar .btn-primary { min-width: 280px; border-radius: 16px; background: linear-gradient(135deg, #4abd70, #259a78); }
.dashboard-action-bar .total-txt span:first-of-type { color: #3f464a; }
.history-card { margin-top: 1.6rem; padding-top: 1.45rem; }
.history-card .history-section { margin-top: 0; padding-top: 0; border-top: none; }
.history-toggle { cursor: pointer; margin-bottom: 0; }
.history-toggle:hover h2 { color: #31996f; }
.history-toggle .rule-link { background: rgba(49,153,111,.08); }

.action-bar {
    margin-top: 2.5rem; display: flex; justify-content: space-between; align-items: center;
    background: rgba(255, 255, 255, 0.9); padding: 1.5rem 2rem; border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04), inset 0 2px 4px white; border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative; overflow: hidden;
}
.action-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--kiwi-green), var(--pastel-yellow), var(--blush-pink)); }
.action-bar .total-txt { font-size: 1rem; font-weight: 700; color: var(--text-light); }
.action-bar .total-money { font-size: 1.8rem; color: var(--kiwi-green); font-family: monospace; font-weight: 900; margin-left: 10px; }

/* 页面提示信息 (Toast/Alert) */
.toast-msg {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: white; color: var(--text-main); padding: 12px 24px; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); font-weight: 800; z-index: 9999;
    border-left: 5px solid var(--kiwi-green); animation: slideDown 0.3s ease-out;
}
.toast-error { border-color: #f43f5e; color: #e11d48; }

/* 冷却提示 */
.cooldown-alert {
    background: #fff3cd; color: #856404; padding: 10px 15px; border-radius: 12px;
    font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; border: 1px solid #ffeeba;
}

@keyframes slideDown { 0% { transform: translate(-50%, -40px); opacity: 0; } 100% { transform: translate(-50%, 0); opacity: 1; } }
@keyframes fadeIn { 0% { transform: translateY(20px) scale(0.98); opacity: 0; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes slideLeft { 0% { transform: translateX(-30px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes fadeInFaq { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes twinkle { 0%, 100% { opacity: .45; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }

@media (max-width: 900px) {
    body { padding: 1rem; }
    .view-login { padding-bottom: 2rem; }
    .login-feature-bar { position: relative; bottom: auto; left: auto; transform: none; margin-top: 1.5rem; width: 100%; grid-template-columns: 1fr; }
    .login-orbit { display: none; }
    .view-login::before { height: 120px; }
}

@media (max-width: 1100px) {
    .dashboard-header { flex-direction: column; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .dashboard-action-bar { flex-wrap: wrap; }
    .dashboard-action-bar .btn-primary { min-width: 220px; flex: 1; }
    .rules-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .dashboard-card, .history-card { padding: 1.2rem; }
    .dashboard-title h1 { font-size: 1.65rem; }
    .dash-stat { padding: 1.25rem; }
    .dash-stat .stat-icon { width: 56px; height: 56px; font-size: 1.5rem; }
    .record-row { grid-template-columns: 96px 240px 150px 170px 100px 100px 100px; }
    .rules-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .view-login .header h1 { font-size: 2rem; }
    .view-login .header img { width: 88px; height: 88px; }
    .view-login .main-card { padding: 2.2rem 1.4rem; border-radius: 26px; }
    .login-card-title h2 { font-size: 1.45rem; }
    .title-deco { width: 34px; }
}
