/* 个人中心页面样式 - 美化版 */
.profile-page {
    background: #f5f6fa;
    min-height: 100vh;
    padding-bottom: 20px;
}

/* ========== 用户信息卡片 ========== */
.profile-header {
    background: linear-gradient(135deg, #E20413 0%, #ff4757 100%);
    padding: 30px 20px 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.profile-user {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.9);
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-phone {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 8px;
}

.profile-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-tag {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.profile-tag.verified {
    background: rgba(255,255,255,0.3);
}

/* ========== 资产卡片 ========== */
.asset-card {
    background: white;
    margin: -20px 12px 12px;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative;
    z-index: 2;
}

.asset-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.asset-item {
    flex: 1;
    padding: 8px;
}

.asset-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.asset-value.primary {
    color: #E20413;
}

.asset-label {
    font-size: 12px;
    color: #999;
}

/* ========== 订单入口 ========== */
.order-card {
    background: white;
    margin: 0 12px 12px;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.order-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.order-card-more {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-types {
    display: flex;
    justify-content: space-around;
}

.order-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
    text-decoration: none;
    position: relative;
    padding: 8px 4px;
    min-width: 60px;
}

.order-type-item .icon-wrap {
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    font-size: 24px;
    position: relative;
    background: transparent;
    border: none;
    color: #555;
}

.order-type-item span {
    font-size: 12px;
    color: #666;
}

.order-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #E20413;
    color: white;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 16px;
}

/* ========== 菜单列表 ========== */
.menu-card {
    background: white;
    margin: 0 12px 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.menu-card-title {
    padding: 14px 16px 8px;
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f8f8f8;
    transition: background 0.15s;
    min-height: 48px;
}

.menu-list-item:last-child {
    border-bottom: none;
}

.menu-list-item:active {
    background: #f8f8f8;
}

.menu-list-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-list-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #555;
}

.menu-list-text {
    font-size: 15px;
}

.menu-list-right {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 13px;
}

.menu-list-right .arrow {
    font-size: 14px;
    color: #ccc;
}

/* ========== 退出按钮 ========== */
.logout-wrap {
    padding: 8px 12px 30px;
}

.logout-btn {
    width: 100%;
    padding: 14px;
    background: white;
    border: none;
    border-radius: 12px;
    color: #E20413;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.15s;
}

.logout-btn:active {
    background: #fff0f0;
    transform: scale(0.98);
}

/* ========== 登录页 ========== */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #E20413 0%, #ff4757 50%, #E20413 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.login-box {
    width: 100%;
    max-width: 360px;
    position: relative;
    z-index: 1;
}

.login-brand {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.login-brand-logo {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    backdrop-filter: blur(10px);
}

.login-brand-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.login-brand-sub {
    font-size: 13px;
    opacity: 0.8;
}

.login-form-card {
    background: white;
    border-radius: 20px;
    padding: 30px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.login-form-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 24px;
}

.login-input-group {
    margin-bottom: 18px;
}

.login-input-group label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
}

.login-input:focus {
    border-color: #E20413;
    background: white;
}

.login-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #E20413 0%, #ff4757 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.login-submit:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(226,4,19,0.3);
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
}

.login-links a {
    color: #999;
    text-decoration: none;
}

.login-links a:hover {
    color: #E20413;
}

.login-agreement {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.login-agreement a {
    color: white;
    text-decoration: none;
}

/* ========== 编辑资料页 ========== */
.edit-page {
    background: #f5f6fa;
    min-height: 100vh;
}

.edit-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.edit-header-back {
    color: #333;
    text-decoration: none;
    font-size: 20px;
    width: 40px;
}

.edit-header-title {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

.edit-header-spacer {
    width: 40px;
}

.edit-form {
    padding: 20px 16px;
}

.edit-avatar-section {
    text-align: center;
    margin-bottom: 24px;
}

.edit-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.edit-avatar-btn {
    margin-top: 10px;
    display: inline-block;
    padding: 6px 16px;
    background: #fff0f0;
    color: #E20413;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.edit-avatar-btn input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.edit-field {
    margin-bottom: 20px;
}

.edit-field label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.edit-field input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    outline: none;
    background: white;
    transition: border-color 0.2s;
}

.edit-field input:focus {
    border-color: #E20413;
}

.edit-field-readonly .edit-verify-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.edit-verify-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
}

.edit-verify-tag.verified {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.edit-verify-tag.pending {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

.edit-verify-tag.unverified {
    color: #999;
    background: rgba(0, 0, 0, 0.05);
}

.edit-verify-text {
    font-size: 14px;
    color: #666;
}

.edit-verify-link {
    font-size: 14px;
    color: #E20413;
    text-decoration: none;
    font-weight: 500;
}

.edit-verify-link:hover {
    text-decoration: underline;
}

.edit-save-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #E20413 0%, #ff4757 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.edit-save-btn:disabled {
    opacity: 0.7;
}

/* ========== 响应式 ========== */
@media (max-width: 375px) {
    .profile-header {
        padding: 24px 16px 36px;
    }
    .profile-avatar {
        width: 60px;
        height: 60px;
    }
    .profile-name {
        font-size: 18px;
    }
    .asset-card,
    .order-card,
    .menu-card {
        margin-left: 8px;
        margin-right: 8px;
    }
}

/* ========== 通用子页面样式 ========== */
.subpage-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.subpage-header-back {
    color: #333;
    text-decoration: none;
    font-size: 20px;
    width: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.subpage-header-title {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    color: #333;
}
.subpage-header-spacer {
    width: 36px;
    flex-shrink: 0;
}

.subpage-body {
    padding: 12px;
    padding-bottom: 80px;
    background: #f5f6fa;
    min-height: calc(100vh - 55px);
}

.subpage-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.subpage-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f8f8f8;
}
.subpage-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.subpage-list-item:first-child {
    padding-top: 0;
}

.subpage-list-left {
    flex: 1;
    min-width: 0;
}
.subpage-list-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}
.subpage-list-meta {
    font-size: 12px;
    color: #999;
}
.subpage-list-right {
    text-align: right;
    flex-shrink: 0;
    margin-left: 12px;
}
.subpage-list-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.subpage-list-value.income { color: #00a65a; }
.subpage-list-value.expense { color: #E20413; }

.subpage-form-group {
    margin-bottom: 18px;
}
.subpage-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}
.subpage-input {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    outline: none;
    background: white;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.subpage-input:focus {
    border-color: #E20413;
}
select.subpage-input {
    appearance: none;
    -webkit-appearance: none;
    background: white 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='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 14px center;
    padding-right: 36px;
}
textarea.subpage-input {
    resize: vertical;
    min-height: 100px;
}

.subpage-btn-primary {
    display: inline-block;
    padding: 14px 24px;
    background: linear-gradient(135deg, #E20413 0%, #ff4757 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s;
    box-sizing: border-box;
}
.subpage-btn-primary:active {
    transform: scale(0.98);
}
.subpage-btn-block {
    display: block;
    width: 100%;
}
.subpage-btn-outline {
    display: inline-block;
    padding: 12px 20px;
    background: white;
    color: #E20413;
    border: 1px solid #E20413;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
.subpage-btn-outline:active {
    background: #fff0f0;
}
.subpage-btn-small {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
}

.subpage-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.subpage-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 12px;
}
.subpage-empty p {
    font-size: 14px;
    margin-bottom: 16px;
}

.subpage-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
}
.subpage-status.warning { background: #fff3e0; color: #ff9800; }
.subpage-status.success { background: #e8f5e9; color: #4caf50; }
.subpage-status.danger { background: #ffebee; color: #E20413; }
.subpage-status.info { background: #e3f2fd; color: #2196f3; }

.subpage-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.subpage-filter a {
    padding: 8px 16px;
    background: white;
    color: #666;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid #e8e8e8;
    transition: all 0.15s;
}
.subpage-filter a.active {
    background: linear-gradient(135deg, #E20413 0%, #ff4757 100%);
    color: white;
    border-color: transparent;
}

.subpage-amount-card {
    background: linear-gradient(135deg, #E20413 0%, #ff4757 100%);
    color: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.subpage-amount-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.subpage-amount-label {
    font-size: 13px;
    opacity: 0.85;
    position: relative;
}
.subpage-amount-value {
    font-size: 36px;
    font-weight: 700;
    margin: 8px 0;
    position: relative;
}
.subpage-amount-sub {
    font-size: 12px;
    opacity: 0.75;
    position: relative;
}

.subpage-bank-card {
    background: linear-gradient(135deg, #3c8dbc 0%, #2c6da0 100%);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 12px;
    position: relative;
}
.subpage-bank-card-default {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.25);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
}
.subpage-bank-card-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
}
.subpage-bank-card-no {
    font-size: 22px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.subpage-bank-card-meta {
    font-size: 13px;
    opacity: 0.85;
}
.subpage-bank-card-actions {
    margin-top: 14px;
    display: flex;
    gap: 8px;
}
.subpage-bank-card-actions button {
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}

.subpage-info-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f8f8f8;
}
.subpage-info-item:last-child {
    border-bottom: none;
}
.subpage-info-label {
    width: 100px;
    color: #999;
    font-size: 14px;
    flex-shrink: 0;
}
.subpage-info-value {
    flex: 1;
    color: #333;
    font-size: 14px;
}

.subpage-alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.subpage-alert.success { background: #e8f5e9; color: #2e7d32; }
.subpage-alert.warning { background: #fff3e0; color: #ef6c00; }
.subpage-alert.danger { background: #ffebee; color: #c62828; }
.subpage-alert.info { background: #e3f2fd; color: #1565c0; }

.subpage-star-rating {
    display: flex;
    gap: 8px;
    font-size: 32px;
    cursor: pointer;
}
.subpage-star-rating .star {
    color: #ddd;
    transition: color 0.15s;
}
.subpage-star-rating .star.active {
    color: #ff9800;
}

.subpage-file-upload {
    display: block;
    padding: 30px;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    text-align: center;
    color: #999;
    cursor: pointer;
    transition: border-color 0.2s;
}
.subpage-file-upload:active {
    border-color: #E20413;
}
.subpage-file-upload input[type="file"] {
    display: none;
}

/* ========== 实名认证图片上传 ========== */
.idcard-upload {
    position: relative;
    width: 100%;
    max-width: 280px;
}
.idcard-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.idcard-preview {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #f8f9fa;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
}
.idcard-preview:hover {
    border-color: #E20413;
}
.idcard-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.idcard-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #bbb;
    font-size: 14px;
}
.idcard-placeholder i {
    font-size: 32px;
    margin-bottom: 8px;
}
.idcard-preview-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 12px;
    text-align: center;
}

/* 输入提示 */
.subpage-input-tip {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
    min-height: 18px;
}
.subpage-input-tip.success {
    color: #4caf50;
}
.subpage-input-tip.error {
    color: #E20413;
}

/* ========== 响应式 ========== */
@media (max-width: 375px) {
    .subpage-body { padding: 8px; padding-bottom: 80px; }
    .subpage-card { padding: 12px; }
    .subpage-amount-value { font-size: 28px; }
}
