:root {
  --aia-red: #bc1f46;
  --rose-100: #f4c5cf;
  --rose-200: #e8a8b8;
  --rose-500: #bf2055;
  --ink-900: #2a2730;
  --ink-700: #4a4652;
  --panel-gray: #d7d7d9;
  --paper: #ffffff;
  --canvas: rgb(255, 255, 255);
  --radius-xl: 26px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  color: var(--ink-900);
  background: var(--canvas);
  line-height: 1.65;
}

.shell {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  background: var(--aia-red);
  height: 56px;
  display: flex;
  align-items: center;
}

.topbar-inner {
  display: flex;
  align-items: center;
  padding-left: 0;
}

.brand-mark {
  display: block;
  width: auto;
  height: 30px;
  object-fit: contain;
}

.hero {
  padding-top: 0;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-content {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.hero-title-wrap {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  font-size: 20px;
  color: var(--ink-700);
  letter-spacing: 0.1em;
}

.hero h1 {
  margin: -2px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(44px, 8vw, 70px);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--aia-red);
}

.hero h1 span {
  font-family: "Noto Sans TC", sans-serif;
  font-size: 0.9em;
  font-weight: 900;
  margin-right: 0.12em;
}

.hero-sub {
  margin: 8px 0 0;
  font-size: 17px;
  color: var(--ink-700);
}

.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1110 / 344;
  background-image: url("assets/img/KV.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-title {
  width: 50%;
  height: 50%;
  left:50%;
  transform: translate(-50%,25%);
  background-image: url("assets/img/title.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-badge {
  width: 72px;
  height: 72px;
  background-image: url("assets/img/scroll-down.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  margin: -36px auto 0;
  position: relative;
  z-index: 2;
}

.intro {
  max-width: 900px;
  text-align: center;
  padding: 40px 0 24px;
}

.intro p {
  margin: 0 0 10px;
  font-size: 16px;
  color: #2e2e32;
}

.feature {
  --tab-active-color: #f0b2c2;
  border-radius: 30px 30px 0 0;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(45, 39, 58, 0.08);
  position: relative;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f0bbc7;
  z-index: 0;
}

.feature-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f0bbc7;
  position: relative;
  z-index: 2;
}

.tab {
  border: 0;
  background: transparent;
  color: #8f6b75;
  font-size: 20px;
  line-height: 1.2;
  padding: 26px 18px;
  cursor: pointer;
  font-weight: 700;
  border-right: 1px solid #bc1f46;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab:focus-visible {
  outline: 2px solid rgba(191, 32, 85, 0.5);
  outline-offset: -2px;
}

.tab:last-child {
  border-right: 0;
}

.tab span {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
}

.tab-icon {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}

.tab[data-tab="read"] .tab-icon {
  transform: translateX(16px);
}

.tab[data-tab="video"] .tab-icon {
  transform: translateX(-16px);
}

.tab.active {
  color: var(--rose-500);
  position: relative;
  background: var(--tab-active-color);
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 16px solid var(--tab-active-color);
  z-index: 3;
}

.feature-body {
  background: var(--panel-gray);
  padding: 48px 44px 54px;
  border-radius: 30px 30px 0 0;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  margin: 0 0 30px;
  color: #5d5a64;
  font-size: 16px;
  letter-spacing: 0.06em;
}

.slider {
  display: block;
  max-width: 1066px;
  margin: 0 auto;
  position: relative;
  padding: 0 72px;
}

.arrow {
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 1;
  position: absolute;
  top: var(--arrow-top, 50%);
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

#prevBtn {
  left: 0;
}

#nextBtn {
  right: 0;
}

.arrow-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.arrow-icon-prev {
  transform: rotate(180deg);
}

.slide-card {
  width: 100%;
  /* border-radius: 16px; */
  overflow: hidden;
  text-align: center;
}

.slide-content {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.slide-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 16px;
}

.dot-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 12px;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #d5b6c1;
}

.dot-btn {
  border: 0;
  padding: 0;
  cursor: pointer;
}

.dot-btn:focus-visible {
  outline: 2px solid rgba(191, 32, 85, 0.45);
  outline-offset: 3px;
}

.dot.active {
  background: var(--rose-500);
}

.slide-meta {
  width: 100%;
  margin: 50px auto 0;
  background: transparent;
  border-radius: 12px;
  border: 1px solid #bf2055;
  text-align: center;
  position: relative;
  padding-top: 14px;
}

.slide-meta h3 {
  position: absolute;
  text-align: center;
  left: 50%;
  top: 0;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0 12px;
  background: var(--panel-gray);
  line-height: 1.2;
  font-size: 26px;
  color: var(--rose-500);
}

.slide-meta p {
  margin: 0;
  margin-right: 18px;
  text-align: left;
  padding: 14px 20px 24px;
  font-size: 16px;
  color: #4a4952;
  max-height: 180px;
  overflow-y: auto;
}

