/* ── Hero ── */
.ps-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  align-items: flex-start !important;
}
.ps-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ps-hero__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  opacity: 0.45;
}
.ps-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5,8,16,0.97) 0%,
    rgba(5,8,16,0.88) 35%,
    rgba(5,8,16,0.55) 60%,
    rgba(5,8,16,0.15) 100%
  );
}
.ps-hero__content {
  position: relative;
  z-index: 1;
  text-align: left !important;
  padding: 7rem 4rem 10rem 6rem !important;
  max-width: 720px !important;
  animation: pi-fadeInUp 0.8s cubic-bezier(0.4,0,0.2,1);
}
.ps-hero__content .pi-hero__badge {
  margin: 0 0 1.5rem !important;
}
.ps-hero__content .pi-hero__cta {
  justify-content: flex-start !important;
}
.ps-hero__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}
.ps-hero__stat {
  text-align: center;
  flex: 1;
}
.ps-hero__stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #af1739;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ps-hero__stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.3rem;
  line-height: 1.4;
}
.ps-hero__stat-divider {
  width: 1px;
  height: 2rem;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .ps-hero__content { padding: 5rem 2rem 8rem !important; }
  .ps-hero__stats { flex-wrap: wrap; gap: 0.75rem; padding: 1rem; }
  .ps-hero__stat { min-width: 40%; }
  .ps-hero__stat-divider { display: none; }
}

/* ── Story Block (圖文並排敘事) ── */
.ps-story {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.ps-story--reverse {
  grid-template-columns: 1.2fr 1fr;
}
.ps-story--reverse .ps-story__visual {
  order: 2;
}
.ps-story--reverse .ps-story__text {
  order: 1;
}
.ps-story__visual {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #111;
}
.ps-story__visual img {
  width: 100%;
  height: auto;
  display: block;
  padding: 1rem;
  border-radius: 8px;
}
.ps-story__visual--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 0;
  background: rgba(255,255,255,0.06);
}
.ps-story__visual--pair > div {
  background: #111;
  text-align: center;
}
.ps-story__visual--pair img {
  padding: 0.75rem 0.75rem 0.25rem;
}
.ps-story__caption {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 0.25rem 0 0.75rem;
}
.ps-story__text p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin: 0.75rem 0 0;
}
.ps-product__badge--solution {
  background: rgba(175,23,57,0.15);
  border-color: rgba(175,23,57,0.3);
  color: #af1739;
}
@media (max-width: 900px) {
  .ps-story,
  .ps-story--reverse {
    grid-template-columns: 1fr;
  }
  .ps-story--reverse .ps-story__visual,
  .ps-story--reverse .ps-story__text {
    order: unset;
  }
}

/* ── Product Section (產品照片 + 優勢) ── */
.ps-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.ps-product--reverse {
  direction: rtl;
}
.ps-product--reverse > * {
  direction: ltr;
}
.ps-product__visual {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.ps-product__visual img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
  padding: 1.5rem;
}
.ps-product__info {
  padding-top: 0.5rem;
}
.ps-product__badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(175,23,57,0.15);
  border: 1px solid rgba(175,23,57,0.3);
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #af1739;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.ps-product__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.ps-product__problem {
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid rgba(255,255,255,0.2);
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.25rem;
}
.ps-product__problem-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}
.ps-product__problem p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0;
}
.ps-product__solution {
  padding: 1rem 1.25rem;
  background: rgba(175,23,57,0.06);
  border-left: 3px solid #af1739;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.25rem;
}
.ps-product__solution-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #af1739;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}
.ps-product__solution p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin: 0;
}
.ps-product__advantages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.ps-adv {
  padding: 0.6rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  transition: border-color 0.2s;
}
.ps-adv:hover {
  border-color: rgba(175,23,57,0.3);
}
@media (max-width: 900px) {
  .ps-product {
    grid-template-columns: 1fr;
  }
  .ps-product--reverse {
    direction: ltr;
  }
}
@media (max-width: 520px) {
  .ps-product__advantages {
    grid-template-columns: 1fr;
  }
}

