/* ===== 動思網站風格 v1（呼應 FB 圖卡 v2.0 溫暖童趣） ===== */
:root {
  --cream-1: #FFF9F0;
  --cream-2: #FFEED9;
  --cream-3: #FFE3C4;
  --orange: #E8722A;
  --orange-dark: #C2410C;
  --green: #8FC93A;
  --pink: #FF8A80;
  --blue: #5B8DEF;
  --brown: #5B4636;
  --text: #3D2B1F;
  --card-radius: 26px;
}

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

html { scroll-behavior: smooth; background: var(--brown); }

body {
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  color: var(--text);
  background: var(--cream-1);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 249, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-3);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-block { font-size: 26px; }
.logo-text { font-size: 17px; font-weight: 500; }
.logo-text b { color: var(--orange); font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--orange); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text); }

/* ===== Buttons ===== */
.btn-line, .btn-primary, .btn-ghost {
  display: inline-block; text-decoration: none;
  border-radius: 999px; font-weight: 700; transition: 0.2s;
}
.btn-line {
  background: #00B900; color: #fff;
  padding: 10px 20px; font-size: 14px;
}
.btn-line:hover { background: #00a000; transform: translateY(-1px); }
.btn-primary {
  background: var(--orange); color: #fff;
  padding: 14px 34px; font-size: 17px;
  box-shadow: 0 6px 18px rgba(232, 114, 42, 0.3);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.85); color: var(--orange-dark);
  padding: 12px 26px; font-size: 15px; border: 1.5px solid var(--orange);
}
.btn-ghost:hover { background: #fff; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.75) 0%, transparent 42%),
    linear-gradient(160deg, var(--cream-1) 0%, var(--cream-2) 55%, var(--cream-3) 100%);
  padding: 88px 24px 72px;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.9); color: var(--orange-dark);
  padding: 8px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: 1px;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 900; color: var(--orange);
  margin: 22px 0 10px; letter-spacing: 2px;
}
.hero-sub { font-size: clamp(17px, 2.5vw, 22px); color: var(--brown); margin-bottom: 30px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-points {
  margin-top: 36px; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  font-size: 15px; color: var(--brown); font-weight: 500;
}
.hero-local {
  margin: 28px auto 0; max-width: 640px;
  font-size: 14.5px; color: var(--brown);
  background: rgba(255,255,255,0.75);
  padding: 14px 22px; border-radius: 16px;
}

/* ===== Section 通用 ===== */
.section { padding: 72px 24px; }
.section-alt { background: linear-gradient(180deg, var(--cream-2), var(--cream-1)); }
.container { max-width: 1100px; margin: 0 auto; }
.container.narrow { max-width: 780px; }
.section-title {
  font-size: clamp(28px, 4vw, 38px); font-weight: 900;
  color: var(--orange-dark); text-align: center; margin-bottom: 8px;
}
.section-sub { text-align: center; color: var(--brown); margin-bottom: 44px; font-size: 16px; }

/* ===== 課程卡 ===== */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px; margin-bottom: 40px;
}
.course-card {
  background: #fff; border-radius: var(--card-radius);
  padding: 28px 24px 24px;
  border-top: 6px solid var(--bar, var(--orange));
  box-shadow: 0 8px 24px rgba(93, 64, 32, 0.07);
  display: flex; flex-direction: column;
  transition: 0.25s;
}
.course-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(93, 64, 32, 0.12); }
.course-age {
  align-self: flex-start;
  background: var(--cream-2); color: var(--orange-dark);
  font-size: 13px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; margin-bottom: 12px;
}
.course-card h3 { font-size: 21px; font-weight: 900; margin-bottom: 10px; }
.course-desc { font-size: 14.5px; color: var(--brown); flex: 1; margin-bottom: 14px; }
.course-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.course-tags li {
  background: var(--cream-1); border: 1px solid var(--cream-3);
  color: var(--brown); font-size: 12.5px; font-weight: 500;
  padding: 3px 12px; border-radius: 999px;
}

