/* ===============================
   Fonts · Noto Sans SC（思源黑体）
================================ */
@font-face{
  font-family: "Noto Sans SC";
  src: url("../fonts/NotoSansSC-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Noto Sans SC";
  src: url("../fonts/NotoSansSC-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Noto Sans SC";
  src: url("../fonts/NotoSansSC-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Noto Sans SC";
  src: url("../fonts/NotoSansSC-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===============================
   Base / Variables
================================ */
:root{
  --bg: #ffffff;
  --text: #0f172a;
  --muted: rgba(15,23,42,.65);

  --border: rgba(15,23,42,.12);
  --border-strong: rgba(15,23,42,.18);

  /* 统一灰色体系（偏蓝） */
  --tint:  #eef2f7;
  --tint2: #eef2f7;

  --accent: #3db036;

  /* 你原文件里用到了但没定义 */
  --radius: 0px;
  --radius-sm: 0px;
  --accent: #3db036;          /* 品牌主绿（logo） */
  --accent-soft: rgba(61,176,54,.12); /* 绿的弱化态 */
}

/* ===============================
   Reset / Base
================================ */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family:
    "Noto Sans SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;

  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

/* ===============================
   Layout
================================ */
.container{
  max-width: 1250px;   /* 原来 1160 → 明显更接近 Ember */
  margin: 0 auto;
  padding: 0 24px;     /* 原来 20 → 稍微更松 */
}

.grid-2{
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap: 22px;
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

@media (max-width: 860px){
  .grid-2, .grid-3{ grid-template-columns: 1fr; }
}

/* ===============================
   Header / Nav
================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(8px);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height: 64px;
  position: relative;
}

.brand-logo{ height: 36px; }

/* Center nav */
.nav-links{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap: 28px;
}

.nav-links a{
  position: relative;
  font-size: 15px;
  color: var(--muted);
  padding: 6px 0;
}

.nav-links a.is-active{ color: var(--text); }
.nav-links a.is-active::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-6px;
  height:2px;
  background: var(--text);
  border-radius:2px;
}

/* Right actions */
.nav-actions{ display:flex; gap: 10px; }

.menu-btn{
  display:none;
  background:none;
  border:none;
  font-size:14px;
}

@media (max-width: 860px){
  .nav-links{ display:none; }
  .menu-btn{ display:inline-flex; }
}

/* ===============================
   Header Inner Fix（关键修复）
================================ */
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height: 64px;
  position: relative;
}

/* ===============================
   Buttons
================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  border:1px solid var(--border);
  cursor:pointer;
}

.btn.primary{
  background: var(--text);
  color:#fff;
  border-color: var(--text);
}

.btn.ghost{
  background: rgba(255,255,255,.72);
}

/* ===============================
   Hero
================================ */
.hero{ position:relative; overflow:hidden; }

.hero-bg{ position:absolute; inset:0; }
.hero-slide{ position:absolute; inset:0; background-size:cover; background-position:center; }

.hero-inner{
  position:relative;
  padding: 120px 0 96px;
}
/* ===============================
   Hero slideshow (scale + fade)
================================ */

/* 背景层：不要影响文字点击 */
.hero-bg{
  pointer-events: none;
}

/* 所有 slide 默认隐藏 */
.hero-slide{
  opacity: 0;
  transform: scale(1);
  transition:
    opacity 900ms ease,
    transform 1400ms ease;
  will-change: opacity, transform;
}

/* 当前显示的那张：原地清晰出现 */
.hero-slide.is-active{
  opacity: 1;
  transform: scale(1);
}

/* 正在退场的那张：放大 + 渐隐 */
.hero-slide.is-leaving{
  opacity: 0;
  transform: scale(1.08);
}

/* 如果用户系统偏好“减少动效”，就禁用过渡 */
@media (prefers-reduced-motion: reduce){
  .hero-slide{
    transition: none !important;
    transform: none !important;
  }
}

.hero-title{
  font-size: 56px;
  line-height: 1.12;
  font-weight: 600;        /* 不要 800，600 更像 Ember 的克制 */
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero-subtitle{
  font-size: 18px;
  max-width: 720px;
  color: var(--muted);
}

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

@media (max-width:860px){
  .hero-inner{ padding: 88px 0 64px; }
  .hero-title{ font-size: 38px; }
}

/* ===============================
   Weak Hero（内页使用）
================================ */

.hero-weak{
  position: relative;
  height: 168px;   /* 原来 180px */
  overflow: hidden;
}

.hero-weak .hero-bg{
  position:absolute;
  inset:0;
}

.hero-weak .hero-slide{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) contrast(0.95);
}

.hero-weak .hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,.100) 0%,
      rgba(255,255,255,.56) 52%,
      rgba(255,255,255,1) 100%
    );
}

.hero-inner-weak{
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding-top: 80px;
  padding-bottom: 12px;

  /* ✅ 关键：轻微托底，防止极端图片下不清晰 */
  background: rgba(255,255,255,.0);
}

/* ✅ 让弱 Hero 的标题看起来和原来的 section-title 一致 */
.hero-title-weak{
  font-size: 42px;        /* 和 .section-title 一样 */
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 22px;       /* 和 .section-title 的节奏一致 */
}

/* 弱 Hero 的副标题也对齐 lead 的观感（更像你原来的风格） */
.hero-subtitle-weak{
  max-width: 820px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

/* Hero 后面的第一个 section，收紧上边距 */
.hero-weak + .section{
  padding-top: 56px;   /* 原本是 96px */
}

/* 移动端也对齐 section-title 的缩放 */
@media (max-width:860px){
  .hero-title-weak{ font-size: 34px; margin-bottom: 18px; }
  .hero-subtitle-weak{ font-size: 16px; }
}

@media (max-width:860px){
  .hero-weak{ height: 140px; }


  .hero-subtitle-weak{
    font-size: 14px;
  }
}

/* ===============================
   Section · Vertical rhythm（重点：更像 Ember）
================================ */

/* A：区块与区块之间“章节感”更强 */
.section{
  padding: 96px 0;                 /* 原来 72：明显变松 */
  border-top: none;
}

/* 只在 section 与 section 之间加极淡分隔线 */
.section + .section{
  border-top: 1px solid rgba(15,23,42,.06);
}

/* 灰底区块 */
.section.tint{ background: var(--tint); }

/* 你要求：取消所有区块小文案 */
.kicker{ display:none !important; }

/* 区块主标题 */
.section-title{
  font-size: 42px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 22px;                 /* 标题→副标题间距更大 */
}

/* 区块副标题/引言 */
.lead{
  max-width: 820px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 42px;                 /* 副标题→内容间距更大（Ember感） */
}

/* 兜底：如果你某些区块没用 .lead，而是 section-title 后直接写 p */
.section-title + p{
  max-width: 820px;
  color: var(--muted);
  margin: 0 0 42px;
  line-height: 1.75;
}

@media (max-width:860px){
  .section{ padding: 72px 0; }      /* 手机收一点，避免太空 */
  .section-title{ font-size: 34px; margin-bottom: 18px; }
  .lead, .section-title + p{ margin-bottom: 32px; }
}

/* ===============================
   Card（参考站信息块风格）
================================ */
.card{
  background: #ffffff;   /* ← 核心修改：卡片统一白色 */
  border: 1px solid rgba(15,23,42,.06); /* 可选：极淡边界，增强层级 */
  border-radius: 0;
  box-shadow: none;
  padding: 28px 32px 36px 32px;
}

/* =========================================
   Card color system: 白底灰卡 / 灰底白卡
   ========================================= */

/* 1) 默认：白色区块上用灰色卡片 */
.card{
  background: var(--tint2);          /* 灰卡 */
  border: none;
  box-shadow: none;
}

/* 2) 灰底区块（.section.tint）内部：卡片变白色 */
.section.tint .card{
  background: #ffffff;               /* 白卡 */
  border: 1px solid rgba(15,23,42,.06); /* 可选：淡边界增强层级 */
}

.card:hover{ transform: translateY(-1px); }

.card h3{
  font-size: 26px;
  line-height: 1.18;      /* 原 1.28 → 更稳、更像 Ember */
  font-weight: 600;
  letter-spacing: -0.01em;

  margin: 2px 0 12px;     /* 原 4px 0 14px → 标题更“贴上去”，正文更早开始 */
  color: var(--text);
}

.card p{
  font-size: 15px;
  line-height: 1.9;
  color: rgba(15,23,42,.72);
  margin: 0;
}

/* icon-badge（左上角小图标） */
.icon-badge{
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: none;
  color: var(--accent);
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 0 8px; /* 原来 18，略微上提 */
  font-size: 22px;
}

/* icon-badge 内的 PNG 图标：大小/位置不变 */
.icon-badge .icon-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Case accent（如果你还用得到） */
.card.accent-top{
  border-top: 3px solid rgba(61,176,54,.55);
  /* 或者更工程化一点 */
  /* border-top: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); */
}

/* ===============================
   Text link（纯文本链接）
================================ */
.text-link{
  display: inline-block;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: transform .12s ease, color .12s ease;
}

.text-link:hover{
  transform: translateY(-1px);
  color: var(--text);
}

/* ===============================
   Footer
================================ */
/* ===============================
   Footer · Ember-style
================================ */

.site-footer{
  background: #ffffff;   /* ← 关键改动 */
  border-top: 1px solid rgba(15,23,42,.06);
  padding: 28px 0;              /* 关键：增加高度 */
}

.footer-inner{
  display:flex;
  align-items:center;           /* 垂直居中 */
  justify-content:space-between;
  font-size: 13px;              /* 比正文小一档 */
  color: rgba(15,23,42,.55);    /* 更克制 */
}

.footer-tagline{
  letter-spacing: .04em;
}

/* aliases: keep html as-is */
.header-cta{ display:flex; gap:10px; }
.menu-toggle{
  display:none;
  background:none;
  border:1px solid var(--border);
  height:40px;
  padding:0 10px;
  cursor:pointer;
}
@media (max-width: 860px){
  .header-cta{ display:none; }
  .menu-toggle{ display:inline-flex; align-items:center; justify-content:center; }
}

.projects-grid .card{
  padding: 34px 34px 52px 34px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.projects-grid{
  gap: 28px;
}

/* Projects 卡片：三行结构（meta + 查看详情） */
.project-card{
  display:flex;
  flex-direction:column;
}

/* 第二行：亮点/状态 */
.project-card .meta{
  font-size: 15px;
  line-height: 1.9;
  color: rgba(15,23,42,.72);
  margin: 0;
}

/* 分隔点（更细一点） */
.project-card .dot{
  margin: 0 8px;
  opacity: .5;
}

/* 第三行：查看详情（贴底） */
.project-card .more{
  margin-top: auto;       /* 关键：把“查看详情”推到卡片底部 */
  padding-top: 14px;
  font-size: 14px;
  color: rgba(15,23,42,.60);
  transition: transform .12s ease, color .12s ease;
}

/* Process 页：卡片更高（但不走 project-card 的三行结构） */
.process-grid .card{
  padding: 34px 34px 52px 34px;
  min-height: 190px;
}
.process-grid{
  gap: 28px;
}

/* CTA 区块：统一视觉高度 */
.section.cta{
  padding: 56px 0;
  min-height: 360px;     /* 关键 */
  display: flex;
  align-items: center;  /* 内容在纵向居中，更高级 */
}

.section.cta > .container{
  width: 100%;
}

/* About · 关于我们：卡片高度对齐流程页 */
#about-intro .card{
  padding: 32px 32px 36px;
  min-height: 200px;   /* 两个卡片内容通常更“概念”，可以略高 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* About · 我们强调什么：白色卡片，用于和灰底区分 */
#emphasis .card{
  background: #ffffff;
  padding: 32px 32px 36px;   /* ↑ 增加上下留白 */
  min-height: 180px;        /* ↑ 关键：撑高卡片 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* 让流程卡片可点击但不变样式 */
.step-card{
  display: block;
  color: inherit;
}

.step-card:hover{
  transform: translateY(-1px);
}

/* 可选：给可点击卡片一个更明确的 hover 提示 */
.step-card h3{
  transition: opacity .12s ease;
}
.step-card:hover h3{
  opacity: .92;
}

/* ===============================
   Project · 返回流程链接
================================ */

.section-header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.back-to-process{
  font-size: 13px;
  color: rgba(15,23,42,.45);
  text-decoration: none;
  white-space: nowrap;
  transition: color .12s ease, transform .12s ease;
}

.back-to-process:hover{
  color: rgba(15,23,42,.8);
  transform: translateX(-2px);
}

/* ===============================
   Lite Hero (for inner pages)
================================ */

.hero-lite{
  position: relative;
  overflow: hidden;
  border-top: none;
  padding: 56px 0 44px;           /* 比首页 hero 短很多 */
}

.hero-lite::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.92), rgba(255,255,255,.78)),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  z-index: 0;
}

