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

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    min-height: 100vh;
    box-sizing: border-box;
}

.content-wrapper {
    width: 100%;
}

.top-line {
    width: 100%;
    height: 1px;
    background-color: #ccc;
    margin-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 50%);
    gap: 16px;
    width: 100%;
    margin: 16px 0;
}

/* 當寬度小於 1140px 時的自適應 */
@media (max-width: 1140px) {
    .stats-grid {
        gap: 12px;
    }

    .container {
        padding: 16px;
    }
}

/* 當寬度小於 900px 時保持2欄但減少間距 */
@media (max-width: 900px) {
    .stats-grid {
        gap: 8px;
    }

    .stat-item {
        padding: 6px;
    }
}

.stat-item {
    background: rgba(224, 245, 250, 0.6);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.stat-left {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 260px;
}

.icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.title {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.25;
    color: #1e2c5d;
    white-space: nowrap;
    flex-shrink: 0;
}

.stat-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.prefix {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.4;
    color: #000000;
    white-space: nowrap;
}

.number {
    font-family: 'Arial Black', sans-serif;
    font-size: 24px;
    color: #ed7a9d;
    text-align: center;
    line-height: normal;
    white-space: nowrap;
}

.unit {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4;
    color: #000000;
}

.description {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.4;
    color: #000000;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bottom-line {
    width: 100%;
    height: 1px;
    background-color: #ccc;
    margin-top: 0;
    position: relative;
}

.date-info {
    position: absolute;
    right: 0;
    top: 8px;
}

.date-info span {
    font-family: 'Noto Sans TC', sans-serif;
    color: #666;
    font-size: 14px;
    background-color: white;
    padding-left: 8px;
}

/* iframe 中的特殊樣式 */
body.in-iframe {
    overflow-x: hidden;
}

body.in-iframe .container {
    padding: 12px;
    min-height: auto;
}

body.in-iframe .stats-grid {
    margin: 12px 0;
}

/* 響應式設計 - 手機版1欄 */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

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

    .stat-left {
        width: auto;
        flex: 1;
    }

    .title {
        font-size: 22px;
    }

    .number {
        font-size: 20px;
    }

    .unit {
        font-size: 16px;
    }
}

/* 小螢幕優化 */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .stat-item {
        padding: 6px;
    }

    .icon {
        width: 35px;
        height: 35px;
    }

    .title {
        font-size: 20px;
    }

    .number {
        font-size: 18px;
    }

    .unit {
        font-size: 14px;
    }

    .description {
        font-size: 11px;
    }
}