/* ── Docs Grid ── */
.ps-docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
}
.ps-doc-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  background: rgba(255,255,255,0.025);
  text-decoration: none;
  transition: background 0.2s;
}
.ps-doc-card:hover {
  background: rgba(175,23,57,0.06);
}
.ps-doc-card__content { flex: 1; }
.ps-doc-card__content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.3rem;
}
.ps-doc-card__content p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}
.ps-doc-card__arrow {
  color: rgba(175,23,57,0.6);
  font-size: 1.2rem;
  flex-shrink: 0;
  font-weight: 300;
}
@media (max-width: 768px) {
  .ps-docs-grid { grid-template-columns: 1fr; }
}

/* ── Card Grid (Core / Components / Applications) ── */
.ps-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.ps-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ps-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ps-grid--2 { grid-template-columns: repeat(2, 1fr); }

.ps-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.ps-card:hover {
  border-color: rgba(175,23,57,0.3);
  transform: translateY(-2px);
}
.ps-card__media {
  aspect-ratio: 16 / 10;
  background: #0c0f17;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ps-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ps-card__body {
  padding: 1rem 1.1rem 1.25rem;
}
.ps-card__eyebrow {
  font-size: 0.66rem;
  font-weight: 600;
  color: #af1739;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.ps-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.ps-card__desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 1100px) {
  .ps-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ps-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ps-grid--4,
  .ps-grid--3,
  .ps-grid--2 { grid-template-columns: 1fr; }
}

/* ── Workflow (numbered steps) ── */
.ps-workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  counter-reset: ps-step;
}
.ps-step {
  position: relative;
  padding: 1.5rem 1.25rem 1.25rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  counter-increment: ps-step;
}
.ps-step::before {
  content: counter(ps-step, decimal-leading-zero);
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #af1739;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.ps-step__title {
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin: 0 0 0.4rem;
}
.ps-step__desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 900px) {
  .ps-workflow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ps-workflow { grid-template-columns: 1fr; }
}

/* ── Industry Case Block (image gallery + cases list) ── */
.ps-industry {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-bottom: 3rem;
  padding: 1.75rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}
