:root {
  color-scheme: light;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #18382d;
  background: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #245e46; outline-offset: 4px; }
.shell { width: min(100% - 48px, 1280px); margin-inline: auto; }

/* 頂端導覽 */
.site-header { background: #fff; border-bottom: 1px solid #dfe9df; position: sticky; top: 0; z-index: 50; }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 84px; }
.brand { display: inline-flex; min-height: 44px; align-items: center; font-family: Georgia, "Noto Serif SC", serif; font-size: 24px; text-decoration: none; white-space: nowrap; font-weight: 700; color: #18382d; }
.site-nav { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.site-nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; text-decoration: none; color: #18382d; }
.site-nav a:hover, .back:hover { text-decoration: underline; text-underline-offset: 5px; }

/* 內頁通用主版面 */
.page-container { padding: 48px 0 88px; }
.page-header { margin-bottom: 36px; border-bottom: 1px solid #dfe9df; padding-bottom: 24px; }
.page-header h1 { margin: 0 0 12px; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(28px, 4vw, 42px); font-weight: 500; }
.page-header .subtitle { color: #526b5c; font-size: 15px; margin: 0; }
.page-content { font-size: 15px; color: #224235; line-height: 1.8; }
.page-content h2 { margin: 36px 0 16px; font-size: 20px; color: #18382d; border-bottom: 2px solid #e1e9df; padding-bottom: 8px; }
.page-content h3 { margin: 24px 0 12px; font-size: 17px; color: #1f4737; }
.page-content p { margin: 0 0 16px; }
.page-content ul, .page-content ol { margin: 0 0 20px 24px; padding: 0; }
.page-content li { margin-bottom: 8px; }
.page-content img { max-width: 100%; height: auto; border-radius: 4px; display: block; margin: 20px auto; }

/* 政策/問答 卡片樣式 */
.qa-card { background: #fbfdfa; border: 1px solid #e1e9df; border-radius: 6px; padding: 20px 24px; margin-bottom: 18px; }
.qa-q { font-weight: 700; color: #194b36; margin: 0 0 10px; font-size: 16px; }
.qa-a { color: #355444; margin: 0; font-size: 14.5px; }

/* 商品列表 Grid (用於 collections/nutrition.html) */
.product-count { margin-bottom: 24px; font-size: 14px; color: #526b5c; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.product { display: flex; min-width: 0; flex-direction: column; background: #fff; }
.product-link { display: block; text-decoration: none; color: inherit; }
.product-link:hover h3 { text-decoration: underline; text-underline-offset: 4px; color: #245e46; }
.product-image { display: grid; place-items: center; aspect-ratio: 1; padding: 14px; border: 1px solid #e1e9df; background: #f7f9f6; border-radius: 4px; transition: border-color 0.2s ease; }
.product-link:hover .product-image { border-color: #245e46; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product h3 { min-height: 44px; margin: 14px 0 6px; font-size: 15px; line-height: 1.45; font-weight: 600; }
.product .sku-tag { display: inline-block; font-size: 11px; color: #62826e; background: #eaf2e8; padding: 2px 6px; border-radius: 3px; margin-bottom: 8px; width: fit-content; }
.product .detail { min-height: 40px; margin: 0 0 12px; color: #526b5c; font-size: 13px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product .price { margin: auto 0 0; padding-top: 10px; font-size: 18px; font-weight: 700; color: #18382d; font-variant-numeric: tabular-nums; }
.product .original-price { font-size: 13px; color: #889e90; text-decoration: line-through; margin-left: 6px; font-weight: 400; }

/* 聯絡我們資訊卡 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.contact-card { background: #f7f9f6; border: 1px solid #e1e9df; border-radius: 6px; padding: 28px; }
.contact-card h2 { margin: 0 0 16px; font-size: 18px; color: #18382d; border-bottom: none; }
.contact-item { display: flex; gap: 12px; margin-bottom: 14px; align-items: baseline; }
.contact-label { font-weight: 600; color: #245e46; min-width: 80px; }
.contact-value { color: #355444; }

/* 頁尾 */
.site-footer { padding: 54px 0 66px; background: #e8f0e7; border-top: 1px solid #d5e2d4; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { margin: 0 0 18px; font-size: 15px; color: #18382d; }
.site-footer p { margin: 0 0 8px; color: #355444; font-size: 14px; line-height: 1.7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .footer-brand { font-family: Georgia, "Noto Serif SC", serif; font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.site-footer a { display: inline-flex; min-height: 36px; align-items: center; color: #2d4f3e; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copyright { border-top: 1px solid #d5e2d4; margin-top: 40px; padding-top: 20px; font-size: 13px; color: #62826e; text-align: center; }

/* 響應式斷點 */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .site-header .shell { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 18px; gap: 14px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-container { padding: 32px 0 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .shell { width: min(100% - 32px, 1280px); }
  .site-nav { gap: 8px 16px; }
  .brand { font-size: 20px; }
  .product h3 { font-size: 14px; min-height: 40px; }
  .product .price { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
