/**
 * 金币页面专属：主容器、订单列表、官方认证、指引、分页
 */

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 16px 20px;
    min-height: calc(100vh - 150px);
}

/* 图标绝对定位在左侧，recycle-section 占满 1160px 与订单卡片同宽 */
.recycle-row {
    position: relative;
    margin-bottom: 30px;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}

/* 图标列：绝对定位到 recycle-row 左侧，不占行宽，recycle-section 仍为 1160px */
.recycle-row__icons {
    position: absolute;
    right: 100%;
    top: 0;
    bottom: 0;
    width: 220px;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 20px 20px 0;
    box-sizing: border-box;
}

/* 两个悬浮按钮：在列内流式排列，与边框留空，不压边、不重叠 */
.recycle-row .left-floating {
    position: relative;
    left: 0;
    top: auto;
    transform: none;
    z-index: 10;
    max-width: 100%;
}

/* recycle-section 占满整行，与订单卡片同宽 1160px */
.recycle-row .recycle-section {
    width: 100%;
    margin-bottom: 0;
}

/* 官方品质认证板块 */
.recycle-section {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto 30px;
    background: rgba(14, 32, 54, 0.9);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #808080;
    box-shadow: 0 8px 32px rgba(128, 128, 128, 0.2);
}

.recycle-header {
    margin-bottom: 25px;
    padding-left: 20px;
}

.recycle-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.recycle-main-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.golden-shield {
    font-size: 28px;
    color: var(--wow-gold);
}

.recycle-main-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--wow-gold);
}

.recycle-secondary-items {
    display: flex;
    align-items: center;
    gap: 15px;
}

.recycle-secondary-item {
    padding: 6px 12px;
    background: linear-gradient(135deg, rgb(102 98 73 / 20%) 0%, rgba(218, 165, 32, 0.2) 100%);
    border: 2px solid #808080;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.recycle-content {
    width: 100%;
    margin-bottom: 0;
}

.current-region-faction {
    background: rgba(14, 32, 54, 0.9);
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.region-value {
    font-size: 1.4rem;
    color: var(--wow-gold);
    font-weight: 700;
}

.gold-trade-container {
    display: flex;
    gap: 0;
    width: 100%;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    background: rgba(14, 32, 54, 0.9);
}

.gold-trade-section {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 出售板块：暖色底 + 左侧圆角 */
.gold-trade-section.sell-section {
    background: linear-gradient(135deg, rgba(40, 28, 24, 0.5) 0%, rgba(14, 32, 54, 0.9) 50%);
    border-radius: 0 0 0 10px;
}

.gold-trade-section.sell-section h3 {
    color: #ff9f7f;
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 2px solid rgba(255, 159, 127, 0.5);
}

/* 购买板块：冷色底 + 右侧圆角 */
.gold-trade-section.buy-section {
    background: linear-gradient(135deg, rgba(14, 32, 54, 0.9) 50%, rgba(20, 40, 60, 0.6) 100%);
    border-radius: 0 0 10px 0;
    border-left: 1px solid rgba(64, 224, 208, 0.25);
}

.gold-trade-section.buy-section h3 {
    color: var(--accent-cyan);
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 2px solid rgba(64, 224, 208, 0.4);
}

.gold-trade-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.ratio-display {
    background: rgba(12, 26, 41, 0.8);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
}

.ratio-format {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.ratio-format:last-child {
    margin-bottom: 0;
}

.red-number {
    color: #ff4757;
    font-weight: 700;
}

.recycle-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #a0c8ff;
    font-weight: 600;
}

.recycle-input-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(25, 46, 79, 0.8);
    border: 2px solid #808080;
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 1rem;
}

.recycle-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-label {
    color: #a0c8ff;
}

.result-value {
    font-weight: 700;
    color: #ff4757;
}

/* 回收区「立即出售 / 立即购买」按钮：统一大小与风格 */
.gold-trade-container .recycle-sell-btn,
.gold-trade-container .custom-buy-btn {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0c1a29;
    background: linear-gradient(135deg, #40E0D0 0%, #20B2AA 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.4);
    box-sizing: border-box;
}

.gold-trade-container .recycle-sell-btn:hover,
.gold-trade-container .custom-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 224, 208, 0.6);
}

/* 订单列表 */
.order-container {
    font-size: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 1160px;
    margin: 0 auto;
}

.order-item {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(14, 32, 54, 0.95) 100%);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #808080;
    box-shadow: 0 8px 32px rgba(128, 128, 128, 0.2);
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    font-size: 1rem;
}

/* 订单内容：五列布局（参考 gold_list 表格式）大区/详情 | 阵营 | 价格 | 比例 | 购买 */
.order-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.order-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
}

.order-column-detail {
    min-width: 180px;
    font-size: 13px;
}

.order-detail-row1,
.order-detail-row2 {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: center;
}

.order-detail-row2 {
    margin-top: 6px;
}

.order-column-price {
    flex: 0 0 auto;
    min-width: 100px;
}

.order-column-ratio {
    flex: 0 0 auto;
    min-width: 100px;
}

.order-column-action {
    flex: 0 0 auto;
    width: 120px;
    align-items: center;
    justify-content: center;
}

.order-price-value {
    font-weight: 700;
    color: #ff4757;
    font-size: 36px;
}

.order-ratio-line {
    font-size: 13px;
    color: orange;
}

.order-ratio-line .red-number {
    color: #ff4757;
}

.order-item:hover {
    box-shadow: 0 4px 20px rgba(128, 128, 128, 0.3);
}

.hot-sale-tag {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: orange;
    padding: 4px 8px;
    border-radius: 0 0 0 8px;
}

.hot-sale-text {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.order-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 2px 0;
    min-height: 40px;
    min-width: 0;
}

.gold-icon {
    color: var(--wow-gold);
    font-size: 16px;
    flex-shrink: 0;
    margin-right: 4px;
}

.order-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
    min-width: 0;
    flex: 0 1 auto; /* 不拉伸，紧挨 tags */
}

.order-title-brand {
    color: var(--wow-gold);
    font-weight: 700;
}

.order-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 0 auto;
    margin-left: 0; /* 紧挨 order-title */
}

.tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tag-safe {
    background: #4CAF50;
    color: #fff;
}

.tag-black-gold {
    background: #000;
    color: #fff;
}

.tag-fast {
    background: #ff4757;
    color: #fff;
}


.footer-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-label {
    color: #b0c8e0;
}

.footer-value {
    color: #ff4757;
    font-weight: 700;
}

.order-buy-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.order-buy-btn:hover {
    background: #ff3742;
    transform: translateY(-1px);
}

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

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--primary-color);
    display: block;
}

.empty-state-hint {
    margin-top: 8px;
    font-size: 14px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 16px;
    border: 1px solid #3a5775;
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--light-text);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #808080;
    border-color: #808080;
}

.page-btn.active {
    background: #808080;
    color: white;
    border-color: #808080;
}

@media (max-width: 768px) {
    .main-container {
        padding: 20px 15px;
    }
    .recycle-row {
        display: flex;
        flex-direction: column;
    }
    .recycle-row__icons {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        min-height: 140px;
        padding: 20px;
        justify-content: center;
    }
    .recycle-row .left-floating {
        left: 0;
    }
    .gold-trade-container {
        flex-direction: column;
    }
    .order-item {
        padding: 10px 12px;
    }
    .order-title {
        font-size: 1.1rem;
    }
}
