/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f8f8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    user-select: none;
}

[v-cloak] {
    display: none;
}

/* 头部导航 */
.header {
    height: 44px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left i {
    font-size: 20px;
    color: #666;
}

.header-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
}

.header-right {
    font-size: 14px;
    color: #666;
}

/* 搜索栏 */
.search-bar {
    padding: 10px 15px;
    background: #fff;
    display: flex;
    align-items: center;
}

.search-input-wrap {
    flex: 1;
    background: #f4f4f4;
    height: 36px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.search-input-wrap i {
    color: #999;
    margin-right: 8px;
}

.search-input-wrap input {
    background: transparent;
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
}

.search-btn {
    margin-left: 15px;
    font-size: 16px;
    font-weight: 500;
}

/* 筛选栏 */
.filter-tabs {
    height: 40px;
    background: #fff;
    display: flex;
    border-bottom: 1px solid #eee;
}

.filter-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
}

.filter-item i {
    font-size: 12px;
    margin-left: 4px;
    color: #ccc;
}

/* 游戏ID输入区 */
.game-id-section {
    padding: 10px 15px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-id-section .el-input {
    flex: 1;
}

.mode-info {
    white-space: nowrap;
    display: flex;
    gap: 5px;
    align-items: center;
}

.account-tag {
    white-space: nowrap;
}

/* 下拉刷新提示 */
.pull-refresh-tip {
    position: fixed;
    top: 44px;  /* 头部导航下方 */
    left: 0;
    right: 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #666;
    font-size: 14px;
    z-index: 99;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.pull-refresh-tip i {
    font-size: 18px;
    margin-right: 8px;
}

.pull-refresh-tip.pull {
    color: #409EFF;
}

.pull-refresh-tip.release {
    color: #67C23A;
}

.pull-refresh-tip.loading {
    color: #E6A23C;
}

.pull-refresh-tip.loading i {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 商品卡片列表 */
.commodity-list {
    padding: 10px 15px 20px;
    position: relative;
}

.commodity-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;  /* 从15px减少到12px */
    margin-bottom: 10px;  /* 从12px减少到10px */
    display: flex;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: all 0.3s ease;
}

.commodity-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.card-left .avatar {
    width: 60px;  /* 从70px减少到60px */
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-content {
    flex: 1;
    margin-left: 15px;
}

.role-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.job-tag {
    background: #fff3e0;
    color: #ff9800;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: normal;
}

.server-info {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.level-badge {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #7b1fa2;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    border: 1px solid #ce93d8;
    font-weight: bold;
}

.level-badge {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    border: 1px solid #90caf9;
    font-weight: bold;
}

/* 货币信息 */
.currency-info {
    font-size: 12px;
    color: #ff9800;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.currency-item {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff9e6 0%, #ffe4b5 100%);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #ffd54f;
}

.currency-item i {
    margin-right: 3px;
    color: #ffa000;
    font-size: 13px;
}

/* 紧凑信息行（等级 | 价格+时间） */
.compact-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.level-info {
    font-size: 13px;
    color: #999;
}

/* 价格和时间容器 */
.price-and-time {
    display: flex;
    align-items: center;
    gap: 10px;  /* 价格和时间之间的间距 */
}

.price-section-compact {
    color: #e64340;
}

.time-info {
    font-size: 11px;  /* 紧凑版，从12px减少到11px */
    color: #ff9800;
    display: flex;
    align-items: center;
    white-space: nowrap;  /* 不换行 */
}

.time-info i {
    font-size: 12px;  /* 从13px减少到12px */
    margin-right: 3px;
}

.price-and-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-section {
    color: #e64340;
}

.currency {
    font-size: 12px;
    font-weight: bold;
}

.price {
    font-size: 16px;  /* 紧凑版，从20px减少到16px */
    font-weight: bold;
}

.buy-btn {
    margin-left: 10px;
    padding: 8px 20px;
    font-weight: bold;
    /* 按钮始终可点击，不管倒计时状态 */
}

/* 右侧操作按钮区（紧凑版：居中对齐） */
.card-right {
    display: flex;
    align-items: center;  /* 从flex-end改为center，按钮居中显示 */
}

/* 去抢购按钮（3分钟内的新商品） */
.rush-btn {
    padding: 5px 14px;  /* 紧凑版 */
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 18px;
    color: #fff;
    font-size: 12px;  /* 从13px减少到12px */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    animation: pulse-rush 1.5s ease-in-out infinite;
}

.rush-btn:active {
    transform: scale(0.95);
}

.rush-text {
    display: inline-block;
}

/* 脉冲动画（吸引注意） */
@keyframes pulse-rush {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 87, 108, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(245, 87, 108, 0);
    }
}

/* 待售标签（超过3分钟的商品） */
.status-tag {
    padding: 5px 14px;  /* 紧凑版 */
    border-radius: 18px;
    font-size: 12px;  /* 从13px减少到12px */
    font-weight: bold;
}

.status-tag.on-sale {
    background: #f0f0f0;
    color: #999;
    border: 1px solid #ddd;
}

.status-tag.on-sale.clickable {
    cursor: pointer;
    transition: all 0.3s;
}

.status-tag.on-sale.clickable:hover {
    background: #e0e0e0;
    border-color: #bbb;
}

.status-tag.on-sale.clickable:active {
    transform: scale(0.95);
}

/* 原购物车按钮（保留，但不使用） */
.cart-btn {
    width: 44px;
    height: 30px;
    background: linear-gradient(to right, #ff8c00, #ff5e00);
    border-radius: 15px 5px 5px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
}

.cart-btn i {
    font-size: 18px;
}

.cart-btn .plus {
    font-size: 12px;
    position: absolute;
    top: 2px;
    right: 5px;
}

/* 底部栏 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.footer-left i {
    font-size: 24px;
    color: #666;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.settle-btn {
    background: #fee65e;
    border: none;
    height: 40px;
    padding: 0 35px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* 抽屉内容 */
.drawer-content {
    padding: 10px 0;
}

.empty-state {
    padding-top: 50px;
}

/* 详情页样式 */
.detail-container {
    padding: 10px 15px 10px;
}

/* 倒计时横幅 */
.countdown-banner {
    margin: 0 0 10px 0;
    border-radius: 8px;
    overflow: hidden;
}

.countdown-content {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
}

.countdown-content.waiting {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.countdown-content.can-buy {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    animation: pulse 1.5s ease-in-out infinite;
}

.countdown-content.expired {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    color: #fff;
}

.countdown-content i {
    font-size: 18px;
    margin-right: 8px;
}

.countdown-text {
    letter-spacing: 1px;
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.detail-card {
    margin-bottom: 0; /* 移除下边距，让内容更紧凑 */
}

.avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.info-section {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 15px 10px 15px; /* 减少下边距 */
}

.error-state {
    padding-top: 50px;
}

/* Element UI 描述列表样式优化 */
.el-descriptions {
    margin-top: 10px;
}

/* 账号列表区域 */
.accounts-list-section {
    background: #fff;
    margin: 0 15px 100px 15px; /* 上边距改为0，减少间隙 */
    padding: 15px;
    border-radius: 12px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 5px;
    color: #409EFF;
}

.count-badge {
    font-size: 12px;
    color: #999;
    font-weight: normal;
    margin-left: 5px;
}

.accounts-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 表格行可点击样式 */
.accounts-table-wrapper .el-table__row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.accounts-table-wrapper .el-table__row:hover {
    background-color: #f5f7fa !important;
}

/* 移动端表格优化 */
@media (max-width: 768px) {
    .accounts-table-wrapper .el-table {
        font-size: 13px;
    }
    
    .accounts-table-wrapper .el-table th,
    .accounts-table-wrapper .el-table td {
        padding: 8px 5px;
    }
}

/* 抢购成功二维码区（置顶显示） */
.qrcode-section-top {
    margin: 10px 15px;
}

.qrcode-card {
    border: 2px solid #67c23a;
}

/* 抢购状态展示区（折叠日志） */
.order-status-section {
    margin: 10px 15px;
}

.status-logs {
    max-height: 300px;
    overflow-y: auto;
    background: #f5f7fa;
    border-radius: 8px;
    padding: 10px;
}

.log-item {
    padding: 5px 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.log-item.info {
    background: #e3f2fd;
    color: #1976d2;
}

.log-item.progress {
    background: #fff3e0;
    color: #f57c00;
}

.log-item.warning {
    background: #fff9c4;
    color: #f57f17;
}

.log-item.error {
    background: #ffebee;
    color: #c62828;
}

.log-time {
    font-family: monospace;
    margin-right: 10px;
    opacity: 0.7;
}

.log-message {
    flex: 1;
}

.empty-logs {
    padding: 20px;
    text-align: center;
    color: #909399;
}

/* 装备详情展示区 */
.equipment-section {
    margin: 10px 15px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.equipment-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 15px;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
}

.equipment-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: #f5f7fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #e4e7ed;
}

.equipment-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.image-slot {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    color: #909399;
    font-size: 24px;
}

/* 选项卡样式优化 */
.equipment-section .el-tabs__header {
    margin: 0;
    background: #f5f7fa;
}

.equipment-section .el-tabs__item {
    height: 40px;
    line-height: 40px;
    font-size: 14px;
}

.equipment-section .el-tabs__item.is-active {
    background: #fff;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .equipment-grid {
        padding: 10px;
        gap: 8px;
    }
    
    .equipment-item {
        width: 70px;
        height: 70px;
    }
}

/* 二维码展示区 */
.qrcode-section {
    margin-top: 15px;
}

.qrcode-info {
    text-align: center;
}

.qrcode-wrapper {
    padding: 20px 20px 10px;
}

.qrcode-img {
    max-width: 220px;
    width: 100%;
    border: 3px solid #67c23a;
    border-radius: 12px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(103, 194, 58, 0.3);
}

.qrcode-tip {
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #67c23a;
}

.order-id-tip {
    margin-top: 8px;
    font-size: 13px;
    color: #909399;
    font-family: monospace;
}

