/* ============================================================
   盛月堂 · 月夜 × 明日方舟式结构语言
   配色不变（墨蓝夜空 / 月白 / 朱砂 / 月晕金）
   结构：切角面板 / 细线框 / HUD 角标 / 方形节点 / 扫描线
   ============================================================ */

:root {
    /* 夜空色阶 */
    --night: #0a0e1a;
    --night-2: #0e1424;
    --night-3: #131b31;
    --night-4: #1a2340;

    /* 月白文字 */
    --moon: #f2ede1;
    --moon-dim: #98a1b6;
    --moon-faint: #5d6880;

    /* 点缀色 */
    --cinnabar: #e0503f;
    --cinnabar-dark: #b53a2c;
    --gold: #d4af6e;
    --gold-dim: rgba(212, 175, 110, 0.35);

    /* 线条 */
    --line: rgba(242, 237, 225, 0.14);
    --line-soft: rgba(242, 237, 225, 0.07);

    /* 字体 */
    --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-tech: 'Rajdhani', 'Noto Sans SC', sans-serif;

    --header-h: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-hard: cubic-bezier(0.77, 0, 0.175, 1);

    /* 方舟式切角（左上 / 右下各切一刀） */
    --cut-sm: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    --cut-lg: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);

    /* 警示斜纹（朱砂） */
    --hazard: repeating-linear-gradient(-45deg, rgba(224, 80, 63, 0.55) 0 6px, transparent 6px 12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--moon);
    background-color: var(--night);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 夜空噪点纹理 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

::selection {
    background-color: var(--cinnabar);
    color: var(--moon);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== 通用文字 ===== */
.sectionTitle {
    margin-bottom: 64px;
}

/* kicker：方舟式 "// " 前缀 + 宽字距英文标签 */
.sectionTitle .kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-tech);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.sectionTitle .kicker::before {
    content: "//";
    font-weight: 700;
    letter-spacing: 0;
    color: var(--cinnabar);
}

.sectionTitle h2 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0.04em;
    color: var(--moon);
    margin-bottom: 14px;
}

.sectionTitle p {
    color: var(--moon-dim);
    max-width: 560px;
    font-size: 15px;
}

.sectionTitle--center {
    text-align: center;
}

.sectionTitle--center .kicker {
    justify-content: center;
}

.sectionTitle--center p {
    margin: 0 auto;
}

/* ===== 滚动浮现（无 JS 时保持可见） ===== */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

.js .reveal.d1 { transition-delay: 0.12s; }
.js .reveal.d2 { transition-delay: 0.24s; }
.js .reveal.d3 { transition-delay: 0.36s; }

/* ===== 头部 ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(10, 14, 26, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

/* 底部警示斜纹细条（方舟式危险条） */
header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 120px;
    height: 3px;
    background: var(--hazard);
    opacity: 0.85;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 38px;
    width: auto;
    filter: brightness(1.6) drop-shadow(0 0 14px rgba(212, 175, 110, 0.35));
}

nav ul {
    display: flex;
    list-style: none;
    gap: 34px;
}

/* 导航：方舟式方形指示块 */
nav ul li a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: var(--moon-dim);
    font-size: 14.5px;
    font-weight: 400;
    letter-spacing: 0.1em;
    padding: 6px 0 6px 14px;
    transition: color 0.3s;
}

nav ul li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--cinnabar);
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-hard);
}

nav ul li a:hover,
nav ul li a.navActive {
    color: var(--moon);
}

nav ul li a:hover::before,
nav ul li a.navActive::before {
    transform: translateY(-50%) scaleX(1);
}

nav ul li a.navActive {
    color: var(--gold);
}

/* 主按钮：朱砂切角 */
.cta-button {
    display: inline-block;
    background: var(--cinnabar);
    color: var(--moon);
    padding: 11px 28px;
    clip-path: var(--cut-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    transition: background 0.3s, transform 0.3s var(--ease);
}

.cta-button:hover {
    background: var(--cinnabar-dark);
    transform: translateY(-2px);
}

/* 幽灵按钮：细线切角 */
.ghost-button {
    display: inline-block;
    padding: 10px 26px;
    border: 1px solid var(--line);
    clip-path: var(--cut-sm);
    color: var(--moon);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.12em;
    transition: border-color 0.3s, background 0.3s, color 0.3s;
    background: rgba(19, 27, 49, 0.4);
}

.ghost-button:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 110, 0.08);
}

