/* farbar-ai-system/software-detail.css */
:root {
  --sd-teal: #1fc8ab; --sd-blue: #5e8dfe;
  --sd-dark: #0f1420; --sd-text: #1f2440; --sd-muted: #63657e;
  
  /* Header Nav Variables */
  --scale: 0.9;
  --nav-height: calc(80px * var(--scale));
  --nav-padding: max(24px, calc(32px * var(--scale)));
  --logo-height: calc(36px * var(--scale));
  --text-white: #fff;
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease;
  --primary-gradient: linear-gradient(90deg, var(--sd-teal), var(--sd-blue));
  --primary-teal: var(--sd-teal);
  --spacing-lg: max(16px, calc(24px * var(--scale)));
  --spacing-md: max(12px, calc(16px * var(--scale)));
  --font-lg: max(16px, round(nearest, calc(18px * var(--scale)), 2px));
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Noto Sans TC", system-ui, sans-serif; color: var(--sd-text); background: #f4f6fa; }
.sd-nav { display: flex; align-items: center; padding: 16px 24px; background: var(--sd-dark); }
.sd-nav img { height: 36px; }

.sd-hero { background: var(--sd-dark); color: #fff; padding: calc(var(--nav-height) + 24px) 24px 56px; text-align: center; }
.sd-back { display: inline-block; color: var(--sd-teal); text-decoration: none; font-weight: 600; margin-bottom: 24px; }
.sd-title { font-size: clamp(28px, 5vw, 44px); font-weight: 700; margin: 0 0 12px;
  background: linear-gradient(90deg, var(--sd-teal), var(--sd-blue));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sd-tagline { font-size: clamp(20px, 2.5vw, 26px); color: #fff; margin: 0 0 16px; font-weight: 400; line-height: 1.6; }
.sd-intro { font-size: 18px; max-width: 760px; margin: 0 auto; line-height: 1.8; color: #aab3c5; white-space: pre-line; }
.sd-sections { max-width: 1100px; margin: 0 auto; padding: 48px 24px calc(136px * var(--scale)); }
.sd-section { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06); padding: 28px; margin-bottom: 24px; }
.sd-section-media { position: relative; }
.sd-section-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); display: block; }
.sd-section.sd-reverse .sd-section-text { order: 2; }
.sd-section-text h2 { font-size: clamp(20px, 3vw, 26px); color: var(--sd-text); margin: 0 0 12px; }
/* 斷行只落在標點上，避免行尾出現孤立單字；overflow-wrap 為超長無標點句子的保險 */
.sd-section-text p { line-height: 1.85; color: var(--sd-muted); margin: 0; text-wrap: pretty;
  word-break: keep-all; overflow-wrap: break-word; white-space: pre-line; }
.sd-figure { margin: 0; }
.sd-img { width: 100%; height: auto; border-radius: 12px; display: block; box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.sd-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--sd-muted); text-align: center; }
.sd-placeholder { display: flex; align-items: center; justify-content: center; min-height: 200px;
  border: 2px dashed var(--sd-teal); border-radius: 12px; color: var(--sd-muted); text-align: center; padding: 24px; background: rgba(31,200,171,0.04); }
.sd-cta { text-align: center; padding: 48px 24px; background: var(--sd-dark); }
.sd-cta-btn { display: inline-block; background: linear-gradient(90deg, var(--sd-teal), var(--sd-blue));
  color: #fff; text-decoration: none; font-weight: 700; padding: 12px 32px; border-radius: 999px; margin-right: 16px; }
.sd-cta-link { color: var(--sd-teal); text-decoration: none; }
.sd-notfound { text-align: center; padding: 80px 24px; }
@media (max-width: 768px) {
  .sd-section { grid-template-columns: 1fr; }
  .sd-section.sd-reverse .sd-section-text { order: 0; }
  .sd-intro { white-space: normal; }
}
