/* 基础样式 */
:root {
    --bg-dark: #1A1814;
    --bg-medium: #262320;
    --text-primary: #F3BA2F;
    --text-light: #FFFFFF;
    --text-gray: #B8A994;
    --accent-yellow: #F3BA2F;
    --accent-dark: #262320;
}

html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    min-height: 100vh;
    background-color: var(--bg-dark);
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    border-style: none;
}

/* 交互元素样式 */
.exchange-btn {
    background-color: var(--accent-yellow) !important;
    color: var(--bg-dark) !important;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    cursor: pointer;
}

.exchange-btn:hover {
    background-color: #E3AA1F !important;
}

.feature-card {
    background-color: var(--bg-medium);
    border: 1px solid rgba(243, 186, 47, 0.1);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-yellow);
    box-shadow: 0 8px 24px rgba(243, 186, 47, 0.1);
}

.feature-card i {
    color: var(--accent-yellow);
}

/* 表格样式 */
table {
    border-collapse: collapse;
    width: 100%;
}

table th, table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(243, 186, 47, 0.1);
}

table th {
    background-color: var(--bg-medium);
    border-bottom: 2px solid var(--accent-yellow);
    font-weight: 600;
}

/* 响应式布局 */
@media screen and (max-width: 1024px) {
    .max-w-\[1440px\] {
        max-width: 100%;
    }

    .px-10 {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media screen and (max-width: 768px) {
    header .flex.gap-4 {
        display: none;
    }

    header .max-w-\[1440px\] {
        justify-content: center;
    }

    section.grid.grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .pt-32 {
        padding-top: 100px;
    }

    .mb-20 {
        margin-bottom: 40px;
    }

    section.relative.overflow-hidden .flex.gap-6 {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 20px;
    }

    section.relative.overflow-hidden .max-w-xl {
        max-width: 100%;
        text-align: center;
    }

    section.relative.overflow-hidden.mb-20.h-\[300px\] {
        height: auto;
        min-height: 400px;
        padding-bottom: 30px;
    }

    section.relative.overflow-hidden .max-w-\[1440px\] .flex.items-center.justify-between {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 30px;
    }

    .exchange-cards .text-center {
        margin-bottom: 16px;
    }

    .exchange-cards .exchange-btn {
        width: 200px !important;
    }
}

@media screen and (max-width: 640px) {
    .px-10 {
        padding-left: 16px;
        padding-right: 16px;
    }

    footer .flex.justify-between {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    footer .flex.justify-between > div {
        text-align: center;
    }

    .h-\[300px\] {
        height: auto;
        min-height: 200px;
    }

    section.relative.overflow-hidden img.h-\[300px\] {
        height: 100%;
        min-height: 200px;
        position: absolute;
    }
}

/* 打印样式 */
@media print {
    body {
        background-color: white;
        color: black;
    }

    header, footer {
        display: none;
    }
}

/* 无障碍支持 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 焦点样式 */
:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
}

@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 24px;
    }
}