/* 让内容在背景之上 */
.hero-lite .container{
  position: relative;
  z-index: 1;
}

/* 标题比 section-title 略小一点，更“弱化” */
.hero-lite .hero-lite-title{
  font-size: 38px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.hero-lite .hero-lite-subtitle{
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

/* 移动端更紧凑 */
@media (max-width: 860px){
  .hero-lite{ padding: 40px 0 30px; }
  .hero-lite .hero-lite-title{ font-size: 30px; }
}

/* =========================================
   Mobile First · Phone optimization
   ========================================= */
@media (max-width: 480px){

  /* ---------- Container ---------- */
  .container{
    padding: 0 18px;   /* 手机端不要 24，会显得挤 */
  }

  /* ---------- Hero ---------- */
  .hero-inner{
    padding: 64px 0 48px;
  }

  .hero-title{
    font-size: 30px;
    line-height: 1.2;
  }

  .hero-subtitle{
    font-size: 15px;
    line-height: 1.7;
  }

  /* ---------- Weak / Lite Hero ---------- */
  .hero-weak{
    height: 120px;
  }

  .hero-title-weak{
    font-size: 28px;
    margin-bottom: 14px;
  }

  .hero-lite{
    padding: 32px 0 24px;
  }

  .hero-lite .hero-lite-title{
    font-size: 26px;
  }

  /* ---------- Section ---------- */
  .section{
    padding: 56px 0;
  }

  .section-title{
    font-size: 28px;
  }

  .lead,
  .section-title + p{
    font-size: 15px;
    margin-bottom: 28px;
  }

  /* ---------- Card ---------- */
  .card{
    padding: 22px 20px 26px;
  }

  .card h3{
    font-size: 22px;
  }

  .card p{
    font-size: 14px;
    line-height: 1.8;
  }

  /* ---------- Projects / Process ---------- */
  .projects-grid .card,
  .process-grid .card{
    min-height: auto;
    padding: 24px 22px 28px;
  }

  /* ---------- Footer ---------- */
  .footer-inner{
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* =========================================
   Hero alignment fix（首页首图与导航对齐）
   放在所有 @media 外面（不要嵌套）
   ========================================= */
.hero > .container.hero-inner{
  padding-left: 24px;
  padding-right: 24px;
}

/* 手机端对齐 mobile container */
@media (max-width: 480px){
  .hero > .container.hero-inner{
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 860px){
  .site-header .nav-actions{
    display: none !important;
  }
}

/* =========================================
   Mobile only: menu button as text (no box)
   ========================================= */
@media (max-width: 860px){

  .menu-btn{
    background: none;
    border: none;
    padding: 6px 0;

    font-size: 15px;      /* 接近导航文字 */
    font-weight: 500;
    color: var(--text);
    letter-spacing: .02em;

    cursor: pointer;
  }

  .menu-btn:hover{
    opacity: .7;
  }
}