/* 蛇口小艺 · 夜港 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  overflow: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  color: #e8e2d0;
  background: linear-gradient(180deg,
    #040810 0%, #060e1c 34%, #0a1626 52%, #0b1828 60%, #070f1c 100%);
  cursor: none;
}
a { color: inherit; }
button { font-family: inherit; }

.layer { position: fixed; inset: 0; }

/* ---------- 天空/星星 ---------- */
#sky { z-index: 1; }

/* ---------- 天际线 ---------- */
.skyline { z-index: 2; pointer-events: none; }
.neon-sign {
  position: absolute; left: 50%; top: 16vh;
  width: min(380px, 62vw); margin-left: calc(min(380px, 62vw) / -2);
  overflow: visible;
}
.lighthouse {
  position: absolute; right: 6vw; top: 34vh;
  width: 46px;
}
.far-shore {
  position: absolute; left: 0; right: 0; bottom: 38vh;
  width: 100%; height: 11vh;
}
.neon-text {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 26px; letter-spacing: 9px;
  fill: #f6e2b2;
  filter: drop-shadow(0 0 6px rgba(245,200,107,.55));
  animation: neonflick 7s infinite;
}
.neon-sub { font-size: 8px; letter-spacing: 4px; fill: #97a8ba; }
@keyframes neonflick {
  0%,92%,100% { fill: #f3d9a0; }
  93% { fill: #6a5a38; }
  94% { fill: #f3d9a0; }
  95.5% { fill: #8a7442; }
  96% { fill: #f3d9a0; }
}
#lighthouse-lamp { animation: lampglow 2.6s ease-in-out infinite; transform-origin: center; filter: drop-shadow(0 0 5px rgba(255,233,176,.8)); }
@keyframes lampglow {
  0%,100% { fill: #b58a44; }
  50% { fill: #fff2c8; }
}
/* 灯塔扫光 */
.beacon-sweep {
  position: absolute;
  right: calc(6vw + 13px);
  top: calc(34vh + 28px);
  width: 75vmax; height: 75vmax;
  transform-origin: 100% 50%;
  background: conic-gradient(from 148deg at 100% 50%,
    rgba(245,200,107,.11) 0deg, rgba(245,200,107,0) 9deg,
    rgba(245,200,107,0) 360deg);
  opacity: 0;
  animation: sweep 9s linear infinite;
}
@keyframes sweep {
  0%       { opacity: 0; transform: rotate(0deg); }
  8%       { opacity: 1; }
  62%      { opacity: 1; transform: rotate(42deg); }
  72%,100% { opacity: 0; transform: rotate(48deg); }
}

/* ---------- 海 ---------- */
#sea { z-index: 3; }

/* ---------- 暗罩(提灯挖洞) ---------- */
.veil {
  z-index: 8; pointer-events: none;
  background: rgba(3,7,13,.945);
  -webkit-mask-image: radial-gradient(circle at var(--lx,50%) var(--ly,38%),
    transparent 0, transparent 150px,
    rgba(0,0,0,.55) 230px, #000 310px);
  mask-image: radial-gradient(circle at var(--lx,50%) var(--ly,38%),
    transparent 0, transparent 150px,
    rgba(0,0,0,.55) 230px, #000 310px);
  transition: -webkit-mask-image .12s linear, mask-image .12s linear;
}
.halo {
  z-index: 9; pointer-events: none;
  background: radial-gradient(circle at var(--lx,50%) var(--ly,38%),
    rgba(245,200,107,.16) 0, rgba(245,200,107,.05) 90px, transparent 200px);
  mix-blend-mode: screen;
}

/* ---------- 浮标 ---------- */
.buoys { z-index: 5; pointer-events: none; }
.buoy {
  pointer-events: auto;
  position: absolute;
  left: var(--bx); top: var(--by);
  width: 118px; margin-left: -59px;
  border: 0; background: none; padding: 0;
  cursor: none;
  transform: translate(var(--pull-x,0), var(--pull-y,0));
  animation: bob 5.6s ease-in-out infinite;
  animation-delay: calc(var(--phase) * -1.7s);
  transition: filter .3s;
  filter: brightness(.55);
}
.buoy-art { width: 100%; display: block; overflow: visible; }
.hull { fill: #18304a; stroke: #2c4a68; stroke-width: 1.5; }
.cork { fill: #b59168; }
.paper { fill: #d8cfb8; }
.ink { stroke: #7a6a52; stroke-width: 1.4; }
.post { fill: #243a52; }
.lamp-red { fill: #e08a6a; animation: ember 2.1s ease-in-out infinite; }
.lamp-amber { fill: #f5c86b; }
.lamp-green { fill: #8fd8a8; }
.blink { animation: blink 3.4s ease-in-out infinite; }
.blink2 { animation: blink 4.7s ease-in-out infinite; }
@keyframes ember { 0%,100%{opacity:.55;} 50%{opacity:1;} }
@keyframes blink { 0%,55%,100% { opacity: .25; } 62%,78% { opacity: 1; } }
@keyframes bob {
  0%,100% { translate: 0 0; rotate: -1.4deg; }
  50%     { translate: 0 -11px; rotate: 1.6deg; }
}
.buoy-tag {
  display: block; margin-top: 2px;
  font-size: 12.5px; letter-spacing: 3px; text-align: center;
  color: #cdbf9a; opacity: 0;
  transition: opacity .35s;
  text-shadow: 0 0 12px rgba(245,200,107,.5);
}
.buoy.lit { filter: brightness(1.12) drop-shadow(0 0 14px rgba(245,200,107,.25)); }
.buoy.lit .buoy-tag { opacity: 1; }
.buoy:hover .buoy-art { transform: scale(1.06); }
.buoy-art { transition: transform .3s; }

/* ---------- 小守宫 ---------- */
#gecko-stage {
  position: fixed; z-index: 6;
  right: 4vw; bottom: 0;
  width: 150px; height: 128px;
  pointer-events: none;
}
.post-wood {
  position: absolute; bottom: 0; left: 30px; right: 30px; height: 46px;
  background: linear-gradient(180deg,#2c2118,#120d08);
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 2px 0 rgba(220,170,100,.5), 0 -8px 24px rgba(245,200,107,.06);
}
#gecko { position: absolute; bottom: 38px; left: 15px; width: 120px; height: 90px; image-rendering: pixelated; }

/* ---------- 提示 ---------- */
.hint {
  position: fixed; z-index: 12;
  left: 50%; bottom: 5vh; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 3px; color: #8fa0b2;
  background: rgba(8,14,24,.62);
  border: 1px solid rgba(120,150,180,.18);
  padding: 9px 20px; border-radius: 999px;
  backdrop-filter: blur(3px);
  transition: opacity 1.2s;
  pointer-events: none; white-space: nowrap;
}
.hint-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #f5c86b; box-shadow: 0 0 10px #f5c86b;
  animation: ember 2.2s infinite;
}
.hint.gone { opacity: 0; }
@media (max-width: 640px){
  .hint { font-size: 11.5px; letter-spacing: 1.5px; padding: 8px 14px; }
  .buoy { width: 86px; margin-left: -43px; }
  .buoy-tag { font-size: 11px; letter-spacing: 1.5px; }
  .buoy[aria-label="联系"] { left: 72%; }
  .buoy[aria-label="关于小艺"] { left: 68%; }
  #gecko-stage { width: 104px; height: 92px; right: 2vw; }
  #gecko { width: 84px; height: 63px; bottom: 28px; left: 10px; }
  .post-wood { left: 20px; right: 20px; height: 34px; }
  .dock-card { padding: 16px 22px 38px; }
  .dock-h { font-size: 24px; letter-spacing: 5px; }
  .neon-text { font-size: 21px; letter-spacing: 6px; }
}

/* ---------- 码头面板 ---------- */
.dock { position: fixed; inset: 0; z-index: 30; }
.dock[hidden] { display: none; }
.dock-scrim {
  position: absolute; inset: 0;
  background: rgba(3,7,13,.72);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .4s;
  cursor: none;
}
.dock-card {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 86vh;
  background: linear-gradient(180deg, #101d2c 0%, #0a1420 100%);
  border-top: 1px solid #2c4258;
  border-radius: 18px 18px 0 0;
  padding: 18px 7vw 46px;
  overflow-y: auto;
  transform: translateY(102%);
  transition: transform .5s cubic-bezier(.22,.8,.24,1);
  box-shadow: 0 -20px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(245,200,107,.18);
}
.dock.open .dock-card { transform: translateY(0); }
.dock.open .dock-scrim { opacity: 1; }
.dock-back {
  border: 1px solid #33485e; background: transparent; color: #9fb4c8;
  font-size: 13px; letter-spacing: 2px; padding: 8px 18px; border-radius: 999px;
  cursor: none;
}
.dock-back:hover { border-color: #f5c86b; color: #f5c86b; }
.dock-body { max-width: 760px; margin: 22px auto 0; }
.dock-h {
  font-family: "Songti SC","STSong","SimSun",serif;
  font-size: 30px; letter-spacing: 8px; color: #f3d9a0;
  margin-bottom: 6px;
}
.dock-sub { font-size: 12.5px; letter-spacing: 4px; color: #6f8296; margin-bottom: 30px; }
.dock-body p { line-height: 2.1; font-size: 15px; color: #c6d0da; margin: 14px 0; }

/* 作品卡 */
.work-card {
  display: block; text-decoration: none;
  border: 1px solid #26394c; border-radius: 12px;
  padding: 22px 24px; margin: 16px 0;
  background: linear-gradient(180deg,#122132,#0c1826);
  transition: border-color .3s, transform .3s, box-shadow .3s;
  cursor: none;
}
.work-card:hover {
  border-color: #f5c86b; transform: translateY(-3px);
  box-shadow: 0 10px 34px rgba(0,0,0,.4), 0 0 24px rgba(245,200,107,.12);
}
.work-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.work-name { font-size: 19px; letter-spacing: 3px; color: #eef0e4; }
.work-meta { font-size: 11.5px; letter-spacing: 2px; color: #66809a; }
.work-desc { font-size: 14px; color: #9fb0c0; line-height: 1.9; margin: 10px 0 0 !important; }
.work-go { display: inline-block; margin-top: 12px; font-size: 13px; letter-spacing: 3px; color: #f5c86b; }
.work-soon { border-style: dashed; }
.work-soon .work-go { color: #7d8ea0; }

/* 杂记空码头 */
.empty-pier {
  border: 1px dashed #2c4056; border-radius: 12px;
  padding: 34px 24px; text-align: center; color: #7d8ea0;
  font-size: 14px; line-height: 2.1; letter-spacing: 2px; margin-top: 10px;
}

/* 联系 */
.mail-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid #26394c; border-radius: 12px; padding: 20px 24px; margin: 14px 0;
  background: #0e1a28;
}
.mail-row .k { color: #8fa0b2; letter-spacing: 3px; font-size: 13px; min-width: 72px; }
.mail-row .v { color: #d8c9a0; letter-spacing: 1px; font-size: 14.5px; }
.mail-na { opacity: .65; }

body.touch, body.touch * { cursor: auto !important; }

@media (prefers-reduced-motion: reduce) {
  .beacon-sweep, .buoy, #lighthouse-lamp, .lamp-red, .blink, .blink2, .neon-text { animation: none !important; }
}
