/* uaspacedesign.com 靜態重寫共用樣式
   數值全部來自原站 devtools 實測（2026-08-09），不是目測。
   主色 #010d0c（Freshbuilder fg-bg-layer 色層）、金 #d8c3a8、字 #f1f1f1 */

:root {
  --bg: #010d0c;
  --text: #f1f1f1;
  --gold: #d8c3a8;
  --sans: 'Noto Sans TC', Arial, sans-serif;
  --serif: 'Noto Serif TC', Arial, sans-serif;
  --en-serif: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* 1170 含左右 gutter 15 → 內容寬 1140（原站 fg-container-large 實測 x=390..1530@1920） */
.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }

/* ---------------- header（fixed，黑→透明漸層） ---------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 80px;
  background: linear-gradient(to bottom, #000 0%, #000 30%, rgba(0, 0, 0, 0) 100%);
  transition: background .3s;
}
.site-header.is-solid { background: #000; }

.header-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img { width: 176px; height: 60px; }

.site-nav {
  display: flex;
  list-style: none;
  align-items: center;
}
.site-nav li a {
  display: block;
  padding: 28px 15px;
  line-height: 24px;   /* 24+56=80，跟 header 同高 */
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--text);
  transition: color .2s;
}
.site-nav li a:hover,
.site-nav li.is-active a { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: .2s;
}

/* ---------------- 社群浮動列 + 回頂 ---------------- */

.social-bar {
  position: fixed;
  right: 10px;
  bottom: 80px;   /* 原站錨定底部：桌機 78 / 手機 80 實測 */
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.social-bar img { width: 50px; height: 50px; }

/* 原站 .back-to-top-theme 實測值：35×35、圓角3、#7a9a01、顯示時透明度.6、hover 1、下滑入場 */
.to-top {
  position: fixed;
  right: 10px; bottom: 10px;
  z-index: 90;
  width: 35px; height: 35px;
  border: 0;
  border-radius: 3px;
  background: #7a9a01;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition: all 300ms cubic-bezier(.7, 1, .7, 1);
}
.to-top.is-show { visibility: visible; opacity: .6; transform: none; }
.to-top:hover { opacity: 1; }

/* ---------------- footer ---------------- */

.site-footer {
  background: var(--bg);
  text-align: center;
  padding: 80px 15px 40px;
}
.footer-logo { width: 180px; height: 171px; margin: 0 auto; }

.footer-nav {
  margin-top: 80px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav span,
.footer-nav a {
  display: block;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 3.3px;
  color: var(--text);
  padding: 0 25px;
}
.footer-nav a:hover { color: var(--gold); }

.footer-line {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .25);
  max-width: 1110px;
  margin: 28px auto 24px;
}
.footer-addr {
  font-size: 15px;
  letter-spacing: 1.5px;
  color: #fff;
}
.footer-copy {
  font-size: 15px;
  color: var(--text);
  margin-top: 4px;
}

/* ---------------- 作品內頁（portfolio） ---------------- */

.work-main { padding-top: 90px; padding-bottom: 60px; }

.crumbs {
  font-size: 14px;
  color: var(--gold);
  line-height: 20px;
}
.crumbs a { color: var(--gold); }
.crumbs a:hover { text-decoration: underline; }

.work-title {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--gold);
  text-align: center;
  line-height: 32px;
}
.title-divider {
  width: 50px;
  height: 1px;
  background: #dcdcdc;
  border: 0;
  margin: 15px auto 22px;
}

/* 作品內文區塊（原站實測：p 16px/行高25.6/字距1.2/#f1f1f1/段距15；
   金色 #e6d3b5（tagline 與小標）；H2 23px 細體；雙欄圖組溝 15px） */
.work-desc-p {
  font-size: 16px;
  line-height: 25.6px;
  letter-spacing: 1.2px;
  color: #f1f1f1;
  text-align: left;
  margin-bottom: 15px;
}
.work-desc-p strong { font-weight: 700; }   /* body 300，不明定會只到 400 */
.work-tr { text-align: right; }
.work-tc { text-align: center; }
.work-gold { color: #e6d3b5; }
.work-h2 {
  font-size: 23px;
  line-height: 1;
  font-weight: 300;
  color: #e6d3b5;
  text-align: left;
  margin: 0 0 15px;
}
.work-gap { padding-top: 40px; }   /* 原站：圖片後的文字組 padding-top 40(≥992)/30；用 padding 避免與圖片 mb15 摺疊 */
.work-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}
.work-photos .work-pair img { display: block; width: 100%; height: auto; margin: 0; }
.work-photos img { width: 100%; margin-bottom: 15px; }
.work-photos img:last-child { margin-bottom: 0; }

