@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&family=Roboto:wght@400;700&display=swap");

:root {
  --cmer-blue: #005caf;
  --cmer-sky: #85cefa;
  --cmer-mid: #51a8dd;
  --cmer-accent: #5ab9ea;
  --cmer-gray: #6b7280;
  --cmer-grad: linear-gradient(110.25deg, #85cefa 5.86%, #51a8dd);
  --banner-img: url("https://statichk.cmermedical.com/imgs/2024/03/699f44b399f589a3.jpg");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #333;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 14px;
  overflow-x: hidden;
}

a {
  color: var(--cmer-blue);
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.app {
  max-width: 100%;
  overflow: hidden;
}

/* ========== Header ========== */
.public-head {
  align-items: center;
  background: hsla(0, 0%, 100%, 0.749);
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

.pc-logo {
  align-items: center;
  display: flex;
  gap: 10px;
}

.pc-logo img {
  width: 100px;
  max-width: 100%;
}

.pc-logo-text {
  display: flex;
  flex-direction: column;
}

.pc-logo-text span {
  color: var(--cmer-blue);
  font-size: 18px;
  line-height: 1.3;
}

.pc-logo-text span:last-child {
  font-size: 12px;
}

.right-header {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav-pc {
  align-items: center;
  display: flex;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--cmer-blue);
  display: block;
  font-size: 18px;
  letter-spacing: 0.25em;
  line-height: 22px;
  padding: 18px 16px;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  transition: color 0.25s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-item:hover > .nav-link {
  color: #fff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu {
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  left: 0;
  list-style: none;
  min-width: 180px;
  opacity: 0;
  padding: 8px 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 20;
}

.submenu a {
  color: var(--cmer-blue);
  display: block;
  font-size: 15px;
  letter-spacing: 0.1em;
  padding: 10px 18px;
  transition: background 0.2s;
}

.submenu a:hover {
  background: #ecf7fd;
}

.head-btn {
  align-items: center;
  background: var(--cmer-grad);
  border-radius: 38px;
  display: flex;
  font-size: 15px;
  letter-spacing: 0.25em;
  margin-left: 12px;
  text-align: center;
}

.head-btn span {
  color: #fff;
  line-height: 2.3;
  padding: 0 2rem;
}

.lang-switch {
  margin-left: 14px;
  position: relative;
}

.lang-btn {
  align-items: center;
  background: transparent;
  border: none;
  color: #005caf;
  cursor: pointer;
  display: flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.lang-btn svg {
  display: block;
  fill: none;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 24px;
}

.lang-btn:hover,
.lang-switch.open .lang-btn {
  color: #51a8dd;
}

.lang-dropdown {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  padding: 12px 16px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  white-space: nowrap;
  z-index: 1200;
}

.lang-switch.open .lang-dropdown {
  align-items: center;
  display: flex;
}

.lang-dropdown a {
  color: #7aa3c9;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}

.lang-dropdown a:hover {
  color: #005caf;
}

.lang-dropdown a.active {
  color: #005caf;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-sep {
  color: #7aa3c9;
  margin: 0 6px;
  user-select: none;
}

.lang-switch-mobile {
  align-items: center;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  padding-bottom: 16px;
}

.lang-switch-mobile a {
  border: none !important;
  color: #7aa3c9 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  padding: 4px 0 !important;
  text-decoration: none !important;
}

.lang-switch-mobile a:hover {
  color: #005caf !important;
}

.lang-switch-mobile a.active {
  background: transparent !important;
  color: #005caf !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.lang-switch-mobile .lang-sep {
  color: #7aa3c9;
  margin: 0 6px;
}

body.lang-en .nav-link,
body.lang-en .head-btn,
body.lang-en .about-title,
body.lang-en .peculiarity-title,
body.lang-en .page-hero h1 {
  letter-spacing: 0.08em;
}

body.lang-en .pc-logo-text span:first-child {
  font-size: 14px;
}

body.lang-en .banner-zh {
  letter-spacing: 0.15em;
}

.mobile-menu,
.close-menu {
  cursor: pointer;
  display: none;
  flex-direction: column;
  padding: 8px;
  z-index: 200;
}

.mobile-menu i,
.close-menu i {
  background: var(--cmer-blue);
  display: block;
  height: 3px;
  margin: 4px 0;
  width: 30px;
}

.mobile-drawer {
  background: hsla(0, 0%, 100%, 0.95);
  display: none;
  flex-direction: column;
  height: 100vh;
  left: 0;
  overflow-y: auto;
  padding: 80px 24px 40px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  border-bottom: 1px solid #e5e5e5;
  color: var(--cmer-blue);
  font-size: 18px;
  letter-spacing: 0.2em;
  padding: 14px 0;
}

.mobile-drawer .sub {
  font-size: 15px;
  letter-spacing: 0.1em;
  padding-left: 16px;
}

/* ========== Banner ========== */
.banner {
  background: var(--banner-img) no-repeat;
  background-position: 100% 100%;
  background-size: cover;
  height: 100vh;
  position: relative;
  width: 100%;
}

.banner-content {
  bottom: 50px;
  position: absolute;
  right: 50px;
  text-align: right;
}

.banner-zh {
  color: #fff;
  font-family: Roboto, "Noto Sans TC", sans-serif;
  font-size: 26.6667px;
  font-weight: 400;
  letter-spacing: 1em;
  line-height: 31px;
  text-shadow: 0 5.33333px 5.33333px rgba(0, 0, 0, 0.25);
}

.banner-zh em {
  font-style: normal;
  margin: 0 0.15em;
}

.banner-vision {
  margin: 12px 0 8px auto;
  width: 280px;
}

.banner-sub {
  color: var(--cmer-blue);
  display: inline-block;
  font-size: 36px;
  font-weight: 350;
  line-height: 1.1;
  vertical-align: super;
}

.banner-future {
  color: #fff;
  font-size: 66.6667px;
  font-weight: 900;
  line-height: 105px;
  letter-spacing: 0.05em;
}

/* ========== About ========== */
.about {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: auto;
  max-width: 1920px;
  padding: 130px 0 250px;
  position: relative;
}

.about::after {
  background: conic-gradient(
    from 133.66deg at 52.34% 54.52%,
    #51a8dd 0deg,
    #54aade 9deg,
    #85cefa 173.77deg,
    #51a8dd 1turn
  );
  border-radius: 50%;
  bottom: 15%;
  content: "";
  height: 21vw;
  left: 0;
  margin: auto;
  max-height: 395px;
  max-width: 395px;
  opacity: 0.2;
  position: absolute;
  right: 0;
  width: 21vw;
  z-index: -1;
}

.about-visual {
  overflow: hidden;
  width: 50%;
}

.about-visual img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  width: 100%;
}

.about-panel {
  align-items: center;
  background: var(--cmer-grad);
  display: flex;
  flex-direction: column;
  padding: 120px 100px 100px;
  width: 50%;
}

.about-title {
  color: #fff;
  font-size: 40px;
  letter-spacing: 0.5em;
  line-height: 40px;
  text-align: center;
}

.about-body {
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.2em;
  line-height: 200%;
  padding-top: 40px;
  position: relative;
  text-align: justify;
}

.about-body::before {
  color: #fff;
  content: "ABOUT";
  font-size: 90px;
  font-weight: 700;
  left: 0;
  letter-spacing: 0.5em;
  line-height: 1;
  margin: auto;
  opacity: 0.1;
  position: absolute;
  right: 0;
  text-align: center;
  top: -38px;
}

/* ========== Peculiarity ========== */
.peculiarity {
  background: hsla(0, 0%, 77%, 0.102);
  padding: 130px 0;
  position: relative;
  width: 100%;
}

.peculiarity-deco {
  border: 31px solid #fff;
  border-radius: 50%;
  box-sizing: border-box;
  height: 372px;
  position: absolute;
  right: -200px;
  top: 100px;
  transform: rotate(45deg);
  transition: all 0.3s ease-in;
  width: 372px;
}

.peculiarity-deco:hover {
  border-radius: 0;
  opacity: 0.3;
  transform: rotate(135deg);
}

.peculiarity-title {
  align-items: center;
  color: var(--cmer-blue);
  display: flex;
  font-size: 40px;
  justify-content: center;
  letter-spacing: 0.5em;
  line-height: 40px;
  margin-bottom: 32px;
  text-align: center;
}

.peculiarity-list {
  display: grid;
  grid-gap: 0;
  grid-template-columns: repeat(3, 17.6vw);
  justify-content: center;
}

.pec-item {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  height: 17.6vw;
  justify-content: space-evenly;
  margin-bottom: -1px;
  margin-right: -1px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease-in;
}

.pec-item:hover {
  box-shadow: 7px 7px 0 var(--cmer-accent);
  transform: translate(-7px, -7px);
}

.pec-icon {
  align-items: center;
  display: flex;
  height: 130px;
  justify-content: center;
  width: 150px;
  z-index: 10;
}

.pec-icon img {
  margin: auto;
  max-height: 90px;
  width: auto;
}

.pec-label {
  color: var(--cmer-gray);
  font-size: 20px;
  text-align: center;
  z-index: 10;
}

.pec-item::after {
  color: var(--cmer-mid);
  font-family: fantasy, Impact, sans-serif;
  font-size: 11vw;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  opacity: 0.2;
  position: absolute;
  z-index: 5;
}

.pec-item:nth-child(1)::after {
  content: "70";
  left: 3px;
  top: 0;
}

.pec-item:nth-child(2)::after {
  bottom: 0;
  content: "11";
  left: -14px;
}

.pec-item:nth-child(3)::after {
  content: "10";
  right: -14px;
  top: 0;
}

.pec-item:nth-child(4)::after {
  bottom: 70px;
  content: "1000";
  font-size: 8vw;
}

.pec-item:nth-child(5)::after {
  content: "HK";
  font-size: 9vw;
  right: 0;
  top: 10px;
}

.pec-item:nth-child(6)::after {
  bottom: 20px;
  content: "MD";
  font-size: 9vw;
  left: 10px;
}

/* ========== Logo Wall ========== */
.logo-wall {
  padding: 130px 0;
  position: relative;
}

.logo-wall .fang {
  border: 31px solid var(--cmer-mid);
  bottom: 190px;
  box-sizing: border-box;
  height: 300px;
  left: -200px;
  margin: auto;
  opacity: 0.3;
  position: absolute;
  transform: rotate(45deg);
  transition: all 0.3s ease-in;
  width: 300px;
}

.logo-wall .fang:hover {
  border-color: var(--cmer-blue);
  border-radius: 50%;
  transform: rotate(90deg);
}

.logo-box {
  display: grid;
  grid-auto-rows: auto;
  grid-gap: 20px 10px;
  grid-template-columns: repeat(4, 1fr);
  margin: auto;
  max-width: 1150px;
}

.logo-box > a,
.logo-box > div {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 80px;
  padding: 10px;
  transition: transform 0.25s;
}

.logo-box > a:hover {
  transform: scale(1.05);
}

.logo-box img {
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;
}

/* ========== Footer ========== */
.footer-box {
  background: var(--cmer-grad);
  color: #fff;
}

footer {
  margin: auto;
  max-width: 1540px;
  padding: 130px 40px;
}

.footer-one {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.footer-one img {
  max-width: 372px;
  width: 100%;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-nav a {
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  margin-left: 30px;
}

.footer-nav a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.footer-address {
  margin: 48px 0;
}

.footer-address p {
  color: #fff;
  font-size: 18px;
  line-height: 1.5rem;
}

.footer-two {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
}

.media {
  display: flex;
}

.media a {
  border-radius: 50%;
  color: #fff;
  display: block;
  font-size: 28px;
  height: 44px;
  line-height: 44px;
  margin-right: 15px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
  width: 44px;
}

.media a:hover {
  box-shadow: 3px 3px 10px #d3d3d3;
  color: #0056b3;
  transform: rotateX(-15deg) rotateY(15deg) rotate(-15deg) translate(3px, -3px);
}

.copyright {
  color: #fff;
  text-align: right;
}

.copyright a {
  color: #fff;
  font-size: 18px;
  margin-left: 18px;
}

.copyright a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.copyright .copy-text {
  color: #fff;
  font-size: 16px;
  margin-top: 8px;
}

/* ========== Inner pages ========== */
.page-hero {
  background: var(--cmer-grad);
  padding: 160px 40px 80px;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: 40px;
  letter-spacing: 0.5em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  letter-spacing: 0.2em;
  margin-top: 16px;
}

.page-content {
  margin: auto;
  max-width: 960px;
  padding: 80px 24px 120px;
}

.page-content h2 {
  color: var(--cmer-blue);
  font-size: 28px;
  letter-spacing: 0.3em;
  margin-bottom: 24px;
}

.page-content p,
.page-content li {
  color: #444;
  font-size: 16px;
  letter-spacing: 0.08em;
  line-height: 2;
  margin-bottom: 16px;
}

.page-content ul {
  margin-left: 1.5em;
}

.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
}

.contact-card {
  border: 1px solid #e5e5e5;
  padding: 32px;
  transition: all 0.3s;
}

.contact-card:hover {
  box-shadow: 7px 7px 0 var(--cmer-accent);
  transform: translate(-4px, -4px);
}

.contact-card h3 {
  color: var(--cmer-blue);
  font-size: 20px;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  border: 1px solid #dcdfe6;
  color: #333;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  width: 100%;
}

.contact-form button {
  background: var(--cmer-grad);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  letter-spacing: 0.3em;
  padding: 14px 32px;
  transition: opacity 0.2s;
}

.contact-form button:hover {
  opacity: 0.9;
}

.milestone-list {
  border-left: 3px solid var(--cmer-mid);
  margin: 40px 0;
  padding-left: 28px;
}

.milestone-item {
  margin-bottom: 32px;
  position: relative;
}

.milestone-item::before {
  background: var(--cmer-mid);
  border-radius: 50%;
  content: "";
  height: 14px;
  left: -36px;
  position: absolute;
  top: 6px;
  width: 14px;
}

.milestone-item .year {
  color: var(--cmer-blue);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

/* ========== Responsive ========== */
@media screen and (max-width: 1100px) {
  .nav-link {
    font-size: 15px;
    letter-spacing: 0.12em;
    padding: 18px 10px;
  }

  .about-panel {
    padding: 80px 40px;
  }
}

@media screen and (max-width: 768px) {
  .public-head {
    position: relative;
  }

  .nav-pc,
  .head-btn {
    display: none;
  }

  .lang-switch {
    display: block;
    margin-left: 0;
    position: absolute;
    right: 56px;
    top: 14px;
    z-index: 210;
  }

  .lang-dropdown {
    right: 0;
  }

  .mobile-menu {
    display: flex;
    position: absolute;
    right: 16px;
    top: 18px;
  }

  .pc-logo img {
    width: 50px;
  }

  .pc-logo-text span {
    font-size: 14px;
  }

  .pc-logo-text span:last-child {
    font-size: 11px;
  }

  .banner {
    background-position: 70%;
    height: 55vh;
  }

  .banner-content {
    bottom: 20px;
    right: 20px;
  }

  .banner-zh {
    font-size: 16px;
  }

  .banner-vision {
    width: 172px;
  }

  .banner-sub {
    font-size: 14px;
  }

  .banner-future {
    font-size: 15px;
    line-height: 25px;
  }

  .about {
    flex-direction: column;
    padding: 0;
  }

  .about::after {
    display: none;
  }

  .about-visual {
    display: none;
  }

  .about-panel {
    padding: 80px 30px;
    width: 100%;
  }

  .about-title {
    font-size: 24px;
  }

  .about-body::before {
    font-size: 70px;
    letter-spacing: 0;
  }

  .peculiarity {
    padding: 80px 15px;
  }

  .peculiarity-deco {
    display: none;
  }

  .peculiarity-title {
    font-size: 24px;
  }

  .peculiarity-list {
    grid-template-columns: repeat(2, minmax(0, 174px));
  }

  .pec-item {
    height: auto;
    max-width: 174px;
    padding-bottom: 10px;
  }

  .pec-label {
    font-size: 16px;
    padding: 0 12px;
  }

  .pec-item::after {
    font-size: 20vw;
  }

  .pec-item:nth-child(4)::after {
    font-size: 16vw;
  }

  .logo-wall {
    padding: 80px 15px;
  }

  .logo-wall .fang {
    display: none;
  }

  .logo-box {
    grid-template-columns: repeat(3, 1fr);
  }

  footer {
    padding: 80px 15px 20px;
  }

  .footer-one {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    flex-direction: column;
    margin-top: 24px;
  }

  .footer-nav a {
    font-size: 16px;
    margin: 8px 0 0;
  }

  .footer-address {
    margin: 20px 0;
  }

  .footer-address p {
    font-size: 14px;
  }

  .footer-two {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .copyright {
    text-align: left;
  }

  .copyright a {
    font-size: 16px;
    margin-left: 0;
    margin-right: 18px;
  }

  .copyright .copy-text {
    font-size: 11px;
  }

  .page-hero h1 {
    font-size: 24px;
    letter-spacing: 0.3em;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}
