/* 公共样式 */
:root {
    --primary-color: #3a5d85;
    --text-color: #333;
    --text-color-light: #666;
    --text-color-lighter: #999;
    --border-color: #f0f0f0;
    --bg-color: #f5f5f5;
    --white: #fff;
}

/* 布局类 */
.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 15px 20px;
    min-height: 100vh;
    background: var(--bg-color);
}

/* 卡片样式 */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

/* 标题样式 */
.page-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    opacity: 0.9;
}

/* 加载动画 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 10px 20px;
    }
}
