/*
Theme Name: Kadence Child
Template: kadence
Version: 1.0.0
*/

/* ==========================================
   全域與基礎設定
   ========================================== */
.otter-mega-wrap { width: 100%; overflow: hidden; font-family: 'Noto Sans TC', sans-serif; }

/* ==========================================
   [共用元件] 標籤、標題、副標題
   ========================================== */
.otter-tag { display: inline-block; background: #EBF8FF; border: 1.5px solid #C8E8FA; color: #0C447C; font-size: 13px; font-weight: 700; padding: 5px 16px; border-radius: 20px; margin-bottom: 12px; letter-spacing: .04em; transition: all 0.2s;}
.otter-hero-tag { font-size: 15px !important; padding: 8px 18px !important; margin-bottom: 16px !important; }

.otter-title { font-family: 'LINE Seed JP', 'Noto Sans TC', sans-serif !important; font-weight: 800 !important; line-height: 1.2 !important; color: #2D2D2D !important; margin: 0 0 16px !important; }
.otter-hero-title { font-size: clamp(36px, 5vw, 58px) !important; }
.otter-section-title { font-size: clamp(26px, 4vw, 38px) !important; margin-bottom: 6px !important; }
.otter-subtitle { font-family: 'Noto Sans TC', sans-serif !important; color: #555 !important; font-size: 15px !important; margin: 0 0 10px !important; line-height: 1.5 !important; }

/* ==========================================
   [一] Hero 區塊
   ========================================== */
.otter-hero-wrap { background: #FFFFFF; width: 100%; padding: 15px 24px 0px; }
.otter-hero { max-width: 1100px; margin: 0 auto; }
.otter-hero-inner { display: flex; align-items: stretch; gap: 30px; }
.otter-hero-left { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.otter-hero-left * { text-align: left; }
.otter-hero-right { flex: 0.95; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-width: 0; }

.otter-hero-desc { font-size: clamp(14px, 1.6vw, 18px) !important; line-height: 1.6 !important; color: #666 !important; margin-bottom: 24px !important; }
.otter-hero-left h1, .otter-hero-left h2, .otter-hero-left p, .otter-hero-left ul { margin-top: 0 !important; }
.otter-hero-cta { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; width: 100%;}

.otter-hero-features { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; width: 100% !important; }
.otter-hero-features li { display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 10px !important; font-size: 16px !important; color: #555 !important; font-weight: 500 !important; padding: 5px 0 !important; margin: 0 !important; width: 100% !important; text-align: left !important; }
.otter-hero-features li * { text-align: left !important;}
.otter-hero-features svg { width: 24px !important; height: 24px !important; flex-shrink: 0 !important; }

.otter-btn-primary, .otter-btn-secondary { box-sizing: border-box !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 17px !important; font-weight: 700 !important; height: 52px !important; border-radius: 12px !important; text-decoration: none !important; line-height: 1 !important; transition: all .15s cubic-bezier(0.34, 1.56, 0.64, 1) !important; outline: none !important; -webkit-tap-highlight-color: transparent !important; text-align: center !important; overflow: hidden; text-overflow: ellipsis; }
.otter-btn-primary { background: #FFD900 !important; color: #1F1F1F !important; border: 2px solid #FFD900 !important; box-shadow: 0 4px 0 #C9A800 !important; padding: 0 36px !important; width: fit-content !important;}
.otter-btn-secondary { background: #fff !important; color: #1CB0F6 !important; border: 2px solid #B8D8F0 !important; box-shadow: 0 4px 0 #B8D8F0 !important; padding: 0 20px !important; white-space: nowrap !important; max-width: 200px !important; text-align: center !important;}

@media (hover: hover) {
  .otter-btn-primary:hover { background: #F5D000 !important; border-color: #F5D000 !important; transform: translateY(-2px) !important; box-shadow: 0 6px 0 #C9A800 !important; }
  .otter-btn-secondary:hover { border-color: #1CB0F6 !important; color: #1CB0F6 !important; transform: translateY(-2px) !important; box-shadow: 0 6px 0 #1CB0F6 !important; }
}
.otter-btn-primary:active, .otter-btn-secondary:active { transform: translateY(4px) !important; box-shadow: 0 0 0 transparent !important; }

.otter-card { background: #fff; border-radius: 14px; border: 1px solid #E8EDF2; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.otter-daily-card { padding: 20px 48px 20px 24px; position: relative; overflow: hidden; }
.otter-student-card { padding: 18px 24px; }
.otter-calendar-card { padding: 20px 24px; }
.otter-card-row { display: flex; align-items: center; gap: 12px; }
.otter-card-body { flex: 1; }

@keyframes floatUpDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(28,176,246,.4); transform: scale(1); } 70% { box-shadow: 0 0 0 10px rgba(28,176,246,0); transform: scale(1.05); } 100% { box-shadow: 0 0 0 0 rgba(28,176,246,0); transform: scale(1); } }
.otter-float-1 { animation: floatUpDown 4s ease-in-out infinite; }
.otter-float-2 { animation: floatUpDown 4s ease-in-out infinite .8s; }
.otter-float-3 { animation: floatUpDown 4s ease-in-out infinite 1.6s; }

.otter-daily-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.otter-avatar { font-size: 24px; line-height: 1; }
.otter-avatar-name { font-size: 13px; color: #1CB0F6; font-weight: 600; flex: 1; }
.otter-nav-dots { display: flex; align-items: center; }
.otter-daily-jp { font-size: clamp(15px, 4.5vw, 22px); font-weight: 700; color: #1F1F1F; margin-bottom: 6px; white-space: nowrap; }
.otter-daily-zh { font-size: clamp(13px, 3.5vw, 15px); color: #888; white-space: nowrap; }
.otter-daily-body { overflow: hidden; width: 100%; }
.otter-daily-track { display: flex; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); width: 100%; flex-wrap: nowrap; align-items: stretch; }
.otter-daily-slide { flex: 0 0 100%; width: 100%; min-width: 100%; display: flex; flex-direction: column; justify-content: center; }
.otter-nav-next { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); background: transparent !important; border: none !important; font-size: 32px; line-height: 1; color: rgba(0,0,0,0.15) !important; cursor: pointer; z-index: 5; padding: 10px; transition: color 0.2s; outline: none !important; -webkit-tap-highlight-color: transparent !important; user-select: none;}
.otter-daily-card:hover .otter-nav-next { color: rgba(0,0,0,0.4) !important; }

.otter-lv-badge { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #FFD900, #FFC200); color: #1F1F1F; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.otter-lv-label { font-size: 9px; font-weight: 600; opacity: .7; }
.otter-lv-num { font-size: 11px; font-weight: 800; }
.otter-student-title { font-size: 12px; font-weight: 600; color: #555; display: block; margin-bottom: 6px; }
.otter-xp-bar { height: 8px; background: #E8EDF2; border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.otter-xp-fill { width: 100%; height: 100%; background: linear-gradient(90deg, #FFD900, #FFC200); border-radius: 4px; }
.otter-xp-text { display: flex; justify-content: space-between; font-size: 10px; color: #999; }

.otter-calendar-header { margin-bottom: 16px; font-size: 14px; font-weight: 600; color: #333; }
.otter-week { display: flex; justify-content: space-between; margin-bottom: 16px; }
.otter-day { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.otter-day-label { font-size: 11px; color: #A0AAB5; font-weight: 600; }
.otter-day-label.today-label { color: #1CB0F6; }
.otter-day-dot { width: 32px; height: 32px; border-radius: 50%; background: #F4F6F8; border: 1.5px dashed #DDE1E7; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #A0AAB5; }
.otter-day-dot.today { background: #1CB0F6; border: none; color: #FFF; animation: pulse-dot 2s ease-out infinite; box-shadow: 0 4px 10px rgba(28,176,246,0.3); }
.otter-streak-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; padding: 10px; background: #F0F8FF; border-radius: 10px; }
.otter-streak-emoji { font-size: 18px; line-height: 1; margin-top: -2px; }
.otter-streak-text { font-size: 13px; color: #1CB0F6; font-weight: 600; margin-top: 1px; }
.otter-streak-text strong { font-size: 16px; }
.otter-streak-cta { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #C9A800; background: #FFFBDD; border-radius: 8px; padding: 10px; cursor: pointer; }

/* ==========================================
   [連接處 1] 浪花過渡：白 -> 淺藍
   ========================================== */
.otter-wave-divider { background: #FFFFFF; line-height: 0; margin: 0; padding: 0; width: 100%; }
.otter-wave-divider svg { display: block; width: 100%; height: 6vw; min-height: 40px; max-height: 80px; }

/* ==========================================
   [二] 學習路線圖
   ========================================== */
.otter-map-wrap { background: linear-gradient(180deg, #EBF8FF 0%, #DBEEFF 100%); padding: 20px 0px 80px; position: relative; z-index: 10; }
.otter-map-section { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; padding: 0 24px; }
.otter-section-header { text-align: center; margin-bottom: 30px !important; }
.otter-scroll-hint { text-align: right; font-size: 12px; font-weight: 700; color: #1CB0F6; margin-bottom: -10px; animation: pulseHint 2s infinite ease-in-out; user-select: none !important;}
@keyframes pulseHint { 0%, 100% { opacity: 0.5; transform: translateX(0); } 50% { opacity: 1; transform: translateX(5px); } }

.otter-station-banner { display: flex; background: #fff; border: 2px solid #E8EDF2 !important; border-radius: 16px; margin-bottom: 24px; margin-top: 16px; overflow: hidden; box-shadow: none !important; }
.otter-station-line { background: #EBF8FF !important; color: #0C447C !important; padding: 16px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 90px; }
.otter-line-num { font-size: 22px; font-weight: 900; line-height: 1; }
.otter-line-text { font-size: 11px; font-weight: 700; opacity: 0.8; margin-top: 4px; letter-spacing: 1px; }
.otter-station-info { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.otter-station-name { font-size: 20px; font-weight: 800; color: #1a1a2e; }
.otter-station-next { font-size: 12px; font-weight: 700; color: #1CB0F6; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.otter-station-banner.locked { border-color: #E8EDF2 !important; background: rgba(255,255,255,0.6) !important; }
.otter-station-banner.locked .otter-station-line { background: #F4F6F8 !important; color: #A0AAB5 !important; }
.otter-station-banner.locked .otter-station-name { color: #888; }
.otter-station-banner.locked .otter-station-next { color: #bbb; }

.otter-map-row-wrap { width: 100%; margin: 0 !important; }
.otter-map-row { display: flex; align-items: flex-start; justify-content: flex-start; position: relative; padding: 15px 16px 25px !important; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: grab; -webkit-user-select: none !important; -moz-user-select: none !important; -ms-user-select: none !important; user-select: none !important; }
.otter-map-row:active { cursor: grabbing; }
.otter-map-row::-webkit-scrollbar { display: none; }

.otter-track-line, .otter-map-dash { flex: 0 0 64px; height: 12px; border-radius: 0 !important; margin: 26px -16px 0; position: relative; z-index: 0; pointer-events: none; }
.otter-track-line { background: #1CB0F6; }
.otter-map-dash { background: #E8EDF2; }

.otter-map-node { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; position: relative; z-index: 2; scroll-snap-align: center; user-select: none !important; }
.otter-map-node-btn { box-sizing: border-box; width: 64px !important; height: 64px !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px !important; font-weight: 700; font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif; background: #1CB0F6; border: 4px solid #fff; box-shadow: 0 4px 0 #0e8ecc, 0 8px 16px rgba(28,176,246,.2); cursor: pointer; transition: all .15s cubic-bezier(0.34, 1.56, 0.64, 1); color: #fff; outline: none !important; -webkit-appearance: none; -webkit-tap-highlight-color: transparent !important; white-space: nowrap !important; line-height: 1 !important; user-select: none !important; }
@media (hover: hover) { .otter-map-node-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #0e8ecc, 0 10px 20px rgba(28,176,246,.3); } }
.otter-map-node-btn:active { transform: translateY(4px) !important; box-shadow: 0 0 0 transparent, 0 2px 4px rgba(28,176,246,.2) !important; transition: all 0.05s !important; }
.otter-map-node.active .otter-map-node-btn { background: #FFD900; box-shadow: 0 4px 0 #C9A800, 0 0 0 4px rgba(255,217,0,0.3); color: #1a1a2e; animation: otter-map-pulse 2s infinite; }
@keyframes otter-map-pulse { 0%, 100% { box-shadow: 0 4px 0 #C9A800, 0 0 0 4px rgba(255,217,0,0.3); } 50% { box-shadow: 0 4px 0 #C9A800, 0 0 0 10px rgba(255,217,0,0.6); } }
.otter-map-node.locked .otter-map-node-btn { background: #F4F6F8; box-shadow: 0 4px 0 #DDE1E7; cursor: default; color: #A0AAB5; }
.otter-map-node.locked .otter-map-node-btn:hover, .otter-map-node.locked .otter-map-node-btn:active { transform: none !important; box-shadow: 0 4px 0 #DDE1E7 !important; }

.otter-map-node-label { font-size: 13px; font-weight: 800; color: #1a1a2e; text-align: center; background: rgba(255,255,255,0.8); padding: 4px 8px; border-radius: 8px; white-space: nowrap !important; pointer-events: none; user-select: none !important;}
.otter-map-node.locked .otter-map-node-label { color: #A0AAB5; background: transparent; }
.otter-map-node-stars { font-size: 10px; letter-spacing: 1px; color: #f5a623; margin-top: -4px; pointer-events: none; user-select: none !important;}
.otter-map-node.locked .otter-map-node-stars { color: #DDE1E7; }

.otter-chapter-sep { height: 16px; }
.otter-cta { margin-top: 24px !important; display: flex !important; flex-direction: column !important; align-items: center !important; gap: 16px !important; }
.otter-cta-btn { box-sizing: border-box !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; background: #FFD900 !important; color: #1a1a2e !important; font-size: 17px !important; font-weight: 800 !important; height: 56px !important; width: fit-content !important; min-width: unset !important; margin: 0 auto !important; padding: 0 40px !important; border-radius: 14px !important; border: 2px solid #FFD900 !important; box-shadow: 0 6px 0 #C9A800 !important; cursor: pointer !important; text-decoration: none !important; line-height: 1 !important; transition: all .15s cubic-bezier(0.34, 1.56, 0.64, 1) !important; outline: none !important; -webkit-tap-highlight-color: transparent !important; user-select: none !important; }
@media (hover: hover) { .otter-cta-btn:hover { background: #F5D000 !important; border-color: #F5D000 !important; transform: translateY(-2px) !important; box-shadow: 0 8px 0 #C9A800 !important; } }
.otter-cta-btn:active { transform: translateY(4px) !important; box-shadow: 0 0 0 transparent !important; transition: all 0.05s !important; }

/* ==========================================
   [連接處 2] 浪花過渡：淺藍 -> 白
   ========================================== */
.otter-wave-divider-reverse { background: #DBEEFF; line-height: 0; margin: 0; padding: 0; width: 100%; }
.otter-wave-divider-reverse svg { display: block; width: 100%; height: 6vw; min-height: 40px; max-height: 80px; }

/* ==========================================
   [三] 精選課程
   ========================================== */
.otter-course-wrap { background: #FFFFFF; padding: 40px 24px 80px; position: relative; z-index: 10; }
.otter-course-section { max-width: 1060px; margin: 0 auto; position: relative; z-index: 1; }
.otter-course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.otter-course-card { background: #fff; border-radius: 24px; border: 2px solid #E8EDF2 !important; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; cursor: pointer; position: relative; display: flex; flex-direction: column; box-shadow: none !important; text-align: left; margin-top: 16px;}
.otter-course-card:hover { transform: translateY(-4px); border-color: #1CB0F6 !important; box-shadow: 0 12px 24px rgba(28,176,246,0.08) !important; }
.otter-course-cover { height: 80px; position: relative; width: 100%; }
.otter-course-card.c-blue .otter-course-cover { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); }
.otter-course-card.c-green .otter-course-cover { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); }
.otter-course-card.c-orange .otter-course-cover { background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%); }
.otter-course-level-badge { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.7); backdrop-filter: blur(4px); font-size: 11px; font-weight: 800; padding: 6px 12px; border-radius: 12px; color: #1a1a2e; letter-spacing: 0.05em; border: 1px solid rgba(255,255,255,0.8);}
.otter-course-card-body { padding: 0 24px 24px; flex: 1; display: flex; flex-direction: column; }
.otter-course-icon-wrap { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif; margin-top: -32px; margin-bottom: 20px; flex-shrink: 0; border: 4px solid #fff; color: #fff; position: relative; z-index: 2; }
.otter-course-card.c-blue .otter-course-icon-wrap { background: #1CB0F6; box-shadow: 0 4px 0 #0e8ecc; font-size: 24px;}
.otter-course-card.c-green .otter-course-icon-wrap { background: #58CC02; box-shadow: 0 4px 0 #58A700; }
.otter-course-card.c-orange .otter-course-icon-wrap { background: #FF9600; box-shadow: 0 4px 0 #e08500; }
.otter-course-card-name { font-family: 'LINE Seed Sans TC', 'LINE Seed TC', 'Noto Sans TC', sans-serif !important; font-size: 22px; font-weight: 800 !important; color: #1a1a2e; margin-bottom: 0px; line-height: 1.3; flex: 1;}
.otter-course-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid #E8EDF2; margin-top: 20px;}
.otter-course-meta-info { font-size: 13px; color: #888; display: flex; align-items: center; gap: 6px; font-weight: 500;}
.otter-course-meta-info strong { color: #444; font-weight: 700;}
.otter-course-card-btn { font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; padding: 8px 16px; border-radius: 20px; transition: all .15s; }
.otter-course-card.c-blue .otter-course-card-btn { color: #fff; background: #1CB0F6; box-shadow: 0 4px 0 #0e8ecc;}
.otter-course-card.c-green .otter-course-card-btn { color: #fff; background: #58CC02; box-shadow: 0 4px 0 #58A700;}
.otter-course-card.c-orange .otter-course-card-btn { color: #fff; background: #FF9600; box-shadow: 0 4px 0 #e08500;}
.otter-course-card:hover .otter-course-card-btn { transform: translateY(-2px); }
.otter-course-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px;}
.otter-course-feature { background: #fff; border-radius: 20px; border: 1px solid #E8EDF2; padding: 20px; display: flex; align-items: flex-start; gap: 16px; transition: all 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,0.02);}
.otter-course-feature:hover { border-color: #1CB0F6; box-shadow: 0 8px 24px rgba(28,176,246,0.08); transform: translateY(-4px); }
.otter-course-feature-icon { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.otter-course-feature:nth-child(1) .otter-course-feature-icon { background: #EBF8FF; color: #1CB0F6;}
.otter-course-feature:nth-child(2) .otter-course-feature-icon { background: #FFF5E5; color: #FF9600;}
.otter-course-feature:nth-child(3) .otter-course-feature-icon { background: #F4F6F8; color: #555;}
.otter-course-feature:nth-child(4) .otter-course-feature-icon { background: #F0FFF0; color: #58CC02;}
.otter-course-feature-text { display: flex; flex-direction: column; justify-content: center; }
.otter-course-feature-title { font-size: 15px; font-weight: 800; color: #1a1a2e; margin-bottom: 4px; line-height: 1.2; }
.otter-course-feature-desc { font-size: 12px; color: #777; line-height: 1.5; margin: 0;}

/* ==========================================
   [連接處 3] 浪花過渡：白 -> 淺藍
   ========================================== */
.otter-wave-divider-feed { background: #FFFFFF; line-height: 0; margin: 0; padding: 0; width: 100%; }
.otter-wave-divider-feed svg { display: block; width: 100%; height: 6vw; min-height: 40px; max-height: 80px; }

/* ==========================================
   [四] 學員動態牆
   ========================================== */
.otter-feed-wrap { background: linear-gradient(180deg, #EBF8FF 0%, #DBEEFF 100%); padding: 40px 0px 80px; position: relative; z-index: 10; }
.otter-feed-section { max-width: 1060px; margin: 0 auto; position: relative; z-index: 1; padding: 0 24px; }
.otter-feed-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.otter-feed-all-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: #1CB0F6; text-decoration: none; border: 2px solid #C8E8FA; background: #EBF8FF; border-radius: 12px; padding: 10px 20px; transition: all .15s; white-space: nowrap; }
.otter-feed-all-btn:hover { background: #1CB0F6; color: #fff; border-color: #1CB0F6; transform: scale(1.05); }
.otter-feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 0; }
.otter-post-card { background: #fff; border-radius: 24px; overflow: hidden; border: 2px solid #E8EDF2 !important; transition: transform .2s, box-shadow .2s, border-color .2s; cursor: pointer; display: flex; flex-direction: column; box-shadow: none !important; text-align: left; }
.otter-post-card:hover { transform: translateY(-4px); border-color: #1CB0F6 !important; box-shadow: 0 12px 24px rgba(28,176,246,0.08) !important; }
.otter-post-img { width: 100%; height: 160px; object-fit: cover; background: linear-gradient(135deg, #EBF8FF, #DBEEFF); display: flex; align-items: center; justify-content: center; font-size: 40px; color: #aaa; flex-shrink: 0; border-bottom: 1px solid #E8EDF2; border-radius: 22px 22px 0 0;}
.otter-post-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px 22px 0 0;}
.otter-post-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.otter-post-cat { font-size: 11px; font-weight: 800; color: #1CB0F6; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.otter-post-title { font-family: 'LINE Seed Sans TC', 'LINE Seed TC', 'Noto Sans TC', sans-serif !important; font-size: 18px; font-weight: 800; color: #1a1a2e; line-height: 1.4; margin-bottom: 10px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.otter-post-excerpt { font-size: 13px; color: #777; line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.otter-post-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid #E8EDF2; }
.otter-post-date { font-size: 12px; color: #A0AAB5; font-weight: 600; }
.otter-post-read-btn { font-size: 13px; font-weight: 800; color: #1CB0F6; text-decoration: none; display: flex; align-items: center; gap: 4px; transition: gap .15s; }
.otter-post-read-btn:hover { gap: 8px; }
.otter-feed-loading, .otter-feed-empty { text-align: center; padding: 60px; color: #A0AAB5; font-weight: 600; }
.otter-feed-empty-icon { font-size: 48px; margin-bottom: 16px; }
.otter-feed-empty-text { font-size: 16px; color: #1a1a2e; margin-bottom: 8px; font-weight: 700; }
.otter-feed-empty-sub { font-size: 13px; color: #888; }

/* ==========================================
   Header 按鈕樣式
   ========================================== */
.site-header .button,
.site-header a.button,
.site-header .button:visited,
.site-header a.button:visited {
  background-color: #1CB0F6 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 16px !important;
  font-weight: 900 !important;
  padding: 12px 24px !important;
  box-shadow: 0 4px 0 #1899D6 !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  will-change: transform, box-shadow;
  transition: transform 0.1s ease, box-shadow 0.1s ease !important;
  -webkit-touch-callout: none !important;
}
@media (min-width: 769px) {
  .site-header .button:hover,
  .site-header a.button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 0 #1899D6 !important;
  }
  .site-header .button:active,
  .site-header a.button:active {
    transform: translateY(4px) !important;
    box-shadow: 0 0 0 transparent !important;
  }
}
@media (max-width: 1024px) {
  .site-header .button,
  .site-header a.button {
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.1s ease !important;
  }
  .site-header .button.is-pressed,
  .site-header a.button.is-pressed {
    transform: scale(0.92) !important;
    transition: transform 0s, box-shadow 0s !important;
  }
}

/* ==========================================
   導覽列選單 — 由 functions.php 的 inline style 控制
   ========================================== */

/* ==========================================
   平板 / 手機底部導覽列
   Kadence 小於桌機寬度後會切到平板/手機 header，
   這裡讓 bottom nav 接手，避免中間寬度沒有選單。
   ========================================== */
.otter-bnav { display: none; }

@media (max-width: 1024px) {
  .otter-bnav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1.5px solid #F0F4F8;
    box-shadow: 0 -4px 20px rgba(0,0,0,.07);
    z-index: 9999;
    padding: 8px 0 calc(5px + env(safe-area-inset-bottom));
  }

  .otter-bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #B0B8C4 !important;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  .otter-bnav-item svg {
    width: 22px;
    height: 22px;
    transition: transform .15s;
  }

  .otter-bnav-item.active { color: #1CB0F6 !important; }
  .otter-bnav-item.active svg { transform: scale(1.1); }

  .otter-bnav-item.active::after {
    content: '';
    width: 5px;
    height: 5px;
    background: #1CB0F6;
    border-radius: 50%;
    margin-top: 2px;
  }

  .header-navigation { display: none !important; }

  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
  }
}

/* ==========================================
   Footer
   ========================================== */
.site-middle-footer-wrap { display: none !important; }
.site-bottom-footer-wrap .site-container { padding: 12px 24px !important; }

/* ==========================================
   桌面版 Hero 加強
   ========================================== */
@media (min-width: 1100px) {
  .otter-hero { max-width: 1200px; padding: 48px 40px 24px; }
  .otter-hero-right { flex: 0.75; }
  .otter-hero-title { font-size: clamp(48px, 4.5vw, 62px); }
}

/* ==========================================
   RWD 手機版
   ========================================== */
@media(max-width: 900px) {
  .otter-hero-wrap { padding: 15px 16px 0px; }
  .otter-hero-inner { flex-direction: column; gap: 20px; align-items: stretch; }
  .otter-hero-left { align-items: flex-start !important; text-align: left !important;}
  .otter-hero-right { width: 100%; gap: 12px; }
  .otter-hero-cta { flex-wrap: nowrap; gap: 10px; justify-content: flex-start;}
  .otter-hero-features { align-items: flex-start !important; }
  .otter-hero-features li { justify-content: flex-start !important; padding: 6px 0 !important; }
  .otter-btn-primary, .otter-btn-secondary { flex: 1 !important; height: 50px !important; padding: 0 !important; font-size: 14px !important; margin-left: 0 !important; }
  .otter-btn-secondary { font-size: 13px !important; max-width: none !important; }
  .otter-daily-card { padding: 18px 40px 18px 20px; }
  .otter-student-card, .otter-calendar-card { padding: 18px 20px; }
  .otter-day-dot { width: 28px; height: 28px; font-size: 11px; }
  .otter-section-header { margin-bottom: 20px !important; }
  .otter-map-wrap { padding: 20px 0px 60px; }
  .otter-map-section { padding: 0 16px; }
  .otter-station-banner { flex-direction: row; padding: 0; margin-bottom: 24px; }
  .otter-station-line { padding: 12px 16px; min-width: 70px; }
  .otter-line-num { font-size: 18px; }
  .otter-station-info { padding: 12px 16px; }
  .otter-station-name { font-size: 17px; }
  .otter-map-row-wrap { margin: 0 !important; }
  .otter-map-row { padding: 15px 16px 25px !important; }
  .otter-track-line, .otter-map-dash { flex: 0 0 45px; margin-top: 22px; border-radius: 0 !important; margin-left: -12px; margin-right: -12px;}
  .otter-map-node-btn { width: 56px !important; height: 56px !important; font-size: 16px !important; }
  .otter-map-node-label { font-size: 12px; }
  .otter-cta-btn { width: fit-content !important; max-width: none !important; height: 52px !important; padding: 0 40px !important; font-size: 16px !important; }
  .otter-course-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px;}
  .otter-course-card-body { padding: 0 24px 24px; }
  .otter-course-features { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px;}
  .otter-course-wrap { padding: 40px 16px 64px; }
  .otter-feed-wrap { padding: 20px 0px 60px; }
  .otter-feed-grid { grid-template-columns: 1fr; padding: 0 16px; gap: 16px; }
  .otter-feed-header { flex-direction: column; align-items: flex-start; padding: 0 16px; margin-bottom: 24px; }
}
@media(max-width: 640px) {
  .otter-course-features { grid-template-columns: 1fr; }
}

/* ==========================================
   Otter CSS 安全優化補丁
   放在 style.css 最底部，避免影響原本結構
   ========================================== */

/* 1. 平板 / 手機底部導覽：補安全區與顯示穩定性 */
@media (max-width: 1024px) {
  .otter-bnav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    padding: 8px 0 calc(5px + env(safe-area-inset-bottom)) !important;
  }

  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
  }
}

/* 2. 桌機 Hero 標題權重修正 */
@media (min-width: 1100px) {
  .otter-hero-title {
    font-size: clamp(48px, 4.5vw, 62px) !important;
  }
}

/* 3. 每日句子過長時不要爆版 */
.otter-daily-jp,
.otter-daily-zh {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 4. 文章與課程卡片底部資訊避免擠壓 */
.otter-course-card-btn,
.otter-post-read-btn {
  white-space: nowrap;
}

.otter-post-meta {
  gap: 12px;
}

/* 5. 超窄手機 Hero 按鈕改上下排列 */
@media (max-width: 380px) {
  .otter-hero-cta {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .otter-btn-primary,
  .otter-btn-secondary {
    width: 100% !important;
  }
}