/* ===== 移动端菜单 ===== */
.menu-toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle .bar {
    position: absolute;
    left: 9px;
    width: 22px;
    height: 2px;
    background: var(--moon);
    transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.menu-toggle .bar:nth-child(1) { top: 15px; }
.menu-toggle .bar:nth-child(2) { top: 24px; }

.menu-toggle.active .bar:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ===== 首页 Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 80px;
    background:
        radial-gradient(ellipse 60% 45% at 78% 32%, rgba(212, 175, 110, 0.08), transparent 70%),
        radial-gradient(ellipse 45% 40% at 12% 85%, rgba(224, 80, 63, 0.05), transparent 70%),
        var(--night);
    overflow: hidden;
}

/* 方舟式终端网格 */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    pointer-events: none;
}

/* 竖排装饰字 */
.heroVertical {
    position: absolute;
    right: 42px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.9em;
    color: var(--moon-faint);
    user-select: none;
}

/* 大月亮 */
.heroMoon {
    position: absolute;
    top: 16%;
    right: 13%;
    width: clamp(180px, 26vw, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 34%, #fbf7ea, #ded7c4 58%, #b9b3a0);
    box-shadow:
        0 0 60px rgba(222, 215, 196, 0.35),
        0 0 160px rgba(222, 215, 196, 0.18),
        0 0 320px rgba(212, 175, 110, 0.1);
    animation: moonFloat 10s ease-in-out infinite;
}

.heroMoon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 72% 72%, rgba(10, 14, 26, 0.16), transparent 55%);
}

/* 环形轨道细线（方舟式刻度） */
.heroOrbit {
    position: absolute;
    top: 50%;
    right: 13%;
    width: clamp(240px, 36vw, 500px);
    aspect-ratio: 1;
    transform: translate(30%, -50%) rotate(-18deg);
    border: 1px solid var(--line);
    border-radius: 50%;
}

.heroOrbit::before {
    content: "";
    position: absolute;
    inset: 9%;
    border: 1px dashed var(--line-soft);
    border-radius: 50%;
}

.heroOrbit::after {
    content: "";
    position: absolute;
    top: 7%;
    left: 4%;
    width: 10px;
    height: 10px;
    background: var(--cinnabar);
    box-shadow: 0 0 16px rgba(224, 80, 63, 0.8);
}

@keyframes moonFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.heroInner {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

/* 方舟式 hero 标签 */
.heroKicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-tech);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 30px;
    padding: 6px 16px;
    border: 1px solid var(--gold-dim);
    clip-path: var(--cut-sm);
    background: rgba(212, 175, 110, 0.06);
}

.heroKicker::before {
    content: "//";
    font-weight: 700;
    color: var(--cinnabar);
}

.hero h1 {
    font-size: clamp(42px, 7vw, 84px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin-bottom: 28px;
}

.hero h1 em {
    font-style: normal;
    color: var(--gold);
    text-shadow: 0 0 40px rgba(212, 175, 110, 0.4);
}

.hero .heroDesc {
    position: relative;
    font-size: 17px;
    color: var(--moon-dim);
    max-width: 480px;
    margin-bottom: 44px;
    padding-left: 18px;
}

.heroDesc::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--gold-dim);
}

.heroButtons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

/* Hero 入场动效 */
.heroKicker,
.hero h1,
.hero .heroDesc,
.heroButtons {
    opacity: 0;
    transform: translateY(26px);
    animation: heroRise 0.9s var(--ease) forwards;
}

.hero h1 { animation-delay: 0.15s; }
.hero .heroDesc { animation-delay: 0.3s; }
.heroButtons { animation-delay: 0.45s; }

@keyframes heroRise {
    to { opacity: 1; transform: none; }
}

/* 滚动提示 */
.heroScroll {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--moon-faint);
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.35em;
}

.heroScroll::after {
    content: "";
    width: 1px;
    height: 36px;
    background: linear-gradient(var(--gold-dim), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== 编辑式服务列表（作战档案行） ===== */
.services {
    position: relative;
    padding: 120px 0;
    background: var(--night-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.serviceRow {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 44px 28px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    transition: background 0.4s var(--ease), padding-left 0.4s var(--ease);
}

.serviceRow:first-of-type {
    border-top: 1px solid var(--line);
}

/* 悬停：左侧朱砂竖条 + 背景提亮（方舟档案行） */
.serviceRow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--cinnabar);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s var(--ease-hard);
}

.serviceRow:hover {
    background: rgba(19, 27, 49, 0.65);
    padding-left: 44px;
}

.serviceRow:hover::before {
    transform: scaleY(1);
}

.serviceNum {
    font-family: var(--font-tech);
    font-size: 58px;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--moon-faint);
    transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}

.serviceRow:hover .serviceNum {
    color: var(--gold);
    -webkit-text-stroke-color: var(--gold);
}

.serviceBody h3 {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--moon);
    margin-bottom: 8px;
}

