/**
 * 樱悠果羊毛衫公司官网样式。
 *
 * 设计方向：apple.com 的设计语言 —— 近黑幕布 + 超大字号排版 + 宽留白 + 近单色配色，
 * 唯一色彩来自 12 张真实款式实拍，暖驼色只用于小字标签与文本链接。
 *
 * 与 official.css 完全解耦：本文件只服务根路径官网，不共享也不修改产品页样式。
 */

:root {
    /* 暗面 */
    --night: #000000;
    --night-soft: #161617;
    --night-ink: #f5f5f7;
    --night-muted: #a1a1a6;
    --line-night: rgba(255, 255, 255, 0.16);

    /* 亮面 */
    --paper: #ffffff;
    --paper-2: #f5f5f7;
    --ink: #1d1d1f;
    --muted: #6e6e73;
    --line: #d2d2d7;

    /* 唯一暖色点缀：羊毛本色，分暗底/亮底两个取值保证对比度 */
    --accent-ink: #7a5a36;
    --accent-night: #d5b894;

    /* 节奏 */
    --max: 1180px;
    --prose: 720px;
    --gutter: clamp(20px, 4.5vw, 44px);
    --section: clamp(88px, 11vw, 152px);

    /* 形状 */
    --radius-pill: 980px;
    --radius-card: 20px;
    --radius-media: 24px;

    /* 动效：统一使用苹果常用的慢出缓动 */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

[hidden] {
    display: none !important;
}

html {
    background: var(--paper);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.company-site {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Noto Sans CJK SC",
        "Microsoft YaHei", "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent-night);
    outline-offset: 3px;
    border-radius: 4px;
}

.about :focus-visible,
.catalog :focus-visible,
.software :focus-visible {
    outline-color: var(--accent-ink);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 60;
    padding: 12px 20px;
    border-radius: 0 0 12px 12px;
    background: #fff;
    color: #000;
    font-size: 14px;
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 0;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- 排版 ---------- */

.eyebrow {
    margin: 0 0 16px;
    color: var(--accent-ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.5;
}

.hero .eyebrow,
.wholesale .eyebrow,
.contact .eyebrow {
    color: var(--accent-night);
}

.section-title {
    margin: 0;
    font-size: clamp(30px, 4.2vw, 52px);
    font-weight: 600;
    letter-spacing: -0.028em;
    line-height: 1.12;
}

.section-head {
    max-width: var(--prose);
}

.section-intro {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.72;
}

.wholesale .section-intro,
.contact .section-intro {
    color: var(--night-muted);
}

.section {
    padding: var(--section) 0;
}

.about,
.software {
    background: var(--paper);
}

.catalog {
    background: var(--paper-2);
}

.wholesale,
.contact {
    background: var(--night);
    color: var(--night-ink);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-ink);
    font-size: 17px;
    font-weight: 500;
    transition: gap 0.3s var(--ease);
}

.text-link:hover {
    gap: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- 按钮 ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease),
        transform 0.3s var(--ease);
}

.button:active {
    transform: scale(0.98);
}

.button-primary {
    background: #fff;
    color: #000;
}

.button-primary:hover {
    background: rgba(255, 255, 255, 0.82);
}

.button-ghost {
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
}

.button-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* ---------- 顶部导航 ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid transparent;
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--line-night);
    background: rgba(0, 0, 0, 0.88);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 52px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--night-ink);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand img {
    width: 26px;
    height: 26px;
    border-radius: 7px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.82);
}

.nav-links a {
    transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
    color: #fff;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    background: #fff;
    color: #000;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.3s var(--ease);
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.82);
}

.nav-toggle {
    display: none;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--night-ink);
    font-size: 13.5px;
    cursor: pointer;
}

/* ---------- 首屏 ---------- */

.hero {
    padding: clamp(64px, 9vw, 128px) 0 clamp(72px, 9vw, 132px);
    background: var(--night);
    color: var(--night-ink);
}