.ps-industry--reverse {
  grid-template-columns: 1fr 1.1fr;
}
.ps-industry--reverse .ps-industry__visual { order: 2; }
.ps-industry--reverse .ps-industry__body { order: 1; }
.ps-industry__visual {
  display: grid;
  gap: 0.5rem;
}
.ps-industry__visual--single {
  display: block;
}
.ps-industry__visual--pair {
  grid-template-columns: 1fr 1fr;
}
.ps-industry__visual--triple {
  grid-template-columns: 1fr 1fr;
}
.ps-industry__visual--triple > :first-child {
  grid-column: span 2;
}
.ps-industry__visual--quad {
  grid-template-columns: 1fr 1fr;
}
.ps-industry__visual--auto {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.ps-industry__visual--auto > :first-child {
  grid-column: 1 / -1;
}
.ps-industry__shot {
  background: #0c0f17;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
}
.ps-industry__shot picture,
.ps-industry__shot > a,
.ps-industry__shot > div.img-frame,
.ps-industry__shot > .ps-industry__shot-frame {
  display: block;
}
.ps-industry__shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  background: #0c0f17;
  display: block;
  padding: 0.5rem;
}
.ps-industry__shot-cap {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.04);
  padding: 0.45rem 0.6rem 0.6rem;
  text-align: center;
  line-height: 1.35;
  border-top: 1px solid rgba(255,255,255,0.06);
  letter-spacing: 0.01em;
}
.ps-industry__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0.25rem 0;
}
.ps-industry__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  color: #af1739;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}
.ps-industry__title {
  font-size: 1.55rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin: 0 0 0.45rem;
  letter-spacing: -0.01em;
}
.ps-industry__subtitle {
  font-size: 0.92rem;
  font-style: italic;
  color: rgba(255,255,255,0.55);
  margin: 0 0 1rem;
  line-height: 1.55;
}
.ps-industry__desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin: 0 0 1rem;
}
.ps-industry__desc strong { color: rgba(255,255,255,0.95); font-weight: 600; }
.ps-industry__cases {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ps-industry__case {
  position: relative;
  padding: 0.55rem 0.75rem 0.55rem 1.5rem;
  background: rgba(175,23,57,0.06);
  border-left: 2px solid #af1739;
  border-radius: 0 6px 6px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}
.ps-industry__case::before {
  content: "▸";
  position: absolute;
  left: 0.6rem;
  top: 0.55rem;
  color: #af1739;
  font-size: 0.78rem;
}
.ps-industry__case strong {
  color: rgba(255,255,255,0.92);
  font-weight: 600;
}
@media (max-width: 1000px) {
  .ps-industry,
  .ps-industry--reverse {
    grid-template-columns: 1fr;
  }
  .ps-industry--reverse .ps-industry__visual,
  .ps-industry--reverse .ps-industry__body { order: unset; }
}
@media (max-width: 600px) {
  .ps-industry__visual--pair,
  .ps-industry__visual--triple,
  .ps-industry__visual--quad,
  .ps-industry__visual--auto {
    grid-template-columns: 1fr !important;
  }
  .ps-industry__visual--triple > :first-child,
  .ps-industry__visual--auto > :first-child {
    grid-column: 1 / -1;
  }
  .ps-industry,
  .ps-industry--reverse {
    padding: 1rem;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }
}

/* Industries chip list (catalog quote) */
.ps-industry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}
.ps-industry-chip {
  padding: 0.45rem 0.95rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.02em;
}
.ps-quote {
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 1rem;
  padding: 0 1rem;
}

/* ── Story / Milestones Timeline ── */
.ps-story-intro {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.ps-story-intro__quote {
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}
.ps-story-intro__byline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.ps-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin: 2rem 0 1rem;
  position: relative;
}
.ps-timeline::before {
  content: '';
  position: absolute;
  top: 1.4rem;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(to right,
    rgba(175,23,57,0) 0%,
    rgba(175,23,57,0.4) 10%,
    rgba(175,23,57,0.4) 90%,
    rgba(175,23,57,0) 100%);
  z-index: 0;
}
.ps-milestone {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ps-milestone__year {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: #af1739;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
  border: 3px solid #0a0d18;
  box-shadow: 0 0 0 1px rgba(175,23,57,0.3);
}
.ps-milestone__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.ps-milestone__desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 900px) {
  .ps-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
  .ps-timeline::before { display: none; }
}
@media (max-width: 520px) {
  .ps-timeline { grid-template-columns: 1fr; }
}

/* ── Pillars (Story themes) ── */
.ps-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.ps-pillar {
  padding: 1.5rem 1.4rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid #af1739;
  border-radius: 0 12px 12px 0;
}
.ps-pillar__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin: 0 0 0.55rem;
  letter-spacing: -0.005em;
}
.ps-pillar__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin: 0;
}
.ps-pillar__desc strong {
  color: rgba(255,255,255,0.92);
  font-weight: 600;
}
@media (max-width: 900px) {
  .ps-pillars { grid-template-columns: 1fr; }
}

/* ── Pillar with image ── */
.ps-pillar {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: none;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}
.ps-pillar__media {
  aspect-ratio: 16 / 9;
  background: #0c0f17;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ps-pillar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.ps-pillar:hover .ps-pillar__media img {
  transform: scale(1.04);
}
.ps-pillar__content {
  padding: 1.25rem 1.4rem 1.5rem;
  border-left: 3px solid #af1739;
  flex: 1;
}
.ps-pillar__eyebrow {
  font-size: 0.66rem;
  font-weight: 600;
  color: #af1739;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.ps-pillar__title {
  margin: 0 0 0.55rem !important;
}
