/* ==============================
   流浪地球 · 极简构成主义
   ============================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0;
}

:root {
    --bg:        #05080d;
    --bg-soft:   #0a1018;
    --line:      #1a2532;
    --line-soft: #121a24;
    --fg:        #e9f1f9;
    --fg-dim:    #7a8fa3;
    --fg-faint:  #3d4c5c;
    --ember:     #ff6a1a;
    --ember-dim: #c14e0f;
    --ice:       #4fa8d8;

    --mono: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, "Courier New", monospace;
    --sans: "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

body {
    font-family: var(--mono);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 背景网格 + 右下角橙光 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    right: -20vw;
    bottom: -25vh;
    width: 70vw;
    height: 70vh;
    background: radial-gradient(
        circle at center,
        rgba(255, 106, 26, 0.14) 0%,
        rgba(255, 106, 26, 0.05) 35%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

main,
header,
footer {
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--ember);
    color: var(--bg);
}

/* ==============================
   TOP BAR
   ============================== */
.bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 8, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--sans);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.mark {
    width: 14px;
    height: 14px;
    background: var(--ember);
    display: inline-block;
    box-shadow: 0 0 16px rgba(255, 106, 26, 0.7);
}

.brand-name {
    color: var(--fg);
}

.nav {
    display: flex;
    gap: 28px;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-dim);
}

.nav a {
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--ember);
    transition: width 0.25s ease;
}

.nav a:hover {
    color: var(--fg);
}

.nav a:hover::after {
    width: 100%;
}

/* ==============================
   HERO
   ============================== */
.hero {
    padding: clamp(64px, 12vh, 140px) 32px clamp(48px, 8vh, 96px);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ember);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.eyebrow::before {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--ember);
    display: inline-block;
}

.title {
    font-family: var(--sans);
    font-weight: 900;
    font-size: clamp(3rem, 13vw, 10rem);
    line-height: 0.85;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.line {
    display: block;
    position: relative;
}

/* 中间那块：实心橙，像被加热的金属 */
.line.is-ember {
    color: var(--ember);
    text-shadow: 0 0 40px rgba(255, 106, 26, 0.35);
}

/* 最后一块：空心描边，冷冰质感 */
.line.is-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--fg-faint);
    text-stroke: 1.5px var(--fg-faint);
}

.lede {
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    color: var(--fg-dim);
    max-width: 46ch;
    letter-spacing: 0.02em;
    border-left: 2px solid var(--ember);
    padding-left: 18px;
}

/* ==============================
   LINK LIST
   ============================== */
.links {
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.link {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    border-bottom: 1px solid var(--line);
    position: relative;
    transition: background 0.25s ease, padding-left 0.25s ease;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 让每条链接的底部线只延到内容宽度 */
.links > .link {
    border-bottom: 1px solid var(--line);
}

.link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--ember);
    transition: width 0.25s ease;
}

.link:hover {
    background: var(--bg-soft);
    padding-left: 44px;
}

.link:hover::before {
    width: 3px;
}

.idx {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--fg-faint);
    transition: color 0.25s ease;
}

.link:hover .idx {
    color: var(--ember);
}

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

.label {
    font-family: var(--sans);
    font-weight: 800;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--fg);
    line-height: 1.1;
}

.desc {
    font-size: 0.85rem;
    color: var(--fg-dim);
    letter-spacing: 0.04em;
    word-break: break-all;
}

.arrow {
    font-size: 1.4rem;
    color: var(--fg-faint);
    text-align: right;
    transition: color 0.25s ease, transform 0.25s ease;
}

.link:hover .arrow {
    color: var(--ember);
    transform: translateX(6px);
}

/* ==============================
   FOOTER
   ============================== */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 32px;
    border-top: 1px solid var(--line);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-faint);
    margin-top: auto;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 720px) {
    .bar {
        padding: 16px 20px;
    }

    .nav {
        gap: 18px;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }

    .hero {
        padding: 56px 20px 40px;
    }

    .eyebrow {
        letter-spacing: 0.22em;
        font-size: 0.7rem;
        margin-bottom: 24px;
    }

    .title {
        margin-bottom: 28px;
    }

    .line.is-outline {
        -webkit-text-stroke-width: 1px;
    }

    .link {
        grid-template-columns: 40px 1fr 28px;
        gap: 14px;
        padding: 22px 20px;
    }

    .link:hover {
        padding-left: 26px;
    }

    .arrow {
        font-size: 1.2rem;
    }

    footer {
        padding: 20px;
        font-size: 0.68rem;
    }
}

/* 尊重用户的减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}