/* ===== 海毯 Ocean Shade Blanket｜UJUI 一頁式網站 =====
   品牌色依《UJUI 品牌設計與使用指南》：植物綠 #00a53c／海洋藍 #64aadc／陽光橘 #f0961e */
html.oswg-page {
  --green: #00a53c;
  --ocean: #64aadc;
  --sun: #f0961e;
  --ink: #1d2a25;          /* 內文深色 */
  --muted: #5d6a64;
  --deep: #0f2c3d;         /* 深海底色（中性色，用於頁尾與深色區塊） */
  --paper: #f7f6f1;        /* 米白底 */
  --ocean-tint: #eef6fb;   /* 海洋藍淡色 */
  --line: #dfe3df;
  --white: #fff;
  --error: #b3261e;
  --font-zh: "Taipei Sans TC Beta", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-en: "Gotham", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --max: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html.oswg-page { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body.oswg-landing {
  margin: 0; font-family: var(--font-zh); color: var(--ink); background: var(--white);
  line-height: 1.85; font-size: 16px; letter-spacing: .02em;
}
html.oswg-page[lang="en"] body.oswg-landing { font-family: var(--font-en); line-height: 1.7; letter-spacing: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.oswg-en-display { font-family: var(--font-en); }

.oswg-container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.oswg-section { padding: 80px 0; }
@media (max-width: 719px) { .oswg-section { padding: 60px 0; } }
.oswg-bg-paper { background: var(--paper); }
.oswg-bg-ocean { background: var(--ocean-tint); }
.oswg-bg-deep { background: var(--deep); color: #e8eef2; }
.oswg-eyebrow {
  display: inline-block; font-family: var(--font-en); font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green); font-weight: 700; margin-bottom: .6em;
}
.oswg-bg-deep .oswg-eyebrow { color: var(--ocean); }
.oswg-lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.oswg-bg-deep .oswg-lead { color: #b9c9d3; }
.oswg-center { text-align: center; }
.oswg-center .oswg-lead { margin-left: auto; margin-right: auto; }
.oswg-todo { background: #fff3c4; color: #6b5300; padding: 0 .3em; border-radius: 4px; font-size: .9em; }
.oswg-photo { border-radius: var(--radius); overflow: hidden; background: #dde5e2; }
.oswg-photo img { width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* ---------- Header ---------- */
.oswg-site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.oswg-site-header .oswg-container { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.oswg-logo { display: flex; align-items: center; }
.oswg-logo img { height: 30px; width: auto; }
.oswg-nav { display: flex; align-items: center; gap: 22px; }
.oswg-nav a { text-decoration: none; font-size: .95rem; }
.oswg-nav a:hover { color: var(--green); }
.oswg-nav-links { display: none; gap: 22px; }
@media (min-width: 900px) { .oswg-nav-links { display: flex; } }
.oswg-nav .oswg-lang { border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px 14px; font-size: .85rem; font-weight: 700; }
.oswg-nav .oswg-cta-mini { background: var(--green); color: #fff; border-radius: 999px; padding: 5px 16px; font-size: .88rem; font-weight: 700; }
.oswg-nav .oswg-cta-mini:hover { color: #fff; filter: brightness(.92); }

/* ---------- Buttons ---------- */
.oswg-btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px; font-weight: 700; font-size: 1.02rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: filter .2s, background .2s;
  font-family: inherit;
}
.oswg-btn--primary { background: var(--green); color: #fff; }
.oswg-btn--primary:hover { filter: brightness(.9); }
.oswg-btn--ghost { border-color: #fff; color: #fff; background: transparent; }
.oswg-btn--ghost:hover { background: rgba(255,255,255,.15); }
.oswg-btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Hero ---------- */
.oswg-hero { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--deep); }
.oswg-hero picture, .oswg-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oswg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,30,44,.15) 0%, rgba(8,30,44,.25) 45%, rgba(8,30,44,.85) 100%); }
.oswg-hero .oswg-container { position: relative; z-index: 1; padding-bottom: 72px; width: 100%; }
.oswg-hero .oswg-eyebrow { color: #fff; opacity: .9; }
.oswg-hero h1 { font-size: clamp(2.1rem, 7.5vw, 4rem); margin-bottom: .35em; }
.oswg-hero .oswg-tagline { font-family: var(--font-en); font-size: clamp(1rem, 2.6vw, 1.25rem); font-weight: 600; color: #d9ecf8; margin-bottom: .8em; }
.oswg-hero p { font-size: 1.08rem; max-width: 620px; opacity: .95; }
.oswg-hero .oswg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Grids ---------- */
.oswg-grid { display: grid; gap: 24px; }
@media (min-width: 760px) {
  .oswg-grid--2 { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .oswg-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .oswg-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .oswg-reverse > :first-child { order: 2; }
}
.oswg-card { background: var(--white); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.oswg-card h3 { margin-bottom: .4em; }
.oswg-card p:last-child { margin-bottom: 0; }
.oswg-card .oswg-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: #fff; font-weight: 800; font-family: var(--font-en); }
.oswg-icon--green { background: var(--green); } .oswg-icon--ocean { background: var(--ocean); } .oswg-icon--sun { background: var(--sun); }

/* ---------- Big stats ---------- */
/* 大數字 */
.oswg-stat-num { margin: .1em 0 .25em; font-family: var(--font-en); font-weight: 800; line-height: 1; font-size: clamp(3rem, 12vw, 5.5rem); color: var(--sun); }
.oswg-stat-num small { font-size: .45em; font-weight: 700; }
.oswg-stats { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 760px) { .oswg-stats { grid-template-columns: repeat(3, 1fr); } }
.oswg-stats .oswg-card { text-align: left; }
.oswg-stats .oswg-num { font-family: var(--font-en); font-size: 2.3rem; font-weight: 800; color: var(--green); line-height: 1.15; margin-bottom: 6px; }
.oswg-stats .oswg-num.oswg-ocean { color: #2f86c0; }
.oswg-stats .oswg-num.oswg-sun { color: #c86f00; }

/* ---------- Stress stages ---------- */
.oswg-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 28px 0 10px; text-align: center; font-weight: 700; font-size: .95rem; }
.oswg-stages div { padding: 14px 6px; border-radius: 10px; }
.oswg-stages .oswg-s1 { background: #d9f2e1; color: #00692a; }
.oswg-stages .oswg-s2 { background: #fde9cf; color: #8a4f00; }
.oswg-stages .oswg-s3 { background: #eeeeea; color: #5d6a64; }
.oswg-stages-note { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--green); }
.oswg-stages-note::before { content: ""; flex: 0 0 26px; height: 3px; background: var(--green); border-radius: 2px; }

/* ---------- Formula ---------- */
.oswg-formula { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 24px; }
.oswg-formula span { background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: .95rem; }
.oswg-formula b { color: var(--muted); font-family: var(--font-en); }

/* ---------- Deploy modes ---------- */
.oswg-mode { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.oswg-mode h3 { display: flex; align-items: center; gap: 10px; }
.oswg-mode h3 .oswg-tag { font-size: .72rem; font-family: var(--font-en); letter-spacing: .1em; padding: 3px 10px; border-radius: 999px; background: var(--ocean-tint); color: #2f86c0; }
.oswg-flow { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.oswg-flow li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline; }
.oswg-flow .oswg-when { font-weight: 700; font-size: .85rem; color: var(--muted); }
.oswg-flow .oswg-what b { color: var(--ink); }
.oswg-flow .oswg-deploy b { color: var(--green); }

/* ---------- Charts ---------- */
.oswg-chart { background: #fff; border-radius: var(--radius); padding: 14px; border: 1px solid var(--line); }
.oswg-chart img { width: 100%; border-radius: 6px; }
.oswg-chart figcaption { padding: 6px 4px 0; }
.oswg-legend { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.oswg-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.oswg-legend .oswg-l-blue { background: #4472c4; } .oswg-legend .oswg-l-orange { background: #ed7d31; } .oswg-legend .oswg-l-yellow { background: #ffc000; }

/* ---------- Timeline ---------- */
.oswg-timeline { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
@media (min-width: 900px) { .oswg-timeline { grid-template-columns: repeat(4, 1fr); } }
.oswg-timeline li { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px; }
.oswg-timeline .oswg-yr { font-family: var(--font-en); font-weight: 800; font-size: 1.5rem; color: var(--ocean); }
.oswg-timeline li.oswg-done .oswg-yr { color: #4fd17f; }
.oswg-timeline .oswg-st { display: inline-block; font-size: .72rem; font-family: var(--font-en); letter-spacing: .1em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.oswg-timeline li.oswg-done .oswg-st { background: rgba(0,165,60,.2); color: #7fe0a3; }
.oswg-timeline li.oswg-next .oswg-st { background: rgba(240,150,30,.2); color: #ffc27a; }
.oswg-timeline h3 { color: #fff; font-size: 1.05rem; }
.oswg-timeline p { color: #b9c9d3; font-size: .95rem; margin: 0; }

/* ---------- Photo mosaic ---------- */
.oswg-mosaic { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.oswg-mosaic .oswg-photo { aspect-ratio: 4 / 3; }
.oswg-mosaic .oswg-tall { grid-row: span 2; aspect-ratio: auto; }
.oswg-gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.oswg-gallery .oswg-photo { aspect-ratio: 4 / 3; }
@media (min-width: 760px) { .oswg-gallery { grid-template-columns: repeat(3, 1fr); } }

.oswg-steps-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-en); font-weight: 700; margin: 6px 0 22px; }
.oswg-steps-inline span { background: var(--green); color: #fff; padding: 5px 14px; border-radius: 999px; font-size: .9rem; }
.oswg-steps-inline b { color: var(--muted); }

/* ---------- Award ---------- */
.oswg-award { display: grid; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
@media (min-width: 760px) { .oswg-award { grid-template-columns: auto 1fr; gap: 36px; } }
.oswg-award .oswg-badge { width: 120px; height: 120px; border-radius: 50%; background: var(--sun); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-en); font-weight: 800; line-height: 1.1; text-align: center; }
.oswg-award .oswg-badge b { font-size: 1.55rem; }
.oswg-award .oswg-badge small { font-size: .62rem; letter-spacing: .06em; }

/* ---------- Video ---------- */
.oswg-video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--deep); }
.oswg-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.oswg-video-soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 20px; }
.oswg-video-soon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.oswg-video-soon span { position: relative; font-weight: 700; font-size: 1.1rem; }

/* ---------- Collab cards ---------- */
.oswg-collab .oswg-card { border-top: 4px solid var(--green); }
.oswg-collab .oswg-card:nth-child(2) { border-top-color: var(--ocean); }
.oswg-collab .oswg-card:nth-child(3) { border-top-color: var(--sun); }
.oswg-collab .oswg-who { font-size: .85rem; color: var(--muted); font-weight: 700; margin-bottom: 6px; }

/* ---------- Form ---------- */
.oswg-form { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 720px) { .oswg-form .oswg-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
.oswg-form .oswg-row-2 { display: grid; gap: 16px; }
.oswg-form label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 5px; }
.oswg-form .oswg-req { color: var(--error); }
.oswg-form input, .oswg-form select, .oswg-form textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; /* 16px 避免 iPhone 自動放大 */
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.oswg-form input:focus, .oswg-form select:focus, .oswg-form textarea:focus { outline: 3px solid rgba(0,165,60,.3); border-color: var(--green); }
.oswg-form textarea { min-height: 140px; resize: vertical; }
.oswg-form .oswg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.oswg-form-status { padding: 12px 16px; border-radius: 10px; display: none; }
.oswg-form-status.oswg-ok { display: block; background: #e3f5e9; color: #00692a; }
.oswg-form-status.oswg-err { display: block; background: #fbe9e7; color: var(--error); }

/* ---------- Footer ---------- */
.oswg-site-footer { background: var(--deep); color: #b9c9d3; padding: 48px 0 36px; font-size: .92rem; }
.oswg-site-footer img { height: 34px; width: auto; margin-bottom: 14px; }
.oswg-site-footer a { color: #fff; }
.oswg-site-footer .oswg-small { font-size: .8rem; opacity: .7; margin-top: 18px; }

/* ---------- Fade-in（簡潔版動態） ---------- */
.oswg-js .oswg-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.oswg-reveal.oswg-is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .oswg-js .oswg-reveal { opacity: 1; transform: none; transition: none; } html.oswg-page { scroll-behavior: auto; } }

/* ---------- v3: diagrams, deploy panels, partner chips ---------- */
.oswg-diagram { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 0; }
.oswg-diagram img { width: 100%; height: auto; }
.oswg-features { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 760px) { .oswg-features { grid-template-columns: 1fr 1fr; } }
.oswg-features .oswg-card { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; padding: 20px; }
.oswg-features .oswg-n { width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid var(--green); color: var(--green); font-family: var(--font-en); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.oswg-features h3 { margin-bottom: .25em; font-size: 1.05rem; }
.oswg-features p { margin: 0; color: var(--muted); }
.oswg-panels { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 760px) { .oswg-panels { grid-template-columns: repeat(3, 1fr); } }
.oswg-panels figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.oswg-panels img { width: 100%; height: auto; display: block; }
.oswg-panels figcaption { padding: 12px 16px 16px; margin: 0; color: var(--ink); font-size: .95rem; }
.oswg-panels figcaption b { display: block; font-size: 1rem; }
.oswg-panels figcaption .oswg-step { font-family: var(--font-en); font-size: .75rem; letter-spacing: .12em; color: var(--green); font-weight: 800; }
.oswg-caveat { display: flex; gap: 10px; align-items: flex-start; background: #fff7ea; border: 1px solid #f6d9ab; color: #6b4300; border-radius: 10px; padding: 12px 16px; font-size: .95rem; margin-top: 20px; }
.oswg-caveat::before { content: "i"; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--sun); color: #fff; font-weight: 800; font-family: var(--font-en); display: flex; align-items: center; justify-content: center; font-size: .8rem; margin-top: 2px; }
.oswg-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; padding: 0; list-style: none; }
.oswg-chips li { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: .95rem; }
.oswg-video-lead { margin-bottom: 36px; }
.oswg-award-hl { font-size: 1.15rem; line-height: 1.6; margin: 0 0 .5em; }
.oswg-award-hl b { color: #c86f00; }
.oswg-video-soon { background: radial-gradient(circle at 50% 40%, #1f5c73, var(--deep)); gap: 14px; }
.oswg-video-soon .oswg-play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.18); position: relative; }
.oswg-video-soon .oswg-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }

body.oswg-landing button, body.oswg-landing input, body.oswg-landing textarea, body.oswg-landing select { font-family: inherit; }

/* Explicit hero title color: global heading colors do not inherit the hero color. */
body.oswg-landing .oswg-hero h1 { color: #fff !important; }
