/* 弗洛材料 — 首頁樣式 */

/* Hero Slider
   Banner 設計尺寸 2560×800（16:5 比例）
   clamp(480px, 100vw/3.2, 800px) 讓高度隨寬度等比縮放：
     1920px 寬 → 600px 高
     2560px 寬 → 800px 高（最大值，2K/超寬螢幕完整顯示）
     1440px 以下 → 最低 480px 保底
*/
.hero-wrap {
    position: relative;
    width: 100%;
    height: clamp(480px, calc(100vw / 3.2), 800px);
    margin-top: 70px;
    overflow: hidden;
    background: #0D2137;
}
.hero-wrap img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity .8s ease;
}
.hero-wrap img.active { opacity: 1; }

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(13,33,55,.75) 0%, rgba(13,33,55,.35) 60%, transparent 100%);
    z-index: 2;
}
.hero-content {
    position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
    z-index: 3;
    padding: 0 2rem;
}
.hero-dots {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 5; display: flex; gap: .5rem;
}
.hero-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.4); cursor: pointer;
    transition: all .3s;
}
.hero-dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* Category list cards */
.cat-card {
    display: flex; align-items: center; gap: 1rem;
    background: #fff;
    border: 1.5px solid #e5eaf3;
    border-radius: .875rem;
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cat-card:hover {
    border-color: #1976D2;
    box-shadow: 0 6px 24px rgba(25,118,210,.12);
    transform: translateY(-2px);
}
.cat-card .icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: #E3F0FF;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    transition: background .2s;
}
.cat-card:hover .icon { background: #1976D2; }
.cat-card .label { flex: 1; min-width: 0; }
.cat-card .label .zh {
    font-size: .9rem; font-weight: 600; color: #1a2d45;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-card .label .en {
    font-size: .72rem; color: #6b8199; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-card .arrow {
    flex-shrink: 0; color: #1976D2; font-size: 1.1rem;
    opacity: 0; transition: opacity .2s, transform .2s;
}
.cat-card:hover .arrow { opacity: 1; transform: translateX(3px); }
