/* ========== 基础 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a1a;
    color: #e2e2f0;
    line-height: 1.7;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }

/* ========== 顶部导航 ========== */
.topnav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 56px; background: rgba(22,22,42,0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
}
.topnav-logo { font-size: 16px; font-weight: 700; color: #e2e2f0; display: flex; align-items: center; gap: 8px; }
.topnav-logo span { font-size: 22px; }
.topnav-right { display: flex; align-items: center; gap: 16px; }
.topnav-user { font-size: 13px; color: #a29bfe; }
.topnav-logout { font-size: 12px; color: #8888a8; padding: 4px 14px; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; transition: 0.2s; }
.topnav-logout:hover { border-color: #e74c3c; color: #e74c3c; }

/* ========== 布局 ========== */
.uc-layout { display: flex; min-height: 100vh; padding-top: 56px; }

/* ========== 侧边栏 ========== */
.uc-sidebar {
    width: 260px; background: #16162a; border-right: 1px solid rgba(255,255,255,0.05);
    position: fixed; top: 56px; bottom: 0; left: 0; display: flex; flex-direction: column; padding: 24px 16px;
}
.uc-profile-card { text-align: center; padding: 20px 0 24px; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 20px; }
.uc-avatar {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700; color: #fff;
}
.uc-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.uc-level {
    display: inline-block; font-size: 12px; font-weight: 600; color: #a29bfe;
    background: rgba(108,92,231,0.15); padding: 2px 12px; border-radius: 10px; margin-bottom: 8px;
}
.uc-points-display { font-size: 13px; color: #f1c40f; }

.uc-nav { flex: 1; }
.uc-nav-item {
    display: block; padding: 11px 16px; border-radius: 8px; font-size: 14px;
    color: #8888a8; transition: 0.2s; margin-bottom: 2px;
}
.uc-nav-item:hover { background: rgba(108,92,231,0.08); color: #e2e2f0; }
.uc-nav-item.active { background: rgba(108,92,231,0.15); color: #a29bfe; font-weight: 500; }

.uc-back { display: block; padding: 12px 16px; font-size: 13px; color: #8888a8; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 12px; }
.uc-back:hover { color: #e2e2f0; }

/* ========== 主内容 ========== */
.uc-main { flex: 1; margin-left: 260px; padding: 32px; }

.uc-panel {
    background: #16162a; border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px; margin-bottom: 24px;
}
.uc-panel-header {
    padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: space-between;
}
.uc-panel-header h2 { font-size: 17px; font-weight: 600; }

/* ========== 个人信息 ========== */
.uc-info-grid { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.uc-info-item { display: flex; flex-direction: column; gap: 4px; }
.uc-info-label { font-size: 12px; color: #8888a8; text-transform: uppercase; letter-spacing: 1px; }
.uc-info-value { font-size: 15px; color: #e2e2f0; }

.uc-edit-form { padding: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: #8888a8; margin-bottom: 6px; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select {
    width: 100%; padding: 10px 14px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
    color: #e2e2f0; font-size: 14px; outline: none; transition: 0.2s; font-family: inherit;
    appearance: none; -webkit-appearance: none;
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888a8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}
.form-group select option {
    background: #16162a;
    color: #e2e2f0;
}
.form-group input:focus,
.form-group select:focus { border-color: #6c5ce7; box-shadow: 0 0 0 3px rgba(108,92,231,0.15); }
.form-group input[type="checkbox"] { margin-right: 6px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.checkbox-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: #8888a8; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.form-msg { margin-top: 12px; font-size: 13px; text-align: center; min-height: 20px; }
.form-msg.success { color: #27ae60; }
.form-msg.error { color: #e74c3c; }

/* 按钮 */
.btn-edit {
    padding: 6px 18px; background: rgba(108,92,231,0.15); border: 1px solid rgba(108,92,231,0.3);
    border-radius: 8px; color: #a29bfe; font-size: 13px; cursor: pointer; transition: 0.2s;
}
.btn-edit:hover { background: rgba(108,92,231,0.25); }
.btn-save {
    padding: 8px 24px; background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border: none; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; transition: 0.2s;
}
.btn-save:hover { box-shadow: 0 4px 15px rgba(108,92,231,0.4); }
.btn-cancel {
    padding: 8px 24px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: #8888a8; font-size: 13px; cursor: pointer; transition: 0.2s;
}
.btn-cancel:hover { color: #e2e2f0; border-color: rgba(255,255,255,0.2); }

/* ========== 地址列表 ========== */
.address-list { padding: 16px 24px; }
.address-card {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 16px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px; margin-bottom: 10px; transition: 0.2s;
}
.address-card:hover { border-color: rgba(108,92,231,0.2); }
.address-info { flex: 1; }
.address-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.address-name .default-tag {
    font-size: 11px; font-weight: 500; color: #27ae60; background: rgba(39,174,96,0.15);
    padding: 1px 8px; border-radius: 8px; margin-left: 8px;
}
.address-detail { font-size: 13px; color: #8888a8; }
.address-phone { font-size: 13px; color: #8888a8; margin-top: 2px; }
.address-actions { display: flex; gap: 8px; align-items: flex-start; }
.btn-addr-edit {
    padding: 4px 12px; background: rgba(108,92,231,0.1); border: none;
    border-radius: 6px; color: #a29bfe; font-size: 12px; cursor: pointer; transition: 0.2s;
}
.btn-addr-edit:hover { background: rgba(108,92,231,0.2); }
.btn-del {
    padding: 4px 12px; background: rgba(231,76,60,0.1); border: none;
    border-radius: 6px; color: #e74c3c; font-size: 12px; cursor: pointer; transition: 0.2s;
}
.btn-del:hover { background: rgba(231,76,60,0.2); }

.address-form-wrap {
    padding: 24px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 8px;
}
.address-form-wrap h3 { font-size: 15px; margin-bottom: 16px; }

/* ========== 积分 ========== */
.points-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px; }
.points-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px; padding: 20px; text-align: center;
}
.points-card-label { font-size: 13px; color: #8888a8; margin-bottom: 8px; }
.points-card-value {
    font-size: 32px; font-weight: 800;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.points-rules { padding: 0 24px 24px; }
.points-rules h3 { font-size: 15px; margin-bottom: 12px; }
.points-rules ul { list-style: none; }
.points-rules li { padding: 6px 0; font-size: 13px; color: #8888a8; }
.points-rules li::before { content: '·'; margin-right: 8px; color: #6c5ce7; }
.points-rules li strong { color: #f1c40f; }

/* ========== 空状态 ========== */
.uc-empty { text-align: center; padding: 48px 20px; color: #555; font-size: 14px; }
.uc-empty small { color: #444; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .uc-sidebar { display: none; }
    .uc-main { margin-left: 0; padding: 20px; }
    .uc-info-grid { grid-template-columns: 1fr; }
    .points-summary { grid-template-columns: 1fr; }
}
