:root {
  --ink: #172033;
  --muted: #667085;
  --line: rgba(203, 213, 225, 0.78);
  --green: #16a34a;
  --green-dark: #108b56;
  --teal: #0f766e;
  --header: #0f2f3a;
  --header-2: #123f45;
  --gold: #f59e0b;
  --shadow: 0 26px 60px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f7faf8;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", Arial, sans-serif;
  background: linear-gradient(180deg, #f7faf8 0%, #eef8f2 100%);
}

button,
a {
  font: inherit;
}

.buy-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 58%, rgba(232, 248, 239, 0.92) 100%);
}

.buy-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  padding: 8px clamp(32px, 4vw, 76px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.buy-brand {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.buy-brand img {
  width: 228px;
  height: auto;
  flex: 0 0 auto;
  border-radius: 0;
  object-fit: contain;
}

.buy-main {
  width: min(1060px, calc(100% - 44px));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 420px);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  margin: 0 auto;
  padding: 16px 0 6px;
}

.buy-copy {
  min-width: 0;
}

.buy-kicker {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 900;
}

.buy-intent {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  font-weight: 850;
}

.buy-copy h1 {
  max-width: 620px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 3.9vw, 54px);
  line-height: 1.14;
  font-weight: 950;
  letter-spacing: 0;
}

.buy-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px 18px;
  max-width: 580px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.buy-feature-list li,
.buy-content li,
.buy-delivery li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #263548;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 850;
}

.buy-feature-list span,
.buy-content span,
.buy-delivery span {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--green);
  font-weight: 950;
}

.buy-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(22, 163, 74, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.buy-card-head {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.buy-edition {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.13);
  color: #9a6b00;
  font-size: 18px;
  font-weight: 950;
}

.buy-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  color: #e11d48;
}

.buy-price span {
  font-size: 30px;
  font-weight: 950;
}

.buy-price strong {
  font-size: clamp(72px, 6vw, 88px);
  line-height: 0.88;
  font-weight: 950;
}

.buy-content,
.buy-delivery {
  padding: 14px 0 0;
}

.buy-content {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.buy-content h2,
.buy-delivery h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 950;
}

.buy-content ul,
.buy-delivery ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.buy-actions {
  width: min(1180px, calc(100% - 44px));
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin: 0 auto;
  padding: 0 0 10px;
}

.buy-secondary,
.buy-primary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.buy-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
}

.buy-primary {
  border: 0;
  background: linear-gradient(180deg, #22b86f, var(--green-dark));
  color: #fff;
  box-shadow: 0 16px 34px rgba(16, 139, 86, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.buy-secondary:hover,
.buy-primary:hover {
  transform: translateY(-2px);
}

.buy-primary:hover {
  background: linear-gradient(180deg, #2cc97d, #0f7e4f);
  box-shadow: 0 20px 40px rgba(16, 139, 86, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.buy-legal-footer {
  margin-top: 18px;
  padding: 22px clamp(18px, 4vw, 72px);
  background: #0f2f3a;
  color: rgba(255, 255, 255, 0.84);
}

.buy-legal-footer-inner {
  width: min(980px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
}

.buy-legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.buy-legal-footer a {
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.buy-legal-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .buy-shell {
    min-height: 100vh;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .buy-header {
    min-height: 70px;
    padding: 8px 16px;
    justify-content: center;
  }

  .buy-brand {
    gap: 0;
  }

  .buy-brand img {
    width: 150px;
    height: auto;
  }

  .buy-brand span {
    display: none;
  }

  .buy-main {
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(100% - 32px, 560px);
    padding: 16px 0 12px;
  }

  .buy-kicker {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .buy-intent {
    margin-bottom: 6px;
    font-size: 18px;
  }

  .buy-copy h1 {
    font-size: 28px;
    line-height: 1.12;
  }

  .buy-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    margin-top: 14px;
  }

  .buy-card {
    padding: 16px;
  }

  .buy-card-head {
    gap: 6px;
    padding-bottom: 12px;
  }

  .buy-edition {
    min-height: 28px;
    padding: 0 14px;
    font-size: 16px;
  }

  .buy-price strong {
    font-size: 72px;
  }

  .buy-price span {
    font-size: 24px;
  }

  .buy-content,
  .buy-delivery {
    padding-top: 12px;
  }

  .buy-content {
    padding-bottom: 12px;
  }

  .buy-content h2,
  .buy-delivery h2 {
    margin-bottom: 10px;
    font-size: 17px;
  }

  .buy-content ul,
  .buy-delivery ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .buy-feature-list li,
  .buy-content li,
  .buy-delivery li {
    gap: 8px;
    font-size: 16px;
  }

  .buy-feature-list span,
  .buy-content span,
  .buy-delivery span {
    width: 24px;
    height: 24px;
  }

  .buy-actions {
    width: min(100% - 32px, 560px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 14px;
  }

  .buy-legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .buy-secondary,
  .buy-primary {
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
  }
}

@media (max-width: 420px) {
  .buy-brand span {
    font-size: 15px;
    line-height: 1.3;
  }

  .buy-main {
    width: calc(100% - 24px);
  }

  .buy-copy h1 {
    font-size: 26px;
  }

  .buy-actions {
    width: calc(100% - 24px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .buy-secondary,
  .buy-primary {
    transition: none;
  }

  .buy-secondary:hover,
  .buy-primary:hover {
    transform: none;
  }
}
