/* ===== ASSESSMENT PAGE ===== */

/* Hero */
.assessment-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-100) 0%, #fff 60%);
  padding: 121px 0 80px;   /* 73px 讓出 fixed nav（72px + 1px 框線）＋ 48px 原留白 */
}
.assessment-hero::before {
  content: '';
  position: absolute;
  top: 10px; left: 10px;
  width: 300px; height: 300px;
  background: rgba(127, 184, 230, 0.4);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.assessment-hero::after {
  content: '';
  position: absolute;
  bottom: 10px; right: 10px;
  width: 400px; height: 400px;
  background: rgba(127, 184, 230, 0.3);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.assessment-hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-grid h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.35;
  color: var(--brand-900);
}
.hero-grid h1 span { color: var(--brand-600); }
.hero-lead {
  margin-top: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}
.hero-lead strong { color: var(--brand-700); }
.hero-lead .note {
  display: block;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 14px 32px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-500));
  color: #fff;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(29, 74, 155, 0.25);
  transition: all 0.3s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(29, 74, 155, 0.3); }
.hero-cta svg { width: 18px; height: 18px; }

/* Report Card (Hero Preview) */
.report-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-200);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.report-card::before {
  content: '';
  position: absolute;
  inset: -16px;
  background: linear-gradient(135deg, rgba(10, 139, 208, 0.2), rgba(35, 120, 200, 0.2));
  border-radius: 24px;
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
}
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.report-header .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--brand-600);
}
.report-header .badge {
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-weight: 700;
}
.report-baseline {
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid var(--brand-200);
  border-radius: 16px;
  padding: 16px;
}
.report-baseline .subtitle { font-size: 0.7rem; color: var(--text-muted); }
.report-baseline .big-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-900);
  line-height: 1.2;
}
.report-baseline .unit { font-size: 0.85rem; color: var(--text-muted); margin-left: 6px; }
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.stat-box {
  border-radius: 10px;
  padding: 10px;
  border: 1px solid var(--brand-100);
  background: #fff;
}
.stat-box.highlight { background: var(--brand-100); border-color: transparent; }
.stat-box .stat-label { font-size: 0.65rem; color: var(--text-muted); }
.stat-box .stat-value { font-size: 0.88rem; font-weight: 700; color: var(--brand-900); margin-top: 2px; }
.stat-box.highlight .stat-value { color: var(--brand-700); }
.roi-list { margin-top: 16px; }
.roi-list .roi-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.roi-item { margin-top: 8px; }
.roi-item .roi-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.roi-item .roi-row .val { font-weight: 700; color: var(--brand-700); }
.roi-bar {
  height: 7px;
  border-radius: 99px;
  background: var(--brand-100);
  margin-top: 4px;
  overflow: hidden;
}
.roi-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-500));
}

/* ===== MODULES SECTION ===== */
.modules-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #fff 0%, rgba(230, 239, 250, 0.25) 100%);
}
.modules-section .section-header {
  text-align: center;
  margin-bottom: 56px;
}
.modules-section .section-header .tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-600);
  font-weight: 700;
}
.modules-section .section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--brand-900);
  margin: 12px 0 0;
}
.modules-section .section-header p {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--text-secondary);
  line-height: 1.7;
}
.modules-section .section-header p strong { color: var(--brand-700); }

/* Module Card */
.module-card {
  border-radius: 24px;
  border: 1px solid var(--brand-100);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 32px;
  background: #fff;
}
.module-card .top-bar {
  height: 5px;
}
.module-card .module-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 40px;
  align-items: center;
}
.module-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.module-icon svg { width: 28px; height: 28px; }
.module-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.module-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--brand-600);
}
.module-head h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand-900);
  margin: 4px 0 0;
}
.module-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.module-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.module-features li::before {
  content: '';
  width: 6px; height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  margin-top: 8px;
}
.module-features li strong { color: var(--brand-900); }
.module-features li em { font-style: normal; font-weight: 600; color: var(--brand-700); }
.module-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.module-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.module-btn svg { width: 16px; height: 16px; }

