:root {
    /* 金色主题色 - 更明亮 */
    --gold-primary: #E5C158;
    --gold-light: #FFD700;
    --gold-dark: #C9A227;
    --gold-gradient: linear-gradient(135deg, #E5C158 0%, #FFD700 50%, #D4AF37 100%);
    --gold-glow: rgba(229, 193, 88, 0.4);
    --gold-shine: rgba(255, 215, 0, 0.6);
    
    /* 深色奢华背景 - 提升亮度 */
    --bg-dark: #141824;
    --bg-page: #1e2330;
    --bg-card: #2a3142;
    --bg-card-hover: #323b4f;
    --bg-input: #252b3a;
    
    /* 文字颜色 */
    --text-primary: #ffffff;
    --text-secondary: #a8b0c8;
    --text-muted: #6b7285;
    
    /* 功能色 */
    --income: #00e5a0;
    --expense: #ff7070;
    --warning: #ffb84d;
    
    /* 边框和阴影 */
    --border-color: rgba(229, 193, 88, 0.2);
    --border-gold: rgba(229, 193, 88, 0.4);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --shadow-gold: rgba(229, 193, 88, 0.2);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-page) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    /* 允许顶部下拉刷新，阻止底部过度滚动 */
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 主容器样式 - 详见文件末尾的全面屏适配 */
#app {
    max-width: 540px; /* 增加最大宽度，减少两侧黑边 */
    margin: 0 auto;
    background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-dark) 100%);
    position: relative;
    min-height: 100vh;
    /* 允许顶部下拉刷新 */
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 头部基础样式 - 详见文件末尾的全面屏适配 */
.luxury-header {
    position: relative;
    padding: 45px 15px 35px; /* 减少水平内边距，让内容更宽 */
    text-align: center;
    overflow: visible; /* 改为visible，避免裁剪用户菜单 */
    background: linear-gradient(180deg, rgba(229, 193, 88, 0.12) 0%, transparent 70%);
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gold-gradient);
    opacity: 0.18;
    clip-path: ellipse(85% 100% at 50% 0%);
    filter: blur(1px);
}

/* 头部金色光效 */
.luxury-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--gold-shine) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
}

.luxury-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: var(--gold-primary);
    text-shadow: 
        0 0 20px var(--gold-glow),
        0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.luxury-header h1 i {
    margin-right: 10px;
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

/* 金色概览卡片 */
.gold-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(42, 49, 66, 0.9) 100%);
    border: 1px solid var(--border-gold);
    border-radius: 24px;
    padding: 30px 25px;
    margin: 0 12px 20px; /* 减少水平边距，让卡片更宽 */
    box-shadow: 
        0 10px 40px var(--shadow-color),
        0 0 30px var(--shadow-gold),
        inset 0 1px 0 rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}

/* 卡片金色光效 */
.gold-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--gold-shine) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
}

.gold-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    box-shadow: 0 0 15px var(--gold-glow);
}

/* 卡片悬停效果 */
.gold-card:hover {
    box-shadow: 
        0 12px 50px var(--shadow-color),
        0 0 40px var(--shadow-gold),
        inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.summary-top {
    text-align: center;
    margin-bottom: 20px;
}

.month-badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid var(--border-gold);
    font-weight: 500;
}

.balance-large {
    text-align: center;
    margin: 25px 0;
}

.balance-large .currency {
    font-size: 32px;
    color: var(--gold-primary);
    font-weight: 300;
    vertical-align: top;
    margin-right: 5px;
}

.balance-large span:last-child {
    font-size: 48px;
    font-weight: 700;
    color: var(--gold-light);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.balance-label {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 25px;
}

.summary-split {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.split-item {
    text-align: center;
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.split-item:active {
    background: rgba(255,255,255,0.1);
    transform: scale(0.98);
}

.split-item i {
    font-size: 20px;
    margin-bottom: 8px;
    display: block;
}

.split-item.income i { color: var(--income); }
.split-item.expense i { color: var(--expense); }

.split-item .amount {
    display: block;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.split-item.income .amount { color: var(--income); }
.split-item.expense .amount { color: var(--expense); }

.split-item .label {
    font-size: 12px;
    color: var(--text-secondary);
}

.divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

/* 快捷功能网格 */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 12px; /* 减少水平内边距 */
    margin-bottom: 30px;
}

.quick-btn {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 43, 61, 0.6) 100%);
    border-radius: 20px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.quick-btn:active {
    transform: scale(0.95);
}

.quick-btn.gold { 
    border-color: rgba(212, 175, 55, 0.4);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1) 0%, var(--bg-card) 100%);
}
.quick-btn.purple { border-color: rgba(147, 112, 219, 0.4); }
.quick-btn.blue { border-color: rgba(0, 217, 255, 0.4); }

.icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
}

.quick-btn.gold .icon-wrap { 
    background: rgba(212, 175, 55, 0.2); 
    color: var(--gold-primary);
}
.quick-btn.purple .icon-wrap { 
    background: rgba(147, 112, 219, 0.2); 
    color: #9370db;
}
.quick-btn.blue .icon-wrap { 
    background: rgba(0, 217, 255, 0.2); 
    color: var(--income);
}

.quick-btn span {
    font-size: 13px;
    color: var(--text-primary);
}

