* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    scroll-behavior: smooth;
    background-color: #ffffff;
}
:root {
    --primary: #1e4a76;
    --primary-dark: #0f3b5f;
    --primary-light: #e6f0f9;
    --accent: #f4a261;
    --accent-dark: #e76f51;
    --teal: #2a9d8f;
    --teal-light: #d9f0ec;
    --purple: #6c5ce7;
    --purple-light: #efe8ff;
    --rose: #e07a8c;
    --rose-light: #fce4e8;
    --card-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.06), 0 4px 10px -4px rgba(0, 0, 0, 0.02);
}
.section { padding: 40px 0; position: relative; overflow: hidden; }
.section-title { text-align: center; margin-bottom: 32px; position: relative; z-index: 2; }
.section-title h2 {
    font-size: 1.8rem; font-weight: 800;
    background: linear-gradient(120deg, var(--primary), var(--teal));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 8px;
}
.section-title p { color: #475569; max-width: 680px; margin: 0 auto; font-size: 0.95rem; line-height: 1.4; }
.btn-primary {
    background: linear-gradient(95deg, var(--primary), var(--primary-dark));
    border: none; padding: 8px 24px; font-weight: 600; border-radius: 50px; transition: all 0.2s;
    box-shadow: 0 6px 14px rgba(30,74,118,0.25); color: white; text-decoration: none;
    display: inline-block; font-size: 0.9rem;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(30,74,118,0.35); color: white; }
.btn-outline-primary {
    border-radius: 50px; border: 2px solid var(--primary); color: var(--primary);
    font-weight: 600; background: transparent; padding: 8px 24px; font-size: 0.9rem;
    transition: all 0.2s; display: inline-block; text-decoration: none;
}
.btn-outline-primary:hover { background-color: var(--primary); color: white; }
.badge-gov {
    background: linear-gradient(145deg, #fef9e3, #fff4e0); color: #b85e00;
    font-weight: 700; padding: 4px 14px; border-radius: 50px; font-size: 0.75rem;
    display: inline-block; border-left: 3px solid var(--accent);
}
.skip-link {
    position: absolute; top: -40px; left: 0; background: var(--primary); color: white;
    padding: 8px 16px; z-index: 1000; transition: top 0.2s;
}
.skip-link:focus { top: 10px; }
a:focus-visible, .btn:focus-visible, .btn-primary:focus-visible, .btn-outline-primary:focus-visible {
    outline: 3px solid var(--accent); outline-offset: 2px;
}
.hero-section {
    background: linear-gradient(155deg, #f0f6fd 0%, #e8f1f9 20%, #f2f7fc 45%, #ebf3fa 65%, #f0f5fb 100%);
    position: relative; overflow: hidden; padding: 50px 0 40px;
}
.hero-glow-1 {
    position: absolute; width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(108,92,231,0.10) 0%, transparent 70%);
    top: -150px; right: -100px; z-index: 0;
}
.hero-glow-2 {
    position: absolute; width: 250px; height: 250px; border-radius: 50%;
    background: radial-gradient(circle, rgba(42,157,143,0.08) 0%, transparent 70%);
    bottom: 0; left: 5%; z-index: 0;
}
.hero-section .container { position: relative; z-index: 2; }
.hero-img { border-radius: 24px; box-shadow: 0 20px 30px -12px rgba(0,0,0,0.12); max-width: 100%; height: auto; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.hero-tag { padding: 4px 14px; border-radius: 30px; font-size: 0.75rem; font-weight: 600; color: white; box-shadow: 0 4px 10px rgba(0,0,0,0.08); letter-spacing: 0.3px; }
.tag-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.tag-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.tag-teal { background: linear-gradient(135deg, #4fd1c5, #0d9488); }
.tag-pink { background: linear-gradient(135deg, #f472b6, #db2777); }
.tag-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.stat-highlight {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0.6rem 0.5rem; border-radius: 16px; background: white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}
.stat-highlight .number { font-size: 1.6rem; font-weight: 800; }
.stat-highlight .label { color: #475569; font-size: 0.75rem; }
.pain-point-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    position: relative; z-index: 2;
}
.pain-card {
    background: white;
    border-radius: 20px;
    padding: 1.4rem 1.2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.25s;
    border-top: 4px solid transparent;
}
.pain-card:hover { transform: translateY(-3px); box-shadow: 0 16px 28px rgba(0,0,0,0.08); }
.pain-card.border-blue { border-top-color: var(--primary); }
.pain-card.border-teal { border-top-color: var(--teal); }
.pain-card.border-accent { border-top-color: var(--accent); }
.pain-card .pain-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.pain-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.2rem; color: #1e293b; }
.pain-card .pain-quote { font-size: 0.85rem; color: #64748b; margin-bottom: 0.6rem; }
.pain-card .pain-solution {
    font-size: 0.85rem; color: #334155; line-height: 1.4;
    padding-top: 0.6rem; border-top: 1px solid #f1f5f9; margin-top: 0.6rem;
}
.card-advantage {
    transition: all 0.25s; border: none; border-radius: 20px;
    background: white; box-shadow: var(--card-shadow); height: 100%;
}
.card-advantage:hover { transform: translateY(-4px); box-shadow: 0 16px 28px rgba(0,0,0,0.10); }
.card-advantage .card-inner { padding: 1.2rem 1rem 1.4rem; text-align: center; }
.icon-circle-lg {
    width: 52px; height: 52px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; margin: 0 auto 12px;
    font-size: 1.5rem; color: white; box-shadow: 0 10px 20px -6px rgba(0,0,0,0.14);
}
.icon-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.icon-blue { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.icon-teal { background: linear-gradient(135deg, #4fd1c5, #0d9488); }
.icon-pink { background: linear-gradient(135deg, #f472b6, #db2777); }
.icon-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.icon-indigo { background: linear-gradient(135deg, #818cf8, #6366f1); }
.card-inner h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; color: #0f2b3f; }
.card-inner p { color: #475569; line-height: 1.4; font-size: 0.85rem; }
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
}
.data-item {
    background: white; border-radius: 16px; padding: 1rem 0.5rem; text-align: center;
    box-shadow: var(--card-shadow); transition: all 0.2s;
}
.data-item:hover { transform: translateY(-3px); box-shadow: 0 12px 22px rgba(0,0,0,0.08); }
.data-item .data-num { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.2rem; }
.data-item .data-lbl { font-size: 0.8rem; color: #475569; line-height: 1.3; }
.member-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.member-card {
    background: white; border-radius: 16px; padding: 1rem 1.2rem;
    box-shadow: var(--card-shadow); transition: all 0.2s;
    display: flex; align-items: flex-start; gap: 0.8rem;
}
.member-card:hover { transform: translateY(-3px); box-shadow: 0 12px 22px rgba(0,0,0,0.08); }
.member-card .member-icon { font-size: 1.6rem; flex-shrink: 0; width: 36px; text-align: center; }
.member-card .member-content h4 { font-weight: 700; color: #1e293b; margin-bottom: 0.2rem; font-size: 1rem; }
.member-card .member-content p { color: #475569; font-size: 0.85rem; line-height: 1.4; }
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}
.report-card {
    background: white; border-radius: 16px; padding: 1.2rem 1.2rem;
    box-shadow: var(--card-shadow); transition: all 0.2s;
    border-left: 4px solid transparent;
}
.report-card:hover { transform: translateY(-3px); box-shadow: 0 12px 22px rgba(0,0,0,0.08); }
.report-card.border-blue { border-left-color: var(--primary); }
.report-card.border-teal { border-left-color: var(--teal); }
.report-card.border-accent { border-left-color: var(--accent); }
.report-card h4 { font-weight: 700; color: #1e293b; margin-bottom: 0.2rem; font-size: 1rem; }
.report-card p { color: #475569; font-size: 0.85rem; line-height: 1.4; }
.migration-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}
.step-card {
    flex: 1 1 160px;
    min-width: 150px;
    background: white;
    border-radius: 20px;
    padding: 1.2rem 0.5rem;
    box-shadow: var(--card-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.25s;
}
.step-card:hover { transform: translateY(-4px); }
.step-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -0.8rem;
    width: 18px;
    height: 18px;
    border-right: 2px solid var(--teal);
    border-bottom: 2px solid var(--teal);
    transform: translateY(-50%) rotate(-45deg);
    opacity: 0.3;
}
.step-card:last-child::after { display: none; }
.step-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.8rem;
    box-shadow: 0 10px 18px rgba(30,74,118,0.25);
    flex-shrink: 0;
}
.step-card i {
    font-size: 1.5rem;
    color: var(--accent-dark);
    margin-bottom: 0.4rem;
}
.step-card h5 {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: #0f2b3f;
}
.step-card p {
    font-size: 0.8rem;
    color: #475569;
    margin: 0;
}
.price-warning {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 0.5rem;
}
.cta-card {
    background: linear-gradient(145deg, #f8fafc, #ffffff);
    border-radius: 32px;
    padding: 1.5rem 1.5rem;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #eef2ff;
}
.cta-big-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-dark);
    letter-spacing: -0.5px;
}
.contact-form {
    background: white; border-radius: 24px; padding: 1.5rem;
    box-shadow: var(--card-shadow); max-width: 600px; margin: 1.5rem auto 0;
}
.contact-form .form-control {
    border-radius: 12px; padding: 0.6rem 0.8rem; border: 1px solid #e2e8f0;
}
.contact-form .form-control:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,74,118,0.1);
}
.gov-section {
    background: linear-gradient(135deg, #fef9e3 0%, #fef3ee 50%, #ffffff 100%);
    position: relative;
}
.pricing-card-gov {
    border-radius: 28px; background: white;
    border: 1px solid rgba(0,0,0,0.04); box-shadow: var(--card-shadow);
    padding: 1.8rem !important;
}
.pricing-card-gov.featured {
    border-top: 6px solid var(--accent); transform: scale(1.01);
    box-shadow: 0 20px 30px -10px rgba(244,162,97,0.2);
}
.compare-table-wrapper {
    background: white; border-radius: 20px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06); margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.compare-table thead th {
    padding: 12px 12px; text-align: center; font-weight: 700; font-size: 0.85rem;
    border-bottom: 2px solid #e2e8f0;
}
.compare-table thead th:first-child { text-align: left; padding-left: 20px; }
.compare-table thead th.col-basic { color: var(--primary); border-bottom: 3px solid var(--primary); }
.compare-table thead th.col-pro { color: var(--accent-dark); border-bottom: 3px solid var(--accent); background: rgba(244,162,97,0.04); }
.compare-table thead th.col-enterprise { color: var(--purple); border-bottom: 3px solid var(--purple); }
.compare-table thead .price-tag { display: block; font-size: 0.7rem; font-weight: 500; color: #64748b; margin-top: 2px; }
.compare-table tbody td {
    padding: 8px 12px; text-align: center; border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem; color: #334155;
}
.compare-table tbody td:first-child { text-align: left; font-weight: 600; color: #1e293b; padding-left: 20px; }
.compare-table tbody tr:nth-child(even) { background: #f8fafc; }
.compare-table tbody tr.section-divider td {
    background: #f8fafc; font-weight: 700; color: var(--primary);
    font-size: 0.75rem; letter-spacing: 0.3px; padding: 6px 12px; border-bottom: 1px solid #e2e8f0;
}
.compare-table .check-yes { color: var(--teal); font-size: 1rem; font-weight: 700; }
.compare-table .check-no { color: #d1d5db; font-size: 0.9rem; }
.benefit-compare { background: #f1f5f9; border-radius: 32px; padding: 1.5rem; margin-top: 1rem; }
.benefit-item { background: white; border-radius: 24px; padding: 1.2rem; box-shadow: 0 8px 20px rgba(0,0,0,0.03); transition: all 0.2s; height: 100%; border-left: 4px solid var(--primary); }
.benefit-item h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: #0f172a; }
footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 2rem 0 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1rem;
    letter-spacing: -0.2px;
    position: relative;
    display: inline-block;
}
.footer-heading:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--teal));
    border-radius: 3px;
}
.footer-phone-list div, .footer-contact-item {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.footer-phone-list i, .footer-contact-item i {
    width: 1.4rem;
    font-size: 0.9rem;
    color: var(--accent);
}
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.85rem;
}
.footer-links a:hover { color: white; padding-left: 4px; }
hr.footer-divider {
    background-color: #1e293b;
    opacity: 0.5;
    margin: 1rem 0;
}
.copyright-area { font-size: 0.75rem; color: #94a3b8; }
.unread-badge {
    background: #dc3545;
    color: white;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4em;
    height: 1.4em;
    border-radius: 50%;
    padding: 0;
    line-height: 1;
    font-size: 0.5rem;
    position: relative;
    top: -0.6em;
    left: -0.2em;
    vertical-align: middle;
}
.navbar-brand img { height: 34px; margin-right: 4px; }

@media (max-width: 768px) {
    .section { padding: 30px 0; }
    .section-title { margin-bottom: 24px; }
    .hero-section { padding: 40px 0 30px; text-align: center; }
    .hero-section .display-4 { font-size: 1.5rem; }
    .hero-img { margin-top: 1rem; }
    .compare-table thead th, .compare-table tbody td { padding: 6px 8px; font-size: 0.7rem; }
    .btn-primary, .btn-outline-primary { padding: 6px 18px; font-size: 0.8rem; }
    .step-card::after { display: none; }
    .step-card { min-width: 120px; padding: 1rem 0.5rem; }
    .cta-card { padding: 1.2rem 1rem; }
    .cta-big-number { font-size: 1.4rem; }
    .pricing-card-gov.featured { transform: scale(1); }
    .pain-point-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .pain-card { padding: 1rem; }
    .pain-card h3 { font-size: 1rem; }
    .pain-card .pain-quote, .pain-card .pain-solution { font-size: 0.75rem; }
    .member-feature-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .member-card { padding: 0.8rem; gap: 0.5rem; }
    .member-card .member-icon { font-size: 1.2rem; width: 28px; }
    .member-card .member-content h4 { font-size: 0.85rem; }
    .member-card .member-content p { font-size: 0.75rem; }
    .report-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .report-card { padding: 1rem; }
    .report-card h4 { font-size: 0.85rem; }
    .report-card p { font-size: 0.75rem; }
    #實績案例 .row.g-3 > .col-md-4 { flex: 0 0 50%; max-width: 50%; }
    #實績案例 .card-advantage { padding: 0.8rem !important; }
    #實績案例 .card-advantage h3 { font-size: 0.9rem; }
    #實績案例 .card-advantage p { font-size: 0.7rem; }
    #數據遷移 .row.g-3 > .col-md-3 { flex: 0 0 50%; max-width: 50%; }
    .migration-steps { gap: 0.8rem; }
    .step-card { min-width: 130px; padding: 0.8rem 0.2rem; }
}


/* ===== 新增樣式：精簡導航 & 手機優化 ===== */

/* 1. 導航精簡 - 手機版收合 */
.navbar .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    white-space: nowrap;
}
@media (max-width: 991.98px) {
    .navbar .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 0;
        white-space: normal;
        border-bottom: 1px solid #f1f5f9;
    }
    .navbar .nav-link:last-child {
        border-bottom: none;
    }
    /* 手機導航分類標題 */
    .nav-group-label {
        font-weight: 700;
        color: var(--primary);
        padding: 0.6rem 0 0.2rem 0;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 2px solid #e2e8f0;
        margin-top: 0.3rem;
    }
    .nav-group-label:first-of-type {
        margin-top: 0;
    }
}

/* 2. 桌面端導航分組顯示 */
@media (min-width: 992px) {
    .navbar .navbar-nav {
        gap: 0.1rem;
    }
    .navbar .nav-link {
        font-size: 0.78rem;
        padding: 0.4rem 0.5rem;
    }
    .nav-group-divider {
        width: 1px;
        height: 24px;
        background: #e2e8f0;
        margin: 0 0.2rem;
        align-self: center;
        flex-shrink: 0;
    }
}

/* 3. 內容區錨點平滑滾動 + 偏移修正 */
section[id] {
    scroll-margin-top: 80px;
}

/* 4. 手機上內容區塊內邊距優化 */
@media (max-width: 576px) {
    .section {
        padding: 2rem 0;
    }
    .section-title h2 {
        font-size: 1.3rem;
    }
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .hero-section h1 {
        font-size: 1.5rem !important;
    }
    .hero-section .lead {
        font-size: 0.9rem !important;
    }
    .pain-card, .card-advantage, .report-card, .benefit-item {
        padding: 1rem !important;
    }
    .cta-card {
        padding: 1.2rem !important;
    }
}

/* 5. 浮動「回到頂部」按鈕 */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(44, 110, 158, 0.35);
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.back-to-top:hover {
    background: #1a4f73;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(44, 110, 158, 0.45);
    color: #fff;
}
@media (max-width: 576px) {
    .back-to-top {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        bottom: 16px;
        right: 12px;
    }
}

/* 6. 手機端章節內快速導航（折疊式） */
.section-quick-nav {
    display: none;
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.6rem 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid #e2e8f0;
}
.section-quick-nav summary {
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.85rem;
    user-select: none;
}
.section-quick-nav summary::-webkit-details-marker {
    color: var(--primary);
}
.section-quick-nav .quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.6rem;
    padding-top: 0.5rem;
}
.section-quick-nav .quick-links a {
    font-size: 0.8rem;
    color: #475569;
    text-decoration: none;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    transition: background 0.2s;
}
.section-quick-nav .quick-links a:hover {
    background: #e2e8f0;
    color: var(--primary);
}
@media (max-width: 768px) {
    .section-quick-nav {
        display: block;
    }
}

/* 7. 章節分隔視覺提示 */
.section-divider-wave {
    text-align: center;
    color: #cbd5e1;
    font-size: 1.2rem;
    letter-spacing: 6px;
    padding: 0.2rem 0 0.6rem 0;
    user-select: none;
}

/* 8. 政府專案橫幅響應優化 */
.gov-banner-mobile {
    font-size: 0.75rem;
}
@media (max-width: 576px) {
    .gov-banner-mobile .btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
}


/* ===== 媒體中心（影片展示）優化 ===== */
.media-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    max-width: 100%;
    margin: 0 auto;
}

.media-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    width: 100%;
    max-width: 820px;  /* 限制卡片最大寬度，PC/平板上更集中 */
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.12);
}

.media-video {
    position: relative;
    background: #0f172a;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
}

.media-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-info {
    padding: 1.8rem 2rem 2rem;
}

.media-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.media-info p {
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.media-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

/* 未來若有多個卡片，可在平板/PC上改為多欄 */
@media (min-width: 992px) {
    /* 當卡片數量≥2時，可改為兩欄，但目前僅一欄，保持置中 */
    .media-grid {
        /* 維持單欄 */
    }
}
@media (max-width: 576px) {
    .media-info {
        padding: 1.2rem 1.2rem 1.5rem;
    }
    .media-info h3 {
        font-size: 1.1rem;
    }
    .media-info p {
        font-size: 0.9rem;
    }
}