/* Module Preview Panels */
.module-preview {
  position: relative;
}
.module-preview::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 24px;
  filter: blur(24px);
  opacity: 0.2;
  pointer-events: none;
}
.preview-panel {
  border-radius: 16px;
  border: 1px solid var(--brand-200);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--brand-100);
  background: #f8fafc;
}
.preview-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.preview-bar span:nth-child(1) { background: #f87171; }
.preview-bar span:nth-child(2) { background: #fbbf24; }
.preview-bar span:nth-child(3) { background: #28c840; }
.preview-body { padding: 20px; }

/* Equipment Preview */
.eq-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.eq-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff7ed;
  color: #ea580c;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.eq-title { font-size: 0.88rem; font-weight: 700; color: var(--brand-900); }
.eq-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.eq-stat {
  text-align: center;
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px;
}
.eq-stat .num { font-size: 0.85rem; font-weight: 700; }
.eq-stat .num.amber { color: #d97706; }
.eq-stat .num.green { color: var(--brand-600); }
.eq-stat .num.red { color: #ef4444; }
.eq-stat .num.sky { color: #0284c7; }
.eq-stat .lbl { font-size: 0.6rem; color: var(--text-muted); margin-top: 2px; }
.eq-table {
  background: #fff1f240;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.68rem;
}
.eq-table .eq-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 4px 0;
}
.eq-table .eq-row.header {
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid #fecdd3;
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.eq-table .eq-row .saved { color: var(--brand-700); font-weight: 700; }
.eq-kw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.eq-kw {
  border-radius: 8px;
  padding: 10px;
}
.eq-kw .kw-label { font-size: 0.62rem; color: var(--text-muted); }
.eq-kw .kw-value { font-size: 1.1rem; font-weight: 900; margin-top: 2px; }
.eq-kw.rose { background: #fff1f2; }
.eq-kw.rose .kw-value { color: #e11d48; }
.eq-kw.emerald { background: var(--brand-100); }
.eq-kw.emerald .kw-value { color: var(--brand-700); }
.eq-kw.sky { background: #f0f9ff; }
.eq-kw.sky .kw-value { color: #0284c7; }

/* Peer Radar Preview */
.pr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.pr-header .title { font-size: 0.88rem; font-weight: 700; color: var(--brand-900); }
.pr-header .badge {
  font-size: 0.62rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
}
.pr-stats {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.pr-big { font-size: 3rem; font-weight: 900; color: var(--brand-600); line-height: 1; }
.pr-big sup { font-size: 1.5rem; vertical-align: super; }
.pr-sub { font-size: 0.78rem; color: var(--text-secondary); margin-top: 4px; }
.pr-sub em { font-style: normal; font-weight: 700; color: var(--brand-700); }
.pr-right { text-align: right; margin-left: auto; }
.pr-right .lbl { font-size: 0.7rem; color: var(--text-muted); }
.pr-right .val { font-size: 1.5rem; font-weight: 800; color: var(--brand-900); }
.pr-right .unit { font-size: 0.62rem; color: var(--text-muted); }
.pr-bar-wrap { margin-top: 28px; position: relative; }
.pr-bar {
  height: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, #fb923c, var(--accent-sky), var(--brand-500));
}
.pr-marker {
  position: absolute;
  top: -6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand-600);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transform: translateX(-50%);
}
.pr-marker-label {
  position: absolute;
  top: 22px;
  transform: translateX(-50%);
  background: var(--brand-600);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.pr-mid-line {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 22px;
  background: rgba(0,0,0,0.2);
}
.pr-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 44px;
  font-size: 0.65rem;
  font-weight: 600;
}
.pr-labels .orange { color: #ea580c; }
.pr-labels .sky { color: #0284c7; }
.pr-labels .green { color: var(--brand-700); }
.pr-bench {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}
.pr-bench-item {
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
}
.pr-bench-item .blbl { color: var(--text-secondary); }
.pr-bench-item .bval { font-weight: 700; }

/* Subsidy Preview */
.sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.sub-header .title { font-size: 0.88rem; font-weight: 700; color: var(--brand-900); }
.sub-header .badge {
  font-size: 0.62rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}
.sub-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--brand-100);
}
.sub-item:last-of-type { border-bottom: none; }
.sub-item .sub-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.sub-item .sub-name { font-size: 0.78rem; font-weight: 700; color: var(--brand-900); line-height: 1.5; }
.sub-item .sub-tag {
  flex-shrink: 0;
  font-size: 0.62rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.sub-tag.fit { background: var(--brand-100); color: var(--brand-700); }
.sub-tag.fit2 { background: var(--brand-50); color: var(--brand-700); }
.sub-item .sub-meta { font-size: 0.65rem; color: var(--text-muted); margin-top: 4px; }
.sub-item .sub-amount { font-size: 0.65rem; color: var(--text-secondary); margin-top: 2px; }
.sub-item .sub-amount em { font-style: normal; font-weight: 700; color: var(--brand-700); }
.sub-item .sub-req { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }
.sub-total {
  margin-top: 16px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--brand-100), var(--brand-50));
  padding: 16px;
  text-align: center;
}
.sub-total .sub-total-label { font-size: 0.65rem; color: var(--text-secondary); }
.sub-total .sub-total-value { font-size: 1.5rem; font-weight: 900; color: var(--brand-700); margin-top: 4px; }

/* CTA Section */
.assessment-cta {
  padding: 80px 0;
  text-align: center;
}
.assessment-cta h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--brand-900);
}
.assessment-cta p {
  margin: 16px auto 0;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .module-card .module-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .eq-stats { grid-template-columns: 1fr 1fr; }
  .eq-kw-grid { grid-template-columns: 1fr; }
  .pr-stats { flex-direction: column; align-items: flex-start; }
  .pr-right { text-align: left; margin-left: 0; }
  .stat-grid { grid-template-columns: 1fr; }
}