/* 添加新的样式用于移动端下的交易所卡片 */
.mobile-exchange-section {
    display: none;
    padding: 20px 0;
    background-color: var(--bg-medium);
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .mobile-exchange-section {
        display: block;
        margin-top: 0;
        padding: 12px;
        order: 1;
    }

    .mobile-exchange-section .max-w-\[1440px\] {
        padding: 0 12px;
    }

    .mobile-exchange-cards {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .mobile-exchange-card {
        background: var(--bg-medium);
        border: 1px solid rgba(243, 186, 47, 0.1);
        border-radius: 16px;
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        width: 100%;
        cursor: pointer;
    }

    .mobile-exchange-card:hover {
        border-color: var(--accent-yellow);
        box-shadow: 0 8px 24px rgba(243, 186, 47, 0.1);
    }

    .mobile-exchange-card:active {
        transform: translateY(0);
    }

    .mobile-exchange-card .header {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-exchange-card .icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: var(--bg-dark);
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .mobile-exchange-card:hover .icon {
        transform: scale(1.1);
    }

    .mobile-exchange-card .name {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-light);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .mobile-exchange-card .desc {
        font-size: 14px;
        color: var(--text-gray);
    }

    .mobile-exchange-card .buttons {
        display: flex;
        gap: 8px;
    }

    /* 币安按钮样式 */
    .mobile-exchange-card:nth-child(1) {
        border: 1px solid var(--accent-yellow);
        background: rgba(243, 186, 47, 0.1);
    }

    .mobile-exchange-card:nth-child(1) .buttons a:first-child {
        background: var(--accent-yellow);
        color: black;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(243, 186, 47, 0.2);
    }

    .mobile-exchange-card:nth-child(1) .buttons a:first-child:hover {
        background: #E3AA1F;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(243, 186, 47, 0.3);
    }

    .mobile-exchange-card:nth-child(1) .buttons a:last-child {
        background: var(--bg-dark);
        color: var(--accent-yellow);
        border: 1px solid var(--accent-yellow);
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .mobile-exchange-card:nth-child(1) .buttons a:last-child:hover {
        background: rgba(243, 186, 47, 0.1);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(243, 186, 47, 0.1);
    }

    /* 欧易按钮样式 */
    .mobile-exchange-card:nth-child(2) .buttons a:first-child {
        background: var(--text-primary);
        color: var(--text-light);
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .mobile-exchange-card:nth-child(2) .buttons a:first-child:hover {
        background: #1B66E8;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(33, 120, 255, 0.3);
    }

    .mobile-exchange-card:nth-child(2) .buttons a:last-child {
        background: var(--bg-dark);
        color: var(--text-primary);
        border: 1px solid var(--text-primary);
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .mobile-exchange-card:nth-child(2) .buttons a:last-child:hover {
        background: rgba(33, 120, 255, 0.1);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(33, 120, 255, 0.1);
    }

    /* Gate按钮样式 */
    .mobile-exchange-card:nth-child(3) .buttons a:first-child {
        background: #2178FF;
        color: var(--text-light);
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .mobile-exchange-card:nth-child(3) .buttons a:first-child:hover {
        background: #1B66E8;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(33, 120, 255, 0.3);
    }

    .mobile-exchange-card:nth-child(3) .buttons a:last-child {
        background: var(--bg-dark);
        color: #2178FF;
        border: 1px solid #2178FF;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .mobile-exchange-card:nth-child(3) .buttons a:last-child:hover {
        background: rgba(33, 120, 255, 0.1);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(33, 120, 255, 0.1);
    }

    .mobile-exchange-card .buttons a {
        flex: 1;
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 14px;
        text-align: center;
        font-weight: 500;
        display: block;
        text-decoration: none;
        white-space: nowrap;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .mobile-exchange-card .buttons a:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .mobile-exchange-card .buttons a:active {
        transform: translateY(0);
        box-shadow: none;
    }

    /* 修改Gate图标颜色 */
    .mobile-exchange-card:nth-child(3) .icon i {
        color: #2178FF;
    }
}

@media screen and (max-width: 480px) {
    .mobile-exchange-section {
        padding: 8px;
    }

    .mobile-exchange-section .max-w-\[1440px\] {
        padding: 0 8px;
    }

    .mobile-exchange-cards {
        gap: 8px;
    }

    .mobile-exchange-card {
        padding: 12px;
    }

    .mobile-exchange-card .buttons {
        gap: 6px;
    }

    .mobile-exchange-card .buttons a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* 添加动画关键帧 */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 交易所卡片的悬停效果 */
.exchange-card .exchange-btn {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.exchange-card .exchange-btn:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* 移动端下的按钮样式优化 */
@media screen and (max-width: 768px) {
    .mobile-exchange-card .buttons a,
    .exchange-card .flex.gap-2 a {
        padding: 8px 16px;
        font-weight: 500;
        min-width: 80px;
    }
}

header {
    background-color: var(--bg-medium);
    border-bottom: 1px solid rgba(243, 186, 47, 0.1);
}

header h1 {
    color: var(--accent-yellow);
}

.mobile-exchange-section {
    background-color: var(--bg-medium);
}

footer {
    background-color: var(--bg-medium);
    border-top: 1px solid rgba(243, 186, 47, 0.1);
}

footer h3 {
    color: var(--accent-yellow);
}

/* 修改社交媒体图标颜色 */
.social-icons a {
    color: var(--accent-yellow);
}

.social-icons a:hover {
    color: #E3AA1F;
}

/* 修改移动端菜单样式 */
#mobile-menu {
    background-color: var(--bg-dark);
}

#mobile-menu .exchange-btn {
    background-color: var(--accent-yellow);
    color: var(--bg-dark);
}

/* 修改标签样式 */
.rounded-button {
    background-color: var(--bg-dark);
    color: var(--accent-yellow);
    border: 1px solid rgba(243, 186, 47, 0.1);
}

/* 修改桌面版Gate按钮样式 */
.exchange-cards .exchange-card:nth-child(3) .flex.gap-2 a:first-child {
    background: #2178FF;
    color: white;
    transition: all 0.3s ease;
}

.exchange-cards .exchange-card:nth-child(3) .flex.gap-2 a:first-child:hover {
    background: #1B66E8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 120, 255, 0.3);
}

.exchange-cards .exchange-card:nth-child(3) .flex.gap-2 a:last-child {
    background: var(--bg-dark);
    color: #2178FF;
    border: 1px solid #2178FF;
    transition: all 0.3s ease;
}

.exchange-cards .exchange-card:nth-child(3) .flex.gap-2 a:last-child:hover {
    background: rgba(33, 120, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 120, 255, 0.1);
}

/* 修改PC端交易所卡片样式 */
.exchange-cards .exchange-card .exchange-btn {
    background: var(--bg-dark) !important;
    border: 1px solid rgba(243, 186, 47, 0.1);
}

/* 币安按钮样式调整 */
.exchange-cards .exchange-card:nth-child(1) .flex.gap-2 a:first-child {
    background: #F3BA2F;
    color: #000000;
    font-weight: 600;
    transition: all 0.3s ease;
}

.exchange-cards .exchange-card:nth-child(1) .flex.gap-2 a:first-child:hover {
    background: #E3AA1F;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 186, 47, 0.3);
}

.exchange-cards .exchange-card:nth-child(1) .flex.gap-2 a:last-child {
    background: var(--bg-dark);
    color: #F3BA2F;
    border: 1px solid #F3BA2F;
    transition: all 0.3s ease;
}

.exchange-cards .exchange-card:nth-child(1) .flex.gap-2 a:last-child:hover {
    background: rgba(243, 186, 47, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 186, 47, 0.1);
}

/* 欧易按钮样式调整 */
.exchange-cards .exchange-card:nth-child(2) .flex.gap-2 a:first-child {
    background: #00B812;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.exchange-cards .exchange-card:nth-child(2) .flex.gap-2 a:first-child:hover {
    background: #009F0F;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 184, 18, 0.3);
}

.exchange-cards .exchange-card:nth-child(2) .flex.gap-2 a:last-child {
    background: var(--bg-dark);
    color: #00B812;
    border: 1px solid #00B812;
    transition: all 0.3s ease;
}

.exchange-cards .exchange-card:nth-child(2) .flex.gap-2 a:last-child:hover {
    background: rgba(0, 184, 18, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 184, 18, 0.1);
}

/* 修改欧易图标和文字颜色 */
.exchange-cards .exchange-card:nth-child(2) .exchange-btn span.text-white {
    color: #00B812;
}

.exchange-cards .exchange-card:nth-child(2) .exchange-btn span.text-gray-400 {
    color: #009F0F;
}

/* 交易所卡片悬停效果 */
.exchange-cards .exchange-card .exchange-btn:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.exchange-cards .exchange-card:nth-child(1) .exchange-btn:hover {
    background: rgba(243, 186, 47, 0.1) !important;
    box-shadow: 0 8px 24px rgba(243, 186, 47, 0.15);
}

.exchange-cards .exchange-card:nth-child(2) .exchange-btn:hover {
    background: rgba(33, 120, 255, 0.1) !important;
    box-shadow: 0 8px 24px rgba(33, 120, 255, 0.15);
}

.exchange-cards .exchange-card:nth-child(3) .exchange-btn:hover {
    background: rgba(33, 120, 255, 0.1) !important;
    box-shadow: 0 8px 24px rgba(33, 120, 255, 0.15);
}

/* 创建固定在屏幕底部的移动端注册按钮 */
.mobile-fixed-cta {
    display: none;
}

@media screen and (max-width: 768px) {
    .mobile-fixed-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(26, 24, 20, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 14px 20px;
        z-index: 100;
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.4);
        border-top: 1px solid rgba(243, 186, 47, 0.2);
        justify-content: center;
        align-items: center;
        gap: 16px;
    }

    .mobile-fixed-cta a {
        flex: 1;
        padding: 14px 16px;
        border-radius: 12px;
        text-align: center;
        font-weight: 700;
        font-size: 16px;
        max-width: 180px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
        text-decoration: none;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.3s ease;
    }

    .mobile-fixed-cta .register-btn {
        background: linear-gradient(135deg, #F3BA2F, #E3AA1F);
        color: black;
        transform: scale(1.05);
    }

    .mobile-fixed-cta .download-btn {
        background: rgba(38, 35, 32, 0.9);
        color: var(--accent-yellow);
        border: 1px solid var(--accent-yellow);
    }

    .mobile-fixed-cta a:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    .mobile-fixed-cta a:active {
        transform: translateY(1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    /* 为底部按钮添加空间 */
    footer {
        margin-bottom: 80px;
        padding-bottom: 10px;
    }

    /* 增强移动端卡片按钮样式 */
    .mobile-exchange-card .buttons a {
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 600;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        letter-spacing: 0.5px;
    }

    .mobile-exchange-card .buttons a:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    }

    /* 币安按钮样式 - 更醒目 */
    .mobile-exchange-card:nth-child(1) .buttons a:first-child {
        background: linear-gradient(135deg, #F3BA2F, #E3AA1F);
        color: black;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(243, 186, 47, 0.3);
        transform: scale(1.05);
    }

    .mobile-exchange-card:nth-child(1) .buttons a:first-child:hover {
        background: linear-gradient(135deg, #F6C645, #F3BA2F);
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 6px 16px rgba(243, 186, 47, 0.4);
    }

    /* 欧易按钮样式增强 */
    .mobile-exchange-card:nth-child(2) .buttons a:first-child {
        background: linear-gradient(135deg, #00B812, #009F0F);
        color: white;
        font-weight: 700;
        transition: all 0.3s ease;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 184, 18, 0.3);
    }

    .mobile-exchange-card:nth-child(2) .buttons a:first-child:hover {
        background: linear-gradient(135deg, #00C915, #00B812);
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 184, 18, 0.4);
    }

    /* Gate按钮样式增强 */
    .mobile-exchange-card:nth-child(3) .buttons a:first-child {
        background: linear-gradient(135deg, #2178FF, #1B66E8);
        color: white;
        font-weight: 700;
        transition: all 0.3s ease;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(33, 120, 255, 0.3);
    }

    .mobile-exchange-card:nth-child(3) .buttons a:first-child:hover {
        background: linear-gradient(135deg, #4189FF, #2178FF);
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 6px 16px rgba(33, 120, 255, 0.4);
    }

    .mobile-exchange-card {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .mobile-exchange-card:hover {
        box-shadow: 0 8px 24px rgba(243, 186, 47, 0.15);
        transform: translateY(-2px);
    }

    .mobile-exchange-card .buttons {
        gap: 12px;
        margin-top: 4px;
    }
}

@media screen and (max-width: 480px) {
    .mobile-exchange-section {
        margin-top: -15px; /* 移动上方，使卡片更醒目 */
    }

    .mobile-exchange-cards {
        gap: 16px; /* 增加卡片间距，使每张卡片更突出 */
    }

    .mobile-exchange-card {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    .mobile-exchange-card .buttons {
        gap: 10px;
        margin-top: 8px;
    }

    .mobile-exchange-card .buttons a {
        padding: 14px 12px;
        font-size: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
}