* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
    height: auto;
}

body {
    background: #0b0c14;
    color: #fff;
    padding-bottom: 80px;
    overflow-x: hidden;
    width: 100%;
    height: auto;
}
/* ========== 新增顶部导航栏样式 ========== */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #0b0c14;
    position: sticky;
    top: 0;
    z-index: 99;
}

.header-logo {
    height: 32px;
    /*            background: linear-gradient(90deg,#38d0ff,#7b61ff);
            border-radius: 6px;
            width: 90px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: #000;*/
}

    .header-logo img {
        height: 24px;
        margin-right: 2px;
        color: #000;
    }

.header-right {
    display: flex;
    gap: 10px;
    align-items: center;
}
.lang-switch-wrap {
    position: relative;
    display: inline-block;
}
.lang-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    color: #fff;
    overflow: hidden;
}
.lang-toggle .toggle-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.lang-toggle .toggle-flag.hk {
    background-image: url('../newimg/hk.png');
}
.lang-toggle .toggle-flag.uk {
    background-image: url('../newimg/gb.png');
}
.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}
.lang-toggle.active {
    background: rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.5);
}
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(11, 12, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 6px;
    min-width: 130px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 9999;
}
.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #fff;
}
.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
}
.lang-option.active {
    background: rgba(0, 240, 255, 0.15);
    color: #00f0ff;
}
.lang-flag {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.lang-flag.hk {
    background-image: url('../newimg/hk.png');
}
.lang-flag.uk {
    background-image: url('../newimg/gb.png');
}

/* 頂部導航 */
.page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px;
    background: #0b0c14;
}
.menu-icon {
    position: absolute;
    left: 16px;
    font-size: 16px;
    color: #fff;
}

.header-title {
    font-size: 16px;
    font-weight: 500;

}

.nav-icon-box {
    position: relative;
    width: 20px;
    height: 20px;
}

.nav-icon {
    width: 16px;
    height: 16px;
    fill: #eee;
}

.badge-dot {
    position: absolute;
    bottom: 1px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #f83668;
    border-radius: 50%;
    display: none;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.notice-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.2s ease-out;
}

.notice-modal-overlay.show {
    display: flex;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.notice-modal {
    width: 85%;
    max-width: 400px;
    background: #151726;
    border-radius: 16px;
    overflow: hidden;
    animation: slide-up 0.3s ease-out;
}

@keyframes slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.notice-modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #252742;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-modal-header h3 {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.notice-modal-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b6f8a;
    font-size: 20px;
}

.notice-modal-close:hover {
    color: #fff;
}