.serviceBody p {
    color: var(--moon-dim);
    font-size: 14.5px;
    max-width: 560px;
}

.serviceArrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    clip-path: var(--cut-sm);
    color: var(--moon-dim);
    transition: border-color 0.4s, color 0.4s, background 0.4s, transform 0.4s var(--ease);
}

.serviceRow:hover .serviceArrow {
    border-color: var(--cinnabar);
    background: var(--cinnabar);
    color: var(--moon);
    transform: translateX(6px);
}

/* ===== 合作伙伴 ===== */
.partners {
    padding: 100px 0;
    background: var(--night);
}

.partnersLogos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 56px 72px;
    margin-top: 52px;
}

.partnersLogos a {
    display: inline-block;
}

.partnersLogos img {
    height: 72px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: filter 0.4s, opacity 0.4s;
}

/* 悬停时恢复 logo 原本色彩（彩色高亮） */
.partnersLogos a:hover img {
    filter: saturate(1.15) brightness(1.05);
    opacity: 1;
}

/* ===== 内页横幅 ===== */
.pageHero {
    position: relative;
    padding: calc(var(--header-h) + 90px) 0 90px;
    background:
        radial-gradient(ellipse 50% 60% at 85% 20%, rgba(212, 175, 110, 0.07), transparent 70%),
        var(--night-2);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

/* 方舟式：右上角切角装饰 + 对角细线带 */
.pageHero::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 220px;
    height: 220px;
    background: var(--night-3);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    pointer-events: none;
}

.pageHero::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 190px;
    height: 190px;
    background: repeating-linear-gradient(-45deg, var(--line-soft) 0 1px, transparent 1px 9px);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    pointer-events: none;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-tech);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--moon-faint);
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: var(--moon-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.pageHero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.pageHero .pageDesc {
    color: var(--moon-dim);
    font-size: 16px;
    max-width: 520px;
    position: relative;
    z-index: 1;
}

/* 锚点跳转预留固定 header */
section[id] {
    scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ===== 内页区块通用 ===== */
.pageSection {
    padding: 110px 0;
}

.pageSection--alt {
    background: var(--night-2);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.introText {
    max-width: 760px;
    font-size: 17px;
    color: var(--moon-dim);
    text-align: center;
    margin: 0 auto;
    line-height: 2;
}

.introText strong {
    color: var(--moon);
    font-weight: 500;
}

/* ===== 发展历程：档案时间轴（月相节点方框化） ===== */
.moonTimeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.moonTimeline::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(var(--gold-dim), var(--line));
}

.moonPhaseItem {
    position: relative;
    padding: 0 0 56px 100px;
}

.moonPhaseItem:last-child {
    padding-bottom: 0;
}

/* 月相图标：方形 HUD 框（内含圆形月相） */
.moonIcon {
    position: absolute;
    left: 0;
    top: 0;
    width: 55px;
    height: 55px;
    background: var(--night-3);
    border: 1px solid var(--line);
    clip-path: var(--cut-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 左上角金色角标 */
.moonIcon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
}

.moonIcon .disc {
    border-radius: 50%;
    transition: none;
}

/* 新月（细弯钩） */
.moonIcon--new .disc {
    width: 30px;
    height: 30px;
    background: transparent;
    box-shadow: inset 8px 4px 0 0 var(--gold-dim);
}

/* 娥眉月 */
.moonIcon--crescent .disc {
    width: 30px;
    height: 30px;
    background: transparent;
    box-shadow: inset 12px 3px 0 0 rgba(212, 175, 110, 0.55);
}

/* 上弦月 */
.moonIcon--half .disc {
    width: 30px;
    height: 30px;
    background: linear-gradient(90deg, var(--gold) 50%, transparent 50%);
}

/* 满月 */
.moonIcon--full .disc {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 38% 34%, #fbf7ea, #ded7c4 62%, #b9b3a0);
    box-shadow: 0 0 18px rgba(222, 215, 196, 0.4);
}

.moonPhaseYear {
    font-family: var(--font-tech);
    font-size: 34px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: 0.06em;
}

.moonPhaseItem h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--moon);
    margin-bottom: 8px;
}

.moonPhaseItem p {
    color: var(--moon-dim);
    font-size: 14.5px;
    max-width: 500px;
}

/* ===== 企业文化：切角档案卡 ===== */
.cultureGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.cultureCard {
    position: relative;
    padding: 44px 32px;
    background: var(--night-3);
    border: 1px solid var(--line-soft);
    clip-path: var(--cut-lg);
    transition: border-color 0.45s, background 0.45s;
    overflow: hidden;
}

/* 右下角金色角标 */
.cultureCard::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 18px;
    height: 18px;
    border-right: 2px solid var(--gold-dim);
    border-bottom: 2px solid var(--gold-dim);
}