/* 区块标题 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.section-title i {
    color: var(--gold-primary);
    margin-right: 8px;
}

.section-title a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: normal;
    cursor: pointer;
}

/* 账单列表奢华版 */
.bill-list-luxury {
    padding: 0 12px; /* 减少水平内边距，让列表更宽 */
}

.bill-item-luxury {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 43, 61, 0.6) 100%);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.bill-item-luxury:hover {
    border-color: var(--border-gold);
    box-shadow: 0 4px 20px var(--shadow-gold);
}

.bill-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
}

.bill-info-luxury {
    flex: 1;
}

.bill-category {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.bill-merchant {
    font-size: 13px;
    color: var(--text-secondary);
}

.bill-amount-luxury {
    font-size: 18px;
    font-weight: 700;
}

.bill-amount-luxury.income { color: var(--income); }
.bill-amount-luxury.expense { color: var(--expense); }

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.3;
    color: var(--gold-primary);
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 奢华卡片 */
.luxury-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 43, 61, 0.6) 100%);
    border-radius: 24px;
    padding: 25px;
    margin: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
}

/* 类型切换 */
.type-toggle {
    display: flex;
    background: var(--bg-input);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.toggle-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.toggle-btn:hover {
    color: var(--gold-primary);
}

.toggle-btn.active {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* 金额输入 */
.amount-input-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.currency-symbol {
    font-size: 40px;
    color: var(--gold-primary);
    margin-right: 10px;
    font-weight: 300;
}

.amount-input {
    background: transparent;
    border: none;
    color: var(--gold-light);
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    width: 200px;
    outline: none;
}

.amount-input::placeholder {
    color: rgba(255, 215, 0, 0.3);
}

/* 分类标签 */
.form-section {
    margin-bottom: 25px;
}

.section-label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    padding: 10px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.chip:hover {
    border-color: var(--border-gold);
    color: var(--gold-primary);
}

.chip.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 0 10px var(--shadow-gold);
}

/* 输入框 */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.input-field {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border-radius: 12px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.input-field:focus-within {
    border-color: var(--border-gold);
    box-shadow: 0 0 15px var(--shadow-gold);
}

.input-field i {
    color: var(--gold-primary);
    margin-right: 12px;
    width: 20px;
}

.input-field input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}

/* 按钮 */
.btn-gold {
    width: 100%;
    padding: 16px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
}

.btn-gold:active {
    transform: translateY(2px);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.btn-outline {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    color: var(--gold-primary);
    font-size: 16px;
    cursor: pointer;
    margin-top: 12px;
}

.btn-large {
    margin-top: 15px;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 15px;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
}

/* 上传区域 */
.upload-luxury {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 43, 61, 0.6) 100%);
    border-radius: 24px;
    margin: 15px;
    border: 2px dashed var(--border-gold);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.upload-luxury:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 25px var(--shadow-gold);
}

.upload-luxury:active {
    transform: scale(0.98);
}

.upload-circle {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: var(--gold-primary);
    border: 2px solid var(--border-gold);
    box-shadow: 0 0 20px var(--shadow-gold);
}

.upload-luxury h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.upload-luxury p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.supported {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--gold-primary);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* 加载动画 */
.analyzing-luxury {
    text-align: center;
    padding: 80px 20px;
}

.spinner-gold {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* 结果卡片 */
.result-luxury {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 43, 61, 0.6) 100%);
    border-radius: 24px;
    padding: 25px;
    margin: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
}

