/* SOFTSTREAM 網站樣式（重製自原 WordPress / Elementor 版面） */
:root {
  --orange: #ff5f00;
  --orange-2: #ffaa46;
  --ink: #191919;
  --body: #4b4f58;
  --hdr-h: 110px;
  --f-head: "Kanit", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 18px/1.65 var(--f-body); color: var(--body); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h5, p { margin: 0; }
button { font: inherit; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 10px; top: 10px; z-index: 1000; background: #fff; padding: 8px 12px; }

/* ── 頁首 ── */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--hdr-h); }
.hdr__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: rgba(255, 255, 255, .8); }
.hdr__logo img { width: 200px; height: auto; }
.hdr__nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.hdr__nav a { display: block; padding: 0 18px; font: 600 18px/1.6 var(--f-body); color: var(--orange); text-decoration: none; letter-spacing: .02em; }
.hdr__nav a:hover { color: var(--orange-2); }
.hdr__toggle { display: none; background: none; border: 0; color: var(--orange); width: 50px; height: 50px; cursor: pointer; align-items: center; justify-content: center; }

.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(90%, 360px); background: #fafafa; box-shadow: 0 0 36px rgba(0, 0, 0, .1); padding: 70px 0 20px; }
.drawer__close { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: #3a3a3a; cursor: pointer; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer a { display: block; padding: 14px 24px; border-bottom: 1px solid #eaeaea; color: var(--orange); font: 600 18px/1.6 var(--f-body); text-decoration: none; }

/* ── 主視覺 ── */
.hero { margin-top: calc(-1 * var(--hdr-h)); min-height: 1100px; display: flex; align-items: center; background: url(/img/bg-hero.png) center / cover no-repeat; }
.hero__inner { width: 100%; max-width: 1920px; margin: 0 auto; display: flex; align-items: center; padding-left: 80px; }
.hero__text { flex: 0 0 569px; display: flex; flex-direction: column; gap: 10px; }
.hero__title { font: 600 68px/1.4 var(--f-head); color: var(--orange); }
.hero__subtitle { font: 600 40px/1.3 var(--f-head); color: var(--ink); max-width: 569px; }
.hero__p { margin-top: 20px; font: 400 20px/1.65 var(--f-head); color: var(--body); max-width: 512px; }
.hero__media { flex: 1 1 auto; min-width: 0; }
.hero__img { width: 100%; }

/* ── 區塊共用 ── */
.sec { padding: 20px 20px 60px; background-repeat: no-repeat; background-size: cover; }
.sec__head { width: 432px; max-width: 100%; margin: 0 auto; padding-bottom: 35px; border-bottom: 2px solid var(--orange); text-align: center; }
.sec__title { font: 600 46px/1.3 var(--f-head); color: var(--orange); }
.sec__intro { max-width: 1008px; margin: 50px auto 0; text-align: center; font: 400 24px/1.65 var(--f-head); color: var(--ink); }
.sec__intro--narrow { max-width: 706px; }

.sec--services { margin-top: 0; min-height: 1200px; background-image: url(/img/bg-services.png); background-position: top center; }
.sec--advantages { margin-top: 40px; min-height: 1100px; padding-top: 94px; }
.sec--contact { margin-top: 60px; background-image: url(/img/bg-contact.png); background-position: bottom center; padding-top: 66px; }

/* ── 分頁籤（桌機、平板） ── */
.tabs { max-width: 1400px; margin: 120px auto 0; display: grid; grid-template-columns: 38.3% 1fr; gap: 0 40px; align-items: end; }
.tabs__media { position: relative; }
.tabs__img { display: none; border-radius: 30px; overflow: hidden; }
.tabs__img.is-active { display: block; }
.tabs__img img { width: 100%; }
.tabs__side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tabs__thumbs { display: flex; gap: 10px; justify-content: space-between; align-self: flex-end; width: 100%; margin-bottom: 23px; }
.tabs__thumb { flex: 1 1 0; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #fff; text-align: center; transition: transform .2s, filter .2s; }
.tabs__thumb[aria-selected="true"] { display: none; }
.tabs__thumb:hover { transform: translateY(-3px); filter: brightness(1.05); }
.tabs__panel { display: none; flex-direction: column; gap: 20px; }
.tabs__panel.is-active { display: flex; }
.tabs__title { font: 600 42px/1.3 var(--f-head); color: var(--orange); }
.tabs__p { font: 400 18px/38px var(--f-head); color: var(--body); }

.tabs--svc .tabs__thumbs { max-width: 810px; }
.tabs--svc .tabs__thumb { max-width: 246px; padding: 15px 20px 22px; border-radius: 35px; background: radial-gradient(at left top, var(--orange) 0%, var(--orange-2) 100%); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.tabs--svc .tabs__thumb:hover { background: radial-gradient(at right top, var(--orange) 0%, var(--orange-2) 100%); }
.tabs--svc .tabs__thumb img { border-radius: 20px; }
.tabs--svc .tabs__thumb span { font: 600 15px/1.25 var(--f-body); }

.tabs--adv .tabs__media { display: flex; justify-content: center; }
.tabs--adv .tabs__img { max-width: 422px; }
.tabs--adv .tabs__thumbs { max-width: 830px; margin-bottom: 60px; }
.tabs--adv .tabs__thumb { max-width: 195px; padding: 15px 35px; background: transparent; }
.tabs--adv .tabs__title { color: #000; }


/* ── 輪播（手機） ── */
.slider { display: none; position: relative; max-width: 371px; margin: 30px auto 0; }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: 25px; }
.slider__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; min-height: 550px; padding: 30px; border-radius: 25px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0; }
.slide__img { max-width: 100%; border-radius: 15px; object-fit: cover; }
.slide__title { margin-top: 12px; font: 700 24px/1.2 var(--f-head); color: var(--orange); }
.slide__p { margin-top: 24px; font: 400 18px/1.4 var(--f-head); color: #000; }
.slider--svc .slide { background: #fff0; box-shadow: 0 4px 6px rgba(0, 0, 0, .1); }
.slider--adv .slide { background: linear-gradient(120deg, var(--orange), var(--orange-2), var(--orange)); text-shadow: 0 1px 2px #000; }
.slider--adv .slide__img { max-width: 60%; }
.slider--adv .slide__title, .slider--adv .slide__p { color: #fff; }
.slider__nav { position: absolute; top: 275px; transform: translateY(-50%); border: 0; background: none; color: rgba(0, 0, 0, .25); font-size: 40px; line-height: 1; cursor: pointer; padding: 6px; }
.slider--adv .slider__nav { color: rgba(255, 255, 255, .9); }
.slider__nav--prev { left: 0; }
.slider__nav--next { right: 0; }
.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.slider__dots button { width: 6px; height: 6px; border-radius: 50%; border: 0; padding: 0; background: var(--orange); opacity: .5; cursor: pointer; }
.slider__dots button[aria-current="true"] { opacity: 1; }

/* ── 聯絡 ── */
.contact__brand { margin-top: 60px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.contact__name { font: 600 46px/1.3 var(--f-head); color: var(--orange); }
.contact__tagline { font: 600 32px/1.2 var(--f-head); color: #000; }
.cform { max-width: 1000px; margin: 20px auto 0; padding: 20px 30px; border-radius: 50px; background: linear-gradient(130deg, var(--orange), #fffefd, var(--orange-2)); box-shadow: 0 4px 10px rgba(0, 0, 0, .1); display: flex; flex-direction: column; }
.cform label { display: block; font: 700 14px/20px var(--f-body); color: #fff; margin-bottom: 10px; }
.cform label > span { display: block; margin-bottom: 8px; }
.cform input, .cform textarea { display: block; width: 100%; padding: 10px 15px; border: 1px solid #fff; border-radius: 35px; background: #fff; font: 400 14px/24px var(--f-body); color: #475569; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.cform textarea { height: 266px; resize: vertical; }
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.cform__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__submit { margin-top: 26px; width: 100%; padding: 12px 20px; border: 0; border-radius: 15px; background: linear-gradient(120deg, var(--orange), var(--orange-2)); color: #fff; font: 600 16px/16px var(--f-body); cursor: pointer; box-shadow: 0 4px 10px rgba(0, 0, 0, .1); }
.cform__submit:hover { filter: brightness(1.06); }
.cform__submit[disabled] { opacity: .6; cursor: wait; }
.cform__msg { min-height: 1.5em; margin: 14px 0 6px; font: 600 15px/1.5 var(--f-body); color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.cform__msg.is-error { color: #fff; background: #dc2626; border-radius: 12px; padding: 6px 12px; text-shadow: none; }

.bottom-art { min-height: 1000px; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 128px; background: url(/img/bg-advantages.png) top center / cover no-repeat; }
.bottom-art img { width: 100%; }

/* ── 頁尾 ── */
.ftr { background: var(--orange); border-top: 3px solid var(--orange); padding: 20px; }
.ftr p { text-align: center; color: #fff; font: 400 18px/29.7px var(--f-body); max-width: 1400px; margin: 0 auto; }

.totop { position: fixed; right: 30px; bottom: 30px; z-index: 40; width: 42px; height: 42px; border-radius: 25px; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.totop.is-visible { opacity: 1; pointer-events: auto; }
.totop:hover { background: #fff; color: var(--orange); }

/* ── 平板（≤1024px） ── */
@media (max-width: 1024px) {
  :root { --hdr-h: 100px; }
  .hero { min-height: 0; padding: calc(var(--hdr-h) + 40px) 0 40px; }
  .hero__inner { flex-direction: column; align-items: stretch; padding: 0 20px; gap: 30px; }
  .hero__text { flex: none; }
  .hero__title { font-size: 56px; }
  .hero__subtitle { font-size: 32px; max-width: none; }
  .hero__p { max-width: none; font-size: 18px; }
  .sec--services { margin-top: 60px; min-height: 0; }
  .sec--advantages { min-height: 0; }
  .tabs { margin-top: 40px; gap: 20px 30px; }
  .tabs__side { display: contents; }
  .tabs__thumbs { grid-column: 1 / -1; grid-row: 1; order: -1; max-width: none !important; margin: 0; justify-content: center; }
  .tabs__thumb[aria-selected="true"] { display: flex; outline: 3px solid var(--orange); outline-offset: 3px; }
  .tabs__title { font-size: 30px; }
  .tabs__p { line-height: 1.8; }
  .tabs--svc { grid-template-columns: 1fr; }
  .tabs--svc .tabs__media { max-width: 520px; margin: 0 auto; }
  .tabs--svc .tabs__panel { text-align: center; }
  .tabs--svc .tabs__thumb { padding: 12px 10px 16px; }
  .tabs--adv { grid-template-columns: 34% 1fr; align-items: center; }
  .tabs--adv .tabs__thumb { padding: 10px 20px; }
  .tabs--adv .tabs__thumb[aria-selected="true"] { outline: 0; opacity: .55; }
  .bottom-art { min-height: 0; }
}
@media (max-width: 921px) {
  .hdr__nav { display: none; }
  .hdr__toggle { display: inline-flex; }
  .hdr__logo img { width: 180px; }
}

/* ── 手機（≤767px） ── */
@media (max-width: 767px) {
  :root { --hdr-h: 80px; }
  body { font-size: 16.4px; }
  .hdr__bar { padding: 0 20px; }
  .hdr__logo img { width: 130px; }
  .hdr__nav { display: none; }
  .hdr__toggle { display: inline-flex; }
  .hero { padding: calc(var(--hdr-h) + 50px) 0 0; }
  .hero__inner { padding: 0; gap: 36px; }
  .hero__text { padding: 0 10px; }
  .hero__title { font-size: 36px; }
  .hero__subtitle { font-size: 20px; }
  .hero__p { font-size: 18px; line-height: 1.65; margin-top: 20px; text-align: left; }
  .sec { padding: 0 10px 40px; }
  .sec__head { width: 273px; padding-bottom: 10px; }
  .sec__title, .contact__name { font-size: 38px; }
  .sec__intro { margin-top: 30px; font-size: 18px; }
  .sec--services { margin-top: 120px; }
  .sec--advantages { padding-top: 40px; margin-top: 0; min-height: 0; }
  .sec--advantages .sec__intro { font-size: 20px; }
  .sec--contact { padding-top: 40px; margin-top: 20px; }
  .tabs { display: none; }
  .slider { display: block; }
  .contact__brand { margin-top: 20px; }
  .contact__name { font-size: 24px; }
  .contact__tagline { font-size: 20px; }
  .cform { padding: 15px; }
  .cform textarea { height: 200px; }
  .bottom-art { min-height: 0; padding-top: 20px; }
  .ftr p { font-size: 16px; }
  .totop { right: 16px; bottom: 16px; }
}