.cultureCard:hover {
    border-color: var(--gold-dim);
    background: var(--night-4);
}

.cultureGlyph {
    font-size: 46px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--gold-dim);
    line-height: 1;
    margin-bottom: 22px;
}

.cultureCard h3 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--moon);
    margin-bottom: 10px;
}

.cultureCard p {
    color: var(--moon-dim);
    font-size: 14px;
}

/* ===== 招贤纳士：档案行 ===== */
.jobItem {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 30px 34px;
    background: var(--night-3);
    border: 1px solid var(--line-soft);
    border-left: 3px solid transparent;
    margin-bottom: 18px;
    transition: border-color 0.4s, transform 0.4s var(--ease);
}

.jobItem:hover {
    border-left-color: var(--gold);
    border-color: var(--line);
    border-left-color: var(--gold);
    transform: translateX(6px);
}

.jobItem h3 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--moon);
    margin-bottom: 6px;
}

.jobMeta {
    color: var(--moon-faint);
    font-family: var(--font-tech);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
}

/* 方舟式方形标签（直角细框） */
.jobTags span {
    display: inline-block;
    padding: 3px 12px;
    margin: 8px 6px 0 0;
    border: 1px solid var(--line);
    color: var(--moon-dim);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.jobsCta {
    text-align: center;
    margin-top: 44px;
    color: var(--moon-dim);
    font-size: 14.5px;
}

.jobsCta .cta-button {
    margin-top: 18px;
}

/* ===== 解决方案详情 ===== */
.solutionSection {
    padding: 110px 0;
}

.solutionSection--alt {
    background: var(--night-2);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.solutionWrap {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 44px;
    align-items: start;
}

.solutionNum {
    font-family: var(--font-tech);
    font-size: 96px;
    font-weight: 700;
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 1px var(--gold-dim);
    user-select: none;
}

.solutionSection--alt .solutionWrap {
    grid-template-columns: 1fr 96px;
}

.solutionSection--alt .solutionNum {
    order: 2;
    text-align: right;
}

.solutionBody h3 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--moon);
    margin-bottom: 16px;
}

.solutionBody > p {
    color: var(--moon-dim);
    font-size: 15.5px;
    max-width: 640px;
    margin-bottom: 28px;
}

.featureList {
    list-style: none;
    margin-bottom: 36px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px 36px;
}

/* 方舟式方形列表标记 */
.featureList li {
    position: relative;
    padding-left: 24px;
    color: var(--moon-dim);
    font-size: 14.5px;
}

.featureList li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    background: var(--cinnabar);
    clip-path: polygon(0 0, 100% 0, 100% 65%, 65% 100%, 0 100%);
}

/* ===== 定制引导区 ===== */
.customCta {
    position: relative;
    padding: 110px 0;
    text-align: center;
    background:
        radial-gradient(ellipse 55% 80% at 50% 100%, rgba(224, 80, 63, 0.09), transparent 70%),
        var(--night);
    overflow: hidden;
}

/* 顶部警示斜纹条 */
.customCta::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: min(560px, 80%);
    height: 4px;
    background: var(--hazard);
    opacity: 0.7;
}

.customCta h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--moon);
    margin-bottom: 16px;
}

.customCta p {
    color: var(--moon-dim);
    max-width: 520px;
    margin: 0 auto 34px;
}

/* ===== 联系我们 ===== */
.contactGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.contactCard {
    position: relative;
    padding: 46px 30px;
    text-align: center;
    background: var(--night-3);
    border: 1px solid var(--line-soft);
    clip-path: var(--cut-lg);
    transition: border-color 0.45s, background 0.45s;
}

.contactCard::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 18px;
    height: 18px;
    border-right: 2px solid var(--gold-dim);
    border-bottom: 2px solid var(--gold-dim);
}

