/* ==========================================================================
   女神网 · 单页版 —— 一页，一张照片
   配色取自这张照片本身：柔和的海蓝绿（#7AA3B5）、天蓝（#A4BBD9）、
   木栈道的暖灰（#AE9F9D）。整体是清透、明亮的海边色调，不用深色底。
   ========================================================================== */

:root {
  --bg:        #f4fafb;
  --ink:       #1b3038;   /* 深海蓝绿，代替纯黑 */
  --ink-soft:  #37555f;
  --muted:     #6f8f9b;

  --sea:       #3e8ba3;   /* 主色：照片里海水的深一档 */
  --sea-deep:  #2b6d84;
  --sky:       #a4bbd9;   /* 天空 */
  --sand:      #c8b39e;   /* 木栈道 / 草帽 */

  --line:      rgba(43, 109, 132, .16);

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Cascadia Mono", monospace;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* 清透的海边底色：上面留白（天光），左下偏海蓝绿，右下偏沙色（呼应木栈道） */
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 700px at 50% -16%, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(900px 720px at 3% 104%, rgba(196, 229, 236, .78) 0%, rgba(196, 229, 236, 0) 64%),
    radial-gradient(880px 680px at 98% 99%, rgba(247, 239, 228, .52) 0%, rgba(247, 239, 228, 0) 62%),
    linear-gradient(180deg, #fbfdfe 0%, #eef7f9 44%, #e1eef1 100%);
  background-attachment: fixed;
}

p { margin: 0; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ------------------------------------------------------------ 页面骨架 */
.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 30px clamp(18px, 5vw, 48px) 26px;
}

.top { display: flex; justify-content: center; }

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  animation: fadeDown .9s cubic-bezier(.2, .7, .3, 1) both;
}

/* 文字标头：刻意做得很小、很轻 */
.brand-cn {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .34em;
  text-indent: .34em;
  color: var(--ink);
}
.brand-en {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--sea-deep);
  opacity: .72;
}

/* 中间：唯一的一张照片 + 极简说明 */
.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.4vh, 30px);
  padding: clamp(14px, 3.4vh, 34px) 0;
}

.photo {
  position: relative;
  animation: rise 1.1s cubic-bezier(.2, .7, .3, 1) .06s both;
}

.photo img {
  /* 这张照片是横构图 3:2：按高度约束，宽度自然推出，一屏放得下 */
  height: min(54vh, 500px, 60vw);
  width: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 14px;
  background: #e6f1f3;
  box-shadow:
    0 30px 70px -24px rgba(31, 90, 108, .48),
    0 6px 18px -8px rgba(31, 90, 108, .22),
    0 0 0 1px rgba(43, 109, 132, .16);
}

.caption {
  text-align: center;
  animation: rise 1.1s cubic-bezier(.2, .7, .3, 1) .26s both;
}

.no {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .34em;
  color: var(--sea-deep);
  opacity: .72;
  margin-bottom: 8px;
}

.name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 4.2vw, 30px);
  font-weight: 700;
  letter-spacing: .2em;
  text-indent: .2em;
  color: var(--ink);
}

.line {
  margin-top: 10px;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

.bottom {
  text-align: center;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
  opacity: .8;
  animation: fadeUp 1.2s cubic-bezier(.2, .7, .3, 1) .45s both;
}

/* 版权信息下面一行：联系我们 */
.bottom .contact { margin-top: 7px; }
.contact-link {
  display: inline-block;
  padding: 0 0 1px;
  background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: inherit; letter-spacing: .08em;
  color: var(--sea-deep);
  border-bottom: 1px solid rgba(43, 109, 132, .3);
  transition: color .2s, border-color .2s;
}
.contact-link:hover { color: var(--sea); border-color: var(--sea); }
.contact-link:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 2px; }

/* ------------------------------------------------------------ 联系我们 · 弹框 */
body.is-locked { overflow: hidden; }

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 52, 62, .26);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .28s;
}
.modal.is-open .modal-backdrop { opacity: 1; }

/* 框体本身：内容是空的，就是个白框，等你自己往里填 */
.modal-panel {
  position: relative; z-index: 2;
  width: min(520px, 100%);
  height: min(400px, 72vh);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(31, 90, 108, .45);
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .28s, transform .28s;
}
.modal.is-open .modal-panel { opacity: 1; transform: none; }

.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.modal-close:hover { background: var(--sea); border-color: var(--sea); color: #fff; }
.modal-close:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }

/* ------------------------------------------------------------ 动效 */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: .8; transform: none; }
}

/* ------------------------------------------------------------ 小屏 */
@media (max-width: 520px) {
  .stage { padding: 20px 16px 18px; }
  .brand-cn { font-size: 14.5px; letter-spacing: .28em; text-indent: .28em; }
  .brand-en { font-size: 9.5px; }

  /* 手机竖屏：横图会被压得太小，改为 4:5 竖裁，焦点对准画面里的人 */
  .photo img {
    height: min(50vh, 410px);
    aspect-ratio: 4 / 5;
    object-position: 64% 50%;
    border-radius: 12px;
  }
  .line { font-size: 12.5px; }
}

/* 矮屏（横屏手机、小笔记本）整体收紧，避免出现滚动条 */
@media (max-height: 700px) {
  .stage { padding-top: 16px; padding-bottom: 14px; }
  .brand-cn { font-size: 14px; }
  .brand-en { font-size: 9px; }
  .center { gap: 16px; padding: 12px 0; }
  .photo img { height: min(48vh, 360px, 60vw); }
  .name { font-size: 22px; }
  .line { margin-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
