* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Alexandria';
    src: url(./font/Alexandria-VariableFont_wght.ttf) format("truetype");
    font-style: normal;
}

.font-number {
    font-family: 'Alexandria', arial, sans-serif;
    font-weight: 600;
}

@font-face {
    font-family: "footerfont";
    src: url("./font/footerfont.eot"); /* IE9 */
    src: url("./font/footerfont.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
    
    url("./font/footerfont.woff") format("woff"), /* chrome、firefox */
    url("./font/footerfont.ttf") format("truetype"), /* chrome、firefox、opera、Safari, Android, iOS 4.2+ */
    
    url("./font/footerfont.svg#footerfont") format("svg"); /* iOS 4.1- */
    font-style: normal;
    font-weight: normal;
}

body {
    font-family: 'Alexandria', Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    margin: 0;
    padding: 0;
    color: #e6eef8;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.wrap {
    max-width: 1600px;
    margin: 0 auto;
}

/* ---------------- 顶部 header ---------------- */
.header {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.6); 
    -webkit-backdrop-filter: blur(10px);        
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left img {
    height: 28px;
    width: auto;
}
/* --- 手机端适配 (max-width: 768px) --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column; 
        gap: 15px;
    }

    .header-left {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .contact {
        width: 100%;
    }

    .contact-row {
        justify-content: center; 
    }

    /* 保持 Toolbar 并列而不换行 */
    .toolbar {
        flex-direction: row; 
        flex-wrap: nowrap;
    }
    
    input.search {
        width: 70%;
    }
    
    select.sort {
        width: 28%;
        padding: 10px 5px;
        font-size: 12px;
    }
}

/* 语言切换 */
.lang-switch {
    background: #1e293b;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #9097ac;
    background-image: linear-gradient(345deg, #ffffff 0%, #e4e4e4 100%);
    box-shadow: 6px 6px 12px 0 rgb(169 169 169 / 10%);
    border: 2px solid #fff;
    font-weight: 600;
    font-family: 'Alexandria';
}

.lang-switch:hover {
    /* background: #334155; */
    color: #006eff;
}

.contact {
    font-size: 14px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
}

.contact-icon {
    width: 30px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    fill: #20232b;
}

.contact-icon:hover {
    transform: scale(1.3);
    fill: #2b76ff;
}

/* 二维码弹窗 */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.qr-modal.show {
    display: flex;
}

.qr-content {
    background: #1e293b;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    max-width: 90%;
}

.qr-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-content h3 {
    margin: 0 0 20px 0;
}

.qr-content img {
    width: 200px;
    height: 200px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .contact {
        width: 100%;
        text-align: left;
    }

    .contact-row {
        justify-content: space-around;
    }
}

/* ---------------- 工具栏(搜索 + 排序) ---------------- */
.toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    gap: 10px;
    flex-direction: row;
    align-content: flex-start;
}

input.search {
    padding: 10px 14px;
    max-width: 180px;
    border-radius: 12px;
    outline: none;
    font-size: 14px;
    font-weight: bold;
    color: #4b525b;
    background: #f3f5f8;
    border: 0;
    box-shadow: inset -4px -4px 8px #f1f1f1, inset 4px 4px 8px #e1e1e1;
    transition: all .15s ease-in-out;
    flex: 1; 
    min-width: 0; 
}

select.sort {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    color: #4b525b;
    background: #f3f5f8;
    border: 0;
    box-shadow: inset -4px -4px 8px #f1f1f1, inset 4px 4px 8px #e1e1e1;
    transition: all .15s ease-in-out;
    flex-shrink: 0; 
    width: auto;
}
/* --- 手机端适配 (max-width: 768px) --- */
@media (max-width: 768px) {
    .toolbar {
        flex-direction: row; 
        flex-wrap: nowrap;
    }
    
    input.search {
        width: 70%; 
    }
    
    select.sort {
        width: 28%; 
        padding: 10px 5px;
        font-size: 12px;
    }
}

/* ---------------- domain布局  ---------------- */

.container {
    padding: 0px 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    width: 100%;
    aspect-ratio: 16 / 5;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 6px 6px 15px 0 rgb(136 167 225 / 10%), -6px -6px 15px 0 #fff;
    transition: all 0.2s;
}

.card:hover {
    transform: scale(1.03);
    /* box-shadow: 0 12px 30px rgba(2, 6, 23, 0.9); */
}