.hero-title {
    margin: 0;
    font-size: clamp(46px, 7.2vw, 88px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.04;
}

.hero-brand,
.hero-claim {
    display: block;
}

.hero-claim {
    color: var(--night-muted);
    font-size: 0.56em;
    letter-spacing: -0.02em;
    margin-top: 6px;
}

.hero-sub {
    max-width: 640px;
    margin: 28px 0 0;
    color: var(--night-muted);
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.hero-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.8vw, 22px);
    margin: clamp(52px, 7vw, 92px) 0 0;
    padding: 0;
    list-style: none;
}

.hero-tile {
    padding: 9px 9px 0;
    border-radius: var(--radius-card);
    background: #fff;
}

.hero-tile img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 13px;
    object-fit: cover;
    background: var(--paper-2);
}

.hero-tile-meta {
    display: block;
    padding: 14px 6px 16px;
}

.hero-tile-label {
    display: block;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}

.hero-tile-code {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12.5px;
}

/* ---------- 关于我们 ---------- */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(32px, 5vw, 76px);
    align-items: start;
}

.about-copy p {
    max-width: 620px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.about-copy .section-title {
    color: var(--ink);
}

.fact-list {
    margin: 0;
    border-top: 1px solid var(--line);
}

.fact {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.fact dt {
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.fact dd {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14.5px;
}

/* ---------- 商品款式 ---------- */

.catalog .section-head {
    max-width: 780px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: clamp(28px, 3.5vw, 44px);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--paper);
    color: var(--ink);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.pill:hover {
    border-color: #b6b6bd;
}

.pill.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.filter-status {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: clamp(16px, 2.2vw, 28px);
    margin: clamp(26px, 3.2vw, 40px) 0 0;
    padding: 0;
    list-style: none;
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 9px 9px 0;
    border-radius: var(--radius-card);
    background: var(--paper);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 22px 46px rgba(0, 0, 0, 0.09);
}

.product-media {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 13px;
    background: var(--paper-2);
    aspect-ratio: 3 / 4;
}

.product-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
}

.product-img-alt {
    opacity: 0;
}

.product-card:hover .product-img {
    transform: scale(1.04);
}

.product-card:hover .product-img-alt {
    opacity: 1;
}

.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 8px 20px;
}

.product-code {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    letter-spacing: 0.04em;
}

.product-name {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.42;
}

.product-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 0;
}

.color-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    background: var(--paper-2);
    color: var(--muted);
    font-size: 12px;
}

.color-chip-more {
    background: transparent;
    border: 1px solid var(--line);
}

.product-tags {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.product-ask {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--accent-ink);
    font-size: 14px;
    font-weight: 500;
    transition: gap 0.3s var(--ease);
}

