/* Uedu 優嘟嘟產品頁（templates/dudu/_product_body.html）
   未登入的一頁式（product.html）與登入後的 Uedu 模板版（product_member.html）共用。
   所有規則都限定在 .ddp 之內，放進 base.html 時不影響側欄、頁首與 Bootstrap 元件。 */
.ddp {
  --blue: #3C6F9A; --blue-dark: #2d5578; --teal: #3C938A; --mint: #00b297; --warm: #D97B29;
  --ink: #1f2933; --muted: #52606d; --line: #e4e7eb; --soft: #f5f7fa; --white: #ffffff;
  --gradient: linear-gradient(149deg, #3C6F9A 0%, #3C938A 100%);
  color: var(--ink); background: var(--white); line-height: 1.7; font-size: 17px;
  font-family: 'Inter', -apple-system, 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', 'Segoe UI', Arial, sans-serif;
}
.ddp *, .ddp *::before, .ddp *::after { box-sizing: border-box; }
.ddp img { max-width: 100%; display: block; }
.ddp a { color: var(--blue); }
.ddp figure { margin: 0; }
.ddp .wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* 標題與文字 */
.ddp h1, .ddp h2, .ddp h3 { font-family: inherit; color: var(--ink); }
.ddp h2 { font-size: 34px; line-height: 1.3; margin: 0 0 30px; font-weight: 700; letter-spacing: 0; }
.ddp h3 { font-size: 18px; margin: 0 0 4px; font-weight: 700; line-height: 1.3; }
.ddp .line { margin: 0; color: var(--muted); font-size: 15.5px; }
.ddp .kicker { color: var(--teal); font-weight: 700; letter-spacing: 0.04em; font-size: 13px; margin: 0 0 10px; }

/* 按鈕（不用 Bootstrap 的 .btn，避免互相覆蓋） */
.ddp .ddp-btn { display: inline-block; padding: 11px 24px; border-radius: 50rem; font-weight: 600; font-size: 15px; line-height: 1.4; text-decoration: none; border: 1px solid transparent; }
.ddp .ddp-btn-light { background: var(--white); color: var(--blue); }
.ddp .ddp-btn-light:hover { background: #eef4f9; color: var(--blue-dark); }
.ddp .ddp-btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.ddp .ddp-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

/* Hero */
.ddp .hero { background: var(--gradient); color: var(--white); }
.ddp .hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.ddp .eyebrow { letter-spacing: 0.04em; font-size: 13px; font-weight: 600; opacity: 0.9; margin: 0 0 14px; color: var(--white); }
.ddp .hero h1 { font-size: 46px; line-height: 1.3; margin: 0 0 20px; font-weight: 700; letter-spacing: 0; color: var(--white); }
.ddp .hero p.lead { font-size: 19px; margin: 0 0 24px; opacity: 0.95; color: var(--white); font-weight: 400; }
.ddp .hero-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.ddp .hero-tools li { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35); border-radius: 50rem; padding: 6px 14px; font-size: 15px; font-weight: 600; }
.ddp .hero-tools i { font-size: 18px; }
.ddp .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ddp .hero-dog { display: flex; justify-content: center; }
.ddp .hero-dog img { width: 100%; max-width: 420px; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.22)); }

/* 圖示 */
.ddp .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.ddp .ic.sm { width: 40px; height: 40px; font-size: 18px; }
.ddp .ic.soft { background: #e6f0f7; color: var(--blue); }

/* 四項特色 */
.ddp .pillars { border-bottom: 1px solid var(--line); }
.ddp .pillars .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.ddp .pillar { padding: 28px 18px; border-right: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.ddp .pillar:last-child { border-right: none; }
.ddp .pillar h3 { font-size: 19px; }

/* 區塊與格線 */
.ddp section.block { padding: 80px 0; }
.ddp section.alt { background: var(--soft); }
.ddp .two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ddp .g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ddp .item { display: flex; gap: 16px; align-items: flex-start; }
.ddp .tile { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; transition: border-color 0.2s, box-shadow 0.2s; }
.ddp .tile:hover { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(60, 147, 138, 0.12); }
.ddp .tile.c { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ddp .sub-h { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--blue); letter-spacing: 0.04em; margin: 44px 0 18px; }
.ddp .sub-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* 嘟嘟的表情 */
.ddp .moods { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 8px; }
.ddp .mood { text-align: center; }
.ddp .mood img { width: 100%; max-width: 130px; margin: 0 auto 6px; }
.ddp .mood span { font-size: 14px; color: var(--muted); }

/* 進度標籤、同意項目、系統流程 */
.ddp .status { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 50rem; padding: 2px 10px; margin-left: 6px; vertical-align: 2px; }
.ddp .status.done { color: #2f7a72; background: rgba(0,178,151,0.12); }
.ddp .status.dev { color: #7c4a03; background: #fdf0dc; }
.ddp .scopes { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.ddp .scopes li { font-size: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 50rem; padding: 4px 12px; color: var(--muted); }
.ddp .flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; margin-bottom: 36px; }
.ddp .flow .arrow { display: flex; align-items: center; color: var(--teal); font-size: 26px; }
.ddp .flow .tile h3 { margin-bottom: 8px; }
.ddp .flow ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }

/* 試辦流程與聯絡 */
.ddp .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ddp .num-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.ddp .contact { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.ddp .contact .mail { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--blue); text-decoration: none; word-break: break-all; }
.ddp .contact .mail:hover { color: var(--blue-dark); }

/* 目前進度 */
.ddp .progress-list { list-style: none; margin: 0; padding: 0; }
.ddp .progress-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.ddp .progress-list li:last-child { border-bottom: none; }
.ddp .progress-list i { font-size: 20px; margin-top: 1px; }
.ddp .progress-list .bi-check-circle-fill { color: var(--mint); }
.ddp .progress-list .bi-tools { color: var(--warm); }
.ddp .progress-list .bi-signpost { color: var(--blue); }

/* 結尾 */
.ddp .vision { background: var(--gradient); color: var(--white); text-align: center; padding: 90px 0; }
.ddp .vision h2 { font-size: 38px; max-width: 860px; margin: 0 auto 16px; color: var(--white); }
.ddp .vision p { font-size: 18px; opacity: 0.95; max-width: 720px; margin: 0 auto; }

@media (max-width: 960px) {
  .ddp .hero .wrap, .ddp .two { grid-template-columns: 1fr; gap: 32px; }
  .ddp .hero h1 { font-size: 36px; }
  .ddp .hero-dog img { max-width: 300px; }
  .ddp .pillars .wrap { grid-template-columns: 1fr 1fr; }
  .ddp .pillar { border-right: none; border-bottom: 1px solid var(--line); }
  .ddp .g3 { grid-template-columns: 1fr 1fr; }
  .ddp .moods { grid-template-columns: repeat(3, 1fr); }
  .ddp .flow { grid-template-columns: 1fr; }
  .ddp .flow .arrow { justify-content: center; transform: rotate(90deg); }
  .ddp .steps { grid-template-columns: 1fr 1fr; }
  .ddp .contact { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .ddp { font-size: 16px; }
  .ddp .wrap { padding: 0 16px; }
  .ddp section.block { padding: 56px 0; }
  .ddp h2 { font-size: 28px; }
  .ddp .hero h1 { font-size: 31px; }
  .ddp .pillars .wrap, .ddp .g3, .ddp .steps { grid-template-columns: 1fr; }
  .ddp .vision h2 { font-size: 29px; }
  .ddp .contact { padding: 22px; }
  .ddp .contact .mail { font-size: 17px; }
}
