/* 全局样式 - 复刻图片UI */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "微软雅黑", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
}

/* 按钮样式 - 复刻图片 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #0056b3;
    transform: scale(1.02);
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-disabled:hover {
    background: #6c757d;
    transform: none;
}

/* 表单样式 */
.form {
    padding: 20px;
}

.form-item {
    margin-bottom: 15px;
}

.form-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-item input,
.form-item select,
.form-item textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-item textarea {
    min-height: 80px;
    resize: vertical;
}

/* 头部样式 */
.header {
    background: #007bff;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* 底部导航 - 复刻图片 */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 999;
}

.footer-nav a {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    color: #666;
    text-decoration: none;
}

.footer-nav a.active {
    color: #007bff;
    font-weight: bold;
}

/* 列表样式 */
.list {
    padding: 10px;
}

.list-item {
    background: #fff;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s ease;
}

.list-item h3 {
    margin-bottom: 10px;
    color: #007bff;
}

.list-item p {
    margin-bottom: 5px;
    color: #666;
}

/* 图片样式 */
.photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.photos img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

/* 懒加载 */
.lazy {
    background: #f5f5f5;
    position: relative;
}

.lazy:before {
    content: "加载中...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
}

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

/* 提示框 */
.tip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 25px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 8px;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

/* 明细样式 */
.detail-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.detail-item .type {
    font-weight: bold;
}

.detail-item .num {
    color: #007bff;
}

.detail-item .num.negative {
    color: #dc3545;
}

.detail-item .time {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}