.notice-modal-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.notice-modal-content p {
    color: #b8bcd0;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* 頂部跑馬燈 */
.ticker-bar {
    background: #151724;
    padding: 8px 0;
    overflow: hidden;
}

.ticker-scroll {
    white-space: nowrap;
    animation: scroll 28s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.ticker-item {
    margin: 0 12px;
    font-size: 13px;
}

.up {
    color: #36d399;
}

.down {
    color: #f87272;
}

/* 主Banner區塊 */
.banner-wrap {
    /*            padding: 30px 16px;*/
    background: linear-gradient(180deg, #0f1022 0%, #101a38 100%);
    position: relative;
    overflow: hidden;
}

.banner-title h1 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
}

.banner-title .blue-text {
    color: #38d0ff;
}

.banner-desc {
    text-align: center;
    margin: 14px 0 32px;
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.5;
}

.stat-row {
    display: flex;
    justify-content: space-around;
    gap: 6px;
    margin-bottom: 36px;
}

.stat-box {
    text-align: center;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px 6px;
    flex: 1;
}

.stat-num {
    font-size: 22px;
    font-weight: bold;
    color: #38d0ff;
}

.stat-label {
    font-size: 12;
    opacity: 0.7;
    margin-top: 4px;
}

.trade-btn {
    width: 100%;
    background: linear-gradient(90deg, #00d0ff, #22e0ff);
    border: none;
    border-radius: 99px;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

/* 功能按鈕五宮格 */
.func-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 24px 16px;
}

.func-item {
    text-align: center;
}

.func-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1c1e33;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.func-text {
    font-size: 12px;
    opacity: 0.9;
}

/* 活動輪播區 */
.swiper-area {
    /*            padding: 0 16px 24px;*/
    overflow-x: hidden;
}
.van-swipe {
    width: 100%;
    overflow: hidden;
}
.van-swipe__track {
    max-width: 100% !important;
}
.van-swipe-item {
    box-sizing: border-box;
}

.swiper-box {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.swiper-card {
    min-width: 160px;
    background: #181a2f;
    border-radius: 14px;
    padding: 12px;
}

.card-big-text {
    font-size: 20px;
    color: #38d0ff;
    font-weight: bold;
    margin-bottom: 8px;
}

.coin-rate {
    text-align: right;
    font-size: 16px;
}

/* 市場行情模塊 */
.market-section {
    padding: 0 16px 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.market-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0 6px 10px;
    font-size: 13px;
    opacity: 0.7;
}

.market-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.market-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    background: #151726;
    border-radius: 10px;
    padding: 12px 10px;
}

.coin-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coin-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #22243b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.coin-name p:first-child {
    font-weight: 600;
}

.coin-name p:last-child {
    font-size: 12px;
    opacity: 0.6;
}

.mini-chart {
/*    width: 68px;*/
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-price {
    text-align: right;
}

.more-market {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border-radius: 99px;
    background: #fff;
    color: #000;
    border: none;
    font-size: 15px;
}

/* 趨勢分析區 */
.trend-block {
    padding: 0 16px 30px;
}

.trend-top-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #151726;
    border-radius: 10px;
}

.trend-chart-box {
    width: 100%;
    height: 340px;
    background: #151726;
    border-radius: 10px;
    overflow: hidden;
}

/* 新聞模塊 */
.news-block {
    padding: 0 16px 30px;
}

.news-tab {
    margin-bottom: 16px;
}

    .news-tab span {
        font-size: 18px;
        padding-bottom: 6px;
        border-bottom: 2px solid #38d0ff;
    }

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card {
    background: #151726;
    border-radius: 12px;
    padding: 14px;
}

.news-time {
    font-size: 12px;
    opacity: 0.65;
    margin-bottom: 8px;
}

.news-title {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-img {
    width: 100%;
    height: 160px;
    background: #22243b;
    border-radius: 8px;
    margin-bottom: 10px;
}

    .news-img img {
        width: 100%;
        height: 150px;
        border-radius: 8px;
        margin: 5px 0px;
    }

.news-desc {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.8;
}

.news-source {
    text-align: right;
    font-size: 12px;
    margin-top: 8px;
    color: #38d0ff;
}

/* 底部導航 */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: #121322;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #252742;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    opacity: 0.75;
    text-align: center;
}

    .nav-item.active {
        color: #38d0ff;
        opacity: 1;
    }

        .nav-item.active .nav-text {
            padding-left: 1px
        }

.nav-text {
    margin-bottom: 2px;
}

.nav-icon1 {
    font-size: 22px;
    margin-bottom: 0px;
}
    .nav-icon1 img {
        width: 32px;
        height: 32px;
    }

 

.home-top {
    height: 488px;
    position: relative;
    z-index: 0
}

    .home-top .top-bg-2 {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 2;
        text-align: center;
/*        background-image: url(/assets/home-bg-all2-bf3ac5a2.png);*/
        background-size: 100% 100%;
        background-repeat: no-repeat
    }

    .home-top .top-bg {
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 0;
        text-align: center
    }

    .home-top .top-bg-img {
        margin-top: 38px;
        height: 450px
    }

    .home-top .top-bg .logo {
        position: absolute;
        width: 280px;
        height: auto;
        top: 91px;
        right: 11px
    }

    .home-top .video-bg {
        width: 100%;
        height: 100%;
        -o-object-fit: cover;
        object-fit: cover;
        -o-object-position: center center;
        object-position: center center;
        z-index: 0
    }

        .home-top .video-bg::-webkit-media-controls-fullscreen-button {
            display: none
        }

    .home-top .content {
        position: absolute;
        left: 0;
        top: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 458px;
        width: 100%;
        z-index: 3;
        padding: 0 14px
    }

        .home-top .content .top {
            margin-top: 32px;
            text-align: center
        }

            .home-top .content .top h4 {
                margin-top: 30px
            }

            .home-top .content .top p:nth-of-type(1) {
                font-size: 30px;
                color: var(--font-color)
            }

            .home-top .content .top p:nth-of-type(2) {
                font-size: 32px;
                background: linear-gradient(90deg,#06e4f9,#ef8bff);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
                color: transparent
            }

            .home-top .content .top .strcoin:nth-of-type(1) {
                font-size: 20px
            }

            .home-top .content .top .strcoin:nth-of-type(2) {
                font-size: 20px
            }

            .home-top .content .top .line {
                width: 85px;
                height: 2px;
                background: #bfbdc3;
                margin: 30px 0 23px
            }

            .home-top .content .top p:nth-of-type(3) {
                font-size: 16px;
                color: var(--font-color12)
            }

            .home-top .content .top .blue-text {
                color: var(--font-color6)
            }

        .home-top .content .p1 {
            border-radius: 1000px;
            border: 1px solid rgba(255,255,255,.3);
            background: #00000080;
            -webkit-backdrop-filter: blur(3px);
            backdrop-filter: blur(3px);
            padding: 13px 20px;
            width: 311px;
            margin: 92px auto 0;
            display: grid;
            grid-template-columns: repeat(3,auto)
        }

            .home-top .content .p1 > span {
                display: flex;
                flex-direction: column;
                text-align: center
            }

                .home-top .content .p1 > span > span:nth-of-type(1) {
                    font-size: 20px;
                    font-weight: 400;
                    line-height: 1.3;
                    text-align: center
                }

                .home-top .content .p1 > span > span:nth-of-type(2) {
                    font-family: PingFang SC;
                    font-size: 12px;
                    font-weight: 400;
                    line-height: 12px;
                    text-align: center;
                    color: #888
                }

        .home-top .content .bottom {
            padding-bottom: 15px
        }

            .home-top .content .bottom > h1 {
                font-size: 14px
            }

            .home-top .content .bottom > p {
                font-size: 12px;
                color: var(--font-color13)
            }

            .home-top .content .bottom .btn {
                display: flex;
                margin-top: 23px;
                height: 36px;
                padding: 9px 50px;
                justify-content: center;
                align-items: center;
                border-radius: 99px;
                background: #07ecfe;
                color: #000;
                font-size: 16px
            }

.parallax-images-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    z-index: 2
}

    .parallax-images-wrapper .floating-item {
        position: absolute;
        transition: transform .1s ease-out;
        animation: jump-c66705ba 1.5s ease-in-out infinite
    }

.floating-item:nth-child(1) {
    left: 12%;
    top: 2%;
    animation-delay: 0s
}

.floating-item:nth-child(2) {
    left: 2%;
    top: 22%;
    animation-delay: .12s
}

.floating-item:nth-child(3) {
    left: 15%;
    top: 45%;
    animation-delay: .24s
}

.floating-item:nth-child(4) {
    left: 70%;
    top: 2%;
    animation-delay: .36s
}

.floating-item:nth-child(5) {
    left: 78%;
    top: 20%;
    animation-delay: .48s
}

.floating-item:nth-child(6) {
    left: 68%;
    top: 46%;
    animation-delay: .6s
}

@keyframes jump-c66705ba {
    0%,to {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

.parallax-images-wrapper .floating-item img {
    width: 40px;
    height: 40px
}

.parallax-images-wrapper .floating-item:nth-child(2) img, .parallax-images-wrapper .floating-item:nth-child(5) img {
    width: 80px;
    height: 80px
}

.theme-color {
    color: #07ecfe !important;
}

.svg-container {
    width: 28px;
    height: 28px;
}

.contract-strategy {
    height: 300px;
    display: flex;
    justify-content: space-between;
    padding: 0 12px
}

    .contract-strategy .banner-sl {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        right: 0;
        border-radius: 15px
    }

    .contract-strategy h1 {
        font-size: 12px;
        color: var(--font-color6)
    }

    .contract-strategy .left {
        width: 52%;
        border: 1px solid #3c3e53;
        border-radius: 15px;
        overflow: hidden;
        font-size: 18px;
        position: relative;
        height: 100%
    }

        .contract-strategy .left .my-swipe {
            width: 100%;
            height: 100%;
        }

        .contract-strategy .left .van-swipe__track,
        .contract-strategy .left .van-swipe-item {
            height: 100%
        }

            .contract-strategy .left .my-swipe .blue {
                color: var(--font-color6)
            }

            .contract-strategy .left .my-swipe img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: contain;
                border-radius: 15px
            }

            .contract-strategy .left .my-swipe .bottom-text {
                position: absolute;
                bottom: 5px;
                right: 10px;
                font-size: 16px
            }

                .contract-strategy .left .my-swipe .bottom-text > span {
                    font-size: 14px;
                    color: #64748b
                }

    .contract-strategy .right {
        width: 45%
    }

        .contract-strategy .right .one-box {
            padding: 16px 15px 9px;
            height: 142px;
            border: 1px solid #3c3e53;
            border-radius: 15px;
            font-size: 16px;
            position: relative
        }

            .contract-strategy .right .one-box > p {
                font-size: 12px
            }

            .contract-strategy .right .one-box .box-bottom {
                height: 60px;
                position: relative;
                display: flex;
                justify-content: space-between;
                align-items: flex-end
            }

                .contract-strategy .right .one-box .box-bottom .image .logo {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 40px;
                    height: 40px
                }

                .contract-strategy .right .one-box .box-bottom .text {
                    display: flex;
                    justify-content: flex-end;
                    align-items: flex-end;
                    font-size: 16px
                }

                    .contract-strategy .right .one-box .box-bottom .text > span {
                        font-size: 14px;
                        color: #64748b
                    }

        .contract-strategy .right .second-box {
            height: 133px;
            border: 1px solid #3c3e53;
            border-radius: 15px;
            margin-top: 6px;
            padding: 9px;
            position: relative
        }

            .contract-strategy .right .second-box .my-swipe1 .top {
                display: flex
            }

                .contract-strategy .right .second-box .my-swipe1 .top > img {
                    width: 30px;
                    height: 30px;
                    border-radius: 50%
                }

            .contract-strategy .right .second-box .my-swipe1 .text-wrap {
                margin-top: 5px;
                display: flex;
                justify-content: space-between
            }

                .contract-strategy .right .second-box .my-swipe1 .text-wrap > div {
                    font-size: 16px
                }

                    .contract-strategy .right .second-box .my-swipe1 .text-wrap > div .ellipsis {
                        display: block;
                        width: 140px
                    }

                    .contract-strategy .right .second-box .my-swipe1 .text-wrap > div > p {
                        font-size: 12px;
                        color: var(--van-primary-color)
                    }

            .contract-strategy .right .second-box .my-swipe1 .text {
                display: flex;
                justify-content: flex-end;
                align-items: flex-end;
                font-size: 16px
            }

                .contract-strategy .right .second-box .my-swipe1 .text > span {
                    font-size: 14px;
                    color: #64748b
                }

/* =================================行情样式================================== */

/* Market 標題區 */
.market-title-wrap {
    padding: 24px 16px;
    border-bottom: 1px solid #252742;
}

.market-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
}

.title-icon {
    color: #b36eff;
    font-size: 32px;
}
/* 列表表頭 */
.table-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    padding: 16px 20px;
    color: #aaaaaa;
    font-size: 12px;
    border-bottom: 1px solid #252742;
}
/* 幣種列表行 */
.coin-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    padding: 20px 20px;
    border-bottom: 1px solid #252742;
    align-items: center;
}

