/* 全站主要樣式 */
/* 以手機優先和 Bootstrap RWD 為基礎 */

:root {
    --brand-primary: #3157d5;
    --brand-deep: #172554;
    --brand-soft: #eef3ff;
    --brand-hit: #fff3cd;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-soft: #e5e7eb;
}

body {
    min-height: 100vh;
    color: var(--text-main);
    background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 48%, #f8fafc 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-section {
    padding: 42px 0 36px;
    color: #ffffff;
    background: radial-gradient(circle at top left, #5976ff 0%, #3157d5 42%, #172554 100%);
}

.language-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-main);
}

.main-content {
    flex: 1;
    margin-top: -22px;
}

.tool-card,
.result-card {
    border-radius: 22px;
}

.hint-box {
    padding: 12px 14px;
    border-radius: 14px;
    color: #334155;
    background: var(--brand-soft);
}

.summary-card {
    min-height: 100px;
    padding: 20px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.summary-card span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.summary-card strong {
    font-size: 1.8rem;
    line-height: 1.1;
}

.hit-card {
    background: linear-gradient(135deg, #fff7df 0%, #ffffff 100%);
}

.filter-box {
    max-width: 320px;
}

.loading-box {
    padding: 28px;
    text-align: center;
    color: var(--text-muted);
}

.loading-box .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 10px;
}

.table thead th {
    color: var(--text-muted);
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border-soft);
    white-space: nowrap;
}

.table tbody td {
    vertical-align: middle;
}

tr.holiday-row td {
    background: var(--brand-hit);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
}

.status-hit {
    color: #7c2d12;
    background: #fed7aa;
}

.status-normal {
    color: #475569;
    background: #e2e8f0;
}

.mobile-result-list {
    display: none;
}

.mobile-card {
    padding: 16px;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: #ffffff;
    margin-bottom: 12px;
}

.mobile-card.holiday-card {
    background: var(--brand-hit);
    border-color: #facc15;
}

.mobile-card-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.mobile-card-title strong {
    font-size: 1.05rem;
}

.mobile-meta {
    display: grid;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.site-footer {
    padding: 24px 0;
    color: #64748b;
    background: #f8fafc;
    border-top: 1px solid var(--border-soft);
    font-size: 0.92rem;
    text-align: center;
}

.footer-line + .footer-line {
    margin-top: 6px;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 30px 0 28px;
    }

    .display-6 {
        font-size: 1.9rem;
    }

    .main-content {
        margin-top: -16px;
    }

    .card-body,
    .card-header {
        padding: 18px !important;
    }

    .filter-box {
        max-width: none;
    }

    .desktop-table {
        display: none;
    }

    .mobile-result-list {
        display: block;
    }

    .summary-card {
        min-height: 84px;
    }
}
