/* sunraysupreme.com 靜態重寫 v2（Elementor 站，非 Ark）
   2026-08-09 Dennis 20 條回饋後重校。所有數值來自原站 devtools/::before 實測：
   遮罩=veil 層（hero .3、team/trend .6、about .2、choose/contact/case2 .5、CTA .6、suc-intro .15）
   斜切=Elementor 規則（bottom 容器 rotate180、flip=rotateY）；行高 1.5；band=rgba(0,0,0,.45) */

:root {
  --navy: #06002e;        /* 區塊深藍（實測 rgb(6,0,46)） */
  --ink: #0a0a0a;         /* body/footer 黑 */
  --blue: #263c89;        /* 按鈕/pill */
  --blue-hi: #20207a;     /* nav active（依 Dennis 截圖校） */
  --text: #fff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
.anchor { display: block; position: relative; top: -30px; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.5;      /* 原站 lh30/20（先前 1.8 是錯的，整體鬆垮的元凶） */
  font-weight: 400;
}

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

.container { max-width: 1220px; margin: 0 auto; padding: 0 30px; }
.container-wide { max-width: 1360px; margin: 0 auto; padding: 0 30px; }  /* success intro 1302 實測 */

h2 { font-size: 40px; font-weight: 600; letter-spacing: 1px; line-height: 1.4; margin-bottom: 20px; }
.center { text-align: center; }

p { letter-spacing: 1.2px; margin-bottom: 15px; }

/* 英文段落整體小一級（Dennis 2026-08-10 指示） */
.lang-en { font-size: 18px; }
.lang-en .band-dark p, .lang-en .svc-txt p, .lang-en .svc-txt ul.disc li,
.lang-en .sec-svc-intro p, .lang-en .suc-intro p, .lang-en .case-p,
.lang-en .case-challenge, .lang-en .c-info, .lang-en .c-sub,
.lang-en .p-photo-card p { font-size: 18px; line-height: 28px; }
.lang-en .checks li { font-size: 18px; }
.lang-en .trend-box p { font-size: 15px; }
.lang-en .slide-p { font-size: clamp(12px, 1.4vw, 16px); }
.lang-en .flip-back p { font-size: 13.5px; }

/* 中文照原站 justify；英文照 Dennis 指示一律靠左（#20） */
.lang-zh .split2 p, .lang-zh .trend-box p, .lang-zh .p-photo-card p, .lang-zh .svc-txt p { text-align: justify; }
.lang-en p, .lang-en .trend-box p, .lang-en .p-photo-card p, .lang-en .svc-txt p { text-align: left; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: Roboto, var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: normal;
  border-radius: 35px;
  padding: 15px 30px;
  line-height: 1;
  transition: background .25s;
}
.btn:hover { background: #3450b0; }
.btn-wrap { margin-top: 28px; }

/* ---------------- 通用層：veil 遮罩 / 背景影片 / 斜切邊 ---------------- */

.veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bg-video { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.bg-video video { width: 100%; height: 100%; object-fit: cover; }

.shape {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}
.shape svg { display: block; width: calc(100% + 1.3px); }
.shape-bottom { bottom: -1px; transform: rotate(180deg); }  /* Elementor 規則：bottom 容器旋轉 180（先前漏掉→方向全反） */
.shape-top { top: -1px; }
.shape-flip svg { transform: rotateY(180deg); }

/* 有遮罩/影片的區塊，內容一律墊高 */
section { position: relative; }
section > .container, section > .container-wide { position: relative; z-index: 3; }

/* ---------------- header（黑底、非固定；nav 13/20 無間隙 實測） ---------------- */

.site-header { background: #000; }
.header-inner {
  padding: 8px 20px 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-img { width: 200px; height: 56px; }

.site-nav { display: flex; align-items: center; list-style: none; gap: 0; }
.site-nav li.m a {
  display: block;
  padding: 13px 20px;
  font-size: 16px;
  color: #fff;
  transition: background .2s;
}
.site-nav li.m.is-active a,
.site-nav li.m a:hover { background: var(--blue-hi); }

/* 語言切換（實測：當前=透明+1px 白框 83×39；另一語言=白底深字） */
/* 語言切換：白框膠囊、當前語言填鐵藍 #113d58（原站實測）、中間細分隔線 */
.langs {
  display: flex;
  margin-left: 20px;
  border: 2px solid #fff;
  border-radius: 999px;
  overflow: hidden;
}
.lang {
  display: block;
  padding: 9px 18px;
  font-size: 15px;
  line-height: 19px;
  border: 0;
  color: #fff;
  background: transparent;
}
.lang.is-cur { background: #113d58; }
.lang + .lang { border-left: 1px solid rgba(255, 255, 255, .7); }

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

@media (max-width: 1280px) and (min-width: 821px) {
  .site-nav li.m a { padding: 13px 12px; font-size: 15px; }
  .brand-img { width: 180px; height: 50px; }
  .langs { margin-left: 10px; }
  .lang { padding: 8px 14px; font-size: 14px; }
}

/* ---------------- footer（實測 44 高 #0a0a0a） ---------------- */

.site-footer {
  background: var(--ink);
  text-align: center;
  font-size: 13px;
  letter-spacing: .5px;
  color: #cfcfcf;
  padding: 12px 15px;
}

/* ---------------- CTA（400 高、影片＋黑 .6 遮罩、置中） ---------------- */

.cta {
  position: relative;
  background: #030312;
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cta-in { position: relative; z-index: 3; }
.cta h2 { font-size: 40px; margin-bottom: 34px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------------- 首頁 hero 輪播（影片＋黑 .3 遮罩；SS3 文字隨視窗縮放） ---------------- */

.hero-slider { position: relative; background: var(--navy); overflow: hidden; }
.slide { display: none; }
.slide.is-on { display: block; }
.slide-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 760px;   /* Dennis 2026-08-10：主 Banner 再高一點（原 697） */
  padding-top: 10px;
  padding-bottom: 60px;
  position: relative;
  z-index: 3;
}
.slide-txt { flex: 1 1 55%; }
.slide-h { font-size: clamp(26px, 3.4vw, 44px); font-weight: 700; margin-bottom: 16px; }
.slide-p {
  font-size: clamp(13px, 1.5vw, 18px);
  line-height: 1.9;
  color: #dfe3f2;
  margin-bottom: 24px;
  max-width: 30em;
}
.slide-img { flex: 0 0 36%; }
.slide-img img { border-radius: 50%; }

.s-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: rgba(255, 255, 255, .65);
  font-size: 34px;
  cursor: pointer;
  z-index: 5;
  padding: 10px;
}
.s-arrow:hover { color: #fff; }
.s-prev { left: 26px; }
.s-next { right: 26px; }

.dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 22px;
  display: flex;
  gap: 10px;
  z-index: 5;
}
.dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; }
.dot.is-on { background: #fff; }

/* ---------------- 通用：雙欄、圓圖、勾選清單、半透明黑帶 ---------------- */

.split2 { display: flex; align-items: center; gap: 0; position: relative; z-index: 3; }
.split2 .col { flex: 1 1 0; min-width: 0; padding: 0 20px; }
.circle-img img { border-radius: 50%; }

.checks { list-style: none; margin: 18px 0 0; }
.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 20px;       /* 實測 20px、白勾 14px */
  letter-spacing: 1px;
}
.checks li::before {
  content: "\2713";
  position: absolute;
  left: 2px;
  font-size: 14px;
  top: 4px;
  color: #fff;
  font-weight: 700;
}

/* 說明帶：半透明黑（實測 rgba(0,0,0,.45)、1140 寬） */
.band-dark {
  background: rgba(0, 0, 0, .45);
  text-align: center;
  padding: 52px 40px 40px;
  margin: 60px 0;
  position: relative;
  z-index: 3;
}
.band-dark h2 { margin-bottom: 14px; }
.band-dark p { font-size: 20px; line-height: 30px; color: #e7eaf6; max-width: 960px; margin: 0 auto 8px; }

/* ---------------- 首頁各區 ---------------- */

.sec-team, .sec-core, .sec-trend, .sec-gov {
  display: flex;
  align-items: center;
  overflow: hidden;
}
.sec-team > .container, .sec-core > .container, .sec-trend > .container, .sec-gov > .container { width: 100%; }
.sec-team {
  min-height: 900px;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
}
.sec-core { min-height: 900px; background: var(--navy); }
.sec-trend {
  min-height: 984px;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  padding: 60px 0 160px;
}
.trend-row { display: flex; gap: 40px; margin-top: 50px; }
.trend-box { flex: 1 1 0; text-align: center; }
.trend-icon { width: 130px; height: auto; margin: 0 auto 26px; }
.trend-box h3 { font-size: 24px; font-weight: 600; margin-bottom: 16px; }
.trend-box p { font-size: 16px; line-height: 1.9; color: #e8eaf5; }

.sec-gov { min-height: 900px; background: var(--navy); padding: 50px 0; }
.flip-row { display: flex; gap: 34px; margin-top: 46px; }
.gov-wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 30px; position: relative; z-index: 3; }
.flip { flex: 1 1 0; perspective: 1200px; min-height: 330px; }
.flip-inner { position: relative; width: 100%; height: 100%; min-height: 330px; transform-style: preserve-3d; transition: transform .6s; }
.flip:hover .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1px solid rgba(255, 255, 255, .35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.flip-front img { width: 100%; height: calc(100% - 56px); object-fit: cover; flex: 1 1 auto; }
.flip-cap {
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  background: rgba(3, 3, 25, .92);
}
.flip-back { transform: rotateY(180deg); background: var(--blue-hi); padding: 26px 22px; justify-content: center; }
.flip-back h3 { font-size: 20px; margin-bottom: 12px; }
.flip-back p { font-size: 14.5px; line-height: 1.7; text-align: justify; margin: 0; }
.lang-en .flip-back p { text-align: left; }

/* ---------------- about ---------------- */

.sec-about1, .sec-about2, .sec-why, .sec-band, .sec-choose, .sec-case, .sec-contact { overflow: hidden; }
.sec-about1 {
  display: flex; align-items: center;
  min-height: 850px;
  background-color: var(--navy);
  background-size: cover; background-position: center;
}
.sec-band { background: var(--navy); min-height: 330px; display: flex; align-items: center; }
.sec-band > .container { width: 100%; }
.band-card { background: #171b60; text-align: center; padding: 46px 40px 40px; }
.band-card h2 { font-size: 34px; margin-bottom: 14px; }
.band-card p { font-size: 17px; color: #d9ddf0; margin: 0; }

.sec-about2 {
  display: flex; align-items: center;
  min-height: 890px;
  background-color: var(--ink);
  background-size: cover; background-position: center;
}
.sec-why { background: var(--navy); min-height: 900px; display: flex; align-items: center; padding: 80px 0; }
.card-row { display: flex; gap: 48px; margin-top: 50px; justify-content: center; position: relative; z-index: 3; }
.p-photo-card { flex: 1 1 0; max-width: 320px; text-align: center; }
.p-photo-card img { border: 1px solid rgba(255, 255, 255, .3); margin-bottom: 22px; }
.p-photo-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.p-photo-card p { font-size: 20px; line-height: 30px; color: #e5e8f4; margin: 0; }

/* ---------------- choose（卡 276、h3 22、內文 20/30 實測） ---------------- */

.sec-choose {
  display: flex; align-items: center;
  min-height: 1000px;
  background-color: var(--navy);
  background-size: cover; background-position: center;
}
.cr4 { gap: 19px; }
.cr4 .p-photo-card { max-width: 276px; text-align: left; }
.cr4 .p-photo-card h3 { text-align: center; }
.choose-tag { margin-top: 60px; font-size: 20px; letter-spacing: 2px; }

/* ---------------- service ---------------- */

.sec-svc-intro { background: var(--navy); min-height: 415px; display: flex; align-items: center; text-align: center; }
.sec-svc-intro > .container { width: 100%; }
.sec-svc-intro p { max-width: 940px; margin: 0 auto; font-size: 20px; line-height: 30px; color: #e2e6f3; }

/* 兩個 mega 區：#0a0a0a ＋ 背景.jpg 粒子紋理（原站 overlay 0.9 的等價） */
.svc-mega {
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  padding: 100px 0 40px;   /* 原站分類卡 y513 = 415+98 */
}
.svc-mega + .svc-mega { padding-top: 40px; }
.cats-row { margin-bottom: 40px; }

a.cat-card { display: block; }
.cat-card {
  flex: 1 1 0;
  aspect-ratio: 363 / 286;
  height: auto;
  border: 1px solid rgba(255, 255, 255, .4);
  position: relative;
  background-size: cover; background-position: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.cat-lbl {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(2, 1, 1, .59);
  border: 2px solid #fff;
  padding: 12px 24px;
  font-size: clamp(22px, 1.9vw, 36px);   /* 窄視窗縮字級，不斷行 */
  font-weight: 500;
  white-space: normal;
  max-width: 92%;
  text-align: center;
}
.lang-zh .cat-lbl { white-space: nowrap; }   /* 中文四字標籤永不斷行（Dennis 指示） */
/* 英文樣式不沿用中文（Dennis 原則）：字級略小、不特意加粗、可換行 */
.lang-en .cat-lbl { font-size: clamp(20px, 1.7vw, 32px); font-weight: 500; line-height: 1.3; padding: 10px 20px; }
.lang-en .svc-txt .lbl strong { font-weight: 600; }
.lang-en .band-dark h2, .lang-en .svc-txt h2 { font-weight: 600; }
.lang-en .case-challenge strong, .lang-en .c-info { font-weight: 400; }

.svc-block { padding: 70px 20px; }
.svc-txt { max-width: 614px; }              /* 文字欄 574＋pad，實測 */
.svc-txt h2 { font-size: 40px; margin-bottom: 22px; }
.svc-txt p { font-size: 20px; line-height: 30px; color: #e5e8f4; margin-bottom: 10px; }
.svc-txt .lbl strong, .svc-txt .lbl-line strong { font-size: 20px; font-weight: 700; color: #fff; }
.svc-txt .lbl { margin: 14px 0 8px; }
.svc-txt .ind { margin-left: 40px; }              /* 標籤下內容統一縮排 40（四標籤垂直切齊） */
.svc-txt .ind p { margin-bottom: 10px; }
.svc-txt ul.disc { list-style: disc; margin: 0 0 14px 0; padding-left: 22px; }
.svc-txt ul.disc li { font-size: 20px; line-height: 30px; color: #e5e8f4; }

/* ---------------- success ---------------- */

.suc-intro {
  min-height: 800px;
  display: flex; align-items: center;
  background-color: var(--ink);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.suc-intro h2 { max-width: 1302px; }
.suc-intro p { font-size: 20px; line-height: 30px; max-width: 1302px; }

.sec-case { background: var(--ink); display: flex; align-items: center; min-height: 900px; padding: 60px 0; }
.sec-case.case-1 { background: var(--navy); min-height: 820px; padding: 120px 0; }
.sec-case.case-2 { background-color: var(--ink); background-size: cover; background-position: center; }
.sec-case h2 { font-size: 40px; }
.case-challenge { font-size: 20px; margin-bottom: 22px; }
.pill {
  display: inline-block;
  background: var(--blue);
  font-size: 16px;
  padding: 3px 7px 4px;
  margin-bottom: 8px;
}
.case-p { font-size: 20px; line-height: 30px; margin: 0 0 22px 40px; color: #e5e8f4; }

/* ---------------- contact（容器 1100、欄 530/530、透明輸入框 實測） ---------------- */

.sec-contact > .container { max-width: 1160px; }   /* 原站 contact 內容 1100 實測 */
.sec-contact {
  background-color: var(--navy);
  background-size: cover; background-position: center;
  padding: 90px 0 60px;
}
.contact-wrap { max-width: 1160px; margin: 0 auto; padding: 0 30px; position: relative; z-index: 3; }
.contact-cols { display: flex; gap: 40px; margin-bottom: 36px; position: relative; z-index: 3; }
.c-left { flex: 0 0 48%; }
.c-left h2 { font-size: 40px; margin-bottom: 8px; }
.c-sub { font-size: 20px; margin-bottom: 34px; }
.c-info { font-size: 20px; line-height: 30px; letter-spacing: 1px; }

.c-right { flex: 1 1 auto; }
.f-lbl { display: block; font-size: 16px; color: #fff; margin: 0 0 6px 2px; }
.f-lbl em { color: #e05a5a; font-style: normal; }
.c-form input, .c-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0);   /* 原站是透明底＋白 25% 細框 */
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 0;
  height: 46px;
  padding: 8px 12px;
  font-size: 15px;
  font-family: var(--sans);
  margin-bottom: 14px;
}
.c-form textarea { height: 124px; resize: vertical; }
.c-form input:focus, .c-form textarea:focus { outline: 1px solid rgba(255, 255, 255, .5); }
.f-2col { display: flex; gap: 20px; }
.f-2col > div { flex: 1 1 0; }
.f-send {
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: 0;
  height: 40px;
  font-size: 15px;
  cursor: pointer;
  font-family: var(--sans);
}
.f-send:hover { background: #0d0640; }
.gmap { width: 100%; height: 300px; border: 0; display: block; position: relative; z-index: 3; }

/* ---------------- RWD ---------------- */

@media (max-width: 820px) {
  body { font-size: 17px; }
  h2 { font-size: 30px; }

  .nav-toggle { display: block; position: relative; }
  .site-header { position: relative; }
  /* 開合鈕：開啟時變 ✕（原站行為） */
  .nav-toggle.is-x span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-x span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-x span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* 手機選單：白底深字、無 highlight（原站實測） */
  .site-nav {
    display: none;
    position: absolute;
    z-index: 50;
    top: 100%;            /* 貼齊 header 下緣（沒設會往上長、前幾項被切掉） */
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 0 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav li.m a { text-align: center; color: #222; padding: 7px 20px; font-size: 15px; }
  .site-nav li.m.is-active a, .site-nav li.m a:hover { background: transparent; color: #222; }
  /* 語言列：兩格各半寬（當前=深底白字、另一語=白底深字） */
  .langs { display: flex; margin: 8px 0 0; border: 0; border-top: 1px solid #ddd; border-radius: 0; overflow: visible; }
  .langs .lang { flex: 1 1 50%; text-align: center; padding: 12px 0; font-size: 15px; }
  .langs .lang.is-cur { background: #0d0d21; color: #fff; }
  .langs .lang:not(.is-cur) { background: #fff; color: #222; border: 1px solid #ccc; }
  .brand-img { width: 160px; height: 45px; }

  .slide-inner { flex-direction: column; gap: 30px; min-height: 0; padding: 40px 15px 70px; }
  .slide-h { font-size: 30px; }
  .slide-p { font-size: 15px; }
  .slide-img { flex: none; max-width: 320px; }

  .split2 { flex-direction: column; gap: 40px; }
  .sec-team, .sec-core, .sec-trend, .sec-gov, .sec-about1, .sec-about2, .sec-why,
  .sec-choose, .sec-case, .suc-intro { min-height: 0; padding: 60px 0; }

  .trend-row, .card-row, .flip-row { flex-direction: column; gap: 36px; }
  .p-photo-card, .cr4 .p-photo-card { max-width: none; }
  .flip { min-height: 320px; }
  .svc-txt { max-width: none; }
  .svc-mega { padding: 90px 0 30px; }

  .cta { min-height: 0; padding: 70px 15px; }
  .cta h2 { font-size: 26px; }

  .contact-cols { flex-direction: column; gap: 44px; }
  .c-left { flex: none; }
  .gmap { height: 300px; }

  .cat-card { height: 200px; }
  .cat-lbl { font-size: 22px; left: 20px; }
  .band-dark { padding: 32px 20px; }
}
