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

/* 主页面购买按钮区域样式 */
.token-sale-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #2b2b2b;
    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: #1d0dff;
    text-shadow: 0 0 10px rgba(56, 59, 255, 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: #e0e0e0;
    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, #d2fbff 0%, #26e8fa 100%);
    border-radius: 6px;
    position: relative;
    animation: progressGlow 2s ease-in-out infinite alternate;
}

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

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

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

.price-label {
    color: #ffffff;
    font-size: 16px;
    margin-right: 10px;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.price-value {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    display: block;
    text-align: center;
    margin-top: 10px;
    /* 添加上边距10px */
    /* 居中显示 */
}

/* 购买按钮样式 */
.buy-titan-btn {
    position: relative;
    background: linear-gradient(135deg, #00eaff 0%, rgb(245, 250, 252) 100%);
    color: #000000;
    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(66, 66, 66, 0.4);
}

.buy-titan-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #00eaff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(41, 41, 41, 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, #000000 0%, #000000 100%);
    border: 2px solid #ffd56a23;
    border-radius: 20px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    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: #ffd56a;
    margin: 0;
    font-size: 22px;
}

.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(32, 32, 32, 0.05);
    border: 1px solid #ffd56a23;
    border-radius: 10px;
    padding: 20px;
}

.coin-header {
    color: #ffd56a;
    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, #ffd56a, transparent);
    margin: 5px 0;
}

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

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

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

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

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

.sol-input-group {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid #ffd56a23;
    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: #ffd56a;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.sol-input:focus {
    outline: none;
    border-color: #3b3b3b;
    box-shadow: 0 0 10px rgba(73, 73, 73, 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: #ffd56a;
    font-weight: 500;
}

.payment-notice {
    color: #000000;
    font-size: 13px;
    padding: 10px;
    background: #ffd56a;
    border-radius: 5px;
    border-left: 3px solid #ffffff;
}

/* 优势展示网格 */
.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 #ffd56a23;
    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;
    margin-bottom: 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, var(--accent), #f59e0b);
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 240, 29, 0.3);
    font-weight: bold;
    /* 字体加粗 */
}

.continue-btn:hover,
.paid-btn:hover,
.return-home-btn:hover {
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 224, 49, 0.3);
}

/* 确认订单页面样式 */
.step-indicator {
    text-align: center;
    color: #ffd56a;
    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: #ffd56a;
    font-weight: bold;
}

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

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

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

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

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

.payment-amount h5,
.wallet-address h5 {
    color: #ffd56a;
    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 #ffd56a23;
    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: #ffffff;
    border: 1px solid #ffd56a23;
    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: #ffd56a;
    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 #ffd56a23;
    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;
    }
}

/* 支付方式选择器样式 */
.payment-method-selector {
    margin-bottom: 20px;
    width: 100%;
}

.method-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.payment-method-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
}

.payment-method-select:focus {
    outline: none;
    border-color: #ffd56a;
    box-shadow: 0 0 0 3px rgba(253, 198, 48, 0.1);
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.payment-method-select:focus+.select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .payment-method-selector {
        margin-bottom: 15px;
    }

    .method-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .payment-method-select {
        padding: 10px 14px;
        font-size: 13px;
    }

    .select-arrow {
        right: 14px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .payment-method-selector {
        margin-bottom: 12px;
    }

    .method-label {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .payment-method-select {
        padding: 8px 12px;
        font-size: 12px;
    }

    .select-arrow {
        right: 12px;
        font-size: 10px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .method-label {
        color: #e1e5e9;
    }

    .payment-method-select {
        background: #2a2a2a;
        border-color: #4a4a4a;
        color: #e1e5e9;
    }

    .select-arrow {
        color: #999;
    }
}