/*
 * 官网公共组件样式。
 * 用途：沉淀按钮、可点击品牌区等跨区块复用样式，替代旧组件库按钮能力。
 * 修改注意：新增通用组件样式前先确认是否被多个页面区块复用。
 */
.site-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 12px 20px;
  color: #16406f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 247, 255, 0.92) 100%);
  border: 1px solid rgba(128, 185, 255, 0.42);
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 24px rgba(21, 88, 164, 0.14);
  cursor: pointer;
  outline: none;
  appearance: none;
  overflow: hidden;
  transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.site-button::before {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.52) 48%, transparent 100%);
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity 0.24s ease, transform 0.42s ease;
  pointer-events: none;
}

.site-button > span {
  position: relative;
  z-index: 1;
}

.site-button + .site-button {
  margin-left: 10px;
}

.site-button:hover {
  color: #0c61c5;
  border-color: rgba(38, 155, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 32px rgba(25, 105, 197, 0.22);
  transform: translateY(-1px);
}

.site-button:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.site-button:focus {
  color: #0c61c5;
  border-color: rgba(38, 155, 255, 0.72);
}

.site-button:active {
  color: #0a54ad;
  border-color: rgba(15, 118, 214, 0.86);
  transform: translateY(0);
}

.site-button--primary {
  color: #ffffff;
  background:
    linear-gradient(135deg, #00c2ff 0%, #2f6dff 54%, #1945d8 100%);
  border-color: rgba(112, 205, 255, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 16px 36px rgba(22, 101, 233, 0.34);
}

.site-button--primary:hover {
  color: #ffffff;
  background:
    linear-gradient(135deg, #21d2ff 0%, #407dff 54%, #2457e8 100%);
  border-color: rgba(166, 229, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 20px 44px rgba(25, 111, 242, 0.42);
}

.site-button--primary:focus {
  color: #ffffff;
  border-color: rgba(166, 229, 255, 0.82);
}

.site-button--primary:active {
  color: #ffffff;
  background:
    linear-gradient(135deg, #08afd8 0%, #235dea 60%, #163fbb 100%);
  border-color: rgba(112, 205, 255, 0.68);
}

.site-button--plain {
  color: #d9edff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(150, 210, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 26px rgba(7, 26, 62, 0.16);
  backdrop-filter: blur(12px);
}

.site-button--plain:hover,
.site-button--plain:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(127, 221, 255, 0.78);
}

.site-button--medium {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 4px;
}

.brand-block { font-family: inherit; text-align: left; background: transparent; border: 0; }

.brand-block:focus-visible {
  outline: 3px solid rgba(65, 135, 229, 0.24);
  outline-offset: 6px;
  border-radius: 18px;
}

.header-nav--mobile-inline { display: none; }

@media (max-width: 768px) {
  .header-nav--mobile-inline { display: flex; }
  .site-button { min-height: 38px; }
}
