/* 绿脚印 · 官网
   一页就是一片夜海：上面浮着岛、脚、轨迹和信。
   墨绿打底，荧光绿只用在该被看见的地方。 */

:root {
    --bg: #040A06;
    --bg2: #061109;
    --lime: #A8F04C;
    --lime2: #C9F6A0;
    --lime3: #D8FF9C;
    --txt: #EAF4E6;
    --dim: #8AA095;
    --dim2: #5D7367;
    --line: rgba(255, 255, 255, 0.08);
    --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--txt);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- 夜海 ---------- */
.sea {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.sea-grad {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 70% at 50% -10%, rgba(41, 122, 96, 0.30), transparent 62%),
        radial-gradient(90% 50% at 82% 12%, rgba(20, 78, 66, 0.32), transparent 70%),
        linear-gradient(180deg, #04120F 0%, #040A06 42%, #030705 100%);
}

/* 浪：两条缓慢平移的波纹，压在页面最底层 */
/* 海浪只出现在首屏底部，滚走就没了 */
.hero-waves {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: 0;
    height: 26vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.wave {
    position: absolute;
    left: 0;
    width: 120%;
    height: 100%;
    opacity: 0.5;
}

.wave path { fill: rgba(26, 86, 74, 0.55); }
.wave path + path { fill: none; }

.w1 { bottom: 12%; animation: drift 13s linear infinite; }
.w2 { bottom: -4%; opacity: 0.8; animation: drift 19s linear infinite reverse; }
.w2 path { fill: rgba(14, 52, 44, 0.85); }

/* 推进幅度按浪宽的百分比算，才看得出在走 */
@keyframes drift {
    from { transform: translateX(0); }
    to { transform: translateX(-8%); }
}

/* ---------- 顶栏 ---------- */
.top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px clamp(20px, 4vw, 60px);
    background: linear-gradient(to bottom, rgba(4, 10, 6, 0.85), rgba(4, 10, 6, 0));
}

.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }

.brand-mark {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 8px;
    color: var(--txt);
}

.brand-en { font-size: 10px; letter-spacing: 5px; color: var(--dim2); }

.top-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }

.top-nav a {
    color: var(--dim);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1.5px;
    transition: color 0.25s;
}

.top-nav a:hover { color: var(--lime); }

.nav-cta {
    padding: 7px 18px;
    border: 1px solid rgba(168, 240, 76, 0.34);
    border-radius: 999px;
    color: var(--lime) !important;
}

.nav-cta:hover { background: rgba(168, 240, 76, 0.1); }

/* ---------- 首屏 ---------- */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(16px, 4vw, 60px);
    padding: 120px clamp(24px, 7vw, 110px) 90px;
}

.kicker {
    margin: 0 0 22px;
    font-size: 12px;
    letter-spacing: 6px;
    color: var(--dim2);
}

.hero h1 {
    margin: 0;
    font-size: clamp(38px, 6.2vw, 84px);
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: 2px;
}

.glow { color: var(--lime); text-shadow: 0 0 46px rgba(168, 240, 76, 0.4); }

.sub {
    margin: 30px 0 0;
    max-width: 26em;
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 2;
    color: var(--dim);
}

.acts { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 30px;
    border-radius: 999px;
    background: var(--lime);
    color: #06110A;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(168, 240, 76, 0.28); }

.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--dim); }
.btn.ghost:hover { border-color: rgba(168, 240, 76, 0.4); color: var(--lime); box-shadow: none; }

/* 首屏的岛 */
.hero-island {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-island canvas,
.island-card canvas {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.55));
}

.hero-island canvas { animation: bob 11s ease-in-out infinite; }

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.island-tag {
    position: absolute;
    left: 50%;
    bottom: 4%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--dim2);
    white-space: nowrap;
}

.island-tag b { font-weight: 400; font-size: 15px; letter-spacing: 6px; color: var(--txt); }

/* ---------- 通用章节 ---------- */
.stage {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(28px, 6vw, 90px);
    padding: clamp(90px, 15vh, 170px) clamp(24px, 7vw, 110px);
}

.stage-copy { max-width: 30em; }

.idx {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--lime);
    opacity: 0.8;
}

.stage h2 {
    margin: 0 0 22px;
    font-size: clamp(26px, 3.4vw, 44px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 2px;
}

.stage p {
    margin: 0 0 18px;
    font-size: clamp(14px, 1.35vw, 16px);
    line-height: 2;
    color: var(--dim);
}

.stage p b { font-weight: 500; color: var(--txt); }

.quiet { color: var(--dim2) !important; font-size: 14px !important; }

.facts { list-style: none; margin: 26px 0 0; padding: 0; }

.facts li {
    padding: 13px 0 13px 24px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--dim);
    position: relative;
}

.facts li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 23px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 10px rgba(168, 240, 76, 0.65);
}

.facts b { font-weight: 500; color: var(--txt); margin-right: 8px; }

.stage-art { position: relative; }

/* ---------- 今天：一只脚 ---------- */
.foot-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.foot { width: min(300px, 52vw); height: auto; }

