/* HiFleet Skills — landing (skills.hifleet.com) */
/* 英文/数字 Outfit，中文 Noto Sans SC（n4876font 注入） */

:root {
    --ink: #06101c;
    --sea: #0b1f36;
    --sea-mid: #123552;
    --foam: #e6eef4;
    --muted: #8fa3b5;
    --signal: #2eb8a6;
    --brand: #64c800;
    --signal-dim: rgba(46, 184, 166, 0.18);
    --line: rgba(230, 238, 244, 0.12);
    --warn: #e8a54b;
    --radius: 14px;
    --content-max: 1100px;
    --content-pad: 28px;
    /* 与 .section 内容左缘对齐（背景仍可全屏） */
    --content-inline: max(var(--content-pad), calc((100% - var(--content-max)) / 2 + var(--content-pad)));
    --font-display: "Outfit", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
    --font-body: "Outfit", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--foam);
    background: var(--ink);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* —— Nav —— */
.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px var(--content-inline);
    background: linear-gradient(180deg, rgba(6, 16, 28, 0.92), rgba(6, 16, 28, 0));
    backdrop-filter: blur(6px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.25;
    color: var(--brand);
    letter-spacing: -0.01em;
    text-decoration: none;
}
.brand:hover { text-decoration: none; color: #74d810; }
.brand img { width: 32px; height: 32px; }
.brand em {
    font-style: normal;
    color: inherit;
    font-weight: 700;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
}
.nav-links a {
    color: var(--muted);
    text-decoration: none;
}
.nav-links a:hover { color: var(--foam); }
.nav-links .btn-primary,
.nav-links .btn-primary:hover {
    color: #041018;
}

.lang-switch {
    position: relative;
    display: inline-block;
    font-size: 12px;
}
.lang-switch .lang-current {
    border: 1px solid var(--line);
    background: rgba(11, 31, 54, 0.55);
    color: var(--foam);
    cursor: pointer;
    padding: 4px 10px;
    font: inherit;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 96px;
    justify-content: space-between;
}
.lang-switch .lang-current:hover { border-color: rgba(46, 184, 166, 0.45); }
.lang-caret {
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.7;
}
.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 140px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    padding: 4px;
    z-index: 50;
}
.lang-switch.open .lang-menu { display: block; }
.lang-option {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: #1f2937;
    cursor: pointer;
    padding: 8px 10px;
    font: inherit;
    border-radius: 6px;
}
.lang-option:hover { background: #f3f4f6; }
.lang-option.active { color: #0f766e; font-weight: 700; background: #ecfdf8; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--foam);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { text-decoration: none; border-color: rgba(230, 238, 244, 0.35); transform: translateY(-1px); }
.btn-primary {
    background: var(--signal);
    border-color: var(--signal);
    color: #041018;
}
.btn-primary:hover { background: #3ccfb9; border-color: #3ccfb9; color: #041018; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); }

/* —— Hero —— */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 100px var(--content-inline) 56px;
    overflow: hidden;
}

.hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 55% at 70% 35%, rgba(46, 184, 166, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 40% at 20% 70%, rgba(18, 53, 82, 0.9), transparent 60%),
        linear-gradient(165deg, #06101c 0%, #0b1f36 45%, #061825 100%);
}

.hero-visual svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 640px;
    animation: rise 0.9s ease-out both;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(30px, 5.2vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 18px;
    color: #fff;
}
.hero-brand span { color: var(--signal); }

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(26px, 4.6vw, 40px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin: 0 0 14px;
    color: #fff;
    max-width: 18em;
}

.hero-lead {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: clamp(15px, 2vw, 17px);
    max-width: 28em;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; r: 3; }
    50% { opacity: 1; r: 5; }
}

.radar-sweep {
    transform-origin: 68% 42%;
    animation: sweep 12s linear infinite;
}

.ship-dot {
    animation: pulse-dot 2.8s ease-in-out infinite;
}
.ship-dot:nth-child(2) { animation-delay: 0.6s; }
.ship-dot:nth-child(3) { animation-delay: 1.2s; }

/* —— Sections —— */
.section {
    padding: 72px var(--content-pad);
    max-width: var(--content-max);
    margin: 0 auto;
}
.section-kicker {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--signal);
    font-weight: 700;
    margin: 0 0 10px;
}
.section h2 {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: #fff;
}
.section-lead {
    margin: 0 0 36px;
    color: var(--muted);
    max-width: 36em;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    counter-reset: step;
}
.step {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}
.step::before {
    counter-increment: step;
    content: '0' counter(step);
    display: block;
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--signal);
    font-weight: 700;
    margin-bottom: 10px;
}
.step h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.step p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
}
.install-links {
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(230, 238, 244, 0.35);
}
.install-links a {
    color: var(--signal);
    text-decoration: none;
    white-space: nowrap;
}
.install-links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.skills-band {
    background: linear-gradient(180deg, rgba(11, 31, 54, 0.5), transparent);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.skills-band .section { max-width: var(--content-max); }

.skill-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.skill-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.skill-list li:nth-child(-n+2) { border-top: 1px solid var(--line); }
.skill-name {
    font-weight: 700;
    color: #fff;
    font-size: 15px;
}
.skill-desc {
    grid-column: 1 / -1;
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}
.skill-status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--signal);
}
.skill-status.soon {
    color: var(--warn);
}

.cta-block {
    text-align: center;
    padding: 80px var(--content-inline) 96px;
}
.cta-block h2 {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 28px);
    margin: 0 0 12px;
}
.cta-block p {
    color: var(--muted);
    margin: 0 auto 24px;
    max-width: 28em;
}
.cta-block .hero-cta { justify-content: center; }

.site-footer {
    padding: 28px var(--content-pad);
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
    max-width: var(--content-max);
    margin: 0 auto;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--foam); }

@media (max-width: 800px) {
    .nav-links .hide-sm { display: none; }
    .steps { grid-template-columns: 1fr; gap: 22px; }
    .skill-list { grid-template-columns: 1fr; }
    .skill-list li:nth-child(2) { border-top: none; }
    .hero { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .radar-sweep, .ship-dot, .hero-copy { animation: none; }
}
