/* 页面整体间距 */
.user-auth {}

/* 登录卡片 */
.user-auth .layui-card {
    border-radius: 6px;
}

/* 表单 label 在移动端更友好 */
@media screen and (max-width: 768px) {
    .user-auth .layui-form-pane .layui-form-label {
        width: 80px;
        padding: 8px 10px;
    }

    .user-auth .layui-form-pane .layui-input-block {
        margin-left: 80px;
    }
}

/* 验证码布局 */


.captcha-item .layui-input-inline {
    flex: 1;
}

.captcha-item .captcha-img {
    margin-left: 10px;
}

@media screen and (max-width: 470px) {
    .captcha-item .captcha-img {
        margin-left: 0;
        float: right;
    }
}

.captcha-item img {
    height: 38px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #e6e6e6;
}

/* 提示卡片 */
.tips-card {
    margin-top: 20px;
}

.tips-card .layui-card-header {
    font-weight: bold;
    color: #ff5722;
}

.tips-list {
    padding-left: 20px;
    line-height: 1.8;
}

.tips-list li a {
    color: #01aaed;
    font-weight: 500;
}


/* 外层 */
.member-page {
    display: flex;
    /* max-width: 1200px; */
    margin: 20px auto;
    gap: 20px;
    /* padding: 0 12px; */
    box-sizing: border-box;
}

/* 左侧导航 */
.member-nav {
    width: 255px;
    background: #fff;
}

.member-nav-title {
    padding: 15px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

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

.member-nav-list li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
}

.member-nav-list li.active a,
.member-nav-list li a:hover {
    background: #f5f7fa;
    color: var(--color-primary);
}

/* 右侧内容 */
.member-main {
    flex: 1;
    background: #fff;
}

.member-content {
    padding: 20px;
}

.member-welcome {
    color: #666;
    margin-bottom: 20px;
}

.member-panel {
    padding: 15px;
    background: #fafafa;
    border-radius: 4px;
}

/* ======================
   移动端适配
   ====================== */