.result-header {
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.result-body {
    margin-bottom: 25px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.result-row:last-child {
    border-bottom: none;
}

.result-row .label {
    color: var(--text-secondary);
}

.result-row .value {
    font-weight: 600;
    color: var(--text-primary);
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.action-buttons button {
    flex: 1;
    margin-top: 0;
}

/* ==================== 底部导航栏优化 ==================== */

/* 导航栏遮罩层 - 防止内容穿透 */
.bottom-nav-overlay {
    position: fixed;
    bottom: calc(58px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    height: 25px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-page) 100%);
    pointer-events: none;
    z-index: 99;
}

/* 下拉刷新时禁用导航栏 */
.bottom-nav.disabled {
    pointer-events: none;
}

.bottom-nav.disabled .nav-item:active,
.bottom-nav.disabled .nav-item.active {
    color: var(--text-secondary) !important;
}

.bottom-nav.disabled .nav-item.active i {
    text-shadow: none !important;
    transform: none !important;
}

.bottom-nav.disabled .nav-item.active::before {
    display: none !important;
}

.bottom-nav.disabled .nav-add:active {
    transform: translateY(-20px) !important;
}

.bottom-nav.disabled .nav-add.active {
    transform: translateY(-20px) !important;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5), 0 0 0 4px rgba(212, 175, 55, 0.1) !important;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    background: linear-gradient(180deg, rgba(37, 43, 61, 0.98) 0%, rgba(26, 31, 46, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 8px 15px calc(2px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-gold);
    z-index: 1000;
    box-shadow: 
        0 -4px 30px rgba(0, 0, 0, 0.5),
        0 -1px 0 rgba(212, 175, 55, 0.1);
}

/* 导航项容器 */
.nav-item {
    flex: 1;
    text-align: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 0 8px;
    position: relative;
    min-width: 50px;
}

/* 导航图标 */
.nav-item i {
    display: block;
    font-size: 24px; /* 略微放大 */
    margin-bottom: 4px;
    transition: all 0.3s ease;
    height: 26px;
    line-height: 26px;
}

/* 导航文字 */
.nav-item span {
    font-size: 11px; /* 略微放大 */
    display: block;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* 导航项悬停效果 */
.nav-item:hover {
    color: var(--gold-primary);
}

.nav-item:hover i {
    transform: translateY(-2px);
}

/* 激活状态 */
.nav-item.active {
    color: var(--gold-primary);
}

.nav-item.active i {
    text-shadow: 0 0 15px var(--gold-glow);
    transform: scale(1.1);
}

/* 激活指示器 */
.nav-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--gold-glow);
}

/* 中间添加按钮 */
.nav-add-wrapper {
    position: relative;
    flex: 0 0 60px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 5px;
}

.nav-add {
    width: 54px;
    height: 54px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 24px;
    cursor: pointer;
    box-shadow: 
        0 4px 20px rgba(212, 175, 55, 0.5),
        0 0 0 4px rgba(212, 175, 55, 0.1);
    transform: translateY(-20px);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.nav-add i {
    font-size: 24px; /* 略微放大 */
}

.nav-add:hover {
    box-shadow: 
        0 6px 30px rgba(212, 175, 55, 0.6),
        0 0 0 6px rgba(212, 175, 55, 0.15);
    transform: translateY(-18px) scale(1.05);
}

.nav-add:active {
    transform: translateY(-18px) scale(0.95);
}

/* 添加按钮激活状态 */
.nav-add.active {
    box-shadow: 
        0 6px 30px rgba(212, 175, 55, 0.7),
        0 0 0 6px rgba(212, 175, 55, 0.2);
    transform: translateY(-22px) scale(1.08);
}

/* 添加按钮脉冲动画 */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.nav-add.pulse {
    animation: pulse-gold 2s infinite;
}

/* 页面切换 */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
    min-height: calc(100vh - 150px); /* 确保页面有足够高度 */
    min-height: calc(100dvh - 150px);
    box-sizing: border-box;
    /* 允许下拉刷新 */
    overscroll-behavior-y: auto;
}

.page.active {
    display: block;
}

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

/* 统计页 */
.stats-overview {
    margin: 15px;
}

.stats-overview .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-overview .stat-item:last-child {
    border-bottom: none;
}

.stat-item .label {
    color: var(--text-secondary);
    font-size: 14px;
}

.stat-item .value {
    font-size: 18px;
    font-weight: 700;
}

.stat-item .value.income { color: var(--income); }
.stat-item .value.expense { color: var(--expense); }

/* 分类图表 */
.category-chart {
    padding: 0 12px; /* 减少水平内边距 */
}

.chart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.chart-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
}

.chart-info {
    flex: 1;
}

.chart-name {
    font-size: 14px;
    margin-bottom: 4px;
}

.chart-bar-wrap {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.chart-amount {
    text-align: right;
    margin-left: 10px;
    font-size: 14px;
    font-weight: 600;
}


/* ==================== 月份分组账单列表 ==================== */

.month-group {
    margin: 0 12px 15px; /* 统一边距 */
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 43, 61, 0.6) 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 16px; /* 统一边距 */
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
}

.month-header:hover {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
}

.month-header:active {
    background: rgba(255,255,255,0.05);
}

.month-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.month-toggle-icon {
    color: var(--gold-primary);
    font-size: 14px;
    transition: transform 0.3s;
    width: 20px;
    text-align: center;
}

.month-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.month-count {
    font-size: 12px;
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.month-total {
    font-size: 16px;
    font-weight: 600;
}

.month-total.income {
    color: var(--income);
}

.month-total.expense {
    color: var(--expense);
}

.month-bills {
    padding: 10px 12px; /* 统一边距 */
}

.month-bills .bill-item-luxury {
    background: rgba(30, 36, 51, 0.6);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

.month-bills .bill-item-luxury:last-child {
    margin-bottom: 0;
}

/* 筛选标签 */
.filter-tags {
    display: flex;
    gap: 10px;
    padding: 10px 12px; /* 统一边距 */
    margin-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none; /* 隐藏滚动条 */
    -ms-overflow-style: none;
}

.filter-tags::-webkit-scrollbar {
    display: none; /* 隐藏webkit滚动条 */
}

/* 筛选标签项 */
.filter-tag {
    padding: 8px 14px; /* 稍微减少水平内边距 */
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    flex-shrink: 0; /* 防止标签被压缩 */
}

.filter-tag.active {
    background: var(--gold-gradient);
    color: #0f1419;
    border-color: transparent;
    font-weight: 500;
}

.filter-tag.clear {
    background: transparent;
    border: 1px dashed var(--text-secondary);
}



/* ==================== 删除按钮和Toast消息 ==================== */

.btn-delete {
    background: rgba(225, 112, 85, 0.1);
    border: none;
    color: var(--expense);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-delete:hover {
    background: rgba(225, 112, 85, 0.2);
}

.btn-delete:active {
    transform: scale(0.95);
}

.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(37, 43, 61, 0.98);
    color: var(--gold-primary);
    padding: 15px 30px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.toast-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}



/* ==================== 趋势图表和AI分析 ==================== */

.trend-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 180px;
    padding: 20px;
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 43, 61, 0.6) 100%);
    border-radius: 16px;
    margin: 0 12px; /* 减少水平边距 */
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.trend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
}