.cta-note {
  background: #fff; border-radius: var(--card-radius);
  padding: 30px; text-align: center;
  border: 2px dashed var(--cream-3);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.cta-note p { font-size: 16px; color: var(--brown); }

/* ===== 理念 ===== */
.philosophy-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.philo-item {
  background: #fff; border-radius: var(--card-radius);
  padding: 28px 22px; text-align: center;
  box-shadow: 0 6px 18px rgba(93, 64, 32, 0.06);
}
.philo-ico { font-size: 40px; margin-bottom: 12px; }
.philo-item h3 { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.philo-item p { font-size: 14px; color: var(--brown); }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-list details {
  background: #fff; border-radius: 18px;
  padding: 0 24px; overflow: hidden;
  border: 1px solid var(--cream-3);
}
.faq-list summary {
  cursor: pointer; font-weight: 700; font-size: 16.5px;
  padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::after { content: '＋'; color: var(--orange); font-size: 20px; }
.faq-list details[open] summary::after { content: '－'; }
.faq-list details p { padding: 0 0 18px; font-size: 15px; color: var(--brown); }

/* ===== 地點 ===== */
.location-box {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 24px; background: #fff; border-radius: var(--card-radius);
  padding: 28px; box-shadow: 0 8px 24px rgba(93, 64, 32, 0.07);
}
.loc-info h3 { font-size: 20px; font-weight: 900; margin-bottom: 12px; }
.loc-addr { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.loc-note { font-size: 14px; color: var(--brown); margin-bottom: 20px; }
.loc-links { display: flex; gap: 12px; flex-wrap: wrap; }
.loc-map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; border-radius: 16px; }

/* ===== Footer ===== */
.footer {
  background: var(--brown); color: rgba(255,255,255,0.9);
  padding: 44px 24px 32px; text-align: center;
}
.footer-brand { font-size: 19px; font-weight: 900; margin-bottom: 4px; }
.footer-motto { color: var(--cream-3); margin-bottom: 14px; font-size: 14px; letter-spacing: 3px; }
.footer-nap { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 16px; line-height: 2.1; }
.footer-nap a { color: #fff; text-decoration: none; }
.footer-nap a[href^="tel:"] { border-bottom: 1.5px dashed rgba(255,255,255,0.55); padding-bottom: 1px; }
.footer-nap a[href^="tel:"]::before { content: "📞 "; }
.footer-nap a[href="https://lin.ee/UehPUuy"] { color: #B8F5B8; font-weight: 700; }
.footer-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.footer-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12.5px; color: rgba(255,255,255,0.5); }

/* ===== LINE 浮動 ===== */
.line-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  background: #00B900; color: #fff; text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 185, 0, 0.4); font-weight: 700; font-size: 15px;
}
.line-float img { display: none; }
.line-float:hover { background: #00a000; }

/* ===== 部落格（雜誌條列式） ===== */
.blog-mag { max-width: 800px; margin: 0 auto; }
.blog-entry {
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--cream-3);
}
.blog-entry:first-child { padding-top: 10px; }
.blog-entry:last-child { border-bottom: none; padding-bottom: 10px; }
.blog-entry-date {
  display: inline-block;
  font-size: 13px;
  color: var(--orange-dark);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.blog-entry-title {
  font-size: clamp(21px, 3.2vw, 26px);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 10px;
}
.blog-entry-title a {
  color: var(--orange-dark);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-entry-title a:hover { color: var(--orange); }
.blog-entry-title a:active { color: var(--orange); }
.blog-entry-excerpt {
  font-size: 15.5px;
  color: var(--brown);
  line-height: 1.9;
  margin-bottom: 12px;
}
.blog-entry-more {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}
.blog-entry:hover .blog-entry-more { color: var(--orange-dark); }

.post-body { max-width: 780px; margin: 0 auto; background: #fff; border-radius: var(--card-radius); padding: 40px 46px; border: 1px solid var(--cream-3); }
.post-body h1 { font-size: 30px; font-weight: 900; color: var(--orange-dark); margin-bottom: 6px; line-height: 1.4; }
.post-date { color: #a08b7a; font-size: 14px; margin-bottom: 24px; }
.post-body p { font-size: 16.5px; margin-bottom: 18px; }
.post-body h2 { font-size: 22px; font-weight: 900; margin: 28px 0 12px; }
.post-body ul, .post-body ol { margin: 0 0 18px 26px; }
.post-body li { margin-bottom: 6px; font-size: 16px; }
.post-back { display: inline-block; margin-bottom: 20px; color: var(--orange-dark); text-decoration: none; font-weight: 700; }

/* 延伸閱讀（blockquote）美化 */
.post-body blockquote {
  background: linear-gradient(135deg, var(--cream-1), #FFF3E4);
  border-left: 5px solid var(--orange);
  border-radius: 0 16px 16px 0;
  padding: 16px 20px;
  margin: 26px 0;
  font-size: 15px;
  color: var(--brown);
  line-height: 1.9;
  box-shadow: 0 3px 10px rgba(93, 64, 32, 0.06);
}
.post-body blockquote a {
  color: var(--orange-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--cream-3);
}
.post-body blockquote a:hover { color: var(--orange); border-bottom-color: var(--orange); }

/* 文章表格美化 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0 26px;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(93, 64, 32, 0.08);
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 14.5px;
}
@media (min-width: 641px) {
  .post-body table { min-width: 0; }
}
.post-body thead th {
  background: var(--orange-dark);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.post-body thead th:first-child { border-radius: 14px 0 0 0; }
.post-body thead th:last-child { border-radius: 0 14px 0 0; }
.post-body tbody tr:last-child td:first-child { border-radius: 0 0 0 14px; }
.post-body tbody tr:last-child td:last-child { border-radius: 0 0 14px 0; }
.post-body tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--cream-3);
  vertical-align: top;
}
.post-body tbody tr:nth-child(even) { background: var(--cream-1); }
.post-body tbody tr:hover { background: var(--cream-2); }
.post-body tbody tr:last-child td { border-bottom: none; }

/* 電話連結美化 */
a[href^="tel:"] {
  color: var(--orange-dark);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
a[href^="tel:"]::before { content: "📞 "; }
a[href^="tel:"]:hover { color: var(--orange); }

/* 手機表格捲動 */
@media (max-width: 560px) {
  .post-body { overflow-x: auto; }
  .post-body table { min-width: 420px; }
}

/* ===== 響應式 ===== */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 62px; right: 0; left: 0;
    background: var(--cream-1); flex-direction: column; align-items: stretch;
    padding: 16px 24px 24px; gap: 14px;
    border-bottom: 1px solid var(--cream-3);
    display: none;
  }
  .nav-links.open { display: flex; }
  .location-box { grid-template-columns: 1fr; }
  .post-body { padding: 28px 22px; }
}
