/* =========================================================
   1. 全局变量（✅ 已完全替换你原来的 :root）
   ========================================================= */
:root {
    /* 主色：发光绿 */
    --base: 145 100% 50%;        /* #00FF66 */
    --base-hover: 145 100% 43%;
    --base-light: 145 100% 70%;

    /* 中性色 */
    --black: 220 15% 18%;
    --gray-100: 220 10% 96%;
    --gray-200: 220 10% 88%;
    --white: 0 0% 100%;

    /* 状态色 */
    --success: 145 100% 50%;
    --error: 0 80% 60%;
    --warning: 40 100% 55%;

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-full: 999px;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 12px hsla(var(--base), 0.4);
}

/* =========================================================
   2. 基础重置
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
                 Roboto, sans-serif;
    background-color: hsl(var(--gray-100));
    color: hsl(var(--black));
    line-height: 1.6;
}

a {
    color: hsl(var(--base));
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================================================
   3. 按钮（Deblock 风格）
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn--primary {
    background-color: hsl(var(--base));
    color: hsl(var(--white));
    box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
    background-color: hsl(var(--base-hover));
    box-shadow: 0 0 18px hsla(var(--base), 0.6);
}

.btn--outline {
    background-color: transparent;
    color: hsl(var(--black));
    border: 1px solid hsl(var(--gray-200));
}

.btn--outline:hover {
    border-color: hsl(var(--base));
    color: hsl(var(--base));
}

/* =========================================================
   4. 卡片
   ========================================================= */
.card {
    background: hsl(var(--white));
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid hsl(var(--gray-200));
}

.card-header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-body {
    font-size: 14px;
    color: hsl(var(--black) / 0.75);
}

/* =========================================================
   5. 交易列表
   ========================================================= */
.transaction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: hsl(var(--white));
    margin-bottom: 8px;
}

.transaction__title {
    font-weight: 500;
    font-size: 14px;
}

.transaction__amount {
    font-weight: 600;
    font-size: 14px;
}

.transaction__amount.income {
    color: hsl(var(--success));
}

.transaction__amount.expense {
    color: hsl(var(--error));
}

/* =========================================================
   6. Copied 提示
   ========================================================= */
.copied::after {
    content: "COPIED";
    position: absolute;
    top: 8px;
    right: 12%;
    width: 100px;
    text-align: center;
    font-size: 12px;
    padding: 6px 8px;
    color: hsl(var(--white));
    background-color: hsl(var(--base));
    border-radius: 4px;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    animation: showcopied 1.5s ease;
}

@keyframes showcopied {
    0% { opacity: 0; transform: translateX(100%); }
    50% { opacity: 0.8; transform: translateX(40%); }
    70% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; }
}

/* =========================================================
   7. 底部 Tab（App 风格）
   ========================================================= */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: hsl(var(--white));
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid hsl(var(--gray-200));
}

.tab-item {
    font-size: 12px;
    color: hsl(var(--black) / 0.5);
    text-align: center;
}

.tab-item.active {
    color: hsl(var(--base));
}