/* 填充从脚下往上长，进场时触发 */
.foot-fill {
    transform: translateY(300px);
    transition: transform 1.6s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.foot.lit .foot-fill { transform: translateY(120px); }

.foot-meta {
    position: absolute;
    right: -8px;
    bottom: 6%;
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}

.foot-meta .big { font-size: clamp(34px, 4vw, 52px); font-weight: 500; color: var(--txt); }
.foot-meta .unit { font-size: 13px; color: var(--dim2); letter-spacing: 2px; }
.foot-meta .pct {
    margin-left: 14px;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(168, 240, 76, 0.12);
    border: 1px solid rgba(168, 240, 76, 0.3);
    font-size: 12px;
    color: var(--lime);
    letter-spacing: 1px;
}

/* ---------- 轨迹 ---------- */
.trail { width: min(360px, 78vw); height: auto; }

.trail-line {
    fill: none;
    stroke: var(--lime);
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 0 12px rgba(168, 240, 76, 0.6));
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
    transition: stroke-dashoffset 2.4s ease;
}

.trail.lit .trail-line { stroke-dashoffset: 0; }

.pin-dot { fill: var(--lime); }
.pin-ring { fill: none; stroke: rgba(168, 240, 76, 0.35); stroke-width: 1.5; }

.pin circle { fill: var(--lime); opacity: 0.85; }
.pin text, .here text {
    fill: var(--dim);
    font-size: 11px;
    letter-spacing: 1px;
    font-family: var(--sans);
}

.here text { fill: var(--lime2); }

/* ---------- 碳岛卡 ---------- */
.island-card {
    position: relative;
    padding: 18px 18px 0;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(12, 28, 20, 0.55), rgba(6, 16, 11, 0.2));
    backdrop-filter: blur(2px);
}

.island-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 6px 16px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--dim2);
    font-variant-numeric: tabular-nums;
}

/* ---------- 信 ---------- */
.letter {
    margin: 0;
    padding: clamp(26px, 3vw, 38px);
    max-width: 430px;
    background: linear-gradient(170deg, #F7F4EA, #E9E6D9);
    color: #2A332C;
    border-radius: 6px;
    transform: rotate(-1.4deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.letter-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(42, 51, 44, 0.16);
    font-size: 13px;
    letter-spacing: 2px;
    color: #6E7A6B;
}

.letter-head b { font-weight: 600; font-size: 17px; letter-spacing: 1px; color: #22301F; }

.letter p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 2.05;
    color: #3A463C;
}

.letter-sign { margin-top: 22px; text-align: right; font-size: 13px; color: #7A8677; }

/* ---------- 怎么玩 ---------- */
.how {
    position: relative;
    z-index: 2;
    padding: clamp(90px, 14vh, 160px) clamp(24px, 7vw, 110px);
    border-top: 1px solid var(--line);
}

.how h2 {
    margin: 0 0 50px;
    font-size: clamp(26px, 3.4vw, 42px);
    font-weight: 500;
    letter-spacing: 3px;
}

.flow {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: f;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 26px;
}

.flow li {
    counter-increment: f;
    padding: 26px 22px 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(170deg, rgba(168, 240, 76, 0.05), transparent 62%);
}

.flow li::before {
    content: counter(f, decimal-leading-zero);
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--lime);
    opacity: 0.85;
}

.flow b { display: block; margin-bottom: 8px; font-weight: 500; font-size: 16px; letter-spacing: 1px; }
.flow span { font-size: 14px; color: var(--dim); line-height: 1.9; }

/* ---------- 开始使用 ---------- */
.start {
    position: relative;
    z-index: 2;
    padding: clamp(90px, 15vh, 170px) clamp(24px, 7vw, 110px);
    border-top: 1px solid var(--line);
}

.start h2 {
    margin: 0 0 34px;
    font-size: clamp(26px, 3.4vw, 42px);
    font-weight: 500;
    letter-spacing: 3px;
}

.steps { margin: 0 0 44px; padding: 0; list-style: none; counter-reset: s; max-width: 720px; }

.steps li {
    counter-increment: s;
    position: relative;
    padding: 15px 0 15px 50px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    color: var(--dim);
}

.steps li::before {
    content: counter(s, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 15px;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--lime);
    opacity: 0.85;
}

.steps b { font-weight: 500; color: var(--txt); margin-right: 10px; }

.qr { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.qr-box {
    width: 140px;
    height: 140px;
    border: 1px dashed rgba(168, 240, 76, 0.35);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--dim2);
    background: rgba(168, 240, 76, 0.03);
}

.qr-box small { font-size: 11px; opacity: 0.7; }

.qr-tip { margin: 0; font-size: 14px; color: var(--dim); }

/* ---------- 页脚 ---------- */
.site-foot {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 0 clamp(24px, 7vw, 110px) 34px;
    border-top: 1px solid var(--line);
}

/* 页脚的海：两层浪从底下漫上来，一正一反地走 */
.foot-sea {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.foot-sea .wave {
    position: absolute;
    left: -10%;
    width: 120%;
    opacity: 0.6;
    will-change: transform;
}

.foot-sea .w1 { bottom: -18%; height: 58%; animation-duration: 11s; }
.foot-sea .w2 { bottom: -34%; height: 78%; opacity: 0.9; animation-duration: 17s; }

.foot-sea::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12%;
    height: 160px;
    background: radial-gradient(60% 100% at 50% 100%, rgba(60, 170, 140, 0.16), transparent 72%);
    pointer-events: none;
}

/* 页脚内容压在海面上 */
.foot-main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: clamp(36px, 6vw, 90px);
    padding: clamp(56px, 9vh, 96px) 0 clamp(40px, 7vh, 70px);
    border-bottom: 1px solid var(--line);
}

.foot-brandcol { display: flex; align-items: flex-start; gap: 16px; }

.foot-mark {
    width: 34px;
    height: auto;
    margin-top: 4px;
    filter: drop-shadow(0 0 18px rgba(168, 240, 76, 0.5));
    animation: bob 11s ease-in-out infinite;
}

.foot-name {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 6px;
    color: var(--txt);
}

.foot-name span {
    margin-left: 10px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--dim2);
}

