/* =========================================================
   吉道天成 · 设计公司作品展示站 — 核心样式
   说明：通过下方 :root 变量即可统一修改品牌色 / 字体 / 间距
   ========================================================= */
:root {
  --bg: #f7f6f3;
  --bg-soft: #efece6;
  --ink: #14110f;
  --ink-soft: #5c564f;
  --line: #e2ddd4;
  --accent: #ff4b2b;        /* 主品牌色 —— 改这里换全站主色 */
  --accent-ink: #ffffff;
  --dark: #14110f;          /* 深色区块背景 */
  --dark-soft: #1f1b17;
  --radius: 14px;
  --maxw: 1200px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --shadow: 0 18px 40px -20px rgba(20, 17, 15, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 排版 ---------- */
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
.display { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 56ch; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  transition: transform .25s var(--ease), background .25s, color .25s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--ink-soft); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 80% -10%, rgba(255,75,43,.35), transparent 60%),
              radial-gradient(700px 500px at 10% 110%, rgba(75,19,79,.4), transparent 60%);
}
.hero .container { position: relative; padding: 120px 24px 130px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: #c9c3bb; margin-top: 26px; }
.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero .btn-ghost:hover { border-color: #fff; }
.hero-stats { display: flex; gap: 56px; margin-top: 76px; flex-wrap: wrap; }
.hero-stats .num { font-size: 2.6rem; font-weight: 800; }
.hero-stats .lbl { color: #b8b2aa; font-size: .9rem; letter-spacing: .04em; }

/* ---------- 通用区块 ---------- */
section { padding: 110px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head .lead { margin-top: 0; }

/* ---------- 服务/能力 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico { width: 52px; height: 52px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 22px; }
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- 作品网格 ---------- */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.filters button {
  border: 1.5px solid var(--line); background: transparent; color: var(--ink-soft);
  padding: 9px 20px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: .2s; font-size: .92rem;
}
.filters button:hover { color: var(--ink); }
.filters button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-item { display: none; }
.work-item.show { display: block; animation: fade .5s var(--ease); }
.work-card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  aspect-ratio: 3 / 2; background: var(--bg-soft);
}
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-card:hover img { transform: scale(1.06); }
.work-card .meta {
  position: absolute; inset: auto 0 0 0; padding: 24px; color: #fff;
  background: linear-gradient(transparent, rgba(15,12,10,.82));
  transform: translateY(8px); opacity: .92; transition: .35s var(--ease);
}
.work-card:hover .meta { transform: translateY(0); opacity: 1; }
.work-card .meta .tag { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.work-card .meta h3 { font-size: 1.3rem; margin-top: 6px; }

/* ---------- 关于/流程 ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.feature-list li:last-child { border-bottom: none; }
.feature-list .step { font-weight: 800; color: var(--accent); font-size: 1.1rem; min-width: 34px; }
.feature-list h4 { font-size: 1.05rem; margin-bottom: 2px; }
.feature-list p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- 团队 ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.member { text-align: center; }
.member img { width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 18px; object-fit: cover; box-shadow: var(--shadow); }
.member h4 { font-size: 1.1rem; }
.member span { color: var(--ink-soft); font-size: .9rem; }

/* ---------- 评价 ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px;
}
.quote p { font-size: 1.1rem; line-height: 1.7; }
.quote .who { margin-top: 22px; display: flex; align-items: center; gap: 14px; }
.quote .who img { width: 48px; height: 48px; border-radius: 50%; }
.quote .who b { font-size: .98rem; }
.quote .who span { color: var(--ink-soft); font-size: .85rem; display: block; }

/* ---------- CTA ---------- */
.cta { background: var(--dark); color: #fff; text-align: center; }
.cta h2 { color: #fff; max-width: 18ch; margin: 0 auto 18px; }
.cta .lead { color: #c9c3bb; margin: 0 auto 36px; }

/* ---------- 表单 ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 140px; }
.info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item .k { font-weight: 700; min-width: 70px; }
.info-item .v { color: var(--ink-soft); }

/* ---------- 页脚 ---------- */
.footer { background: var(--dark); color: #b8b2aa; padding: 70px 0 40px; }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { color: #fff; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { color: #b8b2aa; display: block; padding: 6px 0; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .bottom { margin-top: 50px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* ---------- 动画 ---------- */
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid-3, .work-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .quote-grid { grid-template-columns: 1fr; }
  .footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 80px 0; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; background: var(--bg); flex-direction: column;
    gap: 0; padding: 16px 24px 28px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s var(--ease); align-items: stretch;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .work-grid, .team-grid, .footer .top { grid-template-columns: 1fr; }
  .hero-stats { gap: 32px; }
}
