/* ============================================================
   services.css — 服務總覽頁專屬樣式
   ============================================================ */

/* PAGE HERO */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 80px 80px;
  background: var(--white);
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(137,222,124,0.2), transparent 70%);
  border-radius: 50%; pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.1);} }
.ph-label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 14px; }
.ph-title { font-size: clamp(36px,4.5vw,58px); font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.ph-sub { font-size: 15px; color: var(--text-muted); line-height: 1.9; }
.hero-visual-strip { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 400px; }
.hv-img { border-radius: 16px; overflow: hidden; box-shadow: 0 12px 40px rgba(42,50,75,0.12); }
.hv-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hv-img:hover img { transform: scale(1.05); }
.hv-img:nth-child(1) { grid-row: span 2; animation: imgFloat1 6s ease-in-out infinite; }
.hv-img:nth-child(2) { animation: imgFloat2 5s ease-in-out infinite 1s; }
.hv-img:nth-child(3) { animation: imgFloat2 7s ease-in-out infinite .5s; }
@keyframes imgFloat1 { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }
@keyframes imgFloat2 { 0%,100%{transform:translateY(0);} 50%{transform:translateY(8px);} }

/* SERVICE BLOCK — compact */
.service-block { padding: 56px 80px; border-bottom: 1px solid rgba(42,50,75,0.06); }
.service-block:nth-child(even) { background: var(--white); }
.service-block:nth-child(odd)  { background: var(--bg); }
.sb-inner { display: grid; grid-template-columns: 50% 1fr; gap: 60px; align-items: center; }
.sb-inner.reverse { direction: rtl; }
.sb-inner.reverse > * { direction: ltr; }
.sb-num { font-size: 56px; font-weight: 900; line-height: 1; color: rgba(42,50,75,0.06); margin-bottom: -10px; letter-spacing: -.04em; }
.sb-label { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 6px; }
.sb-title { font-size: 22px; font-weight: 900; color: var(--primary); margin-bottom: 6px; }
.sb-tagline { font-size: 13px; color: var(--text-light); margin-bottom: 18px; }
.sb-img { border-radius: 14px; overflow: hidden; box-shadow: 0 12px 36px rgba(42,50,75,0.10); aspect-ratio: 4/3; }
.sb-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sb-img:hover img { transform: scale(1.03); }
.feature-list { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.feature-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.feature-item::before { content: '→'; color: var(--accent-dark); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.note-box { margin-top: 18px; background: rgba(137,222,124,0.12); border-left: 3px solid var(--accent-dark); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 12.5px; color: var(--primary); line-height: 1.7; }

/* CTA links */
.sb-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-size: 13px; font-weight: 700; color: var(--accent-dark);
  text-decoration: none; letter-spacing: .04em;
  border-bottom: 1.5px solid var(--accent-dark); padding-bottom: 2px;
  transition: gap .2s, color .2s;
}
.sb-cta:hover { gap: 10px; color: var(--primary); border-color: var(--primary); }
.other-block .sb-cta { color: var(--accent); border-color: var(--accent); }
.other-block .sb-cta:hover { color: var(--white); border-color: var(--white); }
.web-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 28px;
  font-size: 14px; font-weight: 700; color: var(--accent);
  text-decoration: none; letter-spacing: .04em;
  border-bottom: 1.5px solid var(--accent); padding-bottom: 2px;
  transition: gap .2s, color .2s, border-color .2s;
}
.web-cta:hover { gap: 10px; color: var(--white); border-color: var(--white); }

/* OTHER 品牌持續經營 */
.other-block { background: var(--primary); color: var(--white); padding: 80px; }
.other-block .sb-num  { color: rgba(255,255,255,0.05); }
.other-block .sb-label{ color: var(--accent); }
.other-block .sb-title { color: var(--white); }
.other-block .sb-tagline { color: rgba(255,255,255,0.5); }
.other-block .feature-item { color: rgba(255,255,255,0.65); }
.other-block .feature-item::before { color: var(--accent); }
.other-cats { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 32px; }
.other-cat { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 24px; transition: background .25s, transform .25s; }
.other-cat:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }
.other-cat-icon { font-size: 22px; margin-bottom: 12px; }
.other-cat-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.other-cat-desc { font-size: 12px; opacity: .55; line-height: 1.7; }