.divider-pin {
  margin: 26px auto -36px;
  position: relative;
  z-index: 3;
  transform: translateY(15px);
}

.story {
  background: var(--paper);
  border-radius: 50px;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(33, 30, 43, 0.14);
  border: 1px solid rgba(140, 120, 130, 0.25);
  position: relative;
}

.story-text-scroll {
  margin-top: 50px;
  margin-right: 18px;
  max-height: 360px;
  overflow-y: auto;
}

.slide-meta p,
.story-text-scroll {
  --scrollbar-bar-width: 4px;
  --scrollbar-thumb-diameter: 12px;
  --scrollbar-top-gap: 18px;
  --scrollbar-bottom-gap: 10px;
  --scrollbar-axis-inset: 0px;
  scrollbar-width: thin;
  scrollbar-color: #bf2055 rgba(191, 32, 85, 0.26);
}

.slide-meta p::-webkit-scrollbar,
.story-text-scroll::-webkit-scrollbar {
  width: var(--scrollbar-thumb-diameter);
}

.slide-meta p::-webkit-scrollbar-track,
.story-text-scroll::-webkit-scrollbar-track {
  margin-top: var(--scrollbar-top-gap);
  margin-bottom: var(--scrollbar-bottom-gap);
  background: linear-gradient(rgba(191, 32, 85, 0.26), rgba(191, 32, 85, 0.26));
  background-repeat: no-repeat;
  background-size: var(--scrollbar-bar-width) 100%;
  background-position: center;
  border-radius: 999px;
}

.slide-meta p::-webkit-scrollbar-thumb,
.story-text-scroll::-webkit-scrollbar-thumb {
  min-height: var(--scrollbar-thumb-diameter);
  background: #bf2055;
  border-radius: 999px;
  border: 0;
}

.slide-meta p::-webkit-scrollbar-thumb:hover,
.story-text-scroll::-webkit-scrollbar-thumb:hover {
  background: #d22a61;
}

.story h2 {
  margin: 24px 28px 12px;
  font-size: 28px;
  color: #2f2a36;
}

.story p {
  margin: 0 28px 14px;
  font-size: 16px;
  color: #3a3842;
}

.story img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #fff;
  margin-top: 16px;
}

.page-note {
  max-width: 860px;
  margin: 20px auto 0;
  padding: 0 0 24px;
  font-size: 11px;
  line-height: 1.5;
  color: #777;
}

.page-note p {
  margin: 0 0 8px;
}

@media (max-width: 900px) {
  .shell {
    width: 100%;
  }

  .hero-image {
    aspect-ratio: 1080 / 747;
    background-image: url("assets/img/KV-responsive.jpg");
  }

  .hero-title {
    width: 80%;
    left:50%;
    transform: translate(-50%,30%);
    background-image: url("assets/img/title.png");
  }

  .feature-body {
    padding: 38px 16px 30px;
  }

  .slider {
    padding: 0 48px;
  }

  .arrow {
    width: 34px;
    height: 34px;
  }

  .slide-meta {
    width: 100%;
  }

  .slide-meta h3 {
    font-size: 22px;
  }

  .story h2 {
    margin: 20px 18px 10px;
    font-size: 22px;
  }

  .story p {
    margin: 0 18px 12px;
    font-size: 17px;
  }

  .story img {
    height: auto;
  }

  .story-text-scroll {
    max-height: 320px;
  }
}

@media (min-width: 481px) and (max-width: 900px) {
  .topbar,
  main {
    width: 100%;
    margin: 0 auto;
  }

  .topbar-inner {
    width: 100%;
    padding: 0 24px 0 20px;
  }

  .brand-mark {
    height: 28px;
  }

  .hero-badge {
    margin-top: -50px;
  }

  .hero-image {
    height: auto;
  }

  .intro {
    max-width: 100%;
    text-align: left;
    padding: 28px 20px 20px;
  }

  .intro p {
    font-size: 14px;
  }

  .feature {
    border-radius: 24px 24px 0 0;
  }

  .tab {
    font-size: 18px;
    padding: 22px 14px;
  }

  .tab-icon {
    height: 38px;
  }

  .tab[data-tab="read"] .tab-icon {
    transform: translateX(12px);
  }

  .tab[data-tab="video"] .tab-icon {
    transform: translateX(-12px);
  }

  .tab span {
    font-size: 12px;
  }

  .feature-body {
    padding: 34px 22px 28px;
    border-radius: 24px 24px 0 0;
  }

  .section-title {
    margin-bottom: 22px;
    font-size: 17px;
  }

  .slider {
    padding: 0 56px;
  }

  .arrow {
    width: 34px;
    height: 34px;
  }

  .slide-card {
    max-width: none;
  }

  .slide-meta {
    width: 100%;
  }

  .slide-content {
    max-width: 600px;
  }

  .slide-card img {
    height: auto;
  }

  .slide-meta h3 {
    font-size: 24px;
  }

  .slide-meta p {
    font-size: 16px;
    line-height: 1.5;
    padding: 14px 20px 24px;
  }

  .story {
    max-width: 100%;
  }

  .page-note {
    max-width: 100%;
  }

  .story h2 {
    margin: 20px 22px 10px;
    font-size: 22px;
  }

  .story p {
    margin: 0 22px 12px;
    font-size: 17px;
  }

  .story img {
    height: auto;
  }

  .story-text-scroll {
    max-height: 300px;
  }

  .divider-pin {
    margin: 26px auto -36px;
    position: relative;
    z-index: 3;
    transform: translateY(15px);
  }
}

