/* 轻翼AI - H5移动端样式 */
:root {
    --primary: #4F6EF7;
    --primary-light: #7B93FA;
    --primary-dark: #3A56D4;
    --success: #34C759;
    --warning: #FF9500;
    --danger: #FF3B30;
    --bg: #F5F6FA;
    --card: #FFFFFF;
    --text: #1A1A2E;
    --text-secondary: #8E8E93;
    --border: #E5E5EA;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --radius: 12px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 70px;
}

a { color: var(--primary); text-decoration: none; }

/* 导航栏 */
.nav-bar {
    position: fixed; top: 0; left: 0; right: 0;
    height: 44px; background: var(--card);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 600; z-index: 100;
    border-bottom: 0.5px solid var(--border);
}
.nav-bar .back { position: absolute; left: 12px; font-size: 22px; cursor: pointer; }

/* 底部导航 */
.tab-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: 56px; background: var(--card);
    display: flex; align-items: center; justify-content: space-around;
    border-top: 0.5px solid var(--border);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}
.tab-bar .tab-item {
    display: flex; flex-direction: column; align-items: center;
    font-size: 10px; color: var(--text-secondary);
    cursor: pointer; padding: 4px 12px;
}
.tab-bar .tab-item.active { color: var(--primary); }
.tab-bar .tab-item .icon { font-size: 22px; margin-bottom: 2px; }

/* 页面容器 */
.page { padding: 54px 16px 16px; min-height: 100vh; }
.page-no-tab { padding-bottom: 16px; }

/* 卡片 */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 44px; padding: 0 24px;
    border-radius: var(--radius-sm);
    font-size: 16px; font-weight: 600;
    cursor: pointer; border: none; outline: none;
    transition: all 0.2s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}
.btn-primary:active { transform: scale(0.97); opacity: 0.9; }
.btn-block { display: flex; width: 100%; }
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 6px; }

/* 输入框 */
.input-group { margin-bottom: 16px; }
.input-group label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.input-field {
    width: 100%; height: 44px; padding: 0 12px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 15px; outline: none; transition: border 0.2s;
    background: var(--card);
}
.input-field:focus { border-color: var(--primary); }

/* 标签选择 */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    padding: 6px 14px; border-radius: 20px;
    font-size: 13px; cursor: pointer;
    background: var(--bg); color: var(--text-secondary);
    border: 1px solid transparent; transition: all 0.2s;
}
.tag.active {
    background: rgba(79,110,247,0.1);
    color: var(--primary);
    border-color: var(--primary);
}

/* 列表项 */
.list-item {
    display: flex; align-items: center; padding: 12px 0;
    border-bottom: 0.5px solid var(--border);
}
.list-item:last-child { border-bottom: none; }
.list-item .title { flex: 1; font-size: 15px; }
.list-item .meta { font-size: 12px; color: var(--text-secondary); }

/* 徽章 */
.badge {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 2px 8px; border-radius: 10px;
    font-size: 11px; font-weight: 600;
}
.badge-vip { background: linear-gradient(135deg, #F7B500, #FF6B00); color: #fff; }
.badge-free { background: var(--bg); color: var(--text-secondary); }

/* 空状态 */
.empty-state {
    text-align: center; padding: 60px 20px;
    color: var(--text-secondary);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }

/* Toast */
.toast {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
    background: rgba(0,0,0,0.75); color: #fff;
    padding: 10px 20px; border-radius: 8px;
    font-size: 14px; z-index: 9999;
    opacity: 0; transition: opacity 0.3s;
    pointer-events: none;
}
.toast.show { opacity: 1; }

/* 加载 */
.loading {
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
}
.spinner {
    width: 24px; height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #4F6EF7 0%, #7B93FA 100%);
    color: #fff;
}

/* 会员卡片 */
.vip-card {
    background: linear-gradient(135deg, #1A1A2E, #2D2D44);
    color: #fff; border-radius: var(--radius);
    padding: 20px; position: relative; overflow: hidden;
}
.vip-card::after {
    content: 'VIP'; position: absolute; right: -10px; top: -10px;
    font-size: 80px; font-weight: 900; opacity: 0.05;
}

/* 流程步骤 */
.steps {
    display: flex; justify-content: space-between;
    padding: 16px 0;
}
.step { text-align: center; flex: 1; }
.step .num {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; margin-bottom: 4px;
}
.step .label { font-size: 12px; color: var(--text-secondary); }

/* 进度条 */
.progress { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.3s; }

/* 骨架屏 */
.skeleton { background: linear-gradient(90deg, var(--bg) 25%, #EAEAEA 50%, var(--bg) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