.contactCard:hover {
    border-color: var(--gold-dim);
    background: var(--night-4);
}

.contactIcon {
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    border: 1px solid var(--gold-dim);
    clip-path: var(--cut-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.contactCard h3 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--moon);
    margin-bottom: 8px;
}

.contactCard p {
    color: var(--moon-dim);
    font-size: 14px;
}

/* 表单：切角档案面板 */
.contactFormWrap {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    padding: 56px;
    background: var(--night-3);
    border: 1px solid var(--line-soft);
    border-top: 3px solid var(--gold);
    clip-path: var(--cut-lg);
}

.formGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.formGroup {
    display: flex;
    flex-direction: column;
}

.formGroup.fullWidth {
    grid-column: 1 / -1;
}

.formGroup label {
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--moon);
    margin-bottom: 10px;
}

.formGroup label::before {
    content: "// ";
    color: var(--gold);
    font-family: var(--font-tech);
    font-weight: 600;
}

.formGroup input,
.formGroup select,
.formGroup textarea {
    padding: 13px 16px;
    background: var(--night-2);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--moon);
    font-family: inherit;
    font-size: 14.5px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.formGroup input::placeholder,
.formGroup textarea::placeholder {
    color: var(--moon-faint);
}

.formGroup input:focus,
.formGroup select:focus,
.formGroup textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 4px 0 0 0 var(--gold);
}

.formGroup select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398a1b6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.formGroup select option {
    background: var(--night-2);
    color: var(--moon);
}

.formGroup textarea {
    min-height: 150px;
    resize: vertical;
}

.submitButton {
    display: block;
    width: 100%;
    margin-top: 26px;
    padding: 15px;
    background: var(--cinnabar);
    color: var(--moon);
    border: none;
    clip-path: var(--cut-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.35em;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s var(--ease);
}

.submitButton:hover {
    background: var(--cinnabar-dark);
    transform: translateY(-2px);
}

.formSuccess {
    display: none;
    margin-bottom: 24px;
    padding: 14px 20px;
    background: rgba(212, 175, 110, 0.1);
    border: 1px solid var(--gold-dim);
    border-left: 3px solid var(--gold);
    color: var(--gold);
    font-size: 14.5px;
}

.formSuccess.show {
    display: block;
}

/* ===== 页脚 ===== */
footer {
    position: relative;
    background: #070a12;
    border-top: 1px solid var(--line);
    padding-top: 76px;
}

/* 顶部警示斜纹条（左段） */
footer::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: 200px;
    height: 3px;
    background: var(--hazard);
}

.footerContent {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 44px;
    padding-bottom: 56px;
}

/* 页脚 logo 纯白色 */
.footerLogo img {
    height: 44px;
    margin-bottom: 22px;
    filter: brightness(0) invert(1);
}

.footerLogo p {
    color: var(--moon-faint);
    font-size: 13.5px;
    line-height: 1.9;
    max-width: 300px;
}

.footerSection h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--moon);
    margin-bottom: 22px;
    letter-spacing: 0.18em;
}

.footerSection h3::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    margin-top: 8px;
    background: var(--cinnabar);
}

.footerSection ul {
    list-style: none;
}

.footerSection ul li {
    margin-bottom: 12px;
}

.footerSection ul li a {
    color: var(--moon-dim);
    text-decoration: none;
    font-size: 13.5px;
    letter-spacing: 0.05em;
    transition: color 0.3s, padding-left 0.3s var(--ease);
}

.footerSection ul li a:hover {
    color: var(--gold);
    padding-left: 6px;
}

.placeholderText {
    color: var(--moon-faint);
    font-size: 13.5px;
}

.socialLinks {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* 方舟式方形社交按钮 */
.socialLinks span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    color: var(--moon-dim);
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.socialLinks span:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 110, 0.08);
}

.copyright {
    padding: 22px 0;
    border-top: 1px solid var(--line-soft);
    text-align: center;
    color: var(--moon-faint);
    font-size: 13px;
}