@media (max-width: 900px) {
    .container {
        padding: 0 10px;
        min-width: 100%;
    }

    .member-page {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {

    .container {
        padding: 0 10px;
        min-width: 100%;
    }

    .member-page {
        flex-direction: column;
        gap: 10px;
    }

    /* 左侧变顶部 */
    .member-nav {
        width: 100%;
    }

    .member-nav-title {
        display: none;
    }

    .member-nav-list {
        display: flex;
        border-bottom: 1px solid #eee;
    }

    .member-nav-list li {
        flex: 1;
        text-align: center;
    }

    .member-nav-list li a {
        padding: 12px 5px;
        font-size: 14px;
    }

    .member-main {
        box-shadow: none;
    }
}

/*我的订单**/

/* 左侧边栏 */
.member-page .sidebar {
    width: 250px;
    flex-shrink: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    padding: 25px 20px;
    height: fit-content;
}

.member-page .user-info {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.member-page .user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 15px;
}

.member-page .user-avatar i {
    font-size: 24px;
}

.member-page .user-name {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
}

.member-page .user-email {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 4px;
}

.member-page .menu-list {
    list-style: none;
}

.member-page .menu-list li {
    margin-bottom: 12px;
}

.member-page .menu-list a {
    display: block;
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.member-page .menu-list a:hover,
.member-page .menu-list a.active {
    background-color: var(--color-primary-bg);
    color: var(--color-primary);
    transform: translateX(5px);
}

.member-page .menu-list i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 右侧内容区 */
.member-page .menber-content {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.member-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.member-page .page-title {
    font-size: 24px;
    color: #2c3e50;
}

.member-page .filter-container {
    display: flex;
    gap: 15px;
}

.member-page .filter-select {
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
}

.member-page .filter-select:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* 右侧内容区 */
.member-page .menber-content {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.member-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.member-page .page-title {
    font-size: 1.5rem;
    color: #2c3e50;
}

.member-page .filter-container {
    display: flex;
    gap: 15px;
}

.member-page .filter-select {
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
}

.member-page .filter-select:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* 订单表格容器 */
.member-page .orders-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.member-page .orders-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.member-page .orders-table thead {
    background-color: #f8f9fa;
}

.member-page .orders-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    font-size: 14px;
}

.member-page .orders-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
}

.member-page .orders-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.member-page .orders-table td {
    padding: 18px 15px;
    color: #333;
    font-size: 14px;
    vertical-align: middle;
}

.member-page .order-id {
    font-weight: 500;
    color: var(--color-primary);
}

.member-page .orders-container .p-name {
    font-weight: 500;
}
.btn-get-card{
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 70px; 
    background-color: #155724;
    color: #d4edda;
    border: none;
    margin-top: 8px;
    cursor: pointer;
}
.btn-get-card:hover{
    text-decoration: underline;
}
.member-page .price,
.member-page .quantity,
.member-page .amount {
    font-weight: 500;
}

.member-page .order-time {
    color: #7f8c8d;
    white-space: nowrap;
}

/* 订单状态标签 */
.member-page .status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 70px;
}

.member-page .status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.member-page .status-processing {
    background-color: #cce5ff;
    color: #004085;
}

.member-page .status-shipped {
    background-color: #d4edda;
    color: #155724;
}

.member-page .status-refunded {
    background-color: #d1ecf1;
    color: #0c5460;
}

.member-page .status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* 加载更多按钮 */
.member-page .load-more-container {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.member-page .load-more-btn {
    background-color: var(--color-primary);
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    border: none;
}

.member-page .load-more-btn:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.member-page .load-more-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 加载动画 */
.member-page .loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 空状态 */
.member-page .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.member-page .empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.member-page .empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #95a5a6;
}

/* 错误提示 */
.member-page .error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}



@media (min-width: 993px) {
    
    /* ⭐ 关键：允许表格压缩 */
    .member-page .orders-table {
        table-layout: fixed;
        width: 100%;
    }
    
    /* ⭐ 单元格允许换行 */
    .member-page .orders-table td,
    .member-page .orders-table th {
        white-space: normal !important;
        word-break: break-all;
        overflow-wrap: anywhere;
    }
    .member-page .order-id, .member-page .p-name {
        word-break: break-all;
        overflow-wrap: anywhere;
    }
    /* 列宽控制（推荐比例） */
    .member-page .orders-table th:nth-child(1),
    .member-page .orders-table td:nth-child(1) {
        width: 18%;
    }
    
    .member-page .orders-table th:nth-child(2),
    .member-page .orders-table td:nth-child(2) {
        width: 20%;
    }
    
    .member-page .orders-table th:nth-child(3),
    .member-page .orders-table td:nth-child(3) {
        width: 10%;
    }
    
    .member-page .orders-table th:nth-child(4),
    .member-page .orders-table td:nth-child(4) {
        width: 10%;
    }
    
    .member-page .orders-table th:nth-child(5),
    .member-page .orders-table td:nth-child(5) {
        width: 10%;
    }
    
    .member-page .orders-table th:nth-child(6),
    .member-page .orders-table td:nth-child(6) {
        width: 18%;
    }
    
    .member-page .orders-table th:nth-child(7),
    .member-page .orders-table td:nth-child(7) {
        width: 14%;
    }

}

/* 响应式设计 */
@media (max-width: 1200px) {
    .member-page {
        flex-direction: column;
        gap: 20px;
    }
    .member-page .sidebar {
        width: 100%;
    }
}
/* 响应式设计 */
@media (max-width: 992px) {
    
    .btn-get-card{
        margin-top: 0;
        margin-left: 8px;
    }
    .member-page {
        flex-direction: column;
        gap: 20px;
    }
    .member-page .main-layout {
        flex-direction: column;
    }

    .member-page .sidebar {
        width: 100%;
    }

    .member-page .filter-container {
        flex-wrap: wrap;
    }
    .member-page .orders-table {
        display: block;
    }

    .member-page .orders-table thead {
        display: none;
    }

    .member-page .orders-table tbody,
    .member-page .orders-table tr,
    .member-page .orders-table td {
        display: block;
        width: 100%;
    }

    .member-page .orders-table tr {
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 15px;
        position: relative;
    }

    .member-page .orders-table td {
        padding: 10px 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .member-page .orders-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #2c3e50;
        margin-right: 10px;
    }

    .member-page .status {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .member-page .header-content {
        flex-wrap: wrap;
    }

    .member-page .mobile-toggle {
        display: block;
    }

    .member-page .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .member-page .filter-container {
        width: 100%;
    }

    .member-page .filter-select {
        flex: 1;
    }

}

@media (max-width: 480px) {
    .member-page .container {
        padding: 0 15px;
    }

    .member-page .menber-content {
        padding: 20px;
    }

    .member-page .page-title {
        font-size: 20px;
    }

    .member-page .load-more-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 右侧内容区 */
.right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}