/* Modern CSS Reset */
/* Based on modern best practices for 2024+ browsers */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
  margin-block-start: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: PingFangTC-Regular, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

img,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

textarea:not([rows]) {
  min-height: 10em;
}

:target {
  scroll-margin-block: 5ex;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

svg {
  display: block;
  max-width: 100%;
}
/* --- CSS Reset End --- */

/* CSS Variables - 色彩變數定義 */
:root {
  /* Common Colors - 通用色彩 */
  --common-white: #fff;
  --common-black: #000;
  --common-text-color: #000;
  --common-link-color: #0ABAB5;
  --common-subtitle-color: #3b434c;
  --common-note-color: #0ABAB5;
  --common-footer-color: #8E8E93;
  --common-base-gradent-1: #FFF;
  --common-base-gradent-2: #FEFEFE;
  --common-base-gradent-3: #F3F3F7;
  --common-base-gradent-4: #FFF;
  --common-base-bg-color: linear-gradient(180deg, var(--common-base-gradent-1) 0%, var(--common-base-gradent-2) 61.5%, var(--common-base-gradent-3) 96.5%, var(--common-base-gradent-4) 100%);
  --common-base-shadow-color: rgba(130, 137, 145, 0.15);
  --common-base-shadow: 0 2px 5px 1px var(--common-base-shadow-color);

  --common-box-bg: var(--common-base-bg-color);
  --common-box-shadow: var(--common-base-shadow);

  --common-card-bg: var(--common-base-bg-color);
  --common-card-shadow: var(--common-base-shadow);

  --common-button-gradient-1: #B7ECE6;
  --common-button-gradient-2: #00D2C2;
  --common-button-gradient-3: #0ABAB5;
  --common-button-bg: radial-gradient(412.31% 141.42% at 0% 0%, var(--common-button-gradient-1) 0%, var(--common-button-gradient-2) 35.6%, var(--common-button-gradient-3) 100%);
  --common-button-shadow-color: rgba(200, 255, 240, 0.57);
  --common-button-shadow: 0 1px 1px 0 var(--common-button-shadow-color) inset;
  --common-button-color: var(--common-white);
}

/* Base Common Styles - 基礎通用樣式 (Desktop First) */
html,
body {
  width: 100%;
  height: 100%;
  font-size: 12px;
}

.wrapper {
  position: relative;
  text-align: center;
  min-height: 100%;
}

.logo {
  width: 50%;
  max-width: 140px;
  z-index: 99;
}

.title {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.6px;
}

.subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: -0.43px;
  margin-bottom: 1rem;
  color: var(--common-subtitle-color);
}

.error-vision {
  margin: 0 auto;
}

.text {
  line-height: 1.42;
  letter-spacing: 0.1px;
  display: block;
  width: 100%;
  margin: 0 auto;
  text-align: left;
}

.note {
  color: var(--common-note-color);
  letter-spacing: 0.3px;
  font-weight: 500;
}

.error-vision {
  max-width: 440px;
  width: 100%;
  transform: translate(0%, 0%);
}

.container .col:nth-of-type(2) {
  text-align: left;
  border-radius: 20px;
  color: var(--common-text-color);
}


/* Card Component - 卡片組件 */
.card {
  border-radius: 20px;
  background: var(--common-card-bg);
  box-shadow: var(--common-card-shadow);
}

/* Customer Service Items Layout - 客服項目佈局 */
.customer-service .items {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  margin: 20px auto;
}

/* Customer Service Card Base - 客服卡片基礎樣式 */
.customer-service .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  text-align: center;
  min-width: 104px;
}

.customer-service .card .icon {
  width: 35px;
  height: 35px;
}

.customer-service .card .content {
  padding: 0 2px;
  height: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.customer-service .card .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--common-text-color);
}

.customer-service .card .id {
  color: var(--common-footer-color);
}

.customer-service .button {
  border-radius: 12.5px;
  line-height: 25px;
  height: 25px;
  width: 70%;
  font-size: 12px;
  border-radius: 12.5px;
  background: var(--common-button-bg);
  box-shadow: var(--common-button-shadow);
  color: var(--common-button-color);
}

.footer {
  font-size: 1rem;
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 20px;
  letter-spacing: 0.2px;
  line-height: 1;
}

.footer p {
  text-align: center;
  color: var(--common-footer-color);
}

/* Common Desktop Layout - 通用桌面版佈局 */
@media screen and (min-width: 1000px) {
  .title {
    margin-top: 2rem;
  }

  .container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    display: flex;
    flex-direction: row;
    width: 80%;
    max-width: 1100px;
    align-items: center;
  }

  .col {
    flex: 1;
  }

  .container .col:nth-of-type(1) {
    flex: 1.5;
  }

  .container .col:nth-of-type(2) {
    background: var(--common-box-bg);
    box-shadow: var(--common-box-shadow);
  }

  .customer-service .card {
    height: 121px;
    margin-top: 20px;
    padding: 8px 0;
  }

  .customer-service .card .icon {
    position: absolute;
    top: -15%;
  }

  .customer-service .card .content {
    margin-top: 18px;
  }
}

/* Common Mobile Layout - 通用手機版佈局 */
@media screen and (max-width: 999px) {
  .logo {
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, 150%);
  }

  .container {
    padding: 0 2.5rem 50px;
  }

  .container .col:nth-of-type(1) {
    position: relative;
    z-index: 1;
    background-position: top center;
    background-size: auto 100%;
    background-repeat: no-repeat;
    padding-top: 8rem;
  }

  .container .col:nth-of-type(2) {
    padding-top: 1rem;
    text-align: center;
    border-radius: 0;
  }

  .error-vision {
    width: 63.6%;
    max-width: 220px;
    /* transform: translate(0, 33%); */
    margin: 5vw auto 0;
  }

  .customer-service, .text {
    max-width: 400px;
    margin: 0 auto;
  }

  .customer-service .items {
    flex-direction: column;
  }

  .customer-service .card {
    height: 60px;
    width: 100%;
    max-width: 400px;
    flex-direction: row;
    padding: 0 12px;
  }

  .customer-service .card .content {
    padding: 0 12px;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
  }

  .customer-service .button {
    width: 70px;
    min-width: 70px;
  }

  .mobile-hide {
    display: none;
  }
}