.trend-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 140px;
    width: 100%;
    justify-content: center;
}

.trend-bar {
    width: 12px;
    border-radius: 6px 6px 0 0;
    transition: height 0.5s ease;
    min-height: 4px;
}

.trend-bar.income-bar {
    background: var(--income);
}

.trend-bar.expense-bar {
    background: var(--expense);
}

.trend-month {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* AI分析卡片 */
.ai-analysis {
    margin: 0 15px;
}

.ai-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.ai-loading i {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--gold-primary);
}

.ai-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 43, 61, 0.6) 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.ai-section {
    margin-bottom: 20px;
}

.ai-section:last-child {
    margin-bottom: 0;
}

.ai-section h4 {
    color: var(--gold-primary);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-section p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.ai-section ul {
    list-style: none;
    padding: 0;
}

.ai-section li {
    color: var(--text-secondary);
    font-size: 13px;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.ai-section li::before {
    content: '•';
    color: var(--gold-primary);
    position: absolute;
    left: 5px;
}

.ai-section li::before {
    content: '•';
    color: var(--gold-primary);
    position: absolute;
    left: 5px;
}



/* ==================== 用户信息菜单 ==================== */

.user-info {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-primary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s;
    z-index: 10;
    background: rgba(37, 43, 61, 0.8);
    border: 1px solid var(--border-gold);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.user-info span {
    color: var(--text-primary);
    font-size: 13px;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-info:hover {
    background: rgba(212, 175, 55, 0.1);
}

.user-info i {
    font-size: 22px;
}

.user-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-page) 100%);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 140px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 100;
}

.user-menu.show {
    display: block;
}

.menu-item {
    padding: 10px 15px;
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.menu-item:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-primary);
}

.menu-item i {
    font-size: 14px;
    width: 20px;
    text-align: center;
}



/* ==================== 账单搜索框 ==================== */

.search-box {
    padding: 0 15px 15px;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrap > i:first-child {
    position: absolute;
    left: 15px;
    color: var(--gold-primary);
    font-size: 16px;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 45px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: var(--bg-card);
    box-shadow: 0 0 15px var(--shadow-gold);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.search-clear:hover {
    color: var(--expense);
}

.search-result-info {
    padding: 10px 15px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-highlight {
    background: rgba(212, 175, 55, 0.3);
    color: var(--gold-primary);
    padding: 0 2px;
    border-radius: 3px;
}


/* ==================== 环形图样式 ==================== */

.pie-chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 30px;
    flex-wrap: wrap;
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 43, 61, 0.6) 100%);
    border-radius: 16px;
    margin: 0 12px; /* 减少水平边距 */
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.pie-chart {
    position: relative;
    width: 200px;
    height: 200px;
}

.pie-chart svg {
    transform: rotate(-90deg);
}

.pie-chart-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 30;
}

.pie-chart-segment {
    fill: none;
    stroke-width: 30;
    transition: stroke-width 0.3s;
    cursor: pointer;
}

.pie-chart-segment:hover {
    stroke-width: 35;
}

.pie-chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.pie-chart-center .amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-primary);
    display: block;
}

.pie-chart-center .label {
    font-size: 12px;
    color: var(--text-secondary);
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pie-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-primary);
}

.pie-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.pie-legend-text {
    flex: 1;
}

.pie-legend-value {
    color: var(--text-secondary);
    font-size: 12px;
}

/* 预算卡片 */
.budget-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 43, 61, 0.6) 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.budget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.budget-category {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.budget-amount {
    text-align: right;
}

.budget-used {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.budget-total {
    font-size: 12px;
    color: var(--text-secondary);
}

.budget-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.budget-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.budget-progress-bar.normal {
    background: var(--gold-gradient);
}

.budget-progress-bar.warning {
    background: linear-gradient(90deg, #FFA500 0%, #FF8C00 100%);
}

.budget-progress-bar.over {
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a6f 100%);
}

.budget-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.budget-percentage {
    color: var(--text-secondary);
}

.budget-percentage.warning {
    color: #FFA500;
}

.budget-percentage.over {
    color: var(--expense);
}

.budget-remaining {
    color: var(--text-secondary);
}

/* 提醒卡片 */
.reminder-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 43, 61, 0.6) 100%);
    border-radius: 12px;
    padding: 15px;
    margin: 10px 15px;
    border-left: 4px solid var(--gold-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.reminder-card.urgent {
    border-left-color: var(--expense);
    background: linear-gradient(145deg, rgba(255, 107, 107, 0.1) 0%, var(--bg-card) 100%);
}

.reminder-info h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.reminder-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.reminder-amount {
    text-align: right;
}

.reminder-amount .amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--expense);
}

.reminder-amount .days {
    font-size: 11px;
    color: var(--text-secondary);
}

.reminder-amount .days.urgent {
    color: var(--expense);
    font-weight: 600;
}

/* 定期账单的删除按钮靠右对齐 */
.reminder-amount .btn-delete {
    display: inline-flex;
    margin-top: 8px;
}

