* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, "Microsoft JhengHei", "PingFang TC", sans-serif;
    color: #172033;
    background:
        linear-gradient(rgba(8, 18, 29, .72), rgba(8, 18, 29, .82)),
        url("bg.jpg") center/cover fixed no-repeat;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    width: 100%;
    background: rgba(5, 10, 15, .96);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.header-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 76px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.logo span {
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 42px;
}

.nav-menu a {
    color: #fff;
    font-size: 14px;
    opacity: .86;
    transition: .2s;
}

.nav-menu a:hover {
    opacity: 1;
}

.join-btn {
    color: #fff;
    background: #e74235;
    padding: 12px 27px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
}

.main-container {
    width: min(1100px, calc(100% - 40px));
    margin: 20px auto 35px;
}

.market-card,
.summary-card,
.history-card {
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(220,226,233,.95);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,.15);
}

.market-card {
    padding: 25px;
}

.market-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.market-top h1 {
    color: #101827;
    font-size: 26px;
    margin-bottom: 6px;
}

.market-desc {
    color: #8993a2;
    font-size: 13px;
}

.market-status {
    color: #119457;
    background: #edf9f2;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.market-status span {
    margin-right: 5px;
}

.price-area {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-top: 18px;
}

.vvip-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

#last-price {
    color: #111827;
    font-size: 50px;
    line-height: 1;
    font-weight: 800;
}

.vvip-change-box {
    color: #0a9f5a;
    font-size: 20px;
    font-weight: 700;
}

.vvip-subtext {
    color: #7a8491;
    font-size: 13px;
    margin-top: 10px;
}

.vvip-subtext a {
    text-decoration: underline;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-item {
    min-width: 130px;
    padding: 12px 14px;
    background: #f7f9fc;
    border: 1px solid #e5eaf0;
    border-radius: 9px;
}

.quick-item span {
    display: block;
    color: #8993a2;
    font-size: 12px;
    margin-bottom: 5px;
}

.quick-item strong {
    color: #111827;
    font-size: 14px;
}

.vvip-time-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 24px 0 15px;
}

.tab-btn {
    min-width: 63px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #dce2e8;
    border-radius: 5px;
    background: #fff;
    color: #4d5866;
    cursor: pointer;
    transition: .2s;
}

.tab-btn:hover {
    border-color: #651fff;
}

.tab-btn.active {
    color: #fff;
    border-color: #651fff;
    background: #651fff;
}

.vvip-chart-container {
    position: relative;
    width: 100%;
    height: 380px;
}

.vvip-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #e0e5eb;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 16px;
}

.stat-row {
    min-height: 51px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #e4e8ed;
}

.stat-row:nth-child(odd) {
    border-right: 1px solid #e4e8ed;
}

.stat-row:nth-last-child(-n+2) {
    border-bottom: none;
}

.stat-row span {
    color: #77818f;
    font-size: 13px;
}

.stat-row strong {
    color: #111827;
    font-size: 14px;
}

.analysis-box {
    margin-top: 20px;
    border: 1px solid #dce5df;
    border-left: 4px solid #15935a;
    border-radius: 8px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.analysis-box h3 {
    color: #172033;
    font-size: 20px;
    margin-bottom: 4px;
}

.analysis-box p,
.analysis-status span {
    color: #8a939f;
    font-size: 13px;
}

.analysis-status {
    min-width: 330px;
    background: #eff9f4;
    padding: 12px 18px;
    border-radius: 7px;
}

.analysis-status strong {
    display: block;
    color: #40504a;
    font-size: 13px;
    margin-bottom: 5px;
}

.summary-card,
.history-card {
    margin-top: 15px;
    padding: 20px;
}

.section-title {
    margin-bottom: 15px;
}

.section-title h2 {
    color: #152033;
    font-size: 22px;
    margin-bottom: 4px;
}

.section-title p {
    color: #9099a5;
    font-size: 12px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.vvip-summary-table,
.vvip-history-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center;
}

.vvip-summary-table th,
.vvip-summary-table td,
.vvip-history-table th,
.vvip-history-table td {
    border: 1px solid #d8dee5;
    padding: 10px;
}

.vvip-summary-table th {
    color: #fff;
    background: #087b49;
    font-size: 13px;
}

.vvip-summary-table td {
    font-size: 15px;
    background: #fff;
}

.summary-number {
    font-weight: 800;
}

.vvip-history-table thead th {
    color: #fff;
    background: #087b49;
    font-size: 13px;
}

.vvip-history-table td {
    color: #2f3b4b;
    font-size: 13px;
}

.vvip-history-table tbody tr:nth-child(even) {
    background: #f5f7f9;
}

.vvip-history-table tbody tr:hover {
    background: #edf8f2;
}

.site-footer {
    background: rgba(4, 10, 15, .97);
    color: #fff;
    border-top: 1px solid rgba(255,255,255,.1);
}

.footer-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 120px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
}

.footer-inner h2 {
    font-size: 18px;
    margin-bottom: 7px;
}

.footer-inner p {
    color: #98a2ad;
    font-size: 12px;
}

.footer-inner > p {
    text-align: right;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #d3d8dd;
    font-size: 12px;
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }

    .price-area {
        align-items: flex-start;
        flex-direction: column;
    }

    .quick-stats {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        padding: 30px 0;
    }

    .footer-inner > p {
        text-align: left;
    }
}

@media (max-width: 650px) {
    .header-inner,
    .main-container,
    .footer-inner {
        width: calc(100% - 24px);
    }

    .header-inner {
        min-height: 64px;
    }

    .logo {
        font-size: 16px;
    }

    .join-btn {
        padding: 9px 13px;
        font-size: 12px;
    }

    .market-card,
    .summary-card,
    .history-card {
        border-radius: 8px;
    }

    .market-card {
        padding: 16px;
    }

    .market-top h1 {
        font-size: 20px;
    }

    .market-status {
        display: none;
    }

    #last-price {
        font-size: 36px;
    }

    .vvip-change-box {
        font-size: 16px;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .vvip-chart-container {
        height: 280px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-row:nth-child(odd) {
        border-right: none;
    }

    .stat-row:nth-last-child(2) {
        border-bottom: 1px solid #e4e8ed;
    }

    .analysis-box {
        align-items: stretch;
        flex-direction: column;
    }

    .analysis-status {
        min-width: 0;
    }

    .vvip-summary-table,
    .vvip-history-table {
        min-width: 600px;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}