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

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: #ACFCF7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    max-width: 914px;
    width: 100%;
    background: #ACFCF7;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
}

.header {
    padding: 24px 32px;
    /* border-bottom: 1px solid #A0E8E3; */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo h2 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 600;
    white-space: nowrap;
    color: #1A3A3A;
}

/* 即時狀態標籤 */
.live-status {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.1s, gap 0.2s ease;
}

.live-status .trend-icon,
.live-status .trend-value {
    transition: color 0.1s;
}

.live-status.up {
    color: #2e7d32;
}

.live-status.up .trend-icon,
.live-status.up .trend-value {
    color: #2e7d32;
}

.live-status.down {
    color: #d32f2f;
}

.live-status.down .trend-icon,
.live-status.down .trend-value {
    color: #d32f2f;
}

.trend-icon {
    font-size: 1.2rem;
}

.trend-chart {
    width: 60px;
    height: 40px;
    object-fit: contain;
}

.trend-value {
    font-weight: 600;
    font-size: 1.4rem;
    color: #1A3A3A;
}

/* 價格卡片區 */
.price-grid {
    padding: 32px;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    /* position: relative; */
}

.price-grid::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 60px;
    background-color: #8FD1CC;
    /* 更柔和的青绿色分隔线 */
    border-radius: 1px;
    opacity: 0.8;
    display: block;
}

.price-card {
    flex: 1 1 250px;
    background: transparent;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-card.buy {
    padding-left: 40px;
}

.price-card.sell .card-header span {
    color: #1A3A3A;
    /* 深青灰色，柔和且清晰 */
    font-weight: 600;
}

.price-card.sell .price-number {
    color: #f44336;
}

.price-card.buy .card-header span {
    color: #1A3A3A;
    /* 深青灰色，保持一致 */
    font-weight: 600;
}

.price-card.buy .price-number {
    color: #357005;
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    gap: 2px;
}

.card-header .label-cn {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 600;
}

.card-header .label-en {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 600;
    letter-spacing: 1px;
}

.price-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-number {
    font-size: 32px;
    font-weight: 700;
    display: inline-flex;
    align-items: baseline;
    gap: 0;
}

.price-number .decimal-part {
    font-size: clamp(3.5rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1;
    display: inline-block;
    margin-left: -1px;
}

.unit {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
}


.date {
    color: #000000;
    text-align: right;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 600;
    white-space: nowrap;
    color: #1A3A3A;
    width: 100%;
    margin-top: 5px;
}

.footer-text {
    display: flex;
    justify-content: center;
    gap: clamp(34px, 4vw, 48px);
    width: 100%;
}

.footer-text span {
    display: inline-block;
}

.footer>div:last-child {
    text-align: center;
    width: 100%;
}

/* 手機版 ================================= */
@media (max-width: 640px) {
    body {
        align-items: flex-start;
        padding: 0;
        background: #ACFCF7;
    }

    .card {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        background: #ACFCF7;
    }

    .header {


        padding: 16px 20px;
        background: #ACFCF7;
        /* border-bottom: 1px solid #A0E8E3; */
        /* 统一使用柔和的边框色 */
        flex-wrap: nowrap;
        /* gap: 12px; */
    }

    .logo h2 {
        font-size: 1.4rem;
        font-weight: 600;
        letter-spacing: -0.01em;
        color: #1A3A3A;
    }

    .live-status {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
    }

    .trend-value {
        color: #1A3A3A;
    }

    .trend-chart {
        width: 50px;
        height: 32px;
    }

    @media (max-width: 380px) {
        .live-status {
            gap: 8px;
        }

        .trend-icon {
            font-size: 1rem;
        }

        .trend-value {
            font-size: 1rem;
        }

        .trend-chart {
            width: 40px;
            height: 26px;
        }
    }

    .price-grid {
        padding: 20px 16px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        position: relative;
    }

    .price-grid::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 2px;
        height: 50px;
        background-color: #8FD1CC;
        /* 统一使用柔和的青绿色分隔线 */
        border-radius: 1px;
        opacity: 0.8;
        display: block;
    }

    .price-card {
        flex: none;
        width: 100%;
        padding: 18px 16px;
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .price-card.buy {
        padding-left: 18px;
    }

    .price-card.sell .card-header span {
        color: #1A3A3A;
    }

    .price-card.buy .card-header span {
        color: #1A3A3A;
    }

    .price-number {
        font-size: 28px;
        line-height: 1.2;
    }

    .price-number .decimal-part {
        font-size: clamp(2.6rem, 4vw, 3rem);
    }

    .price-number .decimal-part {
        margin-left: -0.5px;
    }

    .footer {
        font-size: 1.6rem;
    }

    .footer-text {
        gap: clamp(30px, 4vw, 48px);
    }
}

@media (max-width: 400px) {
    .price-number {
        font-size: 24px;
    }

    .price-number .decimal-part {
        font-size: 30px;
    }

    .price-number .decimal-part {
        margin-left: 0px;
    }

    .price-card {
        padding: 14px 12px;
    }

    .price-card.buy {
        padding-left: 20px;
    }
    .footer {
        font-size: clamp(1.4rem, 4vw, 1.9rem);
    }

    .footer-text {
        gap: clamp(28px, 4vw, 48px);
    }
}

.header {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}