@import url('https://fonts.googleapis.com/css2?family=Karla:wght@300;400;500;600;700&family=Playfair+Display+SC:wght@400;700&display=swap');

:root {
  --ink: #171f26;
  --ink-lo: #131a21;
  --ink-hi: #1f2a35;
  --ice: #c8e0f4;
  --rose: #f5e0e8;
  --txt: #dbe6ef;
  --dim: #9db0bf;
  --line: rgba(200, 224, 244, 0.13);
  --up: -7px -7px 18px rgba(200, 224, 244, 0.05), 8px 8px 22px rgba(0, 0, 0, 0.62);
  --up-sm: -4px -4px 10px rgba(200, 224, 244, 0.06), 4px 5px 12px rgba(0, 0, 0, 0.55);
  --in: inset -5px -5px 12px rgba(200, 224, 244, 0.05), inset 5px 6px 14px rgba(0, 0, 0, 0.6);
  --serif: 'Playfair Display SC', 'Songti SC', 'Noto Serif SC', Georgia, 'Times New Roman', serif;
  --sans: 'Karla', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 100px;
  min-height: 100vh;
  color: var(--txt);
  font: 400 17px/1.78 var(--sans);
  background:
    radial-gradient(62vw 62vw at 10% -10%, rgba(200, 224, 244, 0.17), transparent 62%),
    radial-gradient(58vw 58vw at 94% 4%, rgba(245, 224, 232, 0.13), transparent 60%),
    var(--ink);
  background-repeat: no-repeat;
}

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

a {
  color: var(--ice);
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: 0.01em;
  color: #eef6fd;
}

hr {
  border: 0;
  height: 1px;
  margin: 14px 0 22px;
  background: linear-gradient(90deg, rgba(200, 224, 244, 0.55), rgba(245, 224, 232, 0.28), transparent);
}

hr + hr {
  display: none;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: 22px;
  scroll-margin-bottom: 96px;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 20vh 20px 15vh;
  text-align: center;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(150deg, #24323e, #131a21);
  z-index: -1;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-img.is-on {
  opacity: 1;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 31, 38, 0.48), rgba(23, 31, 38, 0.9) 76%);
}

.hero-txt {
  position: relative;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(31px, 6.4vw, 58px);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.hero-desc {
  max-width: 560px;
  margin: 18px auto 0;
  color: #cfdeea;
  font-size: 16px;
}

.stage {
  padding: 30px 16px 0;
}

.side {
  padding: 16px;
  margin-bottom: 26px;
  border-radius: 20px;
  background: linear-gradient(148deg, var(--ink-hi), var(--ink-lo));
  box-shadow: var(--up);
  align-self: start;
}

.side h2 {
  margin: 0;
  font-size: 19px;
}

.side-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  border-radius: 12px;
  color: var(--txt);
  font-size: 16px;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: var(--in);
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.side-list a.on {
  color: #101820;
  background: linear-gradient(145deg, var(--ice), #a6c8e4);
  box-shadow: var(--up-sm);
}

.body {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.body > section {
  padding: clamp(20px, 4.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
  backdrop-filter: blur(14px);
  box-shadow: var(--up);
}

.body h2 {
  font-size: clamp(22px, 3.6vw, 30px);
}

.body h3 {
  margin: 1.4em 0 0.4em;
  font-size: 20px;
}

.body p:last-child,
.body ul:last-child,
.body ol:last-child {
  margin-bottom: 0;
}

.body a {
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.body ul,
.body ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.body li {
  margin: 0.35em 0;
}

.body figure {
  margin: 1.3em 0;
}

.body img {
  border-radius: 16px;
  box-shadow: var(--up-sm);
}

.body blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--ice);
  border-radius: 0 16px 16px 0;
  background: rgba(200, 224, 244, 0.07);
}

.body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.body th,
.body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px max(12px, calc((100% - 940px) / 2)) calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgba(18, 25, 32, 0.93);
  backdrop-filter: blur(18px);
  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.5);
}

.dock-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 14px;
  color: #eef6fd;
  font-family: var(--serif);
  font-size: 16px;
  text-decoration: none;
  background: linear-gradient(145deg, var(--ink-hi), var(--ink-lo));
  box-shadow: var(--up-sm);
}

.dock-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.dock-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.grp {
  position: relative;
}

.grp summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 14px;
  color: var(--txt);
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(145deg, var(--ink-hi), var(--ink-lo));
  box-shadow: var(--up-sm);
}

.grp summary::-webkit-details-marker {
  display: none;
}

.grp[open] summary {
  color: var(--ice);
  box-shadow: var(--in);
}

.grp .panel {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 138px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #182129;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
}

.grp:last-child .panel {
  left: auto;
  right: 0;
}

.panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--txt);
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
}

.panel a:active {
  background: rgba(200, 224, 244, 0.14);
}

.dock-tel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 2px;
  padding: 0 14px;
  border-radius: 14px;
  color: #101820;
  font-size: 16px;
  text-decoration: none;
  background: linear-gradient(145deg, var(--ice), #a6c8e4);
  box-shadow: var(--up-sm);
}

.dock a:active,
.dock summary:active {
  transform: scale(0.96);
}

.foot {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 940px;
  margin: 52px auto 0;
  padding: 0 16px;
}

.foot-top {
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(245, 224, 232, 0.08), rgba(200, 224, 244, 0.05));
  box-shadow: var(--up);
}

.foot-top h2 {
  font-size: clamp(20px, 3vw, 26px);
}

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sub input {
  flex: 1 1 200px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  color: var(--txt);
  font: inherit;
  background: var(--ink-lo);
  box-shadow: var(--in);
  outline: none;
}

.sub input:focus {
  box-shadow: var(--in), 0 0 0 2px rgba(200, 224, 244, 0.45);
}

.sub button {
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  color: #101820;
  font: 600 16px var(--sans);
  cursor: pointer;
  background: linear-gradient(145deg, var(--ice), #a6c8e4);
  box-shadow: var(--up-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sub button:active {
  transform: scale(0.97);
  box-shadow: var(--in);
}

.foot-grid {
  display: grid;
  gap: 24px;
}

.foot-name {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 21px;
  color: #eef6fd;
}

.foot-desc {
  margin: 0;
  color: var(--dim);
  font-size: 16px;
}

.foot-nav dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
  margin: 0;
}

.foot-nav dt {
  grid-column: 1 / -1;
  margin-top: 10px;
  color: var(--dim);
  font-size: 16px;
}

.foot-nav dd {
  margin: 0;
}

.foot-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--txt);
  font-size: 16px;
  text-decoration: none;
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 16px;
}

.foot-bar p {
  margin: 0;
}

.foot-links {
  display: flex;
  gap: 18px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dim);
  text-decoration: none;
}

.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

.rv.in {
  opacity: 1;
  transform: none;
}

@media (min-width: 700px) {
  .foot-grid {
    grid-template-columns: 1.25fr 1fr;
  }
}

@media (min-width: 860px) {
  .stage {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 30px;
    max-width: 940px;
    margin: 0 auto;
    padding: 40px 16px 0;
  }

  .side {
    position: sticky;
    top: 24px;
    margin-bottom: 0;
  }

  .side-list {
    flex-direction: column;
  }

  .hero {
    padding: 22vh 24px 16vh;
  }

  .dock {
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }

  .grp summary {
    padding: 0 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-img {
    transition: none;
  }

  .dock a:active,
  .dock summary:active,
  .sub button:active {
    transform: none;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
