/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 隐藏所有滚动条 */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

*::-webkit-scrollbar { 
    width: 0;
    height: 0;
    display: none; /* WebKit */
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #e4e6ea;
    position: relative;
    overflow-x: hidden;
    background: #0d1117;
}

/* Linear风格渐变背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(6, 182, 212, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%);
    animation: linearGlow 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

/* 网格纹理 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

@keyframes linearGlow {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.app {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(22, 27, 34, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 0;
    height: 100vh;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 0 40px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(99, 102, 241, 0.1);
    overflow: hidden;
}

.app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.02) 100%);
    pointer-events: none;
    z-index: -1;
}

/* 顶部导航 */
.navbar {
    background: rgba(30, 35, 42, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    color: #f0f6ff;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 
        0 4px 20px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(99, 102, 241, 0.1);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 11;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.02) 100%);
    pointer-events: none;
    z-index: -1;
}

.navbar h1 {
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f0f6ff 0%, #a5b4fc 50%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    margin: 0;
}

/* 页面容器 */
.page-container {
    padding-top: 80px;
    padding-bottom: 80px;
    height: 100vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(30, 35, 42, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 0;
    box-shadow: 
        0 -4px 20px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(99, 102, 241, 0.1);
    z-index: 10;
}

.bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.02) 100%);
    pointer-events: none;
    z-index: -1;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #8b949e;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0.1);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-item:hover {
    color: #e4e6ea;
    transform: translateY(-2px);
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item.active {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 
        0 4px 20px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.nav-item.active::before {
    opacity: 1;
    background: rgba(99, 102, 241, 0.05);
}

.nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.nav-text {
    font-size: 0.7rem;
    font-weight: 500;
}

/* 表单样式 */
.form-container {
    background: rgba(30, 35, 42, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 8px 30px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(99, 102, 241, 0.1);
    margin: 1rem auto;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.02) 100%);
    pointer-events: none;
    z-index: -1;
}

.form-container h2 {
    color: #f0f6ff;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 1.8rem;
    transition: all 0.3s ease;
}