/* 预算页面按钮样式 - 覆盖默认样式 */
.reminder-amount .receivable-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.reminder-amount .receivable-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin-top: 0;
}

/* 资产卡片 */
.asset-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 43, 61, 0.6) 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 10px 15px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.asset-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.asset-info {
    flex: 1;
}

.asset-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.asset-type {
    font-size: 12px;
    color: var(--text-secondary);
}

.asset-balance {
    text-align: right;
}

.asset-balance .amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-primary);
}

.asset-balance .change {
    font-size: 11px;
    margin-top: 2px;
}

.asset-balance .change.positive {
    color: var(--income);
}

.asset-balance .change.negative {
    color: var(--expense);
}

/* 总净资产卡片 */
.net-worth-card {
    background: var(--gold-gradient);
    border-radius: 20px;
    padding: 25px;
    margin: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
}

.net-worth-label {
    font-size: 14px;
    color: rgba(15, 20, 25, 0.7);
    margin-bottom: 10px;
    font-weight: 500;
}

.net-worth-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--bg-dark);
}

.net-worth-change {
    font-size: 13px;
    color: rgba(0,0,0,0.7);
    margin-top: 8px;
}



/* ==================== 下拉刷新样式 ==================== */

/* 下拉刷新指示器 - 位于 header 内部 */
.pull-to-refresh {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 8px;
}

.pull-to-refresh.visible {
    opacity: 1;
}

.pull-to-refresh.refreshing {
    opacity: 1;
}

/* 简洁刷新指示器 - 无边框无毛玻璃 */
.refresh-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

/* 动态图标容器 */
.refresh-icon-container {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.refresh-indicator i {
    font-size: 20px;
    color: var(--gold-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 箭头动画 */
.refresh-indicator i.fa-arrow-down {
    animation: bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* 箭头翻转状态 */
.refresh-indicator i.rotated {
    transform: rotate(180deg) !important;
    animation: none;
}

/* 旋转加载动画 */
.refresh-indicator i.spinning {
    animation: spin 0.8s linear infinite;
    font-size: 22px;
}

/* 成功状态勾号 */
.refresh-indicator i.fa-check {
    color: var(--income);
    animation: scale-in 0.3s ease;
}

@keyframes scale-in {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 文字样式 */
.refresh-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* 可以松开刷新状态 */
.pull-to-refresh.can-release .refresh-indicator i.fa-arrow-down {
    color: var(--gold-light);
    animation: none;
    transform: rotate(180deg);
}

.pull-to-refresh.can-release .refresh-text {
    color: var(--gold-primary);
    font-weight: 600;
}

/* 刷新中状态 */
.pull-to-refresh.refreshing .refresh-text {
    color: var(--gold-light);
}

/* 页面内容过渡效果 */
.main-content {
    transition: transform 0.1s ease;
    /* 允许垂直和水平滚动，下拉刷新由 JS 控制 */
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}

.main-content.pulling {
    will-change: transform;
}

/* 刷新时的内容回弹动画 */
@keyframes bounceBack {
    0% { transform: translateY(60px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.main-content.bounce-back {
    animation: bounceBack 0.4s ease;
}

/* ==================== 应收款样式 ==================== */

/* 应收款卡片 - 统一预算卡风格 */
.receivable-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 43, 61, 0.6) 100%);
    border-radius: 16px;
    padding: 18px;
    margin: 12px 15px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.receivable-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.receivable-card.pending::before {
    background: var(--gold-primary);
}

.receivable-card.received::before {
    background: #2ed573;
}

.receivable-card.overdue::before {
    background: #ff4757;
}

.receivable-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.receivable-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.receivable-title i {
    color: var(--gold-primary);
    font-size: 18px;
}

.receivable-amount {
    font-size: 20px;
    font-weight: 700;
    color: #2ed573;
}

.receivable-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.receivable-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.receivable-meta i {
    color: var(--gold-primary);
    font-size: 12px;
}

.receivable-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.receivable-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.receivable-status.pending {
    color: var(--gold-primary);
}

.receivable-status.received {
    color: #2ed573;
}

.receivable-status.overdue {
    color: #ff4757;
}

.receivable-actions {
    display: flex;
    gap: 8px;
}

.receivable-actions button {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    width: auto;
    height: auto;
}

.btn-receive {
    background: var(--gold-gradient);
    color: #1a1a2e;
}

.btn-receive:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-delete {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3) !important;
}

.btn-delete:hover {
    background: rgba(255, 71, 87, 0.25);
    transform: translateY(-2px);
}

/* 应收款分组标题 */
.receivable-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 15px 10px;
    font-size: 14px;
    font-weight: 600;
}

.receivable-group-title.overdue {
    color: #ff4757;
}

.receivable-group-title.pending {
    color: var(--gold-primary);
}

.receivable-group-title.received {
    color: #2ed573;
}

.receivable-group-title i {
    font-size: 16px;
}

/* 统计小卡片 */
.mini-stat-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 43, 61, 0.6) 100%);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.mini-stat-card .label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.mini-stat-card .value {
    font-size: 20px;
    font-weight: 700;
}

.mini-stat-card .value.gold {
    color: var(--gold-primary);
}

.mini-stat-card .value.red {
    color: #ff4757;
}

.mini-stat-card .value.green {
    color: #2ed573;
}

/* 周期性标签 */
.cycle-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-primary);
    margin-left: 8px;
}

