/* 全新代幣充值頁面樣式 - 簡潔列表風格 */

/* 重置和基礎樣式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 主容器 */
.main {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    min-height: 100vh;
    padding: 0;
}

.coins-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* 頁面標題區域 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #CC0303;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.badge-icon {
    font-size: 16px;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.2;
}

.page-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    min-width: 120px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #CC0303;
    margin-bottom: 8px;
}

.stat-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 服務狀態提示 */
.service-notice {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-icon {
    font-size: 20px;
    color: #4caf50;
}

.notice-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notice-content strong {
    font-size: 14px;
    font-weight: 700;
    color: #2e7d32;
}

.notice-content span {
    font-size: 13px;
    color: #4caf50;
}

/* 用戶信息區域 */
.user-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 40px;
}

.balance-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.balance-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.balance-value {
    font-size: 20px;
    font-weight: 700;
    color: #CC0303;
}

.balance-login{
    font-size: 15px;
    color: #fff;
    background-color: #CC0303;
    padding: 5px 15px;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
}

.history-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1565c0;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.history-link:hover {
    background: rgba(21, 101, 192, 0.1);
}

.link-text {
    font-size: 14px;
    font-weight: 600;
}

.link-arrow {
    font-size: 16px;
    font-weight: 700;
}

/* 套餐選擇區域 */
.packages-container {
    margin-bottom: 40px;
}

.packages-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
    text-align: center;
}

.packages-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 套餐項目 */
.package-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.package-item:hover {
    border-color: #CC0303;
    box-shadow: 0 4px 12px rgba(204, 3, 3, 0.1);
    transform: translateY(-2px);
}

.package-item.featured {
    border-color: #CC0303;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.featured-tag {
    position: absolute;
    top: -8px;
    right: 20px;
    background: #CC0303;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.package-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.package-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.package-coins {
    font-size: 16px;
    font-weight: 600;
    color: #CC0303;
}

.package-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.package-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 120px;
}

.price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: #CC0303;
}

.price-save {
    font-size: 12px;
    color: #4caf50;
    font-weight: 600;
}

.buy-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.buy-btn.basic {
    background: #e0e0e0;
    color: #666;
}

.buy-btn.basic:hover {
    background: #bdbdbd;
    color: #333;
}

.buy-btn.professional {
    background: #CC0303;
    color: white;
}

.buy-btn.professional:hover {
    background: #D00D09;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(204, 3, 3, 0.3);
}

.buy-btn.premium {
    background: #D00D09;
    color: white;
}

.buy-btn.premium:hover {
    background: #CC0303;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(208, 13, 9, 0.3);
}




/* 站內風格彈窗（layui） */
.layui-layer-dialog.layui-layer {
    border-radius: 11px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    min-width: 260px;
}

.layui-layer-dialog .layui-layer-title {
    height: 46px;
    line-height: 46px;
    background: #111;
    color: #fff;
    border-bottom: 1px solid #2A2A2A;
    font-size: 15px;
    font-weight: 600;
    padding: 0 46px 0 16px;
}

.layui-layer-dialog .layui-layer-setwin .layui-layer-close1 {
    opacity: 0.8;
    padding: 0;
    margin: 0;
    line-height: 16px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.layui-layer-dialog .layui-layer-setwin .layui-layer-close1:hover {
    opacity: 1;
}

.layui-layer-dialog .layui-layer-content {
    background: #fff;
    color: #333;
    font-size: 15px;
    line-height: 1.7;
    padding: 25px 18px 25px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.layui-layer-dialog .layui-layer-setwin{
    position: absolute;
    right: 13px;
    top: 13px;
    font-size: 8px;
    line-height: initial;
    color: #fff;
    background: #CC0303;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layui-layer-dialog .layui-layer-btn {
    padding: 0 16px 16px;
    text-align: center;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.layui-layer-dialog .layui-layer-btn a {
    height: 35px;
    line-height: 35px;
    border-radius: 30px;
    padding: 0 22px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
}

.layui-layer-dialog .layui-layer-btn .layui-layer-btn0 {
    background: #CC0303;
    border-color: #CC0303;
    color: #fff;
    flex: 1;
}

.layui-layer-dialog .layui-layer-btn .layui-layer-btn0:hover {
    background: #B30202;
    border-color: #B30202;
}

.layui-layer-dialog .layui-layer-btn .layui-layer-btn1 {
    background: #fff;
    border-color: #D9D9D9;
    color: #333;
    flex: 1;
}

.layui-layer-dialog .layui-layer-btn .layui-layer-btn1:hover {
    border-color: #CC0303;
    color: #CC0303;
}

.layui-layer-dialog .layui-layer-content .layui-layer-face{
    font-size: 21px;
    position: relative;
    top: 0;
    left: 0;
}



/* 響應式設計 */
@media (max-width: 768px) {
    .coins-container {
        padding: 20px 15px;
        margin: 0;
        box-shadow: none;
    }

    .page-title {
        font-size: 28px;
    }

    .page-description {
        font-size: 15px;
    }

    .stats-row {
        gap: 20px;
    }

    .stat-box {
        padding: 16px;
        min-width: 100px;
    }

    .stat-value {
        font-size: 24px;
    }

    .user-section {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .package-item {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .package-price {
        align-items: center;
    }

    .buy-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 24px;
    }

    .stats-row {
        /* flex-direction: column; */
        gap: 12px;
    }

    .stat-box {
        padding: 12px;
    }

    .stat-value {
        font-size: 20px;
    }

    .package-item {
        padding: 20px;
    }

    .package-name {
        font-size: 16px;
    }

    .package-coins {
        font-size: 15px;
    }

    .price-current {
        font-size: 18px;
    }
}

/* 動畫效果 */
.package-item {
    animation: slideInLeft 0.5s ease-out;
}

.package-item:nth-child(1) {
    animation-delay: 0.1s;
}

.package-item:nth-child(2) {
    animation-delay: 0.2s;
}

.package-item:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 焦點狀態 */
.buy-btn:focus,
.history-link:focus {
    outline: 2px solid #CC0303;
    outline-offset: 2px;
}

/* 滾動效果 */
.package-item {
    scroll-margin-top: 100px;
}