/* ==============================================
   用户系统样式（注册/登录/实名/个人中心/订单）
   橙色主题一致：#ff7a00 / #ff4500
   ============================================== */

/* ========== 用户容器 ========== */
.user-container {
    width: 94%;
    max-width: 480px;
    margin: 80px auto 30px;
    min-height: 60vh;
}

/* ========== 用户卡片 ========== */
.user-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 24px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #f5f5f5;
}

.user-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 8px;
}

.user-card-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #ff7a00, #ff4500);
    margin: 10px auto 0;
    border-radius: 3px;
}

.user-card-desc {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin: 10px 0 20px;
    line-height: 1.6;
}

/* ========== 表单 ========== */
.user-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 18px;
}

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

.form-label .required {
    color: #ff4444;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #ff7a00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

.form-input.error {
    border-color: #ff4444;
}

.form-tip {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    min-height: 18px;
}

.form-tip.error {
    color: #ff4444;
}

.form-tip.success {
    color: #52c41a;
}

/* ========== 短信验证码 ========== */
.sms-group {
    display: flex;
    gap: 10px;
}

.sms-group .form-input {
    flex: 1;
}

.sms-btn {
    flex-shrink: 0;
    padding: 0 16px;
    height: 44px;
    background: linear-gradient(90deg, #ff7a00, #ff4500);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.sms-btn:hover {
    opacity: 0.9;
}

.sms-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ========== 提交按钮 ========== */
.user-btn {
    width: 100%;
    padding: 14px 0;
    background: linear-gradient(90deg, #ff7a00, #ff4500);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    margin-top: 10px;
}

.user-btn:hover {
    opacity: 0.95;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
    transform: translateY(-2px);
}

.user-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== 表单底部链接 ========== */
.user-form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #999;
}

.user-link {
    color: #ff7a00;
    font-weight: 500;
}

.user-link:hover {
    color: #ff4500;
    text-decoration: underline;
}

/* ========== 登录 Tab 切换 ========== */
.login-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}

.login-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.login-tab.active {
    color: #ff7a00;
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #ff7a00, #ff4500);
    border-radius: 2px;
}

/* ========== 个人中心 ========== */
.profile-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.profile-header {
    background: linear-gradient(135deg, #ff7a00, #ff4500);
    padding: 30px 24px;
    text-align: center;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.profile-phone {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.profile-created {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

.profile-menu {
    padding: 0;
    margin: 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-menu-item:hover {
    background: #fff8f2;
}

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

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

.profile-menu-icon {
    font-size: 20px;
}

.profile-menu-text {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.profile-menu-status {
    font-size: 12px;
    color: #999;
}

.profile-menu-status.passed {
    color: #52c41a;
}

.profile-menu-status.pending {
    color: #faad14;
}

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

/* 退出按钮 */
.logout-section {
    margin-top: 20px;
    padding: 0 24px 30px;
}

.logout-btn {
    width: 100%;
    padding: 14px 0;
    background: #fff;
    color: #ff4444;
    border: 1px solid #ff4444;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #fff1f0;
    color: #ff2222;
}

/* ========== 订单列表 ========== */
.order-tabs {
    display: flex;
    background: #fff;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    border-bottom: 2px solid #f0f0f0;
}

.order-tab {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.order-tab.active {
    color: #ff7a00;
}

.order-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, #ff7a00, #ff4500);
    border-radius: 2px;
}

.order-list {
    background: #fff;
    border-radius: 0 0 12px 12px;
    padding: 0 16px;
    min-height: 200px;
}

.order-empty {
    text-align: center;
    padding: 60px 0;
    color: #ccc;
    font-size: 14px;
}

.order-card {
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-card:last-child {
    border-bottom: none;
}

.order-card:hover {
    padding-left: 8px;
}

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

.order-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.order-card-status {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 10px;
    flex-shrink: 0;
}

.order-card-status.pending {
    background: #fff8f0;
    color: #ff7a00;
    border: 1px solid #ffe8cc;
}

.order-card-status.paid {
    background: #f0fff4;
    color: #52c41a;
    border: 1px solid #d9f7be;
}

.order-card-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.order-card-amount {
    font-weight: 600;
    color: #ff4500;
}

/* ========== 订单详情 ========== */
.order-detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.order-detail-status {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-radius: 10px;
}

.order-detail-status.pending {
    background: #fff8f0;
}

.order-detail-status.paid {
    background: #f0fff4;
}

.order-detail-status-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.order-detail-status-text {
    font-size: 18px;
    font-weight: 700;
}

.order-detail-status-text.pending {
    color: #ff7a00;
}

.order-detail-status-text.paid {
    color: #52c41a;
}

.order-detail-info {
    margin-bottom: 20px;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.order-detail-row:last-child {
    border-bottom: none;
}

.order-detail-label {
    color: #999;
    flex-shrink: 0;
}

.order-detail-value {
    color: #333;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

.order-detail-footer {
    margin-top: 20px;
    text-align: center;
}

/* ========== 下单页商品信息 ========== */
.order-product-info {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.order-product-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.order-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-product-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.order-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-product-price {
    font-size: 14px;
    color: #ff4500;
    font-weight: 600;
}

/* ========== 数量选择器 ========== */
.count-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.count-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ff7a00;
    background: #fff;
    color: #ff7a00;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.count-btn:hover {
    background: #fff8f2;
}

.count-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: none;
    border-bottom: 2px solid #ddd;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    outline: none;
}

.count-input:focus {
    border-bottom-color: #ff7a00;
}

/* ========== 支付方式选择 ========== */
.pay-method-select {
    display: flex;
    gap: 12px;
}

.pay-method-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pay-method-item:has(input:checked) {
    border-color: #ff7a00;
    background: #fff8f2;
}

.pay-method-item input[type="radio"] {
    accent-color: #ff7a00;
}

.pay-method-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* ========== 总价展示 ========== */
.total-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.total-price-label {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.total-price-value {
    font-size: 20px;
    color: #ff4500;
    font-weight: 700;
}

/* ========== PC端适配 ========== */
@media (min-width: 1024px) {
    .user-container {
        margin: 100px auto 40px;
    }

    .user-card {
        padding: 40px 36px;
    }

    .profile-header {
        padding: 40px 36px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .profile-phone {
        font-size: 20px;
    }
}

/* ========== H5 适配 ========== */
@media (max-width: 374px) {
    .user-card {
        padding: 20px 16px;
    }

    .sms-btn {
        padding: 0 12px;
        font-size: 12px;
    }
}
