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

html {
    width: 100%;
    height: 100%;
    background-color: #e5e5e5;
}

body {
    width: 480px; /* 固定手机宽度 */
    min-height: 100vh;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* 容器 */
.container {
    width: 480px; /* 固定宽度 */
    min-height: 100vh;
    background-color: #f5f5f5;
    position: relative;
}

/* 返回导航栏 */
.nav-bar {
    width: 480px;
    height: 44px;
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    padding: 5px 10px 5px 0;
    transition: opacity 0.2s;
}

.nav-back:active {
    opacity: 0.6;
}

.nav-back-icon {
    font-size: 20px;
}

.nav-title {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-right: 60px; /* 平衡左侧返回按钮的宽度 */
}

/* 页面头部 */
.page-header {
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #1296db;
    color: white;
}

.btn-primary:hover {
    background-color: #0d7ab8;
}

.btn-danger {
    background-color: #ee0a24;
    color: white;
}

.btn-danger:hover {
    background-color: #c8102e;
}

.btn-success {
    background-color: #07c160;
    color: white;
}

.btn-success:hover {
    background-color: #06ad56;
}

/* 输入框样式 */
.input-group {
    margin-bottom: 15px;
}

.input-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.input-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.input-field:focus {
    outline: none;
    border-color: #1296db;
}

/* 列表样式 */
.list-item {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1296db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tag-primary {
    background-color: #e8f4ff;
    color: #1296db;
}

.tag-success {
    background-color: #e8f8f2;
    color: #07c160;
}

.tag-danger {
    background-color: #ffebee;
    color: #ee0a24;
}

.tag-warning {
    background-color: #fff7e6;
    color: #ff976a;
}

/* 分隔线 */
.divider {
    height: 1px;
    background-color: #eee;
    margin: 15px 0;
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
