/* 购买TITAN代币弹窗样式 */

/* 主页面购买按钮区域样式 */
.token-sale-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #f76000;
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 0 30px rgba(247, 96, 0, 0.3);
}

.sale-header {
    margin-bottom: 25px;
}

.sale-title {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(247, 96, 0, 0.5);
}

.sale-subtitle {
    font-size: 16px;
    color: #cccccc;
    margin: 0;
}

.highlight {
    color: #f76000;
    text-shadow: 0 0 10px rgba(247, 96, 0, 0.8);
}

/* 预售进度条样式 */
.presale-progress {
    margin: 20px 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-label {
    color: #ffffff;
    font-weight: 500;
}

.progress-percentage {
    color: #f5e17a;
    font-weight: bold;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-bg {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #57370e 0%, #ffe898 100%);
    border-radius: 6px;
    position: relative;
    animation: progressGlow 2s ease-in-out infinite alternate;
}

@keyframes progressGlow {
    0% {
        box-shadow: 0 0 5px rgba(247, 96, 0, 0.5);
    }

    100% {
        box-shadow: 0 0 15px rgba(247, 96, 0, 0.8);
    }
}

/* 当前价格显示 */
.current-price {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 228, 137, 0.1);
    border: 1px solid #f5e17a;
    border-radius: 10px;
}

.price-label {
    color: #ffffff;
    font-size: 16px;
    margin-right: 10px;
}

.price-value {
    color: #f5e17a;
    font-size: 18px;
    font-weight: bold;
}

/* 购买按钮样式 */
.buy-titan-btn {
    position: relative;
    background: linear-gradient(135deg, #57370e 0%, #ffe898 100%);
    color: #ffffff;
    border: none;
    border-radius: 15px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(247, 96, 0, 0.4);
}

.buy-titan-btn:hover {
    background: linear-gradient(135deg, #ff8533 0%, #00FFFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(247, 96, 0, 0.6);
}

.buy-titan-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 20px;
}

.btn-text {
    font-size: 16px;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.buy-titan-btn:hover .btn-glow {
    left: 100%;
}

/* 弹窗基础样式 */
.buy-titan-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.buy-titan-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.buy-titan-modal .modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #f5e17a;
    border-radius: 20px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(247, 96, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 弹窗头部 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #333;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 18px 18px 0 0;
}

.modal-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 22px;
    text-shadow: 0 0 10px rgba(247, 96, 0, 0.5);
}

.close-btn {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
    line-height: 1;
}

.close-btn:hover {
    color: #f76000;
}

/* 弹窗内容区域 */
.buy-content,
.confirm-content,
.success-content {
    padding: 30px;
}

/* 购买详情样式 */
.purchase-details {
    margin-bottom: 25px;
}

.purchase-details h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
}

.coin-info {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.coin-header {
    color: #f5e17a;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.coin-subtitle {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 15px;
}

.coin-calculation {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.calc-label {
    color: #cccccc;
    font-size: 14px;
}

.calc-value {
    color: #ffffff;
    font-weight: 500;
}

.calc-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #f5e17a, transparent);
    margin: 5px 0;
}

.calc-item.total {
    font-weight: bold;
}

.calc-item.total .calc-label {
    color: #f5e17a;
}

.calc-item.total .calc-value {
    color: #f5e17a;
}

/* 付款详情样式 */
.payment-details {
    margin-bottom: 25px;
}

.payment-details h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
}

.sol-input-group {
    background: rgba(247, 96, 0, 0.05);
    border: 1px solid #f5e17a;
    border-radius: 10px;
    padding: 20px;
}

.sol-input-group label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.sol-input {
    width: 100%;
    padding: 12px 60px 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #333;
    border-radius: 8px;
    color: #f5e17a;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.sol-input:focus {
    outline: none;
    border-color: #f76000;
    box-shadow: 0 0 10px rgba(247, 96, 0, 0.3);
}

.input-suffix {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #cccccc;
    font-size: 14px;
    pointer-events: none;
}

.exchange-rate-info {
    margin-bottom: 15px;
}

.rate-text {
    color: #cccccc;
    font-size: 14px;
}

.rate-value {
    color: #f5e17a;
    font-weight: 500;
}

.payment-notice {
    color: #f5e17a;
    font-size: 13px;
    padding: 10px;
    background: rgba(247, 96, 0, 0.1);
    border-radius: 5px;
    border-left: 3px solid #f76000;
}

/* 优势展示网格 */
.advantages-section {
    margin-bottom: 25px;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.advantage-item:hover {
    border-color: rgba(247, 96, 0, 0.3);
}

.advantage-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.advantage-content h5 {
    color: #ffffff;
    font-size: 14px;
    margin: 0 0 5px 0;
}

.advantage-content p {
    color: #cccccc;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

/* 操作按钮样式 */
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.cancel-btn,
.continue-btn,
.paid-btn,
.return-home-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.continue-btn,
.paid-btn,
.return-home-btn {
    background: linear-gradient(135deg, #57370e 0%, #ffe898 100%);
    color: #f5e17a;
    box-shadow: 0 4px 15px rgba(247, 96, 0, 0.3);
}

.continue-btn:hover,
.paid-btn:hover,
.return-home-btn:hover {
    background: linear-gradient(135deg, #ff8533 0%, #00FFFF 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(247, 96, 0, 0.4);
}

/* 确认订单页面样式 */
.step-indicator {
    text-align: center;
    color: #f5e17a;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 5px;
}

.order-summary {
    margin-bottom: 25px;
}

.order-summary h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
}

.summary-items {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.item-label {
    color: #cccccc;
    font-size: 14px;
}

.item-value {
    color: #ffffff;
    font-weight: 500;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #00FFFF, transparent);
    margin: 10px 0;
}

.summary-item.total .item-label {
    color: #f5e17a;
    font-weight: bold;
}

.summary-item.total .item-value {
    color: #f5e17a;
    font-weight: bold;
}

/* 付款信息样式 */
.payment-info {
    margin-bottom: 25px;
}

.payment-info h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
}

.order-id {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 20px;
}

.payment-amount,
.wallet-address {
    margin-bottom: 20px;
}

.payment-amount h5,
.wallet-address h5 {
    color: #f5e17a;
    font-size: 16px;
    margin-bottom: 10px;
}

.amount-display,
.address-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 8px;
}

.amount-value,
.address-value {
    flex: 1;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    word-break: break-all;
}

.amount-currency {
    color: #00FFFF;
    font-weight: bold;
}

.copy-amount-btn,
.copy-address-btn {
    background: #f5e17a;
    border: none;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
}

.copy-amount-btn:hover,
.copy-address-btn:hover {
    background: #ff8533;
}

/* 二维码区域 */
.qr-code-section {
    margin-bottom: 20px;
}

.qr-code-section h5 {
    color: #f5e17a;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #f5e17a;
    border-radius: 12px;
    min-height: 200px;
    box-shadow: 0 4px 15px rgba(247, 96, 0, 0.1);
}

.qr-code-container canvas {
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.qr-placeholder {
    color: #cccccc;
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
    padding: 10px;
}

.qr-placeholder p {
    margin: 5px 0;
    color: #cccccc;
}

/* 成功页面样式 */
.success-content {
    text-align: center;
    padding: 40px 30px;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.success-content h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.success-info {
    margin-bottom: 30px;
}

.success-info p {
    color: #cccccc;
    font-size: 16px;
    margin: 10px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .buy-titan-modal .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .buy-content,
    .confirm-content,
    .success-content {
        padding: 20px;
    }

    .advantage-grid {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .cancel-btn,
    .continue-btn,
    .paid-btn,
    .return-home-btn {
        width: 100%;
    }

    .amount-display,
    .address-display {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .copy-amount-btn,
    .copy-address-btn {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .modal-header h3 {
        font-size: 18px;
    }

    .buy-titan-btn {
        padding: 12px 30px;
        font-size: 16px;
    }

    .success-content {
        padding: 30px 20px;
    }

    .success-icon {
        font-size: 50px;
    }

    .success-content h3 {
        font-size: 20px;
    }
}