@charset "UTF-8";
/* 页面主内容区 */
.page-title {
    text-align: center;
    padding: 40px 0 24px;
}

.badge {
    display: inline-block;
    background: #e8faf7;
    color: #3ec8b5;
    border-radius: 60px;
    font-size: 13px;
    padding: 6px 18px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.page-title h1 {
    font-size: 36px;
    margin-top: 16px;
    font-weight: 700;
    color: #0f172a;
}

.page-title h1 span {
    color: #3ec8b5;
}

.page-title p {
    color: #5b6e8c;
    margin-top: 8px;
}

/* 双栏布局 响应式 */
.content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    padding-bottom: 60px;
}

@media (max-width: 768px) {
    .content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .page-title h1 {
        font-size: 28px;
    }
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #edf2f7;
    margin-bottom: 24px;
    transition: 0.2s;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-card .price {
    font-size: 48px;
    font-weight: 800;
    color: #0f172a;
    margin: 12px 0 8px;
    letter-spacing: -1px;
}

.price-unit {
    font-size: 16px;
    font-weight: normal;
    color: #5b6e8c;
}

.refresh-badge {
    display: inline-block;
    background: #f1f5f9;
    border-radius: 40px;
    padding: 4px 12px;
    font-size: 12px;
    color: #3ec8b5;
    margin-top: 8px;
}

.notice-list {
    list-style: none;
    margin-top: 10px;
}

.notice-list li {
    margin: 12px 0;
    padding-left: 20px;
    position: relative;
    color: #475569;
    font-size: 14px;
}

.notice-list li:before {
    content: "•";
    color: #3ec8b5;
    font-weight: bold;
    font-size: 16px;
    position: absolute;
    left: 4px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
}

.fee-row:last-child {
    border-bottom: none;
}

/* 方向切换（购买/出售选项） */
.direction-switch {
    background: #fff;
    border-radius: 20px;
    padding: 6px;
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.dir-btn {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    background: #fff;
    color: #64748b;
    border: none;
}

.dir-btn.active {
    background: #3ec8b5;
    color: white;
    box-shadow: 0 4px 10px rgba(62, 200, 181, 0.2);
}

/* 表单样式 */
.formbox {
    background: #fff;
    border-radius: 28px;
    padding: 28px 30px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
}

.formbox h3 {
    font-size: 24px;
    margin-bottom: 6px;
}

.desc {
    color: #7e8b9e;
    font-size: 13px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-top: 18px;
    font-weight: 600;
    font-size: 14px;
}

input, select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-top: 8px;
    font-size: 15px;
    transition: 0.2s;
    background: #fff;
}

input:focus {
    outline: none;
    border-color: #3ec8b5;
    box-shadow: 0 0 0 3px rgba(62, 200, 181, 0.1);
}

.input-switch {
    display: flex;
    gap: 12px;
    margin: 12px 0 8px;
}

.switch-option {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 40px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.switch-option.active {
    background: #3ec8b5;
    color: white;
    border-color: #3ec8b5;
}

.min-notice {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
}

.check-group {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-group input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.check-group label {
    margin: 0;
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
    display: inline;
}

.terms-link {
    color: #3ec8b5;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px dashed #3ec8b5;
    transition: 0.2s;
}
.terms-link:hover {
    color: #2ba191;
    border-bottom-color: #2ba191;
}

.submit-btn {
    width: 100%;
    margin-top: 32px;
    padding: 16px;
    background: #3ec8b5;
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 8px 18px rgba(62, 200, 181, 0.25);
}

.submit-btn:hover {
    background: #31b19f;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(1px);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}
.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}
.modal-container {
    background: #fff;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 40px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.2s ease;
}
@keyframes modalFadeIn {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modal-header {
    padding: 20px 24px;
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.modal-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #94a3b8;
    transition: 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
}
.modal-close:hover {
    background: #f1f5f9;
    color: #3ec8b5;
}
.modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
}
.modal-body p {
    margin-bottom: 12px;
}
.modal-body strong {
    color: #0f172a;
}
@media (max-width: 768px) {
    .modal-container {
        width: 92%;
        max-height: 85vh;
    }
    .modal-header h3 {
        font-size: 18px;
    }
    .modal-body {
        padding: 20px;
        font-size: 13px;
    }
    
    /* 行情表格区域（横向滑动） */
    .market {
        padding: 40px 0;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .market-card {
        padding: 16px 8px;
        border-radius: 24px;
    }

    .market-card table {
        min-width: 640px;
        white-space: nowrap;
    }

    .market-card th,
    .market-card td {
        padding: 12px 12px;
        font-size: 13px;
    }

    .coin {
        gap: 10px;
    }

    .coin img {
        width: 28px;
        height: 28px;
    }
}


/* 行情区域 */
.market {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 36px;
    color: #0f172a;
}

.market-card {
    background: white;
    border-radius: 32px;
    padding: 20px 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 18px 16px;
    background: #fafcff;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

td {
    padding: 16px;
    border-bottom: 1px solid #edf2f7;
    font-weight: 500;
    color: #1e293b;
}

.coin {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.coin img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
    background: #f1f5f9;
}



