/* ========== 星火用户认证 - 前台样式 ========== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #303133;
    background: #f5f7fa;
    -webkit-font-smoothing: antialiased;
}

.xhzc-ua-front {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: #764ba2;
    background: -webkit-linear-gradient(315deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 15px;
    padding-bottom: 40px;
    overflow-x: hidden;
}

.xhzc-ua-profile-page {
    width: 100%;
    overflow-x: hidden;
}

.xhzc-ua-container {
    max-width: 420px;
    margin: 0 auto;
}

/* ========== 登录/注册页 ========== */

.xhzc-ua-auth-page {
    padding-top: 20px;
}

.ua-auth-header {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
}

.ua-auth-logo {
    font-size: 48px;
    margin-bottom: 15px;
}

.ua-auth-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ua-auth-subtitle {
    font-size: 14px;
    opacity: 0.85;
}

/* 消息提示 */
.ua-msg-box {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

.ua-msg-box.success {
    background: rgba(103, 194, 58, 0.9);
    color: #fff;
}

.ua-msg-box.error {
    background: rgba(245, 108, 108, 0.9);
    color: #fff;
}

/* 认证卡片 */
.ua-auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px 20px;
    -webkit-box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.ua-auth-form {
    margin-bottom: 20px;
}

/* 表单组 */
.ua-form-group {
    margin-bottom: 18px;
}

.ua-form-label {
    display: block;
    font-size: 14px;
    color: #606266;
    margin-bottom: 8px;
    font-weight: 500;
}

.ua-input-wrap {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
}

.ua-input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    color: #909399;
    z-index: 1;
}

.ua-form-input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 42px;
    border: 1px solid #dcdfe6;
    border-radius: 8px /* 标准输入框圆角 */;
    font-size: 15px;
    color: #303133;
    background: #f5f7fa;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.ua-form-input:focus {
    border-color: #667eea;
    background: #fff;
    -webkit-box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ua-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    opacity: 0.6;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

.ua-toggle-password:hover {
    opacity: 1;
}

.ua-form-hint {
    font-size: 12px;
    color: #909399;
    margin-top: 6px;
}

.ua-optional {
    font-size: 12px;
    color: #909399;
    font-weight: normal;
}

/* 表单选项 */
.ua-form-options {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ua-checkbox-label {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #606266;
    gap: 6px;
}

.ua-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #667eea;
}

/* 按钮 */
.ua-btn {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    text-decoration: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.ua-btn:active {
    -webkit-transform: scale(0.98);
    transform: scale(0.98);
}

.ua-btn-primary {
    background: #764ba2;
    background: -webkit-linear-gradient(315deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    -webkit-box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.ua-btn-primary:hover {
    -webkit-box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.ua-btn-danger {
    background: #fff;
    color: #f56c6c;
    border: 1px solid #f56c6c;
}

.ua-btn-danger:hover {
    background: #fef0f0;
}

.ua-btn-block {
    width: 100%;
}

/* 认证页底部 */
.ua-auth-footer {
    text-align: center;
    font-size: 14px;
    color: #606266;
    padding-top: 15px;
    border-top: 1px solid #f2f6fc;
}

.ua-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

.ua-link:hover {
    text-decoration: underline;
}

/* 返回首页 */
.ua-back-home {
    text-align: center;
    margin-top: 20px;
}

.ua-back-home a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
}

.ua-back-home a:hover {
    color: #fff;
}

/* 注册关闭 */
.ua-closed-register {
    text-align: center;
    padding: 20px 10px;
}

.ua-closed-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.ua-closed-register h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #303133;
}

.ua-closed-register p {
    font-size: 14px;
    color: #909399;
    margin-bottom: 20px;
}

/* ========== 个人中心页 ========== */

.xhzc-ua-profile-page {
    padding-top: 5px;
}

/* 页面头部 */
.ua-profile-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    padding: 10px 0 20px;
    position: relative;
    color: #fff;
}

.ua-profile-header h2 {
    flex: 1;
    margin: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.ua-back-btn {
    position: absolute;
    left: 0;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.ua-logout-btn {
    position: absolute;
    right: 0;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
}

.ua-header-placeholder {
    width: 36px;
}

/* 用户卡片 */
.ua-user-card {
    background: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ua-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    margin-right: 15px;
}

.ua-user-info {
    flex: 1;
}

.ua-user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.ua-user-role {
    font-size: 13px;
    opacity: 0.85;
}

/* 账户概览 */
.ua-account-overview {
    background: #fff;
    border-radius: 12px /* 微信风格主卡片标准 */;
    padding: 18px 10px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    margin-bottom: 15px;
    
    
}

.ua-account-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.ua-account-item + .ua-account-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: #ebeef5;
}

.ua-account-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #667eea;
}

.ua-account-label {
    font-size: 12px;
    color: #909399;
}

/* 卡片通用样式 */
.ua-card {
    background: #fff;
    border-radius: 12px /* 微信风格主卡片标准 */;
    margin-bottom: 15px;
    
    
    overflow: hidden;
}

.ua-card .ua-card-header {
    padding: 15px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f2f6fc;
}

.ua-card .ua-card-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #303133;
}