/* 应收表单样式优化 */
.receivable-form-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 43, 61, 0.6) 100%);
    border-radius: 20px;
    padding: 25px 20px;
    margin: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
}

.receivable-form-card h3 {
    color: var(--gold-primary);
    margin-bottom: 25px;
    text-align: center;
    font-size: 18px;
}

.receivable-form-card .input-field {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.receivable-form-card .input-field:focus-within {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.receivable-form-card .input-field i {
    color: var(--gold-primary);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.receivable-form-card .input-field input,
.receivable-form-card .input-field select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    font-size: 15px;
}

.receivable-form-card .input-field input::placeholder {
    color: var(--text-secondary);
}

.receivable-form-card .checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    cursor: pointer;
}

.receivable-form-card .checkbox-wrap input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--gold-primary);
    cursor: pointer;
}

.receivable-form-card .checkbox-wrap label {
    color: var(--gold-primary);
    font-size: 14px;
    cursor: pointer;
}

.receivable-form-card .cycle-options {
    background: rgba(212, 175, 55, 0.06);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
}

.receivable-form-card .hint-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.receivable-form-card .hint-text i {
    color: var(--gold-primary);
}

/* 确认删除弹窗 */
.delete-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.delete-confirm-content {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-page) 100%);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    border: 1px solid var(--border-gold);
    max-width: 320px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.delete-confirm-content i {
    font-size: 48px;
    color: #ff4757;
    margin-bottom: 15px;
}

.delete-confirm-content h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 18px;
}

.delete-confirm-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 25px;
}

/* 通用模态框样式 - 用于付款弹窗等 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-page) 100%);
    border-radius: 16px;
    border: 1px solid var(--border-gold);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--gold-primary);
    font-size: 16px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--gold-primary);
}

.modal-body {
    padding: 20px;
}

.delete-confirm-buttons {
    display: flex;
    gap: 12px;
}

.delete-confirm-buttons button {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-confirm-delete {
    background: #ff4757;
    color: white;
}

.btn-confirm-delete:hover {
    background: #ff3344;
}

.btn-cancel-delete {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

.btn-cancel-delete:hover {
    background: rgba(212, 175, 55, 0.25);
}

/* ==================== 应收款周期选项样式（始终显示） ==================== */

.cycle-options-section {
    background: rgba(212, 175, 55, 0.06);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
}

.cycle-options-section.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.cycle-options-section .checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.cycle-options-section.active .checkbox-wrap {
    margin-bottom: 12px;
}

.cycle-options-section .checkbox-wrap input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--gold-primary);
    cursor: pointer;
}

.cycle-options-section .checkbox-wrap label {
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cycle-options-section.active .checkbox-wrap label {
    color: var(--gold-primary);
}

.cycle-options-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

/* 输入框placeholder颜色 */
input::placeholder,
textarea::placeholder {
    color: #a0aec0;
}

/* select下拉框样式 */
select {
    color: var(--text-primary);
}

select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.cycle-options-content.active {
    max-height: 200px;
    opacity: 1;
}

.cycle-options-content .input-field.cycle-select {
    margin-bottom: 10px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.cycle-options-content.active .input-field.cycle-select {
    opacity: 1;
}

.cycle-options-content .input-field.cycle-select select:disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
}

.cycle-options-content.active .input-field.cycle-select select:enabled {
    color: var(--text-primary);
    cursor: pointer;
}

.cycle-options-content .hint-text {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.cycle-options-content.active .hint-text {
    opacity: 1;
    color: var(--gold-primary);
}

.cycle-options-content .hint-text i {
    color: var(--gold-primary);
}

/* ==================== 收款弹窗样式 ==================== */

.receive-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.receive-modal-content {
    background: linear-gradient(145deg, #1e2a4a 0%, #16213e 100%);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.receive-modal-header {
    background: var(--gold-gradient);
    padding: 20px;
    text-align: center;
    color: #1a1a2e;
}

.receive-modal-header i {
    font-size: 36px;
    margin-bottom: 8px;
    display: block;
}

.receive-modal-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.receive-modal-body {
    padding: 20px;
}

.receive-info {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.receive-title {
    display: block;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.receive-amount {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #2ed573;
}

.receive-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.receive-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.receive-field label {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.receive-field label i {
    color: var(--gold-primary);
    font-size: 14px;
}

.receive-field .required {
    color: #ff4757;
}

.receive-field input,
.receive-field select {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.receive-field input:focus,
.receive-field select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.receive-field.checkbox-field {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.receive-field.checkbox-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--gold-primary);
    cursor: pointer;
}

.receive-field.checkbox-field label {
    margin: 0;
    cursor: pointer;
    color: var(--text-primary);
}

.receive-modal-footer {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-confirm-receive {
    background: var(--gold-gradient);
    color: #1a1a2e;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-confirm-receive:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-cancel-receive {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-receive:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
}

/* ==================== 额外金色奢华装饰 ==================== */

/* 金色文字发光效果 */
.gold-glow {
    text-shadow: 0 0 10px var(--gold-glow), 0 0 20px var(--gold-glow);
}

/* 卡片悬停金色边框效果 */
.card-hover-gold {
    transition: all 0.3s ease;
}

.card-hover-gold:hover {
    border-color: var(--border-gold);
    box-shadow: 0 8px 30px var(--shadow-gold);
}

/* 金色分割线 */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 20px 0;
}

/* 金色角标 */
.gold-badge {
    background: var(--gold-gradient);
    color: var(--bg-dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

/* 图标金色高亮 */
.icon-gold {
    color: var(--gold-primary);
    filter: drop-shadow(0 0 5px var(--gold-glow));
}

/* 按钮金色发光效果 */
.btn-gold-glow {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
}

.btn-gold-glow:hover {
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

/* 输入框金色聚焦 */
.input-gold:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), 0 0 15px var(--shadow-gold);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-input);
}

::-webkit-scrollbar-thumb {
    background: var(--border-gold);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* ==================== 语音记账页面奢华样式 ==================== */

/* 语音页面容器 */
.voice-luxury {
    padding: 20px 15px;
    text-align: center;
}

/* 麦克风动画容器 */
.mic-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 30px auto;
    cursor: pointer;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(229, 193, 88, 0.1) 0%, transparent 100%);
    border: 2px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px var(--shadow-gold);
}

.mic-animation:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--gold-glow);
    border-color: var(--gold-primary);
}

.mic-animation i {
    font-size: 48px;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 10px var(--gold-glow));
    z-index: 2;
}

/* 声波动画效果 */
.mic-animation .wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    opacity: 0;
    animation: mic-wave 2s infinite;
}

.mic-animation .wave:nth-child(2) {
    animation-delay: 0.5s;
}

.mic-animation .wave:nth-child(3) {
    animation-delay: 1s;
}

@keyframes mic-wave {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* 录音中状态 */
.mic-animation.recording {
    background: linear-gradient(145deg, rgba(255, 107, 107, 0.2) 0%, transparent 100%);
    border-color: var(--expense);
    animation: recording-pulse 1.5s infinite;
}

.mic-animation.recording i {
    color: var(--expense);
    animation: recording-icon 1s infinite;
}

@keyframes recording-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 107, 0.6);
    }
}

