@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/poppins-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/poppins-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand: #a50000;
  --text: #000;
  --muted-bg: #f5f5f5;
  --line: #ccc;
  --content-w: 650px;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

/* display:flex 会盖掉 UA 的 [hidden]，需显式覆盖 */
[hidden] {
  display: none !important;
}

/* —— 未识别域名 —— */
.unknown {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.unknown p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  max-width: 420px;
}

/* —— 主布局 PC：左右分栏 —— */
.page {
  display: flex;
  min-height: 100vh;
  background: #fff;
}

.logo-mobile {
  display: none;
}

.hero {
  flex: 0 0 50%;
  width: 50%;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.panel {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px 40px;
  min-width: 0;
}

.panel-inner {
  width: 100%;
  max-width: var(--content-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.logo-pc {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  width: 100%;
}

.logo-pc img {
  max-height: 80px;
  max-width: 264px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.copy {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  width: 100%;
}

.email-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: var(--muted-bg);
  border-radius: 8px;
  padding: 24px 32px;
}

.email-card .icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.email-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.email-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.email-meta .label {
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
}

.email-meta .addr {
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
  word-break: break-all;
}

.btn-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 388px;
  max-width: 100%;
  height: 56px;
  padding: 16px 24px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s ease;
}

.btn-mail:hover {
  opacity: 0.85;
}

.btn-mail:active {
  opacity: 0.75;
}

.footer {
  width: 100%;
  max-width: 658px;
  margin-top: 96px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer p {
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

/* —— 移动端：Logo → 图 → 正文 —— */
@media (max-width: 960px) {
  .page {
    flex-direction: column;
    min-height: 100vh;
  }

  .logo-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
  }

  .logo-mobile img {
    max-height: 88px;
    max-width: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .logo-pc {
    display: none;
  }

  .hero {
    flex: none;
    width: 100%;
    min-height: 0;
    height: 42vh;
    max-height: 400px;
    min-height: 220px;
  }

  .hero img {
    position: absolute;
  }

  .panel {
    flex: 1 1 auto;
    padding: 48px 20px 72px;
    justify-content: flex-start;
  }

  .panel-inner {
    gap: 32px;
  }

  .copy {
    font-size: 15px;
    line-height: 24px;
  }

  .email-card {
    gap: 16px;
    padding: 20px 24px;
    border-radius: 12px;
  }

  .email-card .icon {
    width: 56px;
    height: 56px;
  }

  .email-meta .label {
    font-size: 18px;
    line-height: 28px;
  }

  .email-meta .addr {
    font-size: 15px;
  }

  .btn-mail {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    font-size: 16px;
  }

  .footer {
    margin-top: 64px;
    max-width: 100%;
  }

  .footer p {
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .email-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .email-meta {
    align-items: flex-start;
  }
}
