@import 'tailwindcss';

:root {
  font-family: Inter, sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
}

@supports (font-variation-settings: normal) {
  :root {
    font-family: InterVariable, sans-serif;
  }
}

:root {
  --primary-color: #008b8b;
}

html,
body {
  height: 100%;
  width: 100%;
}

a {
  color: #000;
  text-decoration: none;
}

.g-container {
  height: 100%;
  width: 100%;
  padding: 0 20px;
}

.g-container .g-wrapper {
  max-width: 1280px;
  margin: 0 auto;
}

.m-header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
}

.m-header .u-menu {
  display: none;
}

.m-header .u-button {
  background-color: var(--primary-color);
  color: white;
  font-size: 16px;
  padding: 4px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.m-header .u-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.m-header .u-nav a {
  text-decoration: none;
  font-size: 18px;
}

.m-header .u-nav a:hover {
  color: var(--primary-color);
}

@media (width < 768px) {
  .m-header .u-nav {
    display: none;
  }

  .m-header .u-menu {
    display: block;
  }
}

.m-footer {
  border-top: 1px solid #e4e4e4;
  padding: 40px 40px 20px 40px;
}

.m-footer a:hover {
  color: var(--primary-color);
}

.text-gradual-blue {
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  background: linear-gradient(90deg, #008b8b 0%, #73baec 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.text-gradual-black {
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: #000000;
}

.text-gradual-red {
  font-style: normal;
  font-weight: 600;
  font-size: 30px;
  line-height: 36px;
  background: linear-gradient(90deg, #ea408e 0%, #f6626a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.text-gradual-orange {
  font-style: normal;
  font-weight: 600;
  font-size: 30px;
  line-height: 36px;
  background: linear-gradient(90deg, #f9c315 0%, #f87116 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.text-gradual-orange-sub {
  font-style: normal;
  font-weight: 600;
  font-size: 30px;
  line-height: 36px;
  background: linear-gradient(90deg, #f1bd17 0%, #ff791e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.text-gradual-blue-sub {
  font-style: normal;
  font-weight: 600;
  font-size: 30px;
  line-height: 36px;
  background: linear-gradient(90deg, #2bb3f2 0%, #e683e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

p {
  margin: 12px 0;
}

.m-tag-orange {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
  height: 40px;
  gap: 10px;
  color: #f87717;
  border: 2px solid #f87717;
  border-radius: 20px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.m-tag-blue {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
  height: 40px;
  gap: 10px;
  color: #31b2f2;
  border: 2px solid #31b2f2;
  border-radius: 20px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

/* 父容器相对定位 */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown .dropdown__btn {
  cursor: pointer;
}

/* 默认隐藏（仅在 open 时可见） */
.dropdown .dropdown__menu {
  position: absolute;
  top: calc(100% + var(--dd-gap, 12px));
  right: 0;
  min-width: var(--dd-min-width, 180px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);

  transform-origin: top right;
  transform: scaleY(0.8) translateY(-4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: transform 160ms cubic-bezier(0.2, 0.7, 0.3, 1), opacity 160ms ease, visibility 0s linear 160ms;
}

.dropdown[data-state='open'] .dropdown__menu {
  transform: scaleY(1) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s, 0s, 0s;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.dropdown[data-state='open'] .dropdown__menu .dropdown__item {
  padding: 6px;
}

.dropdown[data-state='open'] .dropdown__menu .dropdown__item:hover {
  color: var(--primary-color);
}

.dropdown[data-state='open'] .dropdown__menu .dropdown__item:active {
  outline: none;
}

.dropdown[data-state='open'] .dropdown__menu .dropdown__item:focus-visible {
  outline: none;
}

.dropdown[data-state='open'] .dropdown__menu .dropdown__item:focus {
  outline: none;
}

/* 可选：尊重“减少动态效果”，但仍保持默认隐藏 */
@media (prefers-reduced-motion: reduce) {
  .dropdown[data-state='open'] .dropdown__menu {
    transition: none;
  }
}