.ua-card .ua-card-body {
    padding: 15px;
}

/* 信息列表 */
.ua-info-list {
    list-style: none;
}

.ua-info-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f2f6fc;
}

.ua-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ua-info-item:first-child {
    padding-top: 0;
}

.ua-info-label {
    font-size: 14px;
    color: #606266;
}

.ua-info-value {
    font-size: 14px;
    color: #303133;
    font-weight: 500;
}

/* 菜单列表 */
.ua-menu-list {
    list-style: none;
}

.ua-menu-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f2f6fc;
    text-decoration: none;
    color: #303133;
    -webkit-transition: background 0.3s;
    transition: background 0.3s;
}

.ua-menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ua-menu-item:first-child {
    padding-top: 0;
}

.ua-menu-item:active {
    background: #f5f7fa;
}

.ua-menu-icon {
    font-size: 20px;
    margin-right: 12px;
}

.ua-menu-text {
    flex: 1;
    font-size: 15px;
}

.ua-menu-value {
    font-size: 13px;
    color: #909399;
    margin-right: 8px;
}

.ua-menu-badge {
    font-size: 12px;
    color: #ff4d4f;
    margin-right: 8px;
    font-weight: 500;
}

.ua-menu-arrow {
    font-size: 20px;
    color: #c0c4cc;
}

/* 退出登录区域 */
.ua-logout-section {
    margin-top: 20px;
}

/* 安全提示 */
.ua-security-tip {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid #ebedf0;
    box-shadow: none; /* 微信风格统一 */
    padding: 15px;
    margin-top: 15px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    gap: 12px;
}

.ua-tip-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ua-tip-content {
    flex: 1;
}

.ua-tip-content p {
    font-size: 14px;
    color: #606266;
    margin-bottom: 8px;
    font-weight: 500;
}

.ua-tip-content ul {
    list-style: none;
    padding: 0;
}

.ua-tip-content li {
    font-size: 13px;
    color: #909399;
    padding: 3px 0;
    padding-left: 15px;
    position: relative;
}

.ua-tip-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #67c23a;
}

/* ========== 后台设置页样式 ========== */

.xhzc-ua-admin {
    padding: 20px;
    max-width: 800px;
}

.xhzc-ua-page-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e4e7ed;
}

.xhzc-ua-page-header h2 {
    margin: 0;
    font-size: 20px;
    color: #303133;
}

.xhzc-ua-setting-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    -webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.setting-section {
    margin-bottom: 30px;
}

.setting-section:last-of-type {
    margin-bottom: 25px;
}

.setting-section h3 {
    font-size: 16px;
    color: #303133;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebeef5;
}