/* 形象官網 FEATURE BLOCK */
.service-block-web { background: var(--primary); padding: 100px 80px; position: relative; overflow: hidden; }
.service-block-web::before {
  content: ''; position: absolute; right: -200px; top: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(137,222,124,0.12), transparent 65%);
  border-radius: 50%; pointer-events: none;
  animation: webGlow 9s ease-in-out infinite;
}
@keyframes webGlow { 0%,100%{transform:scale(1) translate(0,0);} 50%{transform:scale(1.1) translate(-20px,20px);} }
.web-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: center; margin-bottom: 60px; }
.web-top-left { position: relative; z-index: 1; }
.web-title { font-size: 22px; font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 24px; letter-spacing: -.02em; }
.web-tagline { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.9; }
.web-main-img { border-radius: 20px; overflow: hidden; position: relative; aspect-ratio: 16/10; box-shadow: 0 40px 100px rgba(0,0,0,0.4); animation: webImgFloat 7s ease-in-out infinite;}
.web-main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }

.web-main-img img { transform: scale(1.0); transition: transform .8s; }
.web-main-img:hover { transform: scale(1.03); }

@keyframes webImgFloat { 0%,100%{transform:translateY(0) rotate(.3deg);} 50%{transform:translateY(-12px) rotate(-.3deg);} }
.web-img-badge {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 30px; padding: 8px 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--white);
}
.wib-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.5s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.web-cards { display: grid; grid-template-columns:  1fr 1fr 1fr; gap: 24px; align-items: stretch; margin-bottom: 48px; position: relative; z-index: 1; }
.web-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 32px 28px; transition: background .3s, transform .3s, border-color .3s; cursor: default; }
.web-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-4px); }
.wc-a:hover { border-color: rgba(137,222,124,0.5); }
.wc-b:hover { border-color: rgba(255,255,255,0.25); }
.wc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.wc-tag { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: var(--accent); color: var(--primary); padding: 4px 12px; border-radius: 20px; }
.wc-tag-b { background: rgba(255,255,255,0.15); color: var(--white); }
.wc-icon { font-size: 24px; color: var(--accent); opacity: .7; }
.wc-title { font-size: 20px; font-weight: 900; color: var(--white); margin-bottom: 12px; }
.wc-desc { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 20px; }
.wc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.wc-list li { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6; padding-left: 16px; position: relative; }
.wc-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.wc-fit { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: rgba(255,255,255,0.5); }
.fit-label { font-weight: 700; color: var(--accent); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; flex-shrink: 0; padding-top: 1px; }
.web-card-divider { display: flex; align-items: center; justify-content: center; width: 48px; }
.web-card-divider span { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.25); writing-mode: vertical-lr; letter-spacing: .1em; }
.web-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; padding-top: 48px; border-top: 1px solid rgba(255,255,255,0.08); }
.web-extra-imgs { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.wei-img { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.wei-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.wei-img:hover img { transform: scale(1.06); }
.wei-img:nth-child(2) { margin-top: 20px; }
.wei-img:nth-child(3) { margin-top: 8px; }
.web-et-label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.web-et-features { display: flex; flex-direction: column; gap: 16px; }
.wet-item { display: flex; gap: 12px; align-items: flex-start; }
.wet-icon { color: var(--accent); font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.wet-item span:last-child { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; }

/* PROCESS */
.process { background: var(--white); padding: 100px 80px; }
.process-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; margin-top: 60px; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px; background: var(--accent); z-index: 0; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; padding: 0 12px; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 900; color: var(--accent-dark); margin-bottom: 20px; transition: background .25s, transform .25s; box-shadow: 0 4px 16px rgba(137,222,124,0.2); }
.step:hover .step-num { background: var(--accent); transform: scale(1.1); }
.step-title { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.step-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* CTA SECTION */
.cta-section { background: var(--accent); text-align: center; padding: 100px 80px; }
.cta-section h2 { font-size: clamp(26px,3vw,40px); font-weight: 900; color: var(--primary); margin-bottom: 16px; }
.cta-section p { font-size: 15px; color: var(--primary); opacity: .7; margin-bottom: 40px; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .page-hero, .service-block, .other-block, .process, .cta-section { padding: 64px 28px; }
  .page-hero { padding-top: 160px; grid-template-columns: 1fr; }
  .hero-visual-strip { height: 200px; }
  .sb-inner, .sb-inner.reverse { direction: ltr; grid-template-columns: 1fr; gap: 32px; }
  .other-cats { grid-template-columns: 1fr; }
  .service-block-web { padding: 64px 28px; }
  .web-top { grid-template-columns: 1fr; gap: 32px; }
  .web-cards { grid-template-columns: 1fr; }
  .web-card-divider { width: auto; height: 24px; writing-mode: initial; }
  .web-card-divider span { writing-mode: initial; }
  .web-extra { grid-template-columns: 1fr; gap: 28px; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-steps::before { display: none; }
}
@media (max-width: 1024px) {
  .page-hero { padding-top: calc(var(--nav-h) + 48px + 40px); }
}