.card .img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .4s ease;
}

.card:hover .img {
    transform: scale(1.08);
}

.price {
    top: 0px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: absolute;
    right: 0;
    font-weight: 400;
    font-size: 12px;
    color: #fff;
    padding: 4px 10px;
    background: linear-gradient(94.97deg, #ff8c4d 12.1%, #ff5a67 97.58%);
    border-radius: 0;
    border-bottom-left-radius: 12px;
}

/* 描述 */
.desc {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px;
    font-size: 14px;
    color: #fff;
    opacity: 0;
    transform: translateY(12px);
    transition: 0.35s;
    background: linear-gradient(90deg, rgb(0 0 0 / 40%), rgba(0, 0, 0, 0));
}

.card:hover .desc {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------- 分页 ---------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 50px;
}

.page-btn {
    padding: 5px 12px;
    background: #1e293b;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    color: #20232b;
    background-color: #f0f2f7;
    border-color: transparent;
    box-shadow: 8px 8px 16px rgb(67 71 82 / 15%), -8px -8px 16px rgba(255, 255, 255, 1), inset 0px 0px 4px rgba(255, 255, 255, 0.2), inset 8px 8px 16px rgba(55, 84, 170, 0), inset -8px -8px 20px rgba(255, 255, 255, 0), 0px 0px 4px rgba(255, 255, 255, 0) !important;
    transition: box-shadow 0.25s ease !important;
    font-family: 'Alexandria';
}

.page-btn.active {
    /* background: #2563eb; */
}

.page-btn:hover {
    background: #334155;
    color: #20232b;
    background-color: #f0f2f7;
    border-color: transparent;
    box-shadow: 8px 8px 16px rgba(55, 84, 170, .15), -8px -8px 20px rgba(255, 255, 255, 1), inset 0px 0px 4px rgba(255, 255, 255, 0), inset 8px 8px 16px rgba(55, 84, 170, .15), inset -8px -8px 20px rgba(255, 255, 255, 1), 0px 0px 4px rgba(255, 255, 255, .2) !important;
}

/* ---------------- 交易方法区域 ---------------- */
.transaction-section {
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    background: linear-gradient(180deg, #f0f2f7, #fff);
    border: 2px solid #fff;
    box-shadow: 6px 6px 15px 0 rgb(136 167 225 / 10%), -6px -6px 15px 0 #fff;
    transition: all 0.2s;
}

.transaction-section h2 {
    font-size: 28px;
    margin: 0 0 30px 0;
    text-align: center;
    color: #20232b;
}

.transaction-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.step {
    background: #0f172a;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    background: linear-gradient(180deg, #f0f2f7, #fff);
    border: 2px solid #fff;
    box-shadow: 6px 6px 15px 0 rgb(136 167 225 / 10%), -6px -6px 15px 0 #fff;
    transition: all 0.2s;
}

.step-number {
    display: inline-block;
    color: #2b76ff;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 15px;
    font-family: 'Alexandria';
    font-size: 3rem;
}

.step h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #20232b;
}

.step p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
}

.platforms {
    text-align: center;
}

.platforms h3 {
    font-size: 20px;
    margin: 0 0 20px 0;
    color: #3c3e46;
}

.platform-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.platform-item {
    background: #0f172a;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    color: #20232b;
    transition: all 0.2s;
    cursor: pointer;
    font-family: 'Alexandria';
    background-image: linear-gradient(345deg, #ffffff 0%, #e4e4e4 100%);
    box-shadow: 6px 6px 12px 0 rgb(169 169 169 / 10%);
    border: 2px solid #fff;
}

.platform-item:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .transaction-section {
        padding: 25px 20px;
    }

    .transaction-steps {
        grid-template-columns: 1fr;
    }
}

/* 小卡片适配 */
@media (max-width: 400px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .price {
        right: -20px;
        padding: 6px 30px;
        font-size: 12px;
    }
}

/* ---------------- 底部 ---------------- */
.footer {
    background: #ffffff00;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: "footerfont";
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-slogan {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    line-height: 1.8;
    color: #20232b !important;
}

.footer-copyright {
    font-size: 0.75rem;
    margin: 0;
    font-family: 'Alexandria', arial, sans-serif;
    font-weight: 600;
    color: #80848c !important;
}

@media (max-width: 768px) {
    .footer-slogan {
        font-size: 2rem;
    }

    .footer-copyright {
        font-size: 13px;
    }
}