:root {
  color-scheme: light;
  font-family: "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  background: #f3f5f7;
  color: #17212b;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 96px;
  background: #f3f5f7;
}

.hidden {
  display: none !important;
}

.star-rating-guide {
  margin: 18px 0;
  border: 1px solid #ead8aa;
  border-left: 5px solid #d6a63f;
  border-radius: 12px;
  padding: 16px;
  background: #fffaf0;
}

.star-rating-guide h3 {
  margin: 0 0 8px;
  color: #8a4f20;
}

.star-rating-guide ul {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.star-rating-guide li {
  line-height: 1.6;
}

.star-rating-guide li strong {
  display: inline-block;
  min-width: 78px;
  color: #c28a1d;
}

.star-rating-guide .star-rating-reminder {
  margin-bottom: 0;
  color: #6b4b18;
  font-weight: 800;
}

.guide-selection-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  border: 1px solid rgba(41, 111, 119, 0.34);
  border-radius: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f2f8f8, #fffdf8);
}

.guide-selection-entry h3,
.guide-selection-entry p {
  margin: 0;
}

.guide-selection-entry h3 {
  color: #243745;
  font-size: 22px;
}

.guide-selection-entry p {
  margin-top: 5px;
  color: #607080;
  font-size: 14px;
  font-weight: 800;
}

.guide-selection-entry a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 50px;
  border-radius: 9px;
  padding: 10px 17px;
  background: #296f77;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(41, 111, 119, 0.16);
}

.guide-selection-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.guide-selection-entry a.secondary {
  border: 1px solid rgba(41, 111, 119, 0.42);
  background: #f6fbfb;
  color: #296f77;
  box-shadow: none;
}

.guide-selection-entry-final {
  margin: 18px 0 6px;
}