.foot-slogan {
    margin-top: 10px;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--dim);
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 4vw, 48px);
    align-items: start;
}

.foot-col { display: flex; flex-direction: column; gap: 10px; }

.foot-col h4 {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--lime);
    opacity: 0.8;
}

.foot-col a {
    color: var(--dim);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.25s;
}

.foot-col a:hover { color: var(--lime); }

.foot-qr { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.foot-qr-box { width: 104px; height: 104px; font-size: 12px; }

.foot-qr span { font-size: 12px; letter-spacing: 2px; color: var(--dim2); }

.foot-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 22px;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--dim2);
}

@media (max-width: 860px) {
    .foot-main { grid-template-columns: 1fr; gap: 40px; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 进场 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
    .hero, .stage { grid-template-columns: 1fr; }
    .hero { padding-top: 108px; }
    .hero-island { order: -1; aspect-ratio: 1.15 / 1; }
    .stage-art { order: -1; }
    .top-nav a:not(.nav-cta) { display: none; }
    .brand-en { display: none; }
    .foot-meta { position: static; margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ---------- 法务页 ---------- */
.doc {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    padding: 130px clamp(24px, 6vw, 48px) 110px;
}

.doc h1 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 500;
    letter-spacing: 3px;
    margin: 0 0 10px;
}

.doc .updated { font-size: 12px; letter-spacing: 2px; color: var(--dim2); margin-bottom: 40px; }

.doc h2 {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--lime2);
    margin: 38px 0 10px;
}

.doc p { margin: 0 0 12px; font-size: 15px; line-height: 2; color: var(--dim); }

.doc a { color: var(--lime); text-decoration: none; }

/* ---------- 动起来的那一层 ---------- */
.hero-island { will-change: transform; transition: transform 0.5s cubic-bezier(0.22, 0.9, 0.3, 1); }
.hero-island.tilt { transition: transform 0.15s ease-out; }

.land-hint, .island-hint {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    margin: 0;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--dim2);
    opacity: 0;
    transition: opacity 0.4s ease;
    white-space: nowrap;
}

.hero-island:hover .island-hint { opacity: 0.85; }

/* 碳气泡：从岛上冒出来，自己飘走 */
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.bubble {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(10, 26, 18, 0.82);
    border: 1px solid rgba(168, 240, 76, 0.35);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--lime2);
    transform: translate(-50%, -50%) scale(0.6);
    animation: bubbleUp 2.6s cubic-bezier(0.22, 0.9, 0.3, 1) forwards;
}

.bubble::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 10px rgba(168, 240, 76, 0.9);
}

@keyframes bubbleUp {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    18% { opacity: 1; transform: translate(-50%, -60%) scale(1); }
    70% { opacity: 1; transform: translate(-50%, -110%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -160%) scale(0.9); }
}

/* 脚印小路：斜着从首屏走到下一节 */
.footpath {
    position: relative;
    z-index: 2;
    height: 320px;
    margin: -40px 0 0;
    pointer-events: none;
}

.footpath img {
    position: absolute;
    width: 26px;
    height: auto;
    opacity: 0.1;
    filter: grayscale(1);
    transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s ease;
}

.footpath img.lit {
    opacity: 0.85;
    filter: none;
    transform: translateY(-4px) scale(1.06);
}

/* 岛卡悬停：微微抬起 */
.island-card { transition: transform 0.5s cubic-bezier(0.22, 0.9, 0.3, 1), border-color 0.5s; }
.island-card:hover { transform: translateY(-6px) rotate(-0.6deg); border-color: rgba(168, 240, 76, 0.3); }

/* 信纸悬停：转正、抬起 */
.letter { transition: transform 0.6s cubic-bezier(0.22, 0.9, 0.3, 1), box-shadow 0.6s; }
.letter:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55); }

/* 轨迹上的点：轻轻呼吸 */
.pin-dot { animation: pulse 2.4s ease-in-out infinite; transform-origin: 196px 104px; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.pin-ring { animation: ring 2.4s ease-out infinite; transform-origin: 196px 104px; }

@keyframes ring {
    0% { transform: scale(0.6); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .bubble, .pin-dot, .pin-ring { animation: none !important; }
}
