:root {
  color-scheme: light;
  font-family: Arial, "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  color: #161b26;
  background: #f7fbff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #f7fbff;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background-color: #f7fbff;
  background-image: url("/public/index/images/bg-d69385e3.png");
  background-image: image-set(
    url("/public/index/images/bg-a78bd306.webp") type("image/webp"),
    url("/public/index/images/bg-d69385e3.png") type("image/png")
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

button,
select {
  font: inherit;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-header {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding-top: env(safe-area-inset-top);
}

.header-inner,
.hero-inner,
.footer-inner {
  width: min(1150px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #1684f6;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
}

.brand picture,
.brand img {
  display: block;
  width: 32px;
  height: 32px;
}

.language-control {
  display: inline-flex;
  min-width: 0;
  height: 26px;
  align-items: center;
  gap: 3px;
  padding: 0 8px 0 10px;
  border: 1px solid rgba(61, 117, 181, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.language-control picture,
.language-control img {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  order: 2;
}

.language-control select {
  width: auto;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #303846;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.hero {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}

.news-section {
  flex: 0 0 auto;
  padding: 64px 24px;
  background: rgba(255, 255, 255, 0.88);
}

.news {
  width: min(1150px, 100%);
  margin: 0 auto;
}

.news-title {
  margin: 0 0 10px;
  color: #171d29;
  font-size: 30px;
  line-height: 1.3;
  text-align: center;
}

.news-desc {
  max-width: 760px;
  margin: 0 auto 30px;
  color: #7b8492;
  font-size: 15px;
  line-height: 1.75;
  text-align: center;
}

.news-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.news-item {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(40, 128, 218, 0.1);
}

.news-item:first-child {
  border-top: 1px solid rgba(40, 128, 218, 0.1);
}

.news-link {
  color: #1b2736;
  font-size: 16px;
  line-height: 1.6;
  text-decoration: none;
}

.news-link:hover,
.news-link:focus-visible {
  color: #1684f6;
  text-decoration: underline;
}

.news-time {
  flex: 0 0 auto;
  color: #9aa4b2;
  font-size: 13px;
}

.news-more {
  margin-top: 28px;
  text-align: center;
}

.news-more a {
  display: inline-flex;
  min-width: 148px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 21px;
  color: #ffffff;
  background: #1684f6;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.news-more a:hover,
.news-more a:focus-visible {
  background: #0876e7;
}

.hero-inner {
  position: relative;
  min-height: 0;
  padding: 0;
}

.hero-copy {
  position: absolute;
  top: clamp(240px, 33.3vh, 351px);
  left: 0;
  z-index: 1;
  width: 600px;
  padding: 0;
}

.hero-copy h1 {
  max-width: 600px;
  margin: 0 0 17px;
  color: #171d29;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.hero-copy p {
  max-width: 485px;
  margin: 0;
  color: #7b8492;
  font-size: 17px;
  line-height: 1.72;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 168px;
}

.download-button {
  display: inline-flex;
  min-width: 193px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 21px;
  border-radius: 27px;
  color: #fff;
  background: linear-gradient(135deg, #2797ff 0%, #1178f1 100%);
  box-shadow: none;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 34px rgba(19, 122, 240, 0.28);
}

.download-button:focus-visible,
.footer-links a:focus-visible,
.footer-links button:focus-visible,
.dialog-close:focus-visible,
.language-control:focus-within {
  outline: 3px solid rgba(22, 127, 245, 0.28);
  outline-offset: 3px;
}

.download-button picture,
.download-button img {
  display: block;
  width: 26px;
  height: 26px;
}

.hero-art {
  position: absolute;
  top: clamp(82px, 11.6vh, 122px);
  left: 430px;
  display: block;
  width: min(940px, 60vw);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-footer {
  flex: 0 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
  color: #818a98;
  font-size: 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: 48px;
}

.footer-inner > strong {
  color: #4f5968;
  font-size: 15px;
}

.footer-inner > span:last-child {
  justify-self: end;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.footer-links button,
.footer-links a {
  padding: 3px 0;
  border: 0;
  color: #818a98;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.footer-links button:hover,
.footer-links a:hover {
  color: #167ff5;
}

.customer-service {
  position: fixed;
  right: 24px;
  bottom: 119px;
  z-index: 3;
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  filter: drop-shadow(0 12px 22px rgba(21, 119, 228, 0.2));
  transition: transform 160ms ease;
}

.customer-service:hover {
  transform: translateY(-3px);
}

.customer-service picture,
.customer-service img {
  display: block;
  width: 48px;
  height: 48px;
}

#information-dialog {
  width: min(800px, calc(100% - 36px));
  max-height: min(86vh, 880px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: #283140;
  background: #fff;
  box-shadow: 0 24px 80px rgba(26, 64, 106, 0.25);
  overflow: hidden;
}

#information-dialog::backdrop {
  background: rgba(22, 39, 60, 0.34);
  backdrop-filter: blur(3px);
}

.dialog-card {
  position: relative;
  display: flex;
  max-height: min(86vh, 880px);
  flex-direction: column;
  padding: 38px 42px 40px;
}

.dialog-card h2 {
  margin: 0 38px 18px 0;
  color: #1e2734;
  font-size: 25px;
}

.dialog-content {
  min-height: 0;
  padding-right: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8d6e6 transparent;
}

.dialog-content::-webkit-scrollbar {
  width: 6px;
}

.dialog-content::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: #c8d6e6;
}

.dialog-content p {
  margin: 0;
  color: #6f7988;
  font-size: 16px;
  line-height: 1.8;
}

.dialog-section + .dialog-section {
  margin-top: 22px;
}

.dialog-section h3 {
  margin: 0 0 7px;
  color: #283140;
  font-size: 17px;
  line-height: 1.5;
}

.dialog-agreement-section + .dialog-agreement-section {
  margin-top: 26px;
}

.dialog-agreement-section h3 {
  margin: 0 0 9px;
  color: #202a38;
  font-size: 18px;
  line-height: 1.55;
}

.dialog-agreement-section p + p {
  margin-top: 8px;
}

.dialog-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 24px;
  color: #6f7988;
  font-size: 16px;
}

.dialog-text-button {
  padding: 0;
  border: 0;
  color: #178aff;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.dialog-text-button:hover {
  text-decoration: underline;
}

.dialog-back {
  margin: 0 0 18px;
}

.dialog-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  color: #6f7988;
  font-size: 16px;
}

.dialog-contact a {
  color: #178aff;
  text-decoration: none;
}

.dialog-contact a:hover {
  text-decoration: underline;
}

.dialog-close {
  position: absolute;
  top: 17px;
  right: 18px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #7a8594;
  background: #f0f5fa;
  font-size: 24px;
  line-height: 34px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .news-section {
    padding: 44px 20px;
  }

  .news-item {
    align-items: flex-start;
  }

  .header-inner,
  .hero-inner,
  .footer-inner {
    width: min(100% - 36px, 720px);
  }

  .hero {
    display: block;
    min-height: 0;
  }

  .hero-inner {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 22px 0 34px;
  }

  .hero-copy {
    position: static;
    width: 100%;
    padding: 0;
    text-align: center;
  }

  .hero-copy h1,
  .hero-copy p {
    margin-right: auto;
    margin-left: auto;
  }

  .download-actions {
    gap: 18px;
    margin-top: 32px;
    justify-content: center;
  }

  .hero-art {
    position: static;
    width: min(100%, 660px);
    margin: 0 auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 13px;
    padding-top: 20px;
    text-align: center;
  }

  .footer-inner > span:last-child {
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 72px;
  }

  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .brand picture,
  .brand img {
    width: 42px;
    height: 42px;
  }

  .language-control {
    min-width: 132px;
    height: 40px;
    padding: 0 10px;
  }

  .hero-inner {
    padding-top: 12px;
  }

  .hero-copy h1 {
    margin-bottom: 18px;
    font-size: 38px;
  }

  .hero-copy p {
    font-size: 16px;
    line-height: 1.72;
  }

  .download-actions {
    gap: 13px;
    margin-top: 28px;
  }

  .download-button {
    min-width: 0;
    min-height: 52px;
    flex: 1 1 150px;
    padding: 12px 16px;
    font-size: 15px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px 22px;
  }

  .customer-service {
    right: 18px;
    bottom: 22px;
    width: 54px;
    height: 54px;
  }

  .customer-service picture,
  .customer-service img {
    width: 54px;
    height: 54px;
  }

  .dialog-card {
    padding: 34px 26px 30px;
  }
}

@media (min-width: 901px) and (max-width: 1499px) {
  .hero {
    flex: 0 0 auto;
    min-height: clamp(720px, 60vw, 900px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-button,
  .customer-service {
    transition: none;
  }
}

@media (min-width: 1500px) {
  html,
  body {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page-shell {
    position: relative;
    display: block;
    min-height: 100vh;
    overflow: visible;
  }

  .header-inner,
  .hero-inner,
  .footer-inner {
    width: 1432px;
    max-width: calc(100% - 48px);
  }

  .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    padding: 0;
  }

  .header-inner {
    height: 62.4px;
    min-height: 62.4px;
    padding: 12.8px 0;
  }

  .brand {
    gap: 8px;
    color: #178aff;
    font-size: 18px;
    font-weight: 400;
  }

  .brand picture,
  .brand img {
    width: 38px;
    height: 38px;
  }

  .language-control {
    width: 92px;
    min-width: 0;
    height: 30px;
    justify-content: center;
    gap: 3.2px;
    padding: 3.2px 9.6px;
    border-color: #e2e8f0;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .language-control picture,
  .language-control img {
    order: 2;
    width: 12.8px;
    height: 12.8px;
    flex: 0 0 12.8px;
  }

  .language-control select {
    order: 1;
    width: 57px;
    padding: 0;
    font-size: 14px;
    line-height: 19.2px;
    appearance: none;
  }

  .hero {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .hero-inner {
    position: relative;
    display: flex;
    height: auto;
    min-height: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin: 88px auto 0;
    padding: 0;
  }

  .hero-copy {
    position: static;
    width: 540px;
    flex: 0 0 540px;
    padding: 0;
  }

  .hero-copy h1 {
    max-width: none;
    margin: 0;
    color: #000;
    font-size: 53.6px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .hero-copy p {
    width: 540px;
    max-width: none;
    height: 22vh;
    margin: 8px 0 0;
    color: #a0a0a0;
    font-size: 22.4px;
    line-height: 1.5;
  }

  .download-actions {
    flex-wrap: nowrap;
    gap: 50px;
    margin-top: 0;
  }

  .download-button {
    width: 240px;
    min-width: 240px;
    height: 64px;
    min-height: 64px;
    gap: 8px;
    padding: 0 16px;
    border-radius: 32px;
    background: #178aff;
    box-shadow: none;
    font-size: 24px;
    font-weight: 400;
  }

  .download-button picture,
  .download-button img {
    width: 36px;
    height: 36px;
  }

  .hero-art {
    position: static;
    display: block;
    width: auto;
    flex: 0 0 auto;
    align-self: center;
  }

  .hero-art img {
    width: auto;
    max-width: none;
    height: 75vh;
    object-fit: contain;
    filter: none;
  }

  .news-section {
    padding-bottom: calc(64px + 48px + env(safe-area-inset-bottom));
  }

  .site-footer {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    height: 48px;
    padding: 0;
    font-size: 14px;
  }

  .footer-inner {
    position: relative;
    display: flex;
    height: 48px;
    min-height: 48px;
    justify-content: space-between;
    gap: 0;
  }

  .footer-inner > strong {
    color: #45556c;
    font-size: 18px;
    font-weight: 400;
  }

  .footer-inner > span:last-child {
    margin-left: auto;
    color: #62748e;
  }

  .footer-links {
    position: absolute;
    top: 50%;
    left: 50%;
    gap: 24px;
    transform: translate(-50%, -50%);
  }

  .customer-service {
    top: 85%;
    right: 24px;
    bottom: auto;
    width: 48px;
    height: 48px;
  }

  .customer-service picture,
  .customer-service img {
    width: 48px;
    height: 48px;
  }
}
