/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

/* 通用容器 */
.container {
    max-width: 750px;
    margin: 0 auto;
    background: #f8f8f8;
    min-height: 100vh;
    width: 100%;
}

/* 通用头部样式 */
.header {
    background: #fff;
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

/* 通用按钮样式 */
.btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* 通用输入框样式 */
.input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.input:focus {
    border-color: #000;
}

/* 通用卡片样式 */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 通用加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 通用错误提示 */
.error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #c62828;
}

/* 通用成功提示 */
.success {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #2e7d32;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 0;
    }
    
    .header {
        padding: 15px 10px;
    }
    
    .title {
        font-size: 16px;
    }
    
    .card {
        margin: 10px;
        padding: 15px;
    }
}

/* 通用导航样式 */
.nav-bar {
    background: #fff;
    padding: 10px 15px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-back {
    background: none;
    border: none;
    font-size: 16px;
    color: #000;
    cursor: pointer;
    padding: 5px;
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.nav-action {
    background: none;
    border: none;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    padding: 5px;
}

/* 通用列表样式 */
.list-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.list-item:hover {
    background-color: #f9f9f9;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-content {
    flex: 1;
    margin-left: 15px;
}

.list-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin-bottom: 5px;
}

.list-item-subtitle {
    font-size: 14px;
    color: #666;
}

.list-item-right {
    color: #999;
    font-size: 14px;
}

/* 通用数据展示样式 */
.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.data-item:last-child {
    border-bottom: none;
}

.data-label {
    font-size: 14px;
    color: #666;
}

.data-value {
    font-size: 14px;
    color: #000;
    font-weight: 500;
}

.data-value.positive {
    color: #2e7d32;
}

.data-value.negative {
    color: #c62828;
}

/* 通用分组样式 */
.group-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
}

.group-content {
    padding: 0;
} 