/* ============================================================
   產品頁共用樣式（AurMed / AurWiki / AurChat）
   需與 site.css 一起載入
   ============================================================ */

/* ---------- 產品 Hero ---------- */
.prod-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.prod-hero-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}
.prod-hero .ph-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--bg-card);
  font-size: 11.5px; letter-spacing: 2.5px;
  color: var(--ink-soft); font-weight: 600;
  margin-bottom: 22px;
}
.prod-hero .ph-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.prod-hero h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 66px);
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1;
}
.prod-hero h1 .aur { color: var(--gold-deep); }
.prod-hero .ph-cn {
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ink);
  margin-bottom: 20px;
}
.prod-hero .ph-tagline {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.6;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.prod-hero .ph-desc {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.95;
  margin: 0 0 30px;
  max-width: 560px;
}
.prod-hero .ph-desc strong { color: var(--ink); font-weight: 600; }
.prod-hero .ph-ctas { display: flex; gap: 13px; flex-wrap: wrap; }

.ph-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.ph-visual .ph-logo {
  width: min(300px, 72%);
  position: relative; z-index: 1;
  animation: phFloat 6s ease-in-out infinite;
}
@keyframes phFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-9px); }
}

/* ---------- 痛點區 ---------- */
.pains { padding: 80px 0; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  background: var(--bg-soft);
  position: relative;
}
.pain-card .pc-icon {
  font-size: 24px; color: #B4703C;
  display: inline-flex; margin-bottom: 14px;
}
.pain-card h3 {
  margin: 0 0 12px; font-size: 20px;
  font-weight: 800; letter-spacing: 1px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(180,112,60,0.22);
  display: inline-block;
}
.pain-card p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }

/* ---------- 功能區 ---------- */
.feats { padding: 88px 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-grid.two { grid-template-columns: repeat(2, 1fr); }
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.feat-card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-3px); }
.feat-card .fc-num {
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: 3px;
  color: var(--gold-deep); font-weight: 800;
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 2px solid var(--gold-pale);
}
.feat-card .fc-icon {
  font-size: 26px; color: var(--gold);
  display: inline-flex; margin-bottom: 15px;
}
.feat-card h3 {
  margin: 0 0 16px; font-size: 21px;
  font-weight: 800; letter-spacing: 1px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold-pale);
}
.feat-card p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.85; }
.feat-card ul { list-style: none; margin: 14px 0 0; padding: 0; }
.feat-card ul li {
  padding: 5px 0 5px 15px;
  font-size: 13px; color: var(--ink-soft);
  position: relative; line-height: 1.65;
}
.feat-card ul li::before {
  content: ""; position: absolute;
  left: 0; top: 13px; width: 6px; height: 1px; background: var(--gold);
}

/* ---------- 流程步驟 ---------- */
.steps { padding: 88px 0; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.step-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.step-track.three { grid-template-columns: repeat(3, 1fr); }
.step-track.five  { grid-template-columns: repeat(5, 1fr); }
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  transition: all var(--t);
}
.step-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step-card .st-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold-deep);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: 1.5px; }
.step-card p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.75; }
/* 步驟間箭頭 */
.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 42px; right: -13px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
  z-index: 2;
}

/* ---------- 系統架構 / 圖片展示 ---------- */
.showcase { padding: 88px 0; }
.showcase-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.showcase-frame img { display: block; width: 100%; border-radius: 8px; }
/* 沒圖時的佔位 */
.img-slot {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  min-height: 300px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background:
    repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 12px, transparent 12px, transparent 24px);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1px;
  text-align: center;
  padding: 24px;
}
.img-slot .slot-icon { font-size: 30px; color: var(--gold); display: inline-flex; }
.img-slot code {
  font-size: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  color: var(--ink-soft);
}

/* 架構三欄 */
.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.arch-card .ar-icon { font-size: 26px; color: var(--gold); display: inline-flex; margin-bottom: 14px; }
.arch-card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; letter-spacing: 1.2px; }
.arch-card .ar-en { font-size: 11.5px; color: var(--muted); letter-spacing: 1.5px; margin-bottom: 12px; }
.arch-card p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }
.arch-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%; right: -13px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-50%) rotate(-45deg);
  z-index: 2;
}

