/* ========================================================
   PHP Shop Mall - User Auth & Member Center Stylesheet
   Matches 财小神 1:1 Login/Register (csshopLogin.do) & Member
======================================================== */

/* ---------------- 登录与注册页 ---------------- */
.user-auth-page {
    background: #fdfdfd;
    padding: 50px 0 80px 0;
    min-height: 580px;
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 左侧品牌视觉横幅 */
.auth-left-banner {
    width: 650px;
    height: 460px;
    background: linear-gradient(135deg, #2b303c 0%, #171a21 100%);
    border-radius: 8px;
    padding: 60px 50px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-left-banner h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 1px;
    color: #ffdd80;
}

.auth-left-banner p {
    font-size: 18px;
    color: #bbbbbb;
    margin-bottom: 36px;
}

.banner-badge-tags span {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 18px;
    border-radius: 20px;
    margin-right: 12px;
    font-size: 14px;
}

/* 右侧登录/注册卡片 */
.auth-card-box {
    width: 440px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-radius: 6px;
    padding: 30px 40px;
}

.auth-tabs-nav {
    border-bottom: 2px solid #eeeeee;
    margin-bottom: 24px;
    display: flex;
}

.auth-tab-btn {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #666666;
    padding-bottom: 12px;
    cursor: pointer;
    position: relative;
    top: 2px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.auth-tab-btn.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.auth-alert-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 4px;
    margin-bottom: 18px;
}

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

.input-lbl {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555555;
    font-weight: bold;
}

.auth-input {
    width: 100%;
    height: 42px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 0 14px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.auth-input:focus {
    border-color: var(--primary-red);
}

.form-aux-row {
    margin-bottom: 20px;
    font-size: 12px;
    color: #888888;
}

.remember-me {
    float: left;
    cursor: pointer;
}

.forgot-link {
    float: right;
    color: #888888;
}

.btn-auth-submit {
    width: 100%;
    height: 46px;
    background: var(--primary-red);
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(210, 30, 32, 0.3);
    transition: background-color 0.2s;
}

.btn-auth-submit:hover {
    background: var(--hover-red);
}

.switch-tip {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #666666;
}

.switch-tip a {
    color: var(--primary-red);
    font-weight: bold;
}

.test-account-tip {
    margin-top: 20px;
    background: #f7f9fa;
    border: 1px dashed #d0d7de;
    padding: 8px 12px;
    font-size: 12px;
    color: #57606a;
    border-radius: 4px;
    text-align: center;
}

/* ---------------- 会员中心布局 ---------------- */
.member-layout-page {
    padding: 24px 0 60px 0;
    background: #f8f8f8;
    min-height: 600px;
}

/* 左侧侧边栏 (200px) */
.member-sidebar {
    float: left;
    width: 200px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-user-brief {
    text-align: center;
    padding: 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(180deg, #fffafa 0%, #ffffff 100%);
}

.user-avatar-circle {
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: var(--primary-red);
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    box-shadow: 0 4px 10px rgba(210, 30, 32, 0.25);
}

.user-name-txt {
    font-size: 15px;
    font-weight: bold;
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-badge-tag {
    display: inline-block;
    background: #fff1f0;
    border: 1px solid #ffa39e;
    color: #cf1322;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    margin-top: 6px;
}

.member-nav-menu {
    padding: 10px 0;
}

.member-nav-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: #555555;
    transition: all 0.2s;
}

.member-nav-menu li a .icon {
    margin-right: 8px;
}

.member-nav-menu li:hover a, .member-nav-menu li.active a {
    background: #fff1f0;
    color: var(--primary-red);
    font-weight: bold;
    border-left: 3px solid var(--primary-red);
    padding-left: 17px;
}

.member-nav-menu li.logout-item a {
    color: #999999;
}

.member-nav-menu li.logout-item a:hover {
    color: #ff4d4f;
    background: #fff2f0;
}

/* 右侧内容区 (980px) */
.member-main-content {
    float: left;
    width: 980px;
    margin-left: 20px;
}

/* 会员概览卡片 */
.account-overview-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    padding: 24px 30px;
    margin-bottom: 20px;
}

.user-greeting {
    float: left;
}

.user-greeting h2 {
    font-size: 20px;
    color: #222222;
    margin-bottom: 4px;
}

.greeting-sub {
    font-size: 13px;
    color: #888888;
}

.user-assets {
    float: right;
    display: flex;
    gap: 40px;
}

.asset-item {
    text-align: right;
}

.asset-val {
    color: var(--primary-red);
    font-size: 24px;
    font-weight: 800;
}

.asset-lbl {
    font-size: 12px;
    color: #888888;
    margin-top: 2px;
}

/* 快捷状态看板 */
.order-status-badges-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.status-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.status-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.status-card .status-icon {
    font-size: 32px;
    margin-right: 16px;
}

.status-card .status-name {
    font-size: 13px;
    color: #666666;
}

.status-card .status-count {
    font-size: 20px;
    font-weight: bold;
    color: #333333;
}

.status-card .status-count.highlight {
    color: var(--primary-red);
}

/* 面板通用包裹 */
.panel-section {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 20px;
}

.panel-title-bar {
    padding-bottom: 16px;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 20px;
}

.panel-title-bar h3 {
    float: left;
    font-size: 16px;
    color: #222222;
}

.panel-title-bar .more-link {
    float: right;
    font-size: 13px;
    color: #888888;
}

.panel-title-bar .more-link:hover {
    color: var(--primary-red);
}

/* 近期订单 */
.recent-order-item {
    border: 1px solid #eeeeee;
    border-radius: 4px;
    margin-bottom: 14px;
}

.order-item-header {
    background: #fafafa;
    padding: 10px 16px;
    font-size: 13px;
    color: #666666;
    border-bottom: 1px solid #eeeeee;
}

.order-item-header .sn {
    margin-right: 20px;
    font-weight: bold;
    color: #333333;
}

.order-item-header .time {
    margin-right: 20px;
}

.order-item-header .status-tag {
    float: right;
    font-weight: bold;
}

.order-item-body {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.items-thumbs img {
    width: 60px;
    height: 60px;
    border: 1px solid #eeeeee;
    margin-right: 10px;
    object-fit: contain;
}

.order-total-price {
    font-size: 14px;
    color: #666666;
}

.order-total-price strong {
    font-size: 18px;
    color: var(--primary-red);
}

.btn-action {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: bold;
    background: #f0f0f0;
    color: #555555;
}

.btn-action.btn-pay {
    background: var(--primary-red);
    color: #ffffff;
}

.empty-panel-tip {
    text-align: center;
    padding: 50px 0;
    color: #888888;
}

.btn-mall-entry {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 24px;
    background: var(--primary-red);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
}

/* ---------------- 我的订单页 ---------------- */
.order-filter-tabs {
    border-bottom: 2px solid #eeeeee;
    margin-bottom: 20px;
    display: flex;
}

.order-filter-tabs .tab-item {
    padding: 10px 20px;
    font-size: 15px;
    color: #666666;
    border-bottom: 2px solid transparent;
    position: relative;
    top: 2px;
}

.order-filter-tabs .tab-item.active {
    color: var(--primary-red);
    font-weight: bold;
    border-bottom-color: var(--primary-red);
}

.order-card-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
    background: #ffffff;
}

.order-card-topbar {
    background: #f7f7f7;
    padding: 10px 16px;
    font-size: 13px;
    color: #666666;
    border-bottom: 1px solid #eeeeee;
}

.order-card-topbar span {
    margin-right: 20px;
}

.order-status-badge {
    float: right;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
}

.badge-st-0 { background: #fff1f0; color: #cf1322; border: 1px solid #ffa39e; }
.badge-st-1 { background: #fffbe6; color: #d46b08; border: 1px solid #ffe58f; }
.badge-st-2 { background: #e6f7ff; color: #096dd9; border: 1px solid #91d5ff; }
.badge-st-3 { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }
.badge-st-4 { background: #f5f5f5; color: #8c8c8c; border: 1px solid #d9d9d9; }

.order-card-content {
    display: flex;
}

.order-goods-col {
    flex: 1;
    border-right: 1px solid #eeeeee;
    padding: 16px;
}

.order-goods-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.order-goods-row:last-child {
    margin-bottom: 0;
}

.order-goods-row .item-img img {
    width: 60px;
    height: 60px;
    border: 1px solid #eeeeee;
    margin-right: 12px;
    object-fit: contain;
}

.order-goods-row .item-info {
    flex: 1;
}

.order-goods-row .item-title {
    font-size: 13px;
    color: #333333;
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
}

.order-goods-row .item-spec-meta {
    font-size: 12px;
    color: #888888;
}

.order-goods-row .item-price {
    font-size: 14px;
    font-weight: bold;
    color: #444444;
    width: 100px;
    text-align: right;
}

.order-total-col {
    width: 180px;
    border-right: 1px solid #eeeeee;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pay-total-val {
    color: var(--primary-red);
    font-size: 18px;
    font-weight: 800;
}

.freight-txt {
    font-size: 11px;
    color: #999999;
}

.express-info-tag {
    margin-top: 10px;
    background: #f0f7ff;
    padding: 4px 8px;
    font-size: 11px;
    color: #096dd9;
    border-radius: 2px;
    text-align: left;
}

.order-action-col {
    width: 150px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-op {
    width: 100px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 3px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: block;
}

.btn-op-primary {
    background: var(--primary-red);
    color: #ffffff !important;
}

.btn-op-default {
    background: #f5f5f5;
    color: #666666;
    border: 1px solid #d9d9d9;
}

.op-tip {
    font-size: 12px;
    color: #888888;
}

.op-tip-done {
    color: #52c41a;
    font-weight: bold;
}

.op-tip-canceled {
    color: #bfbfbf;
}

/* ---------------- 收货地址簿与修改密码表单 ---------------- */
.address-item-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fafafa;
}

.address-item-card.is-default {
    border-color: var(--primary-red);
    background: #fffafa;
}

.addr-header {
    margin-bottom: 8px;
    font-size: 14px;
}

.addr-header .name {
    margin-right: 16px;
}

.addr-header .phone {
    color: #666666;
    margin-right: 16px;
}

.default-badge {
    background: var(--primary-red);
    color: #ffffff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 2px;
}

.addr-actions {
    float: right;
    font-size: 12px;
}

.addr-actions a {
    color: #1890ff;
}

.addr-actions a.del-btn {
    color: #ff4d4f;
}

.addr-actions .sep {
    color: #dddddd;
    margin: 0 6px;
}

.add-address-form-box, .password-form-box {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.add-address-form-box h4, .existing-address-list h4 {
    font-size: 15px;
    color: #333333;
    margin-bottom: 16px;
}

.standard-form .form-item {
    margin-bottom: 16px;
}

.standard-form .item-label {
    float: left;
    width: 140px;
    text-align: right;
    padding-top: 8px;
    font-size: 13px;
    color: #444444;
}

.standard-form .form-input, .standard-form .form-textarea {
    border: 1px solid #cccccc;
    border-radius: 3px;
    padding: 8px 12px;
    font-size: 14px;
}

.btn-submit-form {
    padding: 10px 36px;
    background: var(--primary-red);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.alert-info-box {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #0050b3;
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-danger-box {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}