@keyframes recording-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 提示文字 */
.voice-tip {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.voice-example {
    color: var(--gold-primary);
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 25px;
}

/* 文本输入区域 */
.voice-textarea {
    width: 100%;
    min-height: 100px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px;
    color: var(--text-primary);
    font-size: 16px;
    resize: vertical;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.voice-textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px var(--shadow-gold);
    background: var(--bg-card);
}

.voice-textarea::placeholder {
    color: var(--text-muted);
}

/* ==================== 按钮和组件金色增强 ==================== */

/* 金色按钮增强 */
.btn-gold {
    position: relative;
    overflow: hidden;
    background: var(--gold-gradient);
    border: none;
    color: var(--bg-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 
        0 4px 15px rgba(229, 193, 88, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(229, 193, 88, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-gold:active {
    transform: translateY(0);
}

/* 轮廓按钮 */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(229, 193, 88, 0.1);
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px var(--shadow-gold);
}

/* 分类标签金色增强 */
.chip {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.chip:hover {
    border-color: var(--border-gold);
    color: var(--gold-primary);
    box-shadow: 0 0 10px var(--shadow-gold);
}

.chip.active {
    background: linear-gradient(145deg, rgba(229, 193, 88, 0.2) 0%, rgba(229, 193, 88, 0.1) 100%);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 0 15px var(--shadow-gold);
}

/* 金额输入金色效果 */
.amount-input {
    color: var(--gold-primary);
    text-shadow: 0 0 10px var(--shadow-gold);
}

.amount-input::placeholder {
    color: rgba(229, 193, 88, 0.3);
}

/* 图标金色高亮 */
.bill-icon {
    background: linear-gradient(145deg, rgba(229, 193, 88, 0.15) 0%, rgba(229, 193, 88, 0.05) 100%);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
}

/* 快捷按钮金色增强 */
.quick-btn.gold {
    background: linear-gradient(145deg, rgba(229, 193, 88, 0.15) 0%, var(--bg-card) 100%);
    border-color: var(--border-gold);
}

.quick-btn.gold .icon-wrap {
    background: rgba(229, 193, 88, 0.2);
    box-shadow: 0 0 15px var(--shadow-gold);
}

/* 预算进度条金色 */
.budget-progress-bar.normal {
    background: var(--gold-gradient);
    box-shadow: 0 0 10px var(--shadow-gold);
}

/* 上传区域金色增强 */
.upload-luxury {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(42, 49, 66, 0.6) 100%);
    border: 2px dashed var(--border-gold);
}

.upload-luxury:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 30px var(--shadow-gold);
    background: linear-gradient(145deg, rgba(229, 193, 88, 0.05) 0%, var(--bg-card) 100%);
}

.upload-circle {
    background: linear-gradient(145deg, rgba(229, 193, 88, 0.1) 0%, rgba(229, 193, 88, 0.02) 100%);
    border: 2px solid var(--border-gold);
    box-shadow: 0 0 25px var(--shadow-gold);
}

/* ==================== iPhone 全面屏适配优化 - 重写版 ==================== */

/* 基础设置 - 确保页面可滚动 */
html {
    background: var(--bg-dark);
    height: 100%;
    min-height: 100%;
}

body {
    background: var(--bg-dark);
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto; /* 允许滚动 */
    overscroll-behavior-y: auto; /* 允许顶部下拉刷新 */
    -webkit-overflow-scrolling: touch;
}

/* 主容器 - 基础样式 */
#app {
    width: 100%;
    max-width: 540px; /* 增加最大宽度到540px，减少两侧黑边 */
    margin: 0 auto;
    min-height: calc(100vh + 1px); /* 确保总是比视口高一点，强制滚动 */
    min-height: calc(100dvh + 1px);
    background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-dark) 100%);
    position: relative;
    padding-bottom: 100px; /* 底部间距保留空间 */
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    overflow-x: hidden;
    box-sizing: border-box;
}