/* ---------- 角色 / 對象 ---------- */
.roles { padding: 88px 0; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: all var(--t);
}
.role-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.role-card .rl-icon { font-size: 26px; color: var(--gold); display: inline-flex; margin-bottom: 14px; }
.role-card h3 {
  margin: 0 0 6px; font-size: 22px;
  font-weight: 800; letter-spacing: 1px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-pale);
  display: inline-block;
}
.role-card .rl-who { font-size: 12.5px; color: var(--muted); letter-spacing: 1px; margin-bottom: 18px; }
.role-card .rl-label {
  font-size: 11px; letter-spacing: 2.5px;
  color: var(--gold-deep); font-weight: 700;
  text-transform: uppercase; margin-bottom: 9px;
}
.role-card ul { list-style: none; margin: 0 0 18px; padding: 0; }
.role-card ul li {
  padding: 5px 0 5px 15px;
  font-size: 13.5px; color: var(--ink-soft);
  position: relative; line-height: 1.7;
}
.role-card ul li::before {
  content: ""; position: absolute;
  left: 0; top: 13px; width: 6px; height: 1px; background: var(--gold);
}
.role-card .rl-focus {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.7;
}

/* ---------- 技術資安（深色） ---------- */
.p-tech { padding: 88px 0; background: var(--ink); color: rgba(255,255,255,0.72); position: relative; overflow: hidden; }
.p-tech .section-head h2 { color: #fff; }
.p-tech .section-head h2 em { color: var(--gold-light); }
.p-tech .section-head .eyebrow { color: var(--gold-light); }
.p-tech .section-head .sub { color: rgba(255,255,255,0.6); }
.ptech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ptech-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: all var(--t);
}
.ptech-card:hover { border-color: var(--gold); background: rgba(192,138,46,0.09); transform: translateY(-3px); }
.ptech-card .pt-icon { font-size: 24px; color: var(--gold-light); display: inline-flex; margin-bottom: 14px; }
.ptech-card h3 { margin: 0 0 9px; font-size: 17px; font-weight: 700; letter-spacing: 1.2px; color: #fff; }
.ptech-card p { margin: 0; font-size: 13px; line-height: 1.78; color: rgba(255,255,255,0.62); }

/* ---------- 授權 ---------- */
.p-license { padding: 88px 0; }
.lic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.lic-card .lc-icon { font-size: 25px; color: var(--gold); display: inline-flex; margin-bottom: 14px; }
.lic-card h3 { margin: 0 0 11px; font-size: 18px; font-weight: 700; letter-spacing: 1.5px; }
.lic-card p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.85; }

/* ---------- 頁尾 CTA ---------- */
.p-cta { padding: 76px 0 88px; background: var(--bg-soft); border-top: 1px solid var(--border); }
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 46px 44px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.cta-box h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.35;
  position: relative; z-index: 1;
}
.cta-box h2 em { font-style: normal; color: var(--gold-deep); }
.cta-box p {
  margin: 0 0 28px;
  font-size: 15px; color: var(--ink-soft);
  line-height: 1.85; position: relative; z-index: 1;
}
.cta-box .cta-btns {
  display: flex; gap: 13px; justify-content: center;
  flex-wrap: wrap; position: relative; z-index: 1;
}
.cta-contact {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; gap: 30px; justify-content: center;
  flex-wrap: wrap;
  font-size: 14px; color: var(--ink-soft);
  position: relative; z-index: 1;
}
.cta-contact span { display: inline-flex; align-items: center; gap: 8px; }
.cta-contact .ic { color: var(--gold); display: inline-flex; }

/* ============================================================
   RWD
   ============================================================ */
@media (max-width: 1024px) {
  .prod-hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .ph-visual { order: -1; }
  .ph-visual .ph-logo { width: min(240px, 62%); }
  .prod-hero { padding: 46px 0 46px; }
  .pain-grid, .feat-grid, .feat-grid.two, .role-grid, .lic-grid, .arch-grid { grid-template-columns: 1fr 1fr; }
  .ptech-grid { grid-template-columns: 1fr 1fr; }
  .step-track, .step-track.three, .step-track.five { grid-template-columns: 1fr 1fr; }
  .step-card:not(:last-child)::after { display: none; }
  .arch-card:not(:last-child)::after { display: none; }
  .pains, .feats, .steps, .showcase, .roles, .p-tech, .p-license { padding: 58px 0; }
  .p-cta { padding: 52px 0 62px; }
}

@media (max-width: 760px) {
  .pain-grid, .feat-grid, .feat-grid.two, .role-grid, .lic-grid,
  .arch-grid, .ptech-grid, .step-track, .step-track.three, .step-track.five {
    grid-template-columns: 1fr;
  }
  .prod-hero .ph-ctas { width: 100%; }
  .feat-card, .pain-card, .role-card, .lic-card, .step-card, .arch-card { padding: 24px 22px; }
  .cta-box { padding: 32px 22px; }
  .cta-contact { flex-direction: column; gap: 12px; align-items: center; }
  .showcase-frame { padding: 12px; }
  .img-slot { min-height: 200px; }
}
