/**
 * 传奇版本库CMS - 前台样式
 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #e74c3c;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 顶部导航 */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
    background: linear-gradient(135deg, #5a9bd5 0%, #4a8bc5 100%);
    padding: 15px 0;
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    flex-direction: column;
    color: #fff;
}

.logo .logo-main {
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.logo .logo-sub {
    font-size: 12px;
    opacity: 0.9;
}

.search-box {
    flex: 1;
    max-width: 400px;
    margin: 0 30px;
}

.search-box form {
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-box button {
    padding: 10px 25px;
    background: #f39c12;
    border: none;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}

.search-box button:hover {
    background: #e67e22;
}

.header-links {
    display: flex;
    gap: 15px;
}

.header-links a {
    padding: 8px 15px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
}

.header-links a:hover {
    background: rgba(255,255,255,0.3);
}

/* 主导航 */
.main-nav {
    background: #4a8bc5;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li a {
    display: block;
    padding: 12px 25px;
    color: #fff;
    font-size: 14px;
    transition: background 0.3s;
}

.main-nav li a:hover,
.main-nav li.active a {
    background: rgba(0,0,0,0.1);
}

/* 顶部横幅广告 */
.top-banner-ads {
    background: #fff;
    padding: 5px 30px 0 30px;
}

.top-banner-ads .container {
    padding: 0;
}

.top-banner-item {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.top-banner-item a {
    display: block;
}

.top-banner-item img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: cover;
    display: block;
}

/* 广告位 */
.ads-banner {
    background: #fff;
    padding: 5px 30px 0 30px;
}

.ads-banner .container {
    padding: 0;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.ad-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    aspect-ratio: 4 / 1;
}

.ad-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.ad-item img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.ad-text {
    position: absolute;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 文字广告 */
.text-ads {
    background: #fff;
    padding: 5px 30px 0 30px;
}

.text-ads .container {
    padding: 0;
}

.text-ads-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
}

.text-ad-item {
    background: #fff9e6;
    border: 1px solid #ffe082;
    text-align: center;
    padding: 10px 5px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-ad-item a {
    color: #e65100;
    font-size: 13px;
    text-decoration: none;
    display: block;
}

.text-ad-item a:hover {
    color: #ff6f00;
    text-decoration: underline;
}

/* 滚动公告 */
.scroll-notice-section {
    background: #fff;
    overflow: hidden;
    padding: 5px 30px 0 30px;
}

.scroll-notice-section .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

.scroll-notice-box {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    padding: 12px 0;
    background: #1a5490;
}

.scroll-notice-text {
    display: inline-block;
    padding-left: 100%;
    animation: scrollNotice linear infinite;
}

@keyframes scrollNotice {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.scroll-notice-box.hover-pause:hover .scroll-notice-text {
    animation-play-state: paused;
}

/* 筛选区域 */
.filter-section {
    background: #fff;
    padding: 20px 30px 15px 30px;
    border-radius: 4px;
    margin-bottom: 0;
}

.filter-section .container {
    padding: 0;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.filter-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-label {
    width: 80px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
}

.filter-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-options a {
    padding: 5px 15px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
}

.filter-options a:hover,
.filter-options a.active {
    background: #e74c3c;
    color: #fff;
}

/* 公告栏 */
.notice-section {
    margin-bottom: 20px;
}

.notice-box {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-icon {
    font-size: 20px;
}

.notice-text {
    font-size: 14px;
}

/* 版本列表 */
.version-list {
    background: #fff;
    padding: 0 30px 20px 30px;
    border-radius: 0 0 4px 4px;
    margin-bottom: 20px;
}

.version-list .container {
    padding: 0;
}

.version-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
}

.version-table th {
    background: #5a9bd5;
    color: #fff;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #4a8bc5;
    height: 45px;
    vertical-align: middle;
}

.version-table td {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    text-align: center;
    height: 50px;
    vertical-align: middle;
    white-space: nowrap;
}

.version-table tr:nth-child(even) {
    background: #f5f9fc;
}

.version-table tr:nth-child(odd) {
    background: #fff;
}

.version-table tr:hover {
    background: #e8f4fc;
}

.col-tag {
    width: 100px;
    white-space: nowrap;
}

.col-title {
    min-width: 400px;
    white-space: nowrap;
}

.version-table td.col-title {
    text-align: left;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
    line-height: 1.4;
}

.col-date {
    width: 120px;
    white-space: nowrap;
}

.col-view {
    width: 100px;
    white-space: nowrap;
}

.col-price {
    width: 80px;
}

.col-heat {
    width: 80px;
}

.col-action {
    width: 100px;
    white-space: nowrap;
}

.col-engine {
    width: 120px;
    white-space: nowrap;
}

.col-vertype {
    width: 100px;
    white-space: nowrap;
}

.col-author {
    width: 100px;
    white-space: nowrap;
}

.engine-tag,
.author-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #3498db;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
}

.vertype-tag {
    display: inline-block;
    padding: 3px 10px;
    background: transparent;
    color: #333;
    font-size: 12px;
}

.engine-default,
.vertype-default {
    background: #95a5a6;
}

/* 作者信息 */
.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.author-name {
    color: #333;
    font-size: 13px;
}
/* 作者等级图标 */
.author-level-icon {
    width: auto;
    height: 20px;
    cursor: pointer;
}
/* 作者销售等级图标 */
.author-sales-level-icon {
    width: auto;
    height: 20px;
    cursor: pointer;
    margin-left: 2px;
}
/* 作者链接 */
.author-name-link {
    text-decoration: none;
    color: inherit;
}
.author-name-link:hover .author-name {
    color: #3498db;
    text-decoration: underline;
}
.author-level-link {
    display: inline-block;
    text-decoration: none;
}
.author-level-link:hover {
    opacity: 0.8;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
}

.tag-top {
    background: #e74c3c;
}

.tag-hot {
    background: #f39c12;
}

.tag-rec {
    background: #27ae60;
}

.tag-normal {
    background: #3498db;
}

/* 按钮 */
.btn-view,
.btn-qq {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-view {
    background: #3498db;
    color: #fff;
}

.btn-view:hover {
    background: #2980b9;
    color: #fff;
}

.btn-qq {
    background: #e74c3c;
    color: #fff;
}

.btn-qq:hover {
    background: #c0392b;
    color: #fff;
}

/* 价格 */
.price {
    color: #e74c3c;
    font-weight: bold;
}

.price-free {
    color: #27ae60;
    font-weight: bold;
}

.heat {
    color: #666;
    font-size: 12px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 3px;
    font-size: 13px;
}

.pagination a:hover {
    background: #e74c3c;
    color: #fff;
}

.pagination .current {
    background: #e74c3c;
    color: #fff;
}

/* 底部 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 13px;
    opacity: 0.8;
}

/* ==================== 新版详情页样式 ==================== */
.detail-section-new {
    padding: 20px 0;
}

/* 顶部信息区 */
.detail-top {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 左侧图片 */
.detail-image {
    flex: 0 0 400px;
    max-width: 400px;
}

.detail-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.detail-image img:hover {
    transform: scale(1.02);
}

/* 右侧信息 */
.detail-info {
    flex: 1;
}

.detail-title {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
}

.info-label {
    width: 100px;
    background: #5dade2;
    color: #fff;
    padding: 10px 15px;
    font-size: 13px;
    text-align: center;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    padding: 10px 15px;
    font-size: 13px;
    color: #333;
}

.info-value a {
    color: #3498db;
}

.info-value a:hover {
    text-decoration: underline;
}

.price-value .text-success {
    color: #27ae60;
    font-weight: bold;
}

.price-value .text-danger {
    color: #e74c3c;
    font-weight: bold;
}

/* 底部按钮 */
.detail-buttons {
    display: flex;
    gap: 15px;
}

.btn-detail {
    flex: 1;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s;
}

.btn-blue {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.3);
}

.btn-blue:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
}

.btn-orange {
    background: #e67e22;
    color: #fff;
}

.btn-orange:hover {
    background: #d35400;
    color: #fff;
}

.btn-green {
    background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(39, 174, 96, 0.3);
}

.btn-green:hover {
    background: linear-gradient(135deg, #219a52 0%, #1a7a40 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(39, 174, 96, 0.4);
}

/* 联系客服二维码悬停 */
.btn-contact-qq {
    position: relative;
}

.btn-contact-qq .qr-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    white-space: nowrap;
}

.btn-contact-qq .qr-popup::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #fff;
}

.btn-contact-qq .qr-popup img {
    width: 150px;
    height: 150px;
    border-radius: 4px;
    display: block;
}

.btn-contact-qq .qr-popup .qr-text {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.btn-contact-qq:hover .qr-popup {
    opacity: 1;
    visibility: visible;
}

/* 浮动按钮二维码弹窗 */
.float-btn-qr {
    position: relative;
}

.float-btn-qr .qr-popup {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    white-space: nowrap;
}

.float-btn-qr .qr-popup::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #fff;
}

.float-btn-qr .qr-popup img {
    width: 150px;
    height: 150px;
    border-radius: 4px;
    display: block;
}

.float-btn-qr .qr-popup .qr-text {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
    display: block;
}

.float-btn-qr:hover .qr-popup {
    opacity: 1;
    visibility: visible;
}

/* 购物车和立即购买按钮容器 */
.cart-buy-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
}

.cart-buy-buttons .btn-detail {
    flex: 1;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

/* 加入购物车按钮 */
.btn-add-cart {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.3);
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
}

/* 立即购买按钮 */
.btn-buy-now {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(230, 126, 34, 0.3);
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #d35400 0%, #a04000 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(230, 126, 34, 0.4);
}

/* 已在购物车按钮 */
.btn-in-cart {
    background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(39, 174, 96, 0.3);
}

.btn-in-cart:hover {
    background: linear-gradient(135deg, #219a52 0%, #1a7a40 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(39, 174, 96, 0.4);
}

/* 联系客服按钮 */
.btn-contact-qq {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(243, 156, 18, 0.3);
}

.btn-contact-qq:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(243, 156, 18, 0.4);
}

/* 交流群按钮 */
.btn-contact-group {
    background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(39, 174, 96, 0.3);
    position: relative;
}

.btn-contact-group:hover {
    background: linear-gradient(135deg, #219a52 0%, #1a7a40 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(39, 174, 96, 0.4);
}

/* 交流群按钮二维码悬停 */
.btn-contact-group .qr-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    white-space: nowrap;
}

.btn-contact-group .qr-popup::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #fff;
}

.btn-contact-group .qr-popup img {
    width: 150px;
    height: 150px;
    border-radius: 4px;
    display: block;
}

.btn-contact-group .qr-popup .qr-text {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.btn-contact-group:hover .qr-popup {
    opacity: 1;
    visibility: visible;
}

/* 内容区块 */
.detail-content-box {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.content-header {
    background: #5dade2;
    padding: 12px 20px;
}

.content-title {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.content-body {
    padding: 20px;
    line-height: 1.8;
}

.content-body p {
    margin-bottom: 10px;
}

/* 下载信息 */
.download-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.download-row:last-child {
    margin-bottom: 0;
}

.download-label {
    width: 80px;
    color: #666;
    font-size: 13px;
}

.download-link {
    color: #3498db;
    word-break: break-all;
}

.download-password {
    background: #e74c3c;
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
}

/* 截图网格 */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.screenshot-grid .screenshot-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s;
}

.screenshot-grid .screenshot-item img:hover {
    transform: scale(1.05);
}

/* 图片预览 */
.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.image-viewer img {
    max-width: 90%;
    max-height: 90%;
}

.image-viewer .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* 无数据 */
.no-data {
    text-align: center;
    padding: 50px;
    color: #999;
}

/* 响应式 */
@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        margin: 0;
        max-width: 100%;
        width: 100%;
    }

    .main-nav ul {
        flex-wrap: wrap;
    }

    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-label {
        width: 100%;
        margin-bottom: 10px;
    }

    .version-table {
        font-size: 12px;
    }

    .version-table th,
    .version-table td {
        padding: 8px;
    }

    /* 详情页响应式 */
    .detail-top {
        flex-direction: column;
    }

    .detail-image {
        flex: 1;
        max-width: 100%;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .detail-buttons {
        flex-direction: column;
    }

    /* 表格响应式 - 小屏幕横向滚动 */
    .data-table,
    .order-list,
    .version-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table thead,
    .order-list thead,
    .version-table thead {
        display: table-header-group;
    }

    .data-table tbody,
    .order-list tbody,
    .version-table tbody {
        display: table-row-group;
    }

    .data-table tr,
    .order-list tr,
    .version-table tr {
        display: table-row;
    }

    .data-table th,
    .data-table td,
    .order-list th,
    .order-list td,
    .version-table th,
    .version-table td {
        white-space: nowrap !important;
        padding: 8px 10px;
        font-size: 12px;
    }

    /* 版本名称列允许换行 */
    .data-table td:first-child,
    .order-list td:first-child,
    .version-table td:first-child {
        white-space: normal !important;
        min-width: 150px;
        max-width: 200px;
    }

    /* 会员中心布局 */
    .member-layout {
        flex-direction: column;
    }

    .member-sidebar {
        width: 100%;
        min-width: auto;
    }

    .member-menu ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .member-menu li {
        flex: 1;
        min-width: 120px;
    }

    /* 订单信息简化显示 */
    .order-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .order-info img {
        width: 80px;
        height: 60px;
    }

    /* 统计卡片 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 按钮组 */
    .btn-group {
        flex-wrap: wrap;
        gap: 5px;
    }

    .btn-group .btn {
        flex: 1;
        min-width: 80px;
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* ==================== 会员中心公共样式 ==================== */
.member-layout {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}
.member-sidebar {
    width: 250px;
    min-width: 250px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
    overflow: visible;
}
.member-avatar {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}
.member-avatar .avatar-with-frame {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
}
.member-avatar .avatar-with-frame .avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.member-avatar .avatar-with-frame .avatar-frame {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    object-fit: contain;
    pointer-events: none;
}
.member-avatar h4 {
    margin: 0;
    color: #333;
}
.member-avatar p {
    margin: 5px 0 0;
    color: #999;
    font-size: 14px;
}
.member-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.member-level img {
    width: 16px;
    height: 16px;
    border-radius: 0;
    margin: 0;
}
.member-level-icon {
    margin-top: 10px;
    display: block;
    text-align: center;
}
.member-level-icon img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 36px;
    object-fit: contain;
    border-radius: 0;
    display: inline-block;
}
/* 等级图标容器 - 用于并排显示销售等级和用户等级 */
.member-level-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}
.member-level-icons .member-level-icon {
    margin: 0;
    padding: 0;
    line-height: 0;
}
.member-level-icons .member-level-icon:first-child {
    margin-right: 8px;
}
.member-level-icons .member-level-icon img {
    width: auto;
    height: 32px;
    border-radius: 0;
    margin: 0;
    padding: 0;
    display: block;
}
/* 勋章展示容器 */
.member-badges {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}
/* 勋章图标 */
.member-badge-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 0 !important;
    display: block;
}
.member-badge-icon:hover {
    transform: scale(1.15);
}
/* 勋章展开按钮 */
.member-badges-expand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    font-size: 12px;
}
.member-badges-expand:hover {
    background: #d0d0d0;
}
.member-badges-expand i {
    font-size: 14px;
    margin-bottom: 2px;
}
.member-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.member-menu li a {
    display: block;
    padding: 15px 25px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}
.member-menu li a:hover,
.member-menu li a.active {
    background: #f8f9fa;
    color: #3498db;
    border-left-color: #3498db;
}
.member-menu li a i {
    width: 25px;
    margin-right: 10px;
}

/* 面包屑导航 */
.breadcrumb-nav {
    padding: 12px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
}

.breadcrumb-nav ol {
    display: flex;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumb-nav li {
    display: flex;
    align-items: center;
}

.breadcrumb-nav li a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.breadcrumb-nav li a:hover {
    color: #4a90e2;
}

.breadcrumb-nav li span[itemprop="name"] {
    color: #333;
    font-size: 13px;
}

.breadcrumb-separator {
    color: #ccc;
    margin: 0 8px;
    font-size: 10px;
}

.breadcrumb-separator i {
    font-size: 10px;
}