.setting-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.setting-label {
    width: 150px;
    flex-shrink: 0;
    padding-top: 8px;
    font-size: 14px;
    color: #606266;
    font-weight: 500;
}

.setting-control {
    flex: 1;
}

.switch-label {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #606266;
    gap: 6px;
}

.switch-label input[type="radio"] {
    cursor: pointer;
    accent-color: #667eea;
}

.setting-hint {
    font-size: 12px;
    color: #909399;
    margin-top: 8px;
}

.setting-input {
    width: 100%;
    max-width: 400px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    -webkit-transition: border-color 0.3s;
    transition: border-color 0.3s;
}

.setting-input:focus {
    border-color: #667eea;
}

.setting-select {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: #fff;
    cursor: pointer;
    min-width: 200px;
}

.setting-select:focus {
    border-color: #667eea;
}

.hook-list {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 15px;
}

.hook-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ebeef5;
    gap: 15px;
}

.hook-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hook-item:first-child {
    padding-top: 0;
}

.hook-item code {
    background: #667eea;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-family: Consolas, Monaco, monospace;
}

.hook-item span {
    font-size: 13px;
    color: #606266;
}

.setting-actions {
    padding-top: 20px;
    border-top: 1px solid #ebeef5;
    text-align: center;
}

.setting-actions .btn {
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.setting-actions .btn-primary {
    background: #667eea;
    color: #fff;
}

.setting-actions .btn-primary:hover {
    background: #5a6fd6;
}

/* ========== 响应式适配 ========== */

@media (max-width: 480px) {
    .xhzc-ua-front {
        padding: 15px 12px;
        padding-bottom: 30px;
        overflow-x: hidden;
    }

    .xhzc-ua-container {
        max-width: 100%;
    }

    .xhzc-ua-profile-page {
        overflow-x: hidden;
    }

    .ua-auth-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .ua-auth-header h1 {
        font-size: 22px;
    }

    .ua-auth-logo {
        font-size: 42px;
    }

    .ua-form-input {
        height: 42px;
        font-size: 16px;
    }

    .ua-btn {
        height: 42px;
        font-size: 15px;
    }

    /* 个人中心响应式 */
    .ua-profile-header h2 {
        font-size: 17px;
    }

    .ua-user-card {
        padding: 16px;
    }

    .ua-user-avatar {
        width: 52px;
        height: 52px;
        font-size: 24px;
        margin-right: 12px;
    }

    .ua-user-name {
        font-size: 16px;
    }

    /* 钱包三列适配 */
    .ua-wallet-items {
        padding: 12px 6px;
    }

    .ua-wallet-item {
        padding: 6px 3px;
    }

    .wallet-icon {
        font-size: 24px;
    }

    .wallet-value {
        font-size: 17px;
    }

    .wallet-label {
        font-size: 12px;
    }

    .wallet-action {
        font-size: 10px;
    }

    /* 卡片内边距适配 */
    .ua-card .ua-card-body {
        padding: 12px;
    }

    .ua-card .ua-card-header {
        padding: 12px 14px;
    }

    .ua-card .ua-card-header h4 {
        font-size: 14px;
    }

    /* 邀请链接输入框适配 */
    .ua-card input[type="text"] {
        font-size: 11px;
        min-width: 0;
        word-break: break-all;
    }

    .ua-card button {
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    /* 账户概览适配 */
    .ua-account-overview {
        padding: 14px 8px;
    }

    .ua-account-value {
        font-size: 18px;
    }

    .ua-account-label {
        font-size: 11px;
    }

    /* 信息列表适配 */
    .ua-info-item {
        padding: 10px 0;
    }

    .ua-info-label {
        font-size: 13px;
    }

    .ua-info-value {
        font-size: 13px;
        max-width: 60%;
        text-align: right;
        word-break: break-all;
    }

    /* 菜单列表适配 */
    .ua-menu-item {
        padding: 12px 0;
    }

    .ua-menu-text {
        font-size: 14px;
    }
}

/* 移动端输入框防缩放 */
@media (max-width: 768px) {
    .ua-form-input {
        font-size: 16px;
    }
}

/* 小屏手机进一步优化（375px以下）*/
@media (max-width: 375px) {
    .xhzc-ua-front {
        padding: 12px 10px;
        padding-bottom: 30px;
    }

    .ua-user-card {
        padding: 14px;
    }

    .ua-user-avatar {
        width: 48px;
        height: 48px;
        font-size: 22px;
        margin-right: 10px;
    }

    .ua-user-name {
        font-size: 15px;
    }

    .ua-user-role {
        font-size: 12px;
    }

    .wallet-value {
        font-size: 15px;
    }

    .wallet-label {
        font-size: 11px;
    }

    .wallet-action {
        display: none;
    }

    .ua-card .ua-card-body {
        padding: 10px 12px;
    }

    .ua-account-value {
        font-size: 16px;
    }

    .ua-account-label {
        font-size: 10px;
    }

    .ua-info-label,
    .ua-info-value {
        font-size: 12px;
    }

    /* 邀请链接区域 - 更小的字体 */
    .ua-card input[type="text"] {
        font-size: 10px;
        padding: 7px 8px !important;
    }
}

/* 超小屏（320px）极端适配 */
@media (max-width: 320px) {
    .ua-user-card {
        flex-wrap: wrap;
        gap: 10px;
    }

    .wallet-value {
        font-size: 14px;
    }

    .ua-profile-header h2 {
        font-size: 16px;
    }
}

/* ========== 我的钱包模块 ========== */

.ua-wallet-card {
    background: #fff;
    border-radius: 12px /* 微信风格主卡片标准 */;
    margin-bottom: 15px;
    
    
    overflow: hidden;
}

.ua-wallet-header {
    padding: 12px 15px;
    border-bottom: 1px solid #f2f6fc;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ua-wallet-title {
    font-size: 15px;
    font-weight: 600;
    color: #303133;
}

.ua-wallet-items {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    padding: 15px 10px;
}

.ua-wallet-item {
    flex: 1;
    text-align: center;
    padding: 8px 5px;
    cursor: pointer;
    border-radius: 10px;
    -webkit-transition: background 0.2s;
    transition: background 0.2s;
    position: relative;
}

.ua-wallet-item:active {
    background: #f5f7fa;
}

.ua-wallet-item + .ua-wallet-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: #ebeef5;
}

.wallet-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.wallet-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.2;
}

