  :root {
    --bg: #0a1628;
    --card: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text: #e8eef5;
    --text-dim: #8fa3b8;
    --accent: #38bdf8;
    --accent2: #818cf8;
    --gradient: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
  }

  /* ---------- 背景动效 ---------- */
  .ocean-bg {
    position: fixed; inset: 0; z-index: -2;
    background:
      radial-gradient(ellipse 80% 50% at 20% -10%, rgba(56, 189, 248, 0.15), transparent),
      radial-gradient(ellipse 60% 50% at 80% 10%, rgba(129, 140, 248, 0.12), transparent),
      radial-gradient(ellipse 70% 60% at 50% 110%, rgba(192, 132, 252, 0.08), transparent),
      var(--bg);
  }
  .waves { position: fixed; bottom: 0; left: 0; width: 100%; height: 120px; z-index: -1; opacity: .35; }

  /* ---------- 小鱼 ---------- */
  .fish {
    position: fixed; z-index: -1; pointer-events: none;
    will-change: transform;
  }
  .fish .swimY { display: block; animation: fishBobY ease-in-out infinite; }
  .fish svg { display: block; overflow: visible; }
  .fish .tail {
    transform-box: fill-box; transform-origin: right center;
    animation: tailWag ease-in-out infinite alternate;
  }
  .fish-r { left: -90px; animation: swimR linear infinite; }
  .fish-l { left: calc(100vw + 90px); animation: swimL linear infinite; }
  @keyframes swimR {
    from { transform: translateX(0) scaleX(1); }
    to   { transform: translateX(calc(100vw + 260px)) scaleX(1); }
  }
  @keyframes swimL {
    from { transform: translateX(0) scaleX(-1); }
    to   { transform: translateX(calc(-100vw - 260px)) scaleX(-1); }
  }
  @keyframes fishBobY {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-14px) rotate(2deg); }
  }
  @keyframes tailWag {
    from { transform: rotate(16deg) scaleX(.88); }
    to   { transform: rotate(-16deg) scaleX(1.05); }
  }

  /* ---------- 漂流瓶 ---------- */
  .bottle-float {
    position: fixed; z-index: 5; cursor: pointer;
    border: none; background: none; padding: 0;
    transition: transform .3s ease, filter .3s ease;
  }
  .bottle-float svg { display: block; overflow: visible; animation: bottleBob ease-in-out infinite; }
  .bottle-drift { display: block; animation: bottleDrift ease-in-out infinite alternate; will-change: transform; }
  @keyframes bottleDrift {
    from { transform: translateX(calc(var(--dx, 40px) * -1)); }
    to   { transform: translateX(var(--dx, 40px)); }
  }
  .bottle-float:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, .8));
  }
  .bottle-float:active { transform: scale(1.05); }
  @keyframes bottleBob {
    0%, 100% { transform: translateY(0) rotate(-9deg); }
    50%      { transform: translateY(-13px) rotate(7deg); }
  }

  .bubble {
    position: fixed; bottom: -30px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), rgba(56,189,248,.15));
    pointer-events: none; z-index: -1;
    animation: rise linear forwards;
  }
  @keyframes rise {
    to { transform: translateY(-110vh) translateX(var(--drift, 0px)); opacity: 0; }
  }

  /* ---------- 导航 ---------- */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 6vw;
    backdrop-filter: blur(12px);
    background: rgba(10, 22, 40, 0.7);
    border-bottom: 1px solid var(--card-border);
  }
  .logo {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 1.15rem; letter-spacing: .5px;
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .logo svg { flex-shrink: 0; display: block; }
  .nav-links { display: flex; gap: 28px; }
  .nav-links a {
    color: var(--text-dim); text-decoration: none; font-size: .92rem;
    transition: color .25s;
  }
  .nav-links a:hover { color: var(--accent); }
  @media (max-width: 640px) { .nav-links { display: none; } }

  /* ---------- Hero ---------- */
  .hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 0 6vw; position: relative;
  }
  .avatar {
    width: 110px; height: 110px; border-radius: 50%;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem;
    margin-bottom: 28px;
    box-shadow: 0 0 0 6px rgba(56,189,248,.15), 0 0 60px rgba(56,189,248,.35);
    animation: float 4s ease-in-out infinite;
  }
  @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  .hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    font-weight: 800; letter-spacing: 1px;
    margin-bottom: 10px;
  }
  .hero h1 .g { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .greeting { color: var(--text-dim); font-size: .95rem; margin-bottom: 6px; }
  .typing {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-dim);
    min-height: 2em;
    margin-bottom: 30px;
  }
  .typing .cursor { display: inline-block; width: 2px; background: var(--accent); animation: blink 1s step-end infinite; margin-left: 2px; }
  @keyframes blink { 50% { opacity: 0; } }
  .hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
  .btn {
    padding: 12px 30px; border-radius: 999px; text-decoration: none;
    font-size: .95rem; font-weight: 600; transition: all .25s;
  }
  .btn-primary {
    background: var(--gradient); color: #fff;
    box-shadow: 0 4px 24px rgba(56, 189, 248, .35);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(56, 189, 248, .5); }
  .btn-ghost { border: 1px solid var(--card-border); color: var(--text-dim); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
  .scroll-hint {
    position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
    color: var(--text-dim); font-size: 1.4rem; animation: bob 1.8s ease-in-out infinite;
  }
  @keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

  /* ---------- 区块 ---------- */
  section { padding: 90px 6vw; max-width: 1080px; margin: 0 auto; }
  .sec-tag {
    display: inline-block; font-size: .8rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 10px;
  }
  h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; margin-bottom: 36px; }
  .card {
    background: var(--card); border: 1px solid var(--card-border);
    border-radius: 18px; padding: 28px;
    transition: transform .3s, border-color .3s, box-shadow .3s;
  }
  .card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, .4);
    box-shadow: 0 10px 40px rgba(56, 189, 248, .12);
  }

  /* 这片海 */
  .sea-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
  .sea-card { text-align: center; padding: 34px 24px; }
  .sea-card .ico { font-size: 2rem; margin-bottom: 14px; display: block; }
  .sea-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
  .sea-card p { color: var(--text-dim); font-size: .92rem; }

  /* 群岛 */
  .proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
  .proj .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .proj .ico { font-size: 1.6rem; }
  .proj .path { color: var(--text-dim); font-size: .85rem; }
  .proj h3 { font-size: 1.1rem; margin-bottom: 8px; }
  .proj p { color: var(--text-dim); font-size: .92rem; margin-bottom: 14px; }
  a.card { text-decoration: none; color: inherit; display: block; }
  .group-title { font-size: 1.15rem; font-weight: 700; margin: 34px 0 18px; color: var(--text); }
  .group-title:first-of-type { margin-top: 0; }

  /* 漂流瓶 */
  .contact { text-align: center; }
  .contact-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
  .contact-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 24px; border-radius: 14px;
    background: var(--card); border: 1px solid var(--card-border);
    color: var(--text); text-decoration: none; font-size: .92rem;
    transition: all .25s;
  }
  .contact-item:hover { border-color: var(--accent); transform: translateY(-2px); }

  footer {
    text-align: center; padding: 40px 6vw; color: var(--text-dim); font-size: .85rem;
    border-top: 1px solid var(--card-border);
  }
  footer a { color: var(--accent); text-decoration: none; }
  .visit-stats { margin-bottom: 10px; font-size: .82rem; color: var(--text-dim); }
  .visit-stats b { color: var(--accent); font-weight: 600; font-family: inherit; }

  /* 入场动画 */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.show { opacity: 1; transform: translateY(0); }

  /* 回到海面 */
  .to-top {
    position: fixed; right: 24px; bottom: 28px; width: 46px; height: 46px;
    border-radius: 50%; z-index: 90;
    background: rgba(15, 32, 56, .8); border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
    color: var(--text-dim); font-size: 1.15rem; cursor: pointer;
    opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s, border-color .3s, color .3s;
  }
  .to-top.show { opacity: 1; pointer-events: auto; }
  .to-top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

  /* 尊重减弱动效偏好 */
  @media (prefers-reduced-motion: reduce) {
    .fish, .bubble { display: none !important; }
    .fish, .bubble, .avatar, .scroll-hint, .waves, .typing .cursor { animation: none !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
  }
