/* 33复制模式 - 前台公共样式 */

/* CSS变量 - 主题色 */
:root {
    --theme-start: #eb87de;
    --theme-end: #c1bfe6;
    --primary-color: #eb87de;
    --border-radius: 12px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, var(--theme-start), var(--theme-end));
}

/* 容器 */
.container {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 页面布局 */
.page {
    min-height: 100vh;
    padding-bottom: 70px;
}

.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, var(--theme-start), var(--theme-end));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    z-index: 100;
    box-shadow: var(--shadow);
}

.page-body {
    padding-top: 60px;
}

/* 卡片 */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 15px 0;
    padding: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* 用户信息卡片 */
.user-card {
    background: linear-gradient(135deg, var(--theme-start), var(--theme-end));
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 15px 0;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.user-info {
    text-align: center;
}

.user-nickname {
    font-size: 18px;
    font-weight: bold;
    margin: 8px 0;
}

.user-level {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
}

.user-id {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.9;
}

/* 列表 */
.list-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-size: 15px;
    color: #333;
}

.list-item-arrow {
    width: 16px;
    height: 16px;
    opacity: 0.3;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--theme-start), var(--theme-end));
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.btn:active {
    opacity: 0.8;
    transform: scale(0.98);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-outline {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* 表单 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--primary-color);
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    transition: color 0.3s;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.nav-text {
    font-size: 12px;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* 响应式 */
@media screen and (max-width: 375px) {
    .card {
        margin: 10px 0;
        padding: 12px;
    }
}