.ua-wallet-item.wallet-points .wallet-value {
    color: #e6a23c;
}

.ua-wallet-item.wallet-exp .wallet-value {
    color: #409eff;
}

.ua-wallet-item.wallet-referral .wallet-value {
    color: #67c23a;
}

.wallet-label {
    font-size: 13px;
    color: #606266;
    margin-bottom: 4px;
}

.wallet-action {
    font-size: 11px;
    color: #909399;
}

.ua-wallet-item.wallet-points .wallet-action {
    color: #e6a23c;
}

.ua-wallet-item.wallet-exp .wallet-action {
    color: #409eff;
}

.ua-wallet-item.wallet-referral .wallet-action {
    color: #67c23a;
}

/* ========== 我的邀请预览面板 ========== */

.ua-invite-preview-list {
    padding: 0;
}

.ua-invite-preview-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f2f6fc;
}

.ua-invite-preview-item:last-child {
    border-bottom: none;
}

.ua-invite-preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 12px;
}

.ua-invite-preview-info {
    flex: 1;
    min-width: 0;
}

.ua-invite-preview-name {
    font-size: 14px;
    font-weight: 500;
    color: #303133;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ua-invite-preview-username {
    font-size: 12px;
    color: #909399;
    font-weight: normal;
}

.ua-invite-preview-phone {
    font-size: 12px;
    color: #909399;
}

.ua-profile-empty {
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    color: #909399;
}

.ua-profile-empty-inline {
    font-size: 14px;
    color: #909399;
}