.form-group[style*="display: none"] {
    opacity: 0;
    transform: translateY(-10px);
    margin-bottom: 0;
    height: 0;
    overflow: hidden;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: #8b949e;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1.1rem 1.4rem;
    background: rgba(22, 27, 34, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    color: #e4e6ea;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 10px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(99, 102, 241, 0.05);
    min-height: 48px;
    box-sizing: border-box;
}

.form-group select {
    padding-right: 2.5rem;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23a5b4fc' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.form-group input::placeholder {
    color: #8b949e;
}

.form-group select option {
    background: #22272e;
    color: #e4e6ea;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(22, 27, 34, 1);
    box-shadow: 
        0 4px 20px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.btn-primary {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: white;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 30px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #5855f1 0%, #7c3aed 100%);
    box-shadow: 
        0 12px 40px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

.btn-primary:active {
    transform: translateY(-1px);
}

/* 容量快捷按钮样式 */
.amount-shortcuts {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.shortcut-btn {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 48px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shortcut-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: #c7d2fe;
    transform: translateY(-1px);
}

.shortcut-btn:active {
    transform: translateY(0) scale(0.95);
}

/* 历史记录样式 */
.history-container {
    background: rgba(30, 35, 42, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 8px 30px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(99, 102, 241, 0.1);
    margin: 1rem auto;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.history-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.02) 100%);
    pointer-events: none;
    z-index: -1;
}

.history-container h2 {
    color: #f0f6ff;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-bar select,
.filter-bar input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    background: rgba(22, 27, 34, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #e4e6ea;
    box-shadow: 
        0 2px 10px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(99, 102, 241, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    box-sizing: border-box;
}

.filter-bar select {
    padding-right: 2.2rem;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23a5b4fc' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1rem;
}

.filter-bar select:focus,
.filter-bar input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(22, 27, 34, 1);
    box-shadow: 
        0 4px 20px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.records-list {
    max-height: 400px;
    overflow-y: auto;
}

.record-item {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(99, 102, 241, 0.08);
    overflow: hidden;
}

.record-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.01) 100%);
    pointer-events: none;
    z-index: -1;
}

.record-item:hover {
    transform: translateY(-2px);
    background: rgba(22, 27, 34, 0.9);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 
        0 8px 30px rgba(99, 102, 241, 0.15);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.record-time-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.record-time {
    font-weight: 600;
    color: #f0f6ff;
    font-size: 0.9rem;
}

.record-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    font-weight: 500;
    width: fit-content;
}

.record-badge.latest {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.record-type {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.record-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.record-amount-info {
    flex: 1;
}

.record-amount {
    font-size: 1rem;
    font-weight: 600;
    color: #e4e6ea;
}

.record-interval-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-end;
}

.record-interval {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.record-interval.now {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.record-interval.last {
    background: rgba(139, 148, 158, 0.1);
    color: #8b949e;
    border: 1px solid rgba(139, 148, 158, 0.2);
}

.btn-delete {
    background: rgba(248, 113, 113, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: rgba(248, 113, 113, 0.25);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(248, 113, 113, 0.2);
}

/* 统计页面样式 */
.chart-container {
    background: rgba(30, 35, 42, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 8px 30px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(99, 102, 241, 0.1);
    margin: 1rem auto;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.02) 100%);
    pointer-events: none;
    z-index: -1;
}

.chart-container h2 {
    color: #f0f6ff;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(99, 102, 241, 0.08);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.01) 100%);
    pointer-events: none;
    z-index: -1;
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(22, 27, 34, 0.9);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 
        0 8px 30px rgba(99, 102, 241, 0.15);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #8b949e;
    font-weight: 500;
}

.chart-section {
    margin-bottom: 2rem;
}

.chart-section h3 {
    color: #e4e6ea;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.chart-section canvas {
    max-width: 100%;
    height: 200px !important;
}

.chart-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.chart-wrapper canvas {
    max-width: 300px !important;
    max-height: 300px !important;
    width: 300px !important;
    height: 300px !important;
}

/* 响应式设计 */
@media (max-width: 480px) {
    /* 导航栏紧凑化 */
    .navbar {
        padding: 1rem 0.8rem;
    }
    
    .navbar h1 {
        font-size: 1.1rem;
    }
    
    /* 页面容器调整 */
    .page-container {
        padding-top: 55px;
        padding-bottom: 55px;
    }
    
    /* 底部导航紧凑化 */
    .bottom-nav {
        padding: 0.4rem 0;
    }
    
    .nav-item {
        padding: 0.4rem 0.6rem;
    }
    
    .nav-icon {
        font-size: 1rem;
    }
    
    .nav-text {
        font-size: 0.65rem;
        margin-top: 0.15rem;
    }
    
    /* 容器紧凑化 */
    .form-container,
    .history-container,
    .chart-container {
        margin: 0.5rem auto;
        padding: 1rem;
        max-width: calc(100% - 1rem);
    }
    
    .form-container h2,
    .history-container h2,
    .chart-container h2 {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
    
    /* 表单组紧凑化 */
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.7rem 0.9rem;
        font-size: 14px;
        min-height: 42px;
    }
    
    /* 快捷按钮紧凑化 */
    .amount-shortcuts {
        gap: 0.5rem;
        margin-top: 0.6rem;
    }
    
    .shortcut-btn {
        min-width: 36px;
        min-height: 32px;
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    /* 主按钮紧凑化 */
    .btn-primary {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    /* 过滤栏紧凑化 */
    .filter-bar {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .filter-bar select,
    .filter-bar input {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
        min-height: 36px;
    }
    
    /* 记录项紧凑化 */
    .record-item {
        padding: 0.8rem;
        margin-bottom: 0.5rem;
        border-radius: 10px;
    }
    
    .record-header {
        margin-bottom: 0.6rem;
    }
    
    .record-time {
        font-size: 0.8rem;
    }
    
    .record-badge {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
    }
    
    .record-type {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .record-amount {
        font-size: 0.9rem;
    }
    
    .record-interval {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
    
    .btn-delete {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
        min-height: auto;
    }
    
    /* 统计卡片紧凑化 */
    .stats-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .stat-card {
        padding: 0.8rem 0.6rem;
        border-radius: 8px;
    }
    
    .stat-value {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    /* 图表区域紧凑化 */
    .chart-section {
        margin-bottom: 1.2rem;
    }
    
    .chart-section h3 {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .chart-section canvas {
        height: 140px !important;
    }
    
    .chart-wrapper {
        min-height: 180px;
    }
    
    .chart-wrapper canvas {
        max-width: 180px !important;
        max-height: 180px !important;
        width: 180px !important;
        height: 180px !important;
    }
}

/* 针对更小屏幕的进一步优化 */
@media (max-width: 375px) {
    .form-container,
    .history-container,
    .chart-container {
        margin: 0.3rem auto;
        padding: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .record-item {
        padding: 0.6rem;
    }
    
    .record-details {
        gap: 0.8rem;
    }
    
    .shortcut-btn {
        min-width: 32px;
        min-height: 28px;
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #8b949e;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.empty-state-text {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #e4e6ea;
    font-weight: 500;
}

.empty-state-sub {
    font-size: 0.9rem;
    color: #8b949e;
} 