/* 手机设备上满屏显示 */
@media screen and (max-width: 540px) {
    #app {
        max-width: 100%;
        box-shadow: none;
    }
}

/* 头部 - 基础样式 */
.luxury-header {
    position: relative;
    padding: 20px 20px 35px; /* 基础内边距 */
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(229, 193, 88, 0.12) 0%, transparent 70%);
}

/* 用户信息位置 */
.user-info {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-primary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s;
    z-index: 10;
    background: rgba(37, 43, 61, 0.8);
    border: 1px solid var(--border-gold);
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* ==================== 安全区域适配 - 使用 viewport-fit=cover 时 ==================== */
@supports (padding-top: env(safe-area-inset-top)) {
    /* 头部添加安全区域 */
    .luxury-header {
        padding-top: max(20px, env(safe-area-inset-top));
        overflow: visible; /* 确保用户菜单不被裁剪 */
    }
    
    /* 用户信息调整位置 */
    .user-info {
        top: max(15px, env(safe-area-inset-top));
        right: max(15px, env(safe-area-inset-right));
    }
    
    /* 主内容区域 */
    .main-content {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    /* 底部内容区域增加间距 */
    #app {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }
}

/* ==================== PWA 模式优化 ==================== */
@media screen and (display-mode: standalone) {
    #app {
        min-height: 100vh;
        min-height: 100dvh;
        min-height: -webkit-fill-available;
    }
}

/* ==================== 登录页面适配 ==================== */
.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #252b3d 100%);
}

@supports (padding-top: env(safe-area-inset-top)) {
    .login-page {
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* ==================== iOS 特定优化 - 保留滚动功能 ==================== */
@supports (-webkit-touch-callout: none) {
    html {
        height: -webkit-fill-available;
    }
    
    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    #app {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
}

/* ==================== 横屏适配 ==================== */
@media screen and (orientation: landscape) {
    @supports (padding: env(safe-area-inset-left)) {
        .luxury-header {
            padding-left: max(20px, env(safe-area-inset-left));
            padding-right: max(20px, env(safe-area-inset-right));
        }
    }
}


/* ==================== 页面标题样式 ==================== */

/* 列表页标题（账单、预算等） */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px 15px; /* 添加适当的内边距 */
    margin-bottom: 10px;
}

.list-header h2 {
    font-size: 22px; /* 略微放大 */
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.list-header h2 i {
    color: var(--gold-primary);
    font-size: 20px; /* 图标略微放大 */
}

.list-header .month-filter {
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(229, 193, 88, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid var(--border-gold);
}

/* 统计页标题 */
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px 15px; /* 添加适当的内边距 */
    margin-bottom: 10px;
}

.stats-header h2 {
    font-size: 22px; /* 略微放大 */
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.stats-header h2 i {
    color: var(--gold-primary);
    font-size: 20px; /* 图标略微放大 */
}

/* 应收款、资产页面标题统一样式 */
#page-receivables .list-header h2 i,
#page-assets .list-header h2 i {
    color: var(--gold-primary);
}


/* ==================== 账单列表页面样式补充 ==================== */

/* 账单列表容器 */
.bill-list-full {
    width: 100%;
    box-sizing: border-box;
    /* 不需要padding，因为month-group已有margin */
}

/* 确保账单页面内容不溢出 */
#page-list {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* 确保账单页面的搜索框不溢出 */
#page-list .search-box {
    width: 100%;
    box-sizing: border-box;
}

/* 月份筛选器样式优化 */
.month-filter {
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(229, 193, 88, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid var(--border-gold);
    white-space: nowrap;
}

/* ============================================
   Privacy Protection Styles v1.1.0
   ============================================ */

/* Privacy Toggle Button - Icon Only */
#privacy-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 16px;
    color: var(--gold-primary);
    background: rgba(229, 193, 88, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#privacy-toggle-btn:hover {
    background: rgba(229, 193, 88, 0.25);
    border-color: var(--gold-primary);
    transform: scale(1.05);
}

#privacy-toggle-btn.active {
    background: rgba(229, 193, 88, 0.35);
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px var(--shadow-gold);
    color: var(--gold-light);
}

/* Privacy mode amount display */
.privacy-hidden {
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
}

/* 用户菜单中的隐私模式选项 */
.user-menu .menu-item i.fa-eye-slash {
    color: var(--gold-primary);
}

/* 隐私模式下资产卡片的特殊效果 */
.net-worth-amount.privacy-mode,
.asset-balance .amount.privacy-mode {
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    color: var(--text-secondary);
}