/* ---------------- 分類頁（portfolio-category） ---------------- */

.cat-main { padding-top: 90px; padding-bottom: 60px; }

.cat-title {
  margin-top: 20px;
  font-family: var(--sans);   /* 原站 H1 是 Noto Sans，非 Serif（實測） */
  font-size: 36px;
  font-weight: 300;
  letter-spacing: normal;
  color: var(--gold);
  text-align: center;
  line-height: 50px;
}
.cat-main .title-divider { height: 2px; margin-bottom: 0; }

/* cbp 磁磚牆：雙欄 554、橫距 32、縱距 34（首訪成功渲染截圖反推） */
.cat-grid {
  margin-top: 80px;   /* divider 線(197) → 磁磚 277，原站實測 */
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.cat-col { flex: 1 1 0; min-width: 0; }

/* 磁磚 hover：照 theme-portfolio-item-v3 原始 CSS（fi9vz25n.css 抽出） */
.tile {
  position: relative;
  display: block;
  margin-bottom: 34px;
}
.tile img { width: 100%; }
.tile::before {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 15px; left: 15px; right: 15px; bottom: 15px;
  background: rgba(255, 255, 255, 0);
  transition: all 400ms cubic-bezier(.7, 1, .7, 1);
}
.tile:hover::before { background: rgba(255, 255, 255, .8); }

.tile-plus {
  position: absolute;
  top: 50%; left: 50%;
  width: 30px; height: 30px;
  opacity: 0;
  transform: translate3d(-50%, -20%, 0);
  transition: all 400ms cubic-bezier(.7, 1, .7, 1);
}
.tile-plus::before,
.tile-plus::after {
  content: "";
  position: absolute;
  background: #34343c;
  transition: background .2s;
}
.tile-plus::before { top: 0; left: 50%; width: 1px; height: 30px; }
.tile-plus::after { top: 50%; left: 0; width: 30px; height: 1px; }
.tile:hover .tile-plus { opacity: 1; transform: translate3d(-50%, -50%, 0); }
.tile-plus:hover::before, .tile-plus:hover::after { background: #7a9a01; }

.tile-title {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  padding: 0 30px 30px;
  font-size: 16px;
  color: #34343c;
  text-align: left;
  opacity: 0;
  transform: translate3d(0, 20%, 0);
  transition: all 400ms cubic-bezier(.7, 1, .7, 1);
}
.tile:hover .tile-title { opacity: 1; transform: translate3d(0, 0, 0); }

/* ---------------- 內頁橫幅（about/process/contact 共用；280 高實測） ---------------- */

.page-banner {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
}
.banner-veil { position: absolute; inset: 0; background: rgba(52, 52, 60, .5); }
.banner-inner { position: relative; padding-top: 100px; }
.banner-crumb {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 1.5px;
  color: #fff;
  line-height: 20px;
}
.banner-crumb a { color: #fff; }
.banner-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #fff;
  line-height: 50px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, .4);
}
.banner-sub {
  margin-top: 5px;
  font-family: Georgia, serif;
  font-size: 27px;
  letter-spacing: 1px;
  color: #fff;
  line-height: 39px;
}

/* ---------------- 首頁 hero（RevSlider 重現：panzoom 10s 100→110%、黑50%遮罩、雙層置中 logo） ---------------- */

.hero {
  position: relative;
  height: 900px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroZoom 10s linear forwards;
  /* 原站 RevSlider data-mediafilter="rise"（CSSgram）：暖色濾鏡＋光暈＋暗角，值照抄原站 CSS */
  filter: brightness(1.05) sepia(.2) contrast(.9) saturate(.9);
}
.hero-bg::before {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(circle, rgba(236, 205, 169, .15) 55%, rgba(50, 30, 7, .4));
  mix-blend-mode: multiply;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0; z-index: 3;
  background: radial-gradient(circle, rgba(232, 197, 152, .8), transparent 90%);
  mix-blend-mode: overlay;
  opacity: .6;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-veil { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.hero-logo {
  position: absolute;
  top: 50%; left: 50%;
  width: 500px; height: 172px;
}
.hero-logo-back { transform: translate(-50%, -50%); z-index: 2; }
.hero-logo-front { transform: translate(calc(-50% - 3px), calc(-50% - 3px)); z-index: 3; }

/* ---------------- 首頁內文區 ---------------- */

.container-940 { max-width: 970px; margin: 0 auto; padding: 0 15px; }

.home-intro { padding: 80px 0; }
.home-intro-p {
  font-size: 17px;
  letter-spacing: 1px;
  color: var(--text);
  line-height: 27.2px;
  text-align: center;
  margin-bottom: 15px;
}

/* 質感／毛小孩 半半分割區（700 高、米色面板 #d8d4c7 實測） */
.split { display: flex; min-height: 700px; }
.split-media {
  flex: 1 1 50%;
  background-size: cover;
  background-position: center;
}
.split-panel {
  flex: 1 1 50%;
  background: #d8d4c7;
}
.split-text { padding: 110px 80px 60px; }   /* EN 行落點 = 區塊頂+131（原站實測） */
.split-en {
  font-family: var(--en-serif);
  font-size: 21px;
  letter-spacing: 1.2px;
  font-weight: 300;
  color: #4f4f4f;
  line-height: 33.6px;
  margin-bottom: 14px;
}
.split-h {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 200;
  letter-spacing: 1px;
  color: #4f4f4f;
  line-height: 54px;
  margin-bottom: 26px;
}
.split-p {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 300;
  letter-spacing: .8px;
  color: #4f4f4f;
  line-height: 27.2px;
  margin-bottom: 15px;
}

/* CTA 帶（480 高、遮罩 rgba(66,66,66,.51)×.65 實測） */
.cta {
  position: relative;
  height: 480px;
}
.cta-veil { position: absolute; inset: 0; background: rgba(66, 66, 66, .51); opacity: .65; }
.cta-inner { position: relative; text-align: center; padding-top: 160px; }
.cta-en {
  font-family: var(--en-serif);
  font-size: 21px;
  letter-spacing: 1.2px;
  font-weight: 500;
  color: #fff;
  line-height: 33.6px;
  margin-bottom: 5px;
}
.cta-h {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  line-height: 54px;
}
.cta-btn-wrap { margin-top: 36px; }
.btn-outline {
  display: inline-block;
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 9px 30px;
  font-size: 13px;
  letter-spacing: 2px;
  color: #fff;
  transition: all .25s;
}
.btn-outline:hover { background: #fff; color: #111; }

/* ---------------- 關於我們 ---------------- */

.about-story { padding: 87px 0 78px; }
.about-cols { display: flex; gap: 100px; align-items: flex-start; }
.about-img { flex: 0 0 520px; }
.about-text { flex: 1 1 auto; max-width: 520px; padding-top: 37px; }   /* 金標題 y405（原站實測） */
.about-gold {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold);
  line-height: 37px;
  margin-bottom: 15px;
}
.about-line {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1.2px;
  color: #fff;
  line-height: 26px;
}
.about-gap { height: 26px; }

/* 原站 ffb-id-8s0amjh7：滿版出血、高660(桌機)/270(手機)、parallax speed 50 */
.about-photo { height: 660px; }

/* 視差區塊共用（about 大圖＋首頁 CTA）：底圖上下各留 90px 位移量，JS 半速平移 */
.plx { position: relative; overflow: hidden; }
.plx-bg {
  position: absolute;
  left: 0; right: 0;
  top: -90px; bottom: -90px;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* ---------------- 服務流程 ---------------- */

.process-sec { padding: 60px 0 75px; }
.p-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 15px;   /* 原站實測：列距16（卡片margin-bottom:15）、欄距15 */
}
.p-card {
  background: #f7f8fa;
  border-radius: 30px;   /* 原站 border-radius:30px、無陰影 */
  overflow: hidden;
}
.p-card-photo { height: 200px; background-size: cover; background-position: center; }
.p-card-body { padding: 9px 30px 55px; }   /* 原站列高 420 反推 */
.p-card-head { display: flex; align-items: baseline; }
.p-no {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 34px;
  color: #34343c;
  line-height: 1;
}
.p-slash { color: #b9b9c0; font-size: 26px; line-height: 1; margin: 0 8px 0 4px; }
.p-title {
  font-size: 19px;
  font-weight: 500;
  color: #34343c;
  line-height: 19px;
}
.p-lines {
  margin-top: 17px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1.2px;
  color: #051413;
  line-height: 22.4px;
}
.p-fee {
  margin-top: 25px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #a4937d;
  line-height: 25.6px;
}

/* ---------------- 聯絡我們 ---------------- */

.contact-sec { padding: 111px 0 25px; }
.contact-cols { display: flex; gap: 30px; }
.contact-left { flex: 0 0 555px; }
.contact-right { flex: 0 0 555px; margin-left: auto; }
.contact-logo { margin-bottom: 12px; }
.contact-p + .contact-info { margin-top: 39px; }
.contact-p {
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--text);
  line-height: 27.2px;
  margin-bottom: 15px;
}
.contact-info {
  margin-top: 12px;
  font-size: 16px;
  color: #dcdcdc;
  line-height: 28.8px;
}
.contact-label {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3px;
  border-bottom: 1px solid #dcdcdc;
  padding-bottom: 2px;
  margin-right: 10px;
}

.c-form .c-row { display: flex; gap: 19px; margin-bottom: 16px; }
.c-field { position: relative; flex: 1 1 0; }
.c-field label {
  position: absolute;
  top: 50%; left: 12px;
  transform: translateY(-50%);
  font-size: 14px;
  color: #333;
  pointer-events: none;
}
.c-field label em { color: #c0392b; font-style: normal; }
.c-field-ta label { top: 12px; transform: none; }
.c-field input, .c-field textarea {
  width: 100%;
  height: 39px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 0;
  padding: 0 12px;
  font-size: 14px;
  color: #333;
  font-family: var(--sans);
}
.c-field textarea { height: 200px; padding: 10px 12px; resize: vertical; }
.c-field input:focus, .c-field textarea:focus { outline: 1px solid #b9b9c0; }
.c-submit {
  flex: 1 1 0;
  height: 39px;
  background: #efefef;
  border: 1px solid #e3e3e3;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  font-family: var(--sans);
}
.c-submit:hover { background: #e2e2e2; }

/* ---------------- RWD（≤768 手機；數值 2026-08-09 原站 iframe 390 實測） ---------------- */

@media (max-width: 768px) {
  .site-header { height: 70px; }
  .header-inner { height: 70px; }
  .brand img { width: 147px; height: 50px; }

  .nav-toggle { display: block; width: 25px; height: 25px; }
  .nav-toggle span { width: 25px; margin: 5px 0; }
  .site-nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: #000;
    flex-direction: column;
    padding: 10px 0 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav li a { padding: 12px 20px; text-align: center; }

  /* 作品內頁：content 緊貼 header（原站 crumb y=70）、title 字距降 1px、divider 全寬 */
  .work-main { padding-top: 70px; padding-bottom: 0; }
  .work-title { margin-top: 30px; letter-spacing: 1px; }
  .title-divider { width: 100%; }
  /* 雙欄圖組不收合：原站是 col-xs-6，手機也維持兩欄 */
  .work-gap { padding-top: 30px; }   /* 原站 <992 基準值 30 */

  .cat-main { padding-top: 70px; }
  /* 手機單欄（縱距沿用 34；未在原站手機親驗，定版時比對） */
  .cat-grid { flex-direction: column; gap: 0; }

  .site-footer { padding: 55px 15px 26px; }
  .footer-nav { margin-top: 40px; }
  .footer-nav span, .footer-nav a { padding: 4px 12px; }

  /* 真內容頁手機版 */
  .hero { height: 260px; }   /* RevSlider 手機 grid 480×320 → 390 視窗換算 */
  .hero-logo { width: 300px; height: 103px; }

  .page-banner { height: 220px; }
  .banner-inner { padding-top: 80px; }
  .banner-title { font-size: 30px; }

  .home-intro { padding: 50px 0; }

  .split { flex-direction: column; min-height: 0; }
  .split-media { min-height: 320px; }
  .split-text { padding: 45px 25px; }
  .split-h { font-size: 30px; line-height: 44px; }

  .cta { height: 400px; }
  .cta-inner { padding-top: 120px; }
  .cta-h { font-size: 28px; line-height: 42px; }

  .about-story { padding: 50px 0; }
  .about-cols { flex-direction: column; gap: 40px; }
  .about-img { flex: none; }
  .about-photo { height: 270px; }   /* 原站基準值(<992)：270px */

  .p-grid { grid-template-columns: 1fr; gap: 15px; }
  .p-card-photo { height: 150px; }   /* 原站 <992 卡內照片高 150 */
  .p-fee { margin-top: 45px; }

  .contact-sec { padding: 50px 0 25px; }
  .contact-cols { flex-direction: column; gap: 40px; }
  .contact-left, .contact-right { flex: none; }
  .c-form .c-row { flex-direction: column; gap: 16px; }
}
