/* 通用样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #fff5f6;
    min-height: 100vh;
    color: #333;
    padding-bottom: 100px;
}

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

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 底部Tab导航 */
.bottom-tab {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(255, 77, 79, 0.15);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 65px;
    z-index: 999;
    border-radius: 25px 25px 0 0;
    background: linear-gradient(135deg, #ffffff 0%, #fef5f5 100%);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.tab-item i {
    font-size: 22px;
    transition: all 0.3s ease;
    display: block;
}

.tab-item span {
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    letter-spacing: 0.5px;
}

.tab-item.active {
    color: #ff4d4f;
    font-weight: 600;
    transform: translateY(-2px);
}



.tab-item.active i {
    transform: scale(1.2);
    text-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

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

.tab-item:hover i {
    transform: scale(1.15);
    text-shadow: 0 2px 8px rgba(255, 77, 79, 0.2);
}

/* 特殊效果：呼吸灯动画 */
@keyframes breathe {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.tab-item.active {
    animation: breathe 2s ease-in-out infinite;
}



/* 后退按钮 */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    z-index: 100;
}

.back-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 标题样式 */
.page-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* 副标题样式 */
.sub-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* 红色按钮 */
.red-btn {
    display: block;
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: #fff;
    text-align: center;
    line-height: 44px;
    border-radius: 22px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.red-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 15px;
}

/* 列表项样式 */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item .left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-item .right {
    font-size: 14px;
    color: #999;
}

/* 图标样式 */
.icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* 成功图标 */
.icon-success {
    background: rgba(82, 196, 26, 0.1);
    color: #52c41a;
}

/* 警告图标 */
.icon-warning {
    background: rgba(255, 170, 0, 0.1);
    color: #ffa940;
}

/* 错误图标 */
.icon-error {
    background: rgba(255, 77, 79, 0.1);
    color: #ff4d4f;
}

/* 信息图标 */
.icon-info {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    background: #fff;
    border: 1px solid #e8e8e8;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination a:hover,
.pagination span.current {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: #fff;
    border-color: #ff4d4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.pagination span.current {
    font-weight: 600;
}

.pagination span.disabled {
    background: #f5f5f5;
    color: #ccc;
    border-color: #e8e8e8;
    cursor: not-allowed;
}

.pagination span.disabled:hover {
    transform: none;
    box-shadow: none;
}

.pagination a:first-child,
.pagination a:last-child {
    padding: 0 16px;
}