/* 職業別頁 /for/<slug>、/for、範本頁 /templates、公開目錄 /directory 共用樣式（2026-10-14）
 * 跟 guide 教學文同一套視覺：深色導覽列＋深色 hero、白底內文、LINE 綠強調 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif; color: #2d2d2d; line-height: 1.75; background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: #04a847; }
.sp-nav { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 10, .96); height: 60px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; white-space: nowrap; }
.sp-brand img { width: 30px; height: 30px; }
.sp-brand em { color: #06c755; font-style: normal; margin-left: 2px; }
.sp-nav-links { display: flex; gap: 8px; }
.sp-nav-links a { padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sp-nav-links .o { color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.sp-nav-links .g { background: #06c755; color: #fff; }

.sp-hero { background: linear-gradient(135deg, #0a0a0a 0%, #12261a 55%, #0a0a0a 100%); color: #fff; padding: 44px 20px 48px; }
.sp-hero-in { max-width: 980px; margin: 0 auto; }
.sp-crumb { font-size: 13px; color: rgba(255, 255, 255, .55); margin-bottom: 14px; }
.sp-crumb a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.sp-crumb a:hover { color: #06c755; }
.sp-hero h1 { font-size: 38px; line-height: 1.25; font-weight: 800; letter-spacing: .01em; margin-bottom: 16px; }
.sp-hero h1 em { color: #06c755; font-style: normal; }
.sp-answer { font-size: 17px; line-height: 1.85; color: rgba(255, 255, 255, .86); max-width: 760px; }
.sp-meta { font-size: 13px; color: rgba(255, 255, 255, .45); margin-top: 14px; }
.sp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.sp-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; }
.sp-btn-g { background: #06c755; color: #fff; box-shadow: 0 6px 18px rgba(6, 199, 85, .3); }
.sp-btn-g:hover { background: #05b34d; }
.sp-btn-o { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.sp-btn-o:hover { border-color: #06c755; color: #06c755; }

.sp-wrap { max-width: 980px; margin: 0 auto; padding: 40px 20px 0; }
.sp-art { font-size: 16.5px; line-height: 1.85; }
.sp-art > p { margin-bottom: 18px; }
.sp-art h2 { font-size: 26px; line-height: 1.35; font-weight: 800; color: #0a0a0a; margin: 48px 0 16px; padding-top: 20px; border-top: 4px solid #06c755; }
.sp-art h3 { font-size: 18.5px; font-weight: 700; color: #1e293b; margin: 0 0 6px; line-height: 1.45; }
.sp-art ul, .sp-art ol { margin: 10px 0 20px 22px; }
.sp-art li { margin-bottom: 10px; }
.sp-art strong { color: #0a0a0a; }
.sp-intro { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: start; }
.sp-intro p { margin-bottom: 16px; }
.sp-fig { margin: 0; text-align: center; }
.sp-fig img { width: 260px; border-radius: 22px; box-shadow: 0 14px 40px rgba(15, 23, 42, .18); border: 1px solid #e5e7eb; display: block; margin: 0 auto; }
.sp-fig figcaption { font-size: 13px; color: #64748b; margin-top: 10px; line-height: 1.6; }
.sp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 12px; }
.sp-card { border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px 20px 18px; background: #fff; }
.sp-card p { font-size: 15.5px; color: #475569; margin: 0; }
.sp-steps { list-style: none; margin: 8px 0 12px !important; counter-reset: st; }
.sp-steps li { position: relative; padding: 18px 20px 18px 66px; border: 1px solid #e2e8f0; border-radius: 16px; margin-bottom: 14px; }
.sp-steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: #06c755; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sp-steps p { margin: 0; color: #475569; font-size: 15.5px; }
.sp-fields { list-style: none; margin: 8px 0 12px !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sp-fields li { margin: 0; padding: 14px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; font-size: 15.5px; color: #475569; }
.sp-fields li strong { display: block; font-size: 16px; margin-bottom: 2px; }
.sp-tip { background: #f0fdf4; border: 1px solid #bbf7d0; border-left: 5px solid #06c755; border-radius: 12px; padding: 16px 20px; color: #14532d; font-size: 15.5px; }
.sp-tip h2 { border: 0; padding: 0; margin: 0 0 6px; font-size: 18px; color: #14532d; }
.sp-faq { margin: 8px 0 12px; }
.sp-faq-i { border-bottom: 1px solid #e2e8f0; padding: 16px 0; }
.sp-faq-i h3 { font-size: 17px; }
.sp-faq-i p { color: #475569; font-size: 15.5px; margin: 4px 0 0; }
.sp-inline-cta { margin: 36px 0 0; padding: 24px 26px; border-radius: 16px; background: linear-gradient(135deg, #f0fdf4, #e6f9ee); border: 1px solid rgba(6, 199, 85, .25); }
.sp-inline-cta h2 { border: 0; padding: 0; margin: 0 0 8px; font-size: 20px; }
.sp-inline-cta p { font-size: 15px; color: #374151; margin-bottom: 14px; }
.sp-related { margin: 40px 0 0; padding: 22px 24px; border-radius: 16px; background: #f8fafc; border: 1px solid #e2e8f0; }
.sp-related h2 { border: 0; padding: 0; margin: 0 0 12px; font-size: 18px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 !important; }
.sp-chips li { margin: 0; }
.sp-chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid #d1e7da; color: #047857; font-weight: 600; font-size: 14px; text-decoration: none; }
.sp-chips a:hover { border-color: #06c755; }
.sp-chips .n { color: #94a3b8; font-weight: 500; margin-left: 4px; }

/* 範本頁 */
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin: 8px 0 12px; }
.sp-tpl { border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.sp-tpl-img { background: #eef1f4; padding: 14px; display: flex; align-items: flex-start; justify-content: center; height: 300px; overflow: hidden; }
.sp-tpl-img img { width: 100%; max-width: 230px; border-radius: 10px; }
.sp-tpl-img.web { padding: 0; height: 340px; }
.sp-tpl-img.web img { max-width: none; border-radius: 0; object-fit: cover; object-position: top; height: 100%; }
.sp-tpl-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sp-tpl-n { font-size: 16.5px; font-weight: 800; color: #0a0a0a; }
.sp-tpl-b p { font-size: 14.5px; color: #475569; line-height: 1.65; margin: 0; flex: 1; }
.sp-tpl-b .sp-btn { padding: 9px 14px; font-size: 14px; border-radius: 10px; margin-top: 6px; }
.sp-table-wrap { overflow-x: auto; margin: 8px 0 16px; -webkit-overflow-scrolling: touch; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sp-table caption { text-align: left; font-size: 13px; color: #64748b; padding-bottom: 8px; }
.sp-table th, .sp-table td { border-bottom: 1px solid #e2e8f0; padding: 11px 12px; text-align: left; vertical-align: top; }
.sp-table thead th { background: #0a0a0a; color: #fff; }
.sp-table tbody th { background: #f8fafc; font-weight: 700; white-space: nowrap; width: 1%; }
@media (max-width: 760px) { .sp-table { font-size: 14px; } .sp-table th, .sp-table td { padding: 9px 8px; } }

/* 公開目錄 */
.sp-dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 8px 0 12px; }
.sp-person { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 16px; text-decoration: none; color: inherit; background: #fff; }
.sp-person:hover { border-color: #06c755; box-shadow: 0 6px 18px rgba(6, 199, 85, .12); }
.sp-person img, .sp-person .av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: #06c755; color: #fff; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.sp-person b { display: block; font-size: 16px; color: #0a0a0a; line-height: 1.4; overflow-wrap: anywhere; }
.sp-person span { display: block; font-size: 13.5px; color: #64748b; line-height: 1.5; overflow-wrap: anywhere; }
.sp-empty { border: 1.5px dashed #cbd5e1; border-radius: 18px; padding: 26px 24px; background: #f8fafc; }
.sp-empty ol { margin: 10px 0 14px 22px; }

.sp-big-cta { background: linear-gradient(135deg, #06c755, #04a847); color: #fff; text-align: center; padding: 52px 20px; margin-top: 56px; }
.sp-big-cta h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.sp-big-cta p { color: rgba(255, 255, 255, .92); margin: 0 auto 22px; max-width: 600px; }
.sp-big-cta .sp-btn { background: #fff; color: #04a847; }

.sp-foot { background: #0a0a0a; color: rgba(255, 255, 255, .5); padding: 36px 20px 30px; font-size: 13px; }
.sp-foot-in { max-width: 980px; margin: 0 auto; }
.sp-foot h2 { font-size: 13px; color: rgba(255, 255, 255, .75); letter-spacing: .08em; margin-bottom: 10px; font-weight: 700; }
.sp-foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 22px; }
.sp-foot a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.sp-foot a:hover { color: #fff; }
.sp-foot p { margin-top: 6px; }

@media (max-width: 760px) {
  .sp-nav { padding: 0 14px; height: 56px; }
  .sp-brand { font-size: 15px; }
  .sp-nav-links a { padding: 6px 10px; font-size: 13px; }
  .sp-hero { padding: 30px 16px 36px; }
  .sp-hero h1 { font-size: 27px; }
  .sp-answer { font-size: 15.5px; }
  .sp-wrap { padding: 28px 16px 0; }
  .sp-art { font-size: 16px; }
  .sp-art h2 { font-size: 22px; margin-top: 38px; }
  .sp-intro { grid-template-columns: 1fr; gap: 18px; }
  .sp-fig img { width: 220px; }
  .sp-cards { grid-template-columns: 1fr; }
  .sp-fields { grid-template-columns: 1fr; }
  .sp-steps li { padding: 16px 16px 16px 58px; }
  .sp-steps li::before { left: 14px; }
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sp-tpl-img { height: 230px; padding: 10px; }
  .sp-tpl-img.web { height: 280px; }
  .sp-big-cta h2 { font-size: 23px; }
}
@media (max-width: 360px) {
  .sp-nav-links .o { display: none; }
  .sp-grid { grid-template-columns: 1fr; }
}
