body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f5f5f5;
}

.top-nav {
    background-color: #306692;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 20px;
    font-weight: bold;
}

.content {
    flex: 1;
    padding: 20px;
    background-color: #f5f5f5;
    overflow-y: auto;
    padding-bottom: 80px;
    margin-bottom: 0;
}

/* 底部导航栏样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f5f5f5;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    min-width: 60px;
    text-align: center;
}

/* 修改这里 - 点击/高亮状态 */
.nav-item.active, 
.nav-item:active {
    background-color: #306692; /* 直接使用颜色值 */
    color: white;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 3px;
}


.nav-item.active i {
    transform: scale(1.1);
}


.center-button {
    background-color: #306692;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-top: -25px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}


.upload-section {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upload-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.upload-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #306692;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-btn:hover {
    background-color: #25557d;
}

.upload-btn i {
    margin-right: 10px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.close-btn {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.tab-container {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
}

.tab.active {
    color: #306692;
    border-bottom-color: #306692;
    font-weight: bold;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-item i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #666;
}

.category-item span {
    font-size: 14px;
    color: #333;
}

.category-item.active {
    background-color: #306692;
}

.category-item.active i,
.category-item.active span {
    color: white;
}

.amount-input {
    margin: 20px 0;
}

.amount-input input {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.note-input {
    margin-bottom: 20px;
}

.note-input input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.submit-btn {
    background-color: #306692;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #25557d;
}

.voice-record {
    text-align: center;
    margin-top: 20px;
}

.record-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #306692;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto;
    cursor: pointer;
    border: none;
    outline: none;
}

.record-btn.recording {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(48, 102, 146, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(48, 102, 146, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(48, 102, 146, 0);
    }
}

.record-instruction {
    margin-top: 15px;
    font-size: 16px;
    color: #666;
}

.image-preview {
    margin-top: 20px;
    text-align: center;
}

.preview-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    display: none;
}

.remove-image {
    display: none;
    margin-top: 10px;
    color: #ff4d4f;
    font-size: 16px;
    cursor: pointer;
}

@media (min-width: 768px) {
    body {
        max-width: 500px;
        margin: 0 auto;
        height: 100vh;
        position: relative;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
    
    /* 关键修复：导航栏宽度限制 */
    .bottom-nav {
        width: 500px; /* 固定宽度 */
        left: 50%;
        transform: translateX(-50%);
        margin: 0 auto;
    }
    
    /* 确保内容不超出 */
    .content {
        overflow-y: auto;
        max-height: calc(100vh - 60px); /* 减去导航栏高度 */
    }
}
/* 添加在文件末尾 */
.login-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 16px;
    z-index: 1001;
    animation: fadeOut 5s forwards;
    display: none;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; display: none; }
}