.site-menu-button {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 80;
  display: inline-grid;
  gap: 5px;
  place-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(214, 166, 63, 0.72);
  border-radius: 8px;
  background: rgba(54, 38, 18, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.site-menu-button span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #f2c84b;
}

.site-menu-panel {
  position: fixed;
  top: 78px;
  right: 16px;
  z-index: 90;
  display: grid;
  width: min(280px, calc(100vw - 32px));
  border: 1px solid rgba(214, 166, 63, 0.45);
  border-radius: 8px;
  padding: 14px;
  background: rgba(15, 19, 34, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.site-menu-panel a {
  width: 100%;
  border-bottom: 1px solid rgba(214, 166, 63, 0.18);
  padding: 16px 10px;
  color: #f7f0dc;
  text-align: left;
  text-decoration: none;
  font-weight: 900;
}

.site-menu-panel a:last-child {
  border-bottom: 0;
}

.site-menu-panel a:hover {
  color: #f2c84b;
}

.site-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(4, 8, 18, 0.28);
}

.guide-shell {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 28px;
}

.guide-hero {
  display: grid;
  gap: 10px;
  border: 1px solid #d7dde3;
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(135deg, #102033, #21394a);
  color: #fff;
  box-shadow: 0 18px 42px rgba(23, 33, 43, 0.12);
}

.guide-brand {
  margin: 0;
  color: #f2c84b;
  font-size: 15px;
  font-weight: 900;
}

.guide-hero h1 {
  margin: 0;
  font-size: clamp(28px, 8vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

.guide-hero p {
  margin: 0;
  font-weight: 900;
  line-height: 1.6;
}

.guide-tabs {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 10px -14px 14px;
  padding: 8px 14px 10px;
  background: rgba(243, 245, 247, 0.94);
  backdrop-filter: blur(10px);
}

.guide-tab {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  border: 1px solid #caa04b;
  border-radius: 999px;
  padding: 9px 6px;
  background: linear-gradient(135deg, #fffaf0, #ffffff);
  color: #2b2214;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(23, 33, 43, 0.09);
  cursor: pointer;
}

.guide-tab span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #3d2b14;
  color: #f7d35b;
  font-size: 13px;
  font-weight: 900;
}

.guide-tab strong {
  min-width: 0;
  line-height: 1.25;
}

.guide-tab.active {
  border-color: #a87524;
  background: linear-gradient(135deg, #3d2b14, #6a4317);
  color: #f7d35b;
  box-shadow: 0 16px 34px rgba(61, 43, 20, 0.24);
}

.guide-tab.active span {
  background: #f7d35b;
  color: #3d2b14;
}

.guide-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  scroll-margin-top: 140px;
}

.guide-panel.active {
  display: grid;
}

.guide-card,
.value-card,
.slogan-card,
.cycle-card,
.closing-card {
  border: 1px solid #d7dde3;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 33, 43, 0.07);
}

.lead-card {
  border-color: #d7c188;
  background: #fff9e6;
}

.lead-card h2 {
  margin: 0 0 10px;
  color: #17212b;
  font-size: 24px;
  line-height: 1.25;
}

.guide-card h2,
.guide-card h3,
.cycle-card h3 {
  margin: 0;
  color: #17212b;
  line-height: 1.35;
  letter-spacing: 0;
}

.guide-card h2 {
  font-size: clamp(26px, 5.6vw, 34px);
  font-weight: 1000;
}

.guide-card h3,
.cycle-card h3 {
  font-size: clamp(24px, 5.6vw, 32px);
  font-weight: 1000;
}

.guide-card p,
.cycle-card p,
.closing-card p,
.slogan-card p {
  margin: 0;
  color: #3d4b58;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.75;
}

.guide-card p + p,
.cycle-card p + p,
.closing-card p + p,
.slogan-card p + p {
  margin-top: 10px;
}

.flow-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.flow-step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 14px;
  align-content: start;
  align-items: center;
  min-height: 136px;
  border: 1px solid #cdd8e2;
  border-radius: 14px;
  padding: 18px 16px;
  background: #f8fbfd;
}

.flow-step span,
.cycle-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  min-width: 64px;
  height: 52px;
  border: 1px solid rgba(156, 47, 36, 0.22);
  border-radius: 12px;
  padding: 0;
  background: linear-gradient(135deg, #fff3c4, #fffaf0);
  color: #9c2f24;
  font-size: 28px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: inset 0 -3px 0 rgba(214, 166, 63, 0.24);
}

.flow-step strong {
  color: #17212b;
  font-size: clamp(24px, 5.2vw, 32px);
  font-weight: 1000;
  line-height: 1.35;
}

.flow-step p {
  grid-column: 1 / -1;
  margin: 0;
  color: #3d4b58;
  font-size: clamp(19px, 4.5vw, 22px);
  font-weight: 700;
  line-height: 1.7;
}

.method-flow .flow-step {
  border-color: #d9bf72;
  background: linear-gradient(135deg, #fffaf0, #f8fbfd);
}

.method-card {
  position: relative;
  overflow: hidden;
  border-color: #d9bf72;
}

.method-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 82px;
  height: 82px;
  border-radius: 0 16px 0 82px;
  background: rgba(242, 200, 75, 0.16);
  pointer-events: none;
}

.method-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #3d2b14;
  color: #f7d35b;
  font-size: 14px;
  font-weight: 900;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: #a87524;
  font-size: 24px;
  font-weight: 900;
  transform: rotate(90deg);
}

.step-grid,
.value-grid,
.cycle-list {
  display: grid;
  gap: 14px;
}

.value-card {
  color: #17212b;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.55;
}

.slogan-card {
  background: #132235;
  text-align: center;
}

.slogan-card p {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.quote-card {
  border-color: #d7c188;
  background: #fff9e6;
}

.highlight-keyword {
  display: inline;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #9c2f24;
  font-weight: 1000;
  font-size: inherit;
  line-height: inherit;
  vertical-align: baseline;
  white-space: normal;
}

.flow-step .highlight-keyword {
  white-space: normal;
}

.score-guidance-note {
  border: 1px solid #9bc9bd;
  border-left: 5px solid #296f77;
  border-radius: 10px;
  padding: 13px 15px;
  background: #edf8f4;
  color: #244b3f;
  line-height: 1.75;
}

.guide-card,
.cycle-card,
.value-card,
.closing-card {
  color: #17212b;
}

.guide-card *,
.cycle-card *,
.value-card *,
.closing-card * {
  visibility: visible;
}

.cycle-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
}

.cycle-card p {
  grid-column: 1 / -1;
}

.practice-verify-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(178, 58, 72, 0.28);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #fff8e8, #fff);
}

.practice-verify-card h3 {
  margin: 0;
  color: #9c2f24;
  font-size: 22px;
}

.practice-verify-card p {
  margin: 0;
}

.practice-kline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.practice-kline-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(215, 193, 136, 0.72);
  border-radius: 14px;
  padding: 12px;
  background: #fffdf7;
}

.practice-kline-card h4 {
  margin: 0;
  color: #17212b;
  font-size: 20px;
  font-weight: 1000;
}

.practice-kline-card img {
  width: 100%;
  border: 1px solid #d7dde3;
  border-radius: 12px;
  background: #fff;
  display: block;
  object-fit: contain;
}

.practice-kline-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff3c4;
  color: #7a4a08;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.practice-snapshot-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(41, 111, 119, 0.22);
  border-radius: 14px;
  padding: 12px;
  background: #f7fbfb;
}

.practice-snapshot-card h4 {
  margin: 0;
  color: #17212b;
  font-size: 20px;
  font-weight: 1000;
}

.practice-snapshot-card p {
  font-size: 17px;
  line-height: 1.65;
}

.practice-snapshot-card img {
  display: block;
  width: 100%;
  border: 1px solid #d7dde3;
  border-radius: 12px;
  background: #fff;
}

.practice-verify-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.practice-verify-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  padding: 10px 14px;
  background: #b23a48;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(178, 58, 72, 0.18);
}

.practice-verify-actions a:nth-child(2) {
  background: #296f77;
  box-shadow: 0 12px 24px rgba(41, 111, 119, 0.16);
}

.practice-verify-actions a:hover,
.practice-verify-actions a:focus-visible {
  transform: translateY(-1px);
}

.cycle-base {
  background: #f2f4f6;
}

.cycle-bull {
  background: #e8f7ee;
}

.cycle-top {
  background: #fff6d8;
}

.cycle-bear {
  background: #ffe9e9;
}

.closing-card {
  display: grid;
  gap: 2px;
  margin-top: 16px;
  border-color: #d7c188;
  background: #fff9e6;
}

.fixed-disclaimer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 14px;
  background: rgba(19, 34, 53, 0.96);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

@media (min-width: 760px) {
  .guide-shell {
    padding-top: 32px;
  }

  .guide-hero,
  .guide-card,
  .value-card,
  .slogan-card,
  .cycle-card,
  .closing-card {
    border-radius: 18px;
    padding: 24px;
  }

  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-card-wide {
    grid-column: 1 / -1;
  }

  .value-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .practice-kline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-tabs {
    top: 18px;
    margin: 18px 0 22px;
  }

  .guide-tab {
    text-align: center;
    justify-content: center;
  }

  .flow-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .flow-arrow {
    min-width: 22px;
    transform: rotate(90deg);
  }
}

@media (max-width: 520px) {
  .practice-verify-actions {
    grid-template-columns: 1fr;
  }

  .guide-tabs {
    top: 0;
  }

  .site-menu-button {
    top: max(76px, calc(env(safe-area-inset-top, 0px) + 76px));
    right: max(16px, calc(env(safe-area-inset-right, 0px) + 14px));
    width: 44px;
    height: 44px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.11);
  }

  .site-menu-panel {
    top: max(128px, calc(env(safe-area-inset-top, 0px) + 128px));
    right: max(16px, calc(env(safe-area-inset-right, 0px) + 14px));
  }

  .guide-selection-entry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .guide-selection-entry h3 {
    font-size: 21px;
  }

  .guide-selection-entry a {
    width: 100%;
    min-height: 54px;
    font-size: 18px;
  }

  .guide-selection-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  body {
    padding-bottom: 84px;
  }

  .guide-shell {
    width: calc(100% - 12px);
    padding-top: 10px;
  }

  .site-menu-button {
    top: max(76px, calc(env(safe-area-inset-top, 0px) + 76px));
    right: max(16px, calc(env(safe-area-inset-right, 0px) + 14px));
    width: 44px;
    height: 44px;
  }

  .guide-hero,
  .guide-card,
  .value-card,
  .slogan-card,
  .cycle-card,
  .closing-card,
  .star-rating-guide {
    padding: 13px;
  }

  .guide-hero h1 {
    padding-right: 44px;
    font-size: 28px;
    line-height: 1.12;
  }

  .guide-hero p,
  .guide-card p,
  .cycle-card p,
  .slogan-card p {
    font-size: 14px;
    line-height: 1.6;
  }

  .guide-tabs {
    gap: 6px;
    margin: 10px 0 14px;
  }

  .guide-tab {
    min-height: 42px;
    padding: 8px 9px;
  }

  .step-grid,
  .value-grid,
  .practice-kline-grid {
    gap: 9px;
  }

  .fixed-disclaimer {
    padding: 7px 9px;
    font-size: 10px;
    line-height: 1.4;
  }
}