.product-ask:hover {
    gap: 12px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.catalog-note {
    max-width: 720px;
    margin: clamp(36px, 4.5vw, 56px) 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

/* ---------- 批发合作 ---------- */

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: clamp(36px, 4.5vw, 60px) 0 0;
    border-top: 1px solid var(--line-night);
}

.spec {
    padding: clamp(24px, 3vw, 36px) 0;
    border-bottom: 1px solid var(--line-night);
}

.spec:nth-child(odd) {
    padding-right: clamp(20px, 3vw, 48px);
    border-right: 1px solid var(--line-night);
}

.spec:nth-child(even) {
    padding-left: clamp(20px, 3vw, 48px);
}

.spec dt {
    color: var(--accent-night);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.spec dd {
    margin: 12px 0 0;
    color: var(--night-ink);
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.55;
}

.policy {
    margin-top: clamp(40px, 5vw, 64px);
    padding-top: clamp(28px, 3vw, 40px);
    border-top: 1px solid var(--line-night);
}

.policy-title {
    margin: 0 0 16px;
    color: var(--accent-night);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.policy-list {
    margin: 0;
    padding-left: 20px;
    color: var(--night-muted);
    font-size: 15px;
    line-height: 1.9;
}

/* ---------- 自研软件 ---------- */

/* 纯文字版块：不靠配图撑版面，靠字号层级、通栏发丝线和留白做结构 */

/* 品牌标记与栏目名并排一行，比"图标一行 + 栏目名一行"更紧凑 */
.software-mark {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.software-mark .eyebrow {
    margin: 0;
}

.software-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
}

/* 15 个字的标题，宽屏一行站住；窄屏只在逗号处断（<wbr>），
   overflow-wrap 兜底，避免超窄屏出现横向溢出。 */
.software .section-title {
    max-width: 18em;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 引子：交代来路，字号大于正文但不抢标题。
   断点放在冒号后（标点处），第二行留出 35em 的宽度整句站住，
   避免宽度一动就把"免费版"拆成两行。 */
.software-lead {
    max-width: 35em;
    margin: 26px 0 0;
    color: var(--ink);
    font-size: clamp(18px, 1.7vw, 20px);
    line-height: 1.7;
    text-wrap: pretty;
}

/* 一道通栏发丝线把这一节切成两栏：左栏是那句结论 + 入口，右栏是两段经历。
   左栏短、右栏长是刻意的——结论本来就该比叙述轻，留白由右栏兜住。 */
.software-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(36px, 5vw, 88px);
    margin-top: clamp(30px, 3.6vw, 46px);
    padding-top: clamp(30px, 3.6vw, 46px);
    border-top: 1px solid var(--line);
}

.software-verdict {
    max-width: 20em;
}

/* 这一节唯一被强调的一句：放大字号，把"为什么不合适"单独拎出来。
   keep-all 关掉汉字之间的自动断行，配合句中的 <wbr>，
   宽屏一行站住，窄屏只在逗号处断，不会出现"而在不 / 贴着"这类难看的断点。 */
.software-quote {
    margin: 0;
    color: var(--ink);
    font-size: clamp(22px, 2.3vw, 28px);
    font-weight: 500;
    line-height: 1.44;
    letter-spacing: -0.018em;
    word-break: keep-all;
}

.software-cta {
    margin: clamp(22px, 2.6vw, 30px) 0 0;
}

/* 单列布局时正文会铺满容器，这里按 40 个字宽收住，避免长行 */
.software-copy {
    max-width: 40em;
}

.software-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.88;
    text-wrap: pretty;
}

.software-copy p + p {
    margin-top: 18px;
}

.story-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: clamp(48px, 5.5vw, 76px) 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.story-step {
    padding: clamp(24px, 3vw, 34px) clamp(20px, 2.6vw, 40px) clamp(26px, 3vw, 36px) 0;
    border-bottom: 1px solid var(--line);
}

.story-step + .story-step {
    padding-left: clamp(20px, 2.6vw, 40px);
    border-left: 1px solid var(--line);
}

.story-time {
    margin: 0;
    color: var(--accent-ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.story-title {
    margin: 12px 0 0;
    color: var(--ink);
    font-size: clamp(17px, 1.6vw, 20px);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.story-copy {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.pain-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: clamp(40px, 5vw, 64px) 0 0;
    border-top: 1px solid var(--line);
}

.pain {
    padding: clamp(20px, 2.4vw, 28px) 0;
    border-bottom: 1px solid var(--line);
}

.pain:nth-child(odd) {
    padding-right: clamp(20px, 3vw, 48px);
    border-right: 1px solid var(--line);
}

.pain:nth-child(even) {
    padding-left: clamp(20px, 3vw, 48px);
}

/* 条目数为奇数时，最后一条占满整行，避免留下半格空行 */
.pain:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    padding-right: 0;
    border-right: 0;
}

.pain dt {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.pain dd {
    position: relative;
    margin: 10px 0 0;
    padding-left: 26px;
    color: var(--ink);
    font-size: 16.5px;
    line-height: 1.62;
}

.pain dd::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-ink);
}

/* ---------- 联系我们 ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
    margin-top: clamp(36px, 4.5vw, 56px);
}

.contact-list {
    margin: 0;
    border-top: 1px solid var(--line-night);
}

.contact-item {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line-night);
}

.contact-item dt {
    color: var(--night-muted);
    font-size: 14px;
}

.contact-item dd {
    margin: 0;
    color: var(--night-ink);
    font-size: 17px;
    line-height: 1.6;
}

.contact-item a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.copy-button {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--night-ink);
    font-size: 17px;
    cursor: pointer;
    text-align: left;
}

.copy-hint {
    color: var(--accent-night);
    font-size: 12.5px;
    border-bottom: 1px dashed currentColor;
}

.copy-button.is-copied .copy-hint {
    color: #7ddba1;
    border-bottom-style: solid;
}

.contact-qr {
    margin: 0;
    padding: 16px 16px 18px;
    border-radius: var(--radius-card);
    background: #fff;
    text-align: center;
}

.contact-qr img {
    width: 168px;
    height: 168px;
    margin: 0 auto;
    border-radius: 12px;
    background: var(--paper-2);
}

.contact-qr figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

/* ---------- 页脚 ---------- */

.site-footer {
    padding-top: clamp(48px, 6vw, 76px);
    background: var(--night);
    color: var(--night-muted);
    border-top: 1px solid var(--line-night);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: clamp(32px, 4vw, 52px);
}

.footer-brand img {
    width: 40px;
    height: 40px;
    border-radius: 11px;
}

.footer-name {
    margin: 16px 0 0;
    color: var(--night-ink);
    font-size: 16px;
    font-weight: 600;
}

.footer-entity,
.footer-line {
    margin: 6px 0 0;
    font-size: 13.5px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    align-content: flex-start;
    font-size: 14px;
}

.footer-links a {
    color: var(--night-ink);
    transition: color 0.2s var(--ease);
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 22px;
    padding-bottom: clamp(32px, 4vw, 44px);
    border-top: 1px solid var(--line-night);
    font-size: 13px;
}

.beian,
.copyright {
    color: inherit;
}

.beian {
    transition: color 0.2s var(--ease);
}

.beian:hover,
.copyright:hover {
    color: var(--night-ink);
}

.copyright {
    margin: 0;
}

/* ---------- 动效 ---------- */

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

    to {
        opacity: 1;
        transform: none;
    }
}

.hero-eyebrow {
    animation: rise 0.7s var(--ease) both;
}

.hero-title {
    animation: rise 0.7s var(--ease) 0.09s both;
}

.hero-sub {
    animation: rise 0.7s var(--ease) 0.18s both;
}

.hero-actions {
    animation: rise 0.7s var(--ease) 0.27s both;
}

.hero-tiles {
    animation: rise 0.7s var(--ease) 0.36s both;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.001ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
    .about-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* 两栏改单列：结论在前、两段经历在后，中间留出段落级间距 */
    .software-story {
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(28px, 5vw, 40px);
    }

    .story-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .story-step,
    .story-step + .story-step {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - 52px);
        padding: 8px var(--gutter) 28px;
        overflow-y: auto;
        background: rgba(0, 0, 0, 0.94);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
    }

    .nav-links.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid var(--line-night);
        font-size: 16px;
    }
}

@media (max-width: 720px) {
    body.company-site {
        font-size: 16.5px;
    }

    .hero-tiles {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .hero-tile {
        flex: 0 0 64%;
        scroll-snap-align: start;
    }

    .spec-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .spec:nth-child(odd) {
        padding-right: 0;
        border-right: 0;
    }

    .spec:nth-child(even) {
        padding-left: 0;
    }

    .contact-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .pain-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .pain:nth-child(odd) {
        padding-right: 0;
        border-right: 0;
    }

    .pain:nth-child(even) {
        padding-left: 0;
    }

    .footer-meta {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .button {
        width: 100%;
    }

    .hero-actions {
        gap: 12px;
    }
}