.copyright a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.copyright a:hover {
    color: var(--gold);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .heroMoon {
        opacity: 0.5;
        right: 6%;
    }

    .heroOrbit {
        display: none;
    }

    .footerContent {
        grid-template-columns: 1fr 1fr;
    }

    .footerLogo {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footerLogo p {
        margin: 0 auto;
    }

    .socialLinks {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 22px;
    }

    .menu-toggle {
        display: block;
    }

    .cta-button {
        display: none;
    }

    nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100%;
        background: rgba(10, 14, 26, 0.97);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s var(--ease), opacity 0.4s, visibility 0.4s;
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 14px 0;
    }

    nav ul li {
        text-align: left;
    }

    nav ul li a {
        display: block;
        padding: 13px 22px;
        font-size: 15px;
    }

    nav ul li a.navActive {
        color: var(--gold);
    }

    /* Hero 简化 */
    .hero {
        min-height: 88vh;
    }

    .heroMoon {
        top: 9%;
        right: -14%;
        width: 52vw;
        opacity: 0.4;
    }

    .heroVertical {
        display: none;
    }

    .heroButtons {
        gap: 14px;
    }

    .heroScroll {
        display: none;
    }

    /* 服务行堆叠 */
    .serviceRow {
        grid-template-columns: 64px 1fr;
        gap: 18px;
        padding: 30px 14px;
    }

    .serviceNum {
        font-size: 40px;
        grid-row: span 2;
        align-self: start;
    }

    .serviceArrow {
        display: none;
    }

    .serviceBody h3 {
        font-size: 21px;
    }

    .services,
    .pageSection,
    .solutionSection,
    .partners,
    .customCta {
        padding: 72px 0;
    }

    .sectionTitle {
        margin-bottom: 44px;
    }

    .partnersLogos {
        gap: 36px 48px;
    }

    .partnersLogos img {
        height: 52px;
        max-width: 120px;
    }

    .solutionWrap,
    .solutionSection--alt .solutionWrap {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .solutionSection--alt .solutionNum {
        order: 0;
        text-align: left;
    }

    .solutionNum {
        font-size: 60px;
    }

    .formGrid {
        grid-template-columns: 1fr;
    }

    .contactFormWrap {
        padding: 32px 22px;
    }

    .moonPhaseItem {
        padding-left: 80px;
    }

    .jobItem {
        padding: 24px 20px;
    }

    .jobItem .cta-button {
        display: inline-block;
        padding: 9px 20px;
        font-size: 13px;
    }

    .footerContent {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .footerSection h3::after {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 38px;
    }

    .sectionTitle h2 {
        font-size: 28px;
    }

    .pageHero {
        padding-top: calc(var(--header-h) + 56px);
        padding-bottom: 56px;
    }

    .moonIcon {
        width: 44px;
        height: 44px;
    }

    .moonIcon .disc {
        width: 24px;
        height: 24px;
    }

    .moonIcon--new .disc {
        box-shadow: inset 6px 3px 0 0 var(--gold-dim);
    }

    .moonIcon--crescent .disc {
        box-shadow: inset 9px 2px 0 0 rgba(212, 175, 110, 0.55);
    }

    .moonPhaseItem {
        padding-left: 66px;
    }

    .moonPhaseYear {
        font-size: 26px;
    }
}

/* ===== 页面转场（方舟式斜切幕布） =====
   离开旧页：夜幕自底部升起覆盖；进入新页：夜幕向顶部收缩揭开。
   幕布带金色上缘线与 SYTCRAFT 水印，配色与站点一致。
   由 head 内联脚本添加 html.js，无 JS 时夜幕不显示、内容直接可见 */
.pageVeil {
    display: none;
}

html.js .pageVeil {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 3000;
    pointer-events: none;
    clip-path: inset(0);
    background:
        linear-gradient(var(--gold), var(--gold)) top / 100% 2px no-repeat,
        var(--night);
    transition: clip-path 0.5s var(--ease-hard);
}

/* 幕布水印（右下角宽字距英文） */
html.js .pageVeil::after {
    content: "SYTCRAFT";
    position: absolute;
    right: 34px;
    bottom: 26px;
    font-family: var(--font-tech);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5em;
    color: var(--moon-faint);
}

/* 进入新页：夜幕向顶部收缩揭开 */
html.js body.pageSettled .pageVeil {
    clip-path: inset(0 0 100% 0);
}

/* 离开旧页：夜幕自底部升起覆盖 */
html.js body.pageLeaving .pageVeil {
    clip-path: inset(0);
    transition: clip-path 0.42s var(--ease-hard);
}

/* 恢复显示时的起点状态（配合 JS 强制回流实现自底向上扫入） */
html.js .pageVeil.veilClear {
    clip-path: inset(100% 0 0 0) !important;
    transition: none !important;
}

/* 转场结束，夜幕彻底移除 */
html.js .pageVeil.veilHidden {
    display: none;
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