.coin-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #22243b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.coin-name-main {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

.coin-pair {
    font-size: 12px;
    color: #aaa;
}

.coin-price-wrap {
    text-align: right;
}

.coin-price-num {
    font-size: 12px;
    margin-bottom: 4px;
}

.coin-price-usd {
    font-size: 16px;
    color: #aaa;
}

.rate-up {
    text-align: right;
    font-size: 12px;
    color: #38e0e0;
}

.rate-zero {
    text-align: right;
    font-size: 12px;
    color: #ff4444;
}

.rate-down {
    text-align: right;
    font-size: 12px;
    color: #ff4444;
}


/* ===============================資產页面====================================== */


/* 資產卡片容器 */
.asset-card-wrap {
    margin: 16px;
    border: 1px solid #33364e;
    border-radius: 16px;
    padding: 24px 20px;
}
/* 資產估值區 */
.asset-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.balance-text {
    font-size: 16px;
    font-weight: 500;
}

.eye-icon1 {
    font-size: 20px;
    opacity: 0.7;
    cursor: pointer;
}

#user-money {
    font-size: 16px;
    letter-spacing: 4px;
    margin-bottom: 32px;
}
/* 功能按鈕組 */
.btn-group {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.func-btn {
    flex: 1;
    padding: 10px 0;
    border: 1px solid #ccc;
    border-radius: 99px;
    background: transparent;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .func-btn:last-child {
        flex: 0.8;
    }
/* 幣種表格標題 */
.table-header-asset {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 12px 0;
    border-top: 1px solid #33364e;
    color: #999;
    font-size: 14px;
    text-align: center
}
/* 幣種列表行 */
.coin-row-asset {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 20px 0;
    border-top: 1px solid #33364e;
    font-size: 16px;
    text-align: center
}
/* ===========================交易==================== */

/* 頂部標題欄 */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.back-btn {
    display: flex;
    flex-wrap: initial;
    flex-direction: initial;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #1a1b24;
    border-radius: 4px;
}

.left-arrow {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.09766%204.16667L2.5001%2010L8.09766%2015.8333'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'/%3e%3cline%20x1='1'%20y1='-1'%20x2='13.7776'%20y2='-1'%20transform='matrix(1%200%200%20-1%202.72266%209.19311)'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}


.top-middle {
    font-size: 16px;
    color: #b0b8d4;
}

.top-right {
    font-size: 16px;
    color: #38d0ff;
}
/* 幣種&24H數據區塊 */
.coin-info-wrap {
    padding: 0 20px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

  .coin-title1 {
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
    }

   .coin-price1 {
        font-size: 24px;
        color: #38e0e0;
        margin-bottom: 10px;
    }

  .coin-rate1 {
        font-size: 14px;
        color: #38e0e0;
    }

   .data-row1 {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        font-size: 12px;
    }

    .data-label1 {
        color: #999;
    }

   .data-value1 {
        color: #38d0ff;
    }
/* K線週期切換Tab */
.kline-tab-wrap {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #151726;
    padding: 12px 0;
}

.k-tab-item {
    text-align: center;
    font-size: 14px;
    color: #999;
    position: relative;
}

    .k-tab-item.active {
        color: #fff;
    }

        .k-tab-item.active::after {
            content: "";
            position: absolute;
            bottom: -12px;
            left: 10%;
            width: 80%;
            height: 3px;
            background: #38d0ff;
            border-radius: 3px;
        }
/* K線空白區域 */
.kline-box {
    width: 100%;
    height: 520px;
    background: #0b0c14;
    border-top: 1px solid #252742;
    border-bottom: 1px solid #252742;
}
/* 底部買漲買跌按鈕 */
.trade-btn-wrap {
    position: fixed;
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    flex-wrap: initial;
    flex-direction: initial;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background-color: var(--content-bg);
    border-top: 1px solid var #12141e (--data-bg-main);
}

.buy-up {
    border: 0;
    width: 165px;
    height: 50px;
    border-radius: 100px;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-wrap: initial;
    flex-direction: initial;
    align-items: center;
    justify-content: center;
    background: #00f0ff;
}

.buy-down {
    border: 0;
    width: 165px;
    height: 50px;
    border-radius: 100px;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-wrap: initial;
    flex-direction: initial;
    align-items: center;
    justify-content: center;
    background: #ff4834;
}

/* 下单确认弹窗 */
.order-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.order-modal-overlay.show {
    display: flex;
}

.order-modal {
    width: 100%;
    max-height: 85vh;
    background: #151726;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    animation: order-slide-up 0.3s ease-out;
}

@keyframes order-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.order-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #252742;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.order-modal-header h3 {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.order-modal-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b6f8a;
    font-size: 24px;
}

.order-modal-close:hover {
    color: #fff;
}

.order-modal-content {
    padding: 20px 24px;
    padding-bottom: 40px;
    max-height: calc(85vh - 60px);
    overflow-y: auto;
}

.order-section {
    margin-bottom: 24px;
}

.order-section-title {
    font-size: 14px;
    color: #6b6f8a;
    margin-bottom: 12px;
    display: block;
}

.order-balance {
    color: #00f0ff;
    font-weight: bold;
}

.settlement-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.settlement-item {
    flex-shrink: 0;
    width: 100px;
    background: #1e2035;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.settlement-item.active {
    border-color: #00f0ff;
}

.settlement-time {
    padding: 12px 10px 6px;
    text-align: center;
    font-size: 14px;
    color: #6b6f8a;
    background: #1e2035;
    border-radius: 8px 8px 0 0;
}

.settlement-item.active .settlement-time {
    background: #00f0ff;
    color: #151726;
}

.settlement-scale {
    padding: 6px 10px 12px;
    text-align: center;
    font-size: 12px;
    color: #6b6f8a;
}

.settlement-item.active .settlement-scale {
    color: #45d75b;
    font-weight: bold;
}

.amount-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.amount-item {
    flex-shrink: 0;
    min-width: 80px;
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    background: #1e2035;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.amount-item.active {
    border-color: #00f0ff;
    background: rgba(0, 240, 255, 0.1);
}

.amount-custom {
    padding: 0;
    width: 120px;
}

.amount-custom input {
    width: 100%;
    height: 100%;
    padding: 12px 10px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    text-align: center;
    outline: none;
    border-radius: 10px;
}

.amount-custom input::placeholder {
    color: #6b6f8a;
}

.amount-item.active .amount-custom input {
    color: #00f0ff;
}

.order-summary {
    margin-top: 24px;
    margin-bottom: 24px;
}

.order-summary table {
    width: 100%;
    border-collapse: collapse;
    background: #1e2035;
    border-radius: 10px;
    overflow: hidden;
}

.order-summary table td {
    padding: 12px 8px;
    text-align: center;
    font-size: 13px;
    color: #b8bcd0;
    border-bottom: 1px solid #252742;
}

.order-summary table tr:first-child td {
    color: #6b6f8a;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.2);
}

.order-summary table tr:last-child td {
    border-bottom: none;
}

.order-confirm-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #00f0ff, #00a8ff);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.order-confirm-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* 輸入框通用樣式 */
.input-group {
    margin-bottom: 28px;
}

.input-box {
    width: 100%;
    background: transparent;
    border: 1px solid #33364e;
    border-radius: 14px;
    padding: 20px 18px;
    padding-right: 55px;
    font-size: 14px;
    color: #fff;
    outline: none;
    box-sizing: border-box;
}

    .input-box::placeholder {
        color: #888a9f;
    }

.code-row {
    position: relative;
}

.send-code-text {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #38d0ff;
    font-size: 14px;
}

.pwd-wrap {
    position: relative;
}

.eye-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    opacity: 0.7;
    cursor: pointer;
    z-index: 10;
    padding: 8px;
    user-select: none;
    -webkit-user-select: none;
}
/* 註冊主按鈕 */
.register-main-btn {
    width: 100%;
    padding: 14px 0;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #40e8f8, #72efff);
    font-size: 16px;
    color: #000;
    font-weight: 500;
    margin: 30px 0 20px;
}
/* 已有帳戶登入文字 */
.login-tip {
    text-align: center;
    font-size: 14px;
    margin-bottom: 40px;
}

    .login-tip a {
        color: #38d0ff;
        text-decoration: none;
    }
/* 底部協議勾選 */
.agree-rule {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #ccc;
}

.check-box {
    width: 16px;
    height: 16px;
    background: #38d0ff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    flex-shrink: 0;
    margin-top: 2px;
}

.rule-link {
    color: #38d0ff;
}


/* Tab 切換欄 */
.tab-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 20px;
    margin-bottom: 120px;
}

.tab-item {
    text-align: center;
    font-size: 14px;
    padding-bottom: 12px;
    position: relative;
    color: #cccccc;
}

    .tab-item.active {
        color: #00f0ff;
    }

        .tab-item.active::after {
            content: "";
            position: absolute;
            left: 30%;
            bottom: 0;
            width: 40%;
            height: 4px;
            background: #00f0ff;
            border-radius: 3px;
        }
/* 空狀態提示文字 */
.empty-tip {
    text-align: center;
    font-size: 14px;
    color: #77798c;
}



.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    min-width: 200px;
    max-width: 80%;
    text-align: center;
}

    .toast.show {
        opacity: 1;
        transform: translateY(0);
    }

.toast-success {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.toast-error {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.toast-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #333;
}

.toast-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

.toast-content {
    flex: 1;
    line-height: 1.5;
}

.toast-close {
    margin-left: 8px;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

    .toast-close:hover {
        opacity: 1;
    }

.toast-waiting {
    background: rgba(0, 0, 0, 0.85);
    padding: 10px 18px;
    border: 1px #38e0e0 solid;
}

.toast-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: toast-spin 0.8s linear infinite;
}

@keyframes toast-spin {
    to {
        transform: rotate(360deg);
    }
}