@media (max-width: 480px) {
  .topbar,
  main {
    width: 100%;
    margin: 0 auto;
  }

  .topbar {
    height: 42px;
    background: #fff;
  }

  .topbar-inner {
    width: 100%;
    height: 100%;
    background: var(--aia-red);
    padding: 0 10px 0 12px;
  }

  .brand-mark {
    height: 24px;
  }

  main {
    background: #fff;
  }

  .shell {
    width: 100%;
  }

  .eyebrow {
    font-size: 17px;
  }

  .hero h1 {
    font-size: clamp(34px, 13vw, 48px);
  }

  .hero-sub {
    margin-top: 4px;
    font-size: 9px;
  }

  .hero-image {
    height: auto;
  }

  .hero-badge {
    width: 54px;
    height: 54px;
    margin-top: -28px;
  }

  .intro {
    text-align: left;
    padding: 16px 16px 10px;
    max-width: 100%;
  }

  .intro p {
    margin: 0 0 6px;
    font-size: 11px;
    line-height: 1.5;
  }

  .feature {
    border-radius: 16px 16px 0 0;
    box-shadow: none;
  }

  .feature-tabs {
    border-radius: 0;
  }

  .tab {
    font-size: 18px;
    padding: 12px 6px;
    line-height: 1.05;
  }

  .tab-icon {
    height: 60px;
  }

  .tab[data-tab="read"] .tab-icon {
    transform: translateX(8px);
  }

  .tab[data-tab="video"] .tab-icon {
    transform: translateX(-8px);
  }

  .tab span {
    font-size: 9px;
    margin-top: 3px;
  }

  .tab.active::after {
    border-left-width: 10px;
    border-right-width: 10px;
    border-top-width: 10px;
    border-top-color: var(--tab-active-color);
    bottom: -11px;
  }

  .feature-body {
    padding: 20px 10px 14px;
    border-radius: 16px 16px 0 0;
  }

  .section-title {
    font-size: 11px;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
  }

  .slider {
    padding: 0 20px;
    max-width: 100%;
  }

  .arrow {
    width: 24px;
    height: 24px;
  }

  .slide-card {
    max-width: none;
    border-radius: 8px;
    box-shadow: none;
  }

  .slide-content {
    width: 100%;
  }

  .slide-card img {
    height: auto;
  }

  .dot-row {
    gap: 10px;
    padding-top: 8px;
  }

  .dot {
    width: 12px;
    height: 12px;
  }

  .slide-meta {
    width: 100%;
    margin-top: 20px;
    border-radius: 8px;
  }

  .slide-meta h3 {
    font-size: 17px;
    line-height: 1.2;
    padding: 0 8px;
  }

  .slide-meta p {
    font-size: 10px;
    line-height: 1.5;
  padding: 14px 20px 24px;
  }

  /* .divider-pin {
    width: 18px;
    height: 18px;
    margin: 12px auto 10px;
  } */
  .divider-pin {
    margin: 26px auto -36px;
    position: relative;
    z-index: 3;
    transform: translateY(6px);
  }

  .divider-pin::after {
    top: 4px;
    height: 9px;
  }
  

  .story {
    border-radius: 20px;
    box-shadow: none;
    border: 1px solid rgba(147, 127, 137, 0.4);
  }

  .story h2 {
    margin: 12px 10px 8px;
    font-size: 12px;
    line-height: 1.45;
  }

  .story p {
    margin: 0 10px 7px;
    font-size: 11px;
    line-height: 1.55;
  }

  .story img {
    height: auto;
    margin-top: 10px;
  }

  .story-text-scroll {
    max-height: 240px;
  }

  .page-note {
    padding: 0 12px 16px;
    font-size: 10px;
    line-height: 1.45;
  }
}

@media (min-width: 481px) and (max-width: 700px) {
  .hero-badge {
    width: 60px;
    height: 60px;
    margin-top: -34px;
  }
  .divider-pin {
    margin: 26px auto -36px;
    position: relative;
    z-index: 3;
    transform: translateY(10px);
  }
}
