/* ===== YMD Creative 共享样式（二级页面） ===== */
:root {
  --ink: #1a1a1a;
  --ink-soft: #555;
  --ink-mute: #8a8a8a;
  --line: #e5e2dc;
  --paper: #ffffff;
  --paper-warm: #f7f6f2;
  --dark: #232323;
  --accent: #d4380d;
  --serif: "Microsoft YaHei", "PingFang SC", "Source Han Serif SC", "Noto Serif SC", "Songti SC", SimSun, serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: none; margin: 0; padding: 0 100px; }

/* ===== Header ===== */
header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; min-width: 0; }
.logo img { height: 60px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; display: block; }
.menu { margin-left: auto; display: flex; gap: 38px; font-size: 18px; }
.menu a { color: var(--ink-soft); transition: color .2s; }
.menu a:hover, .menu a.active { color: var(--ink); }
header .wrap { max-width: none; padding-left: 60px; padding-right: 60px; }
.brand-link { margin-left: 100px; font-weight: 700; font-size: 18px; letter-spacing: 1px; }
/* 汉堡按钮（窄屏显示） */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 9px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.btn-consult {
  border: 1px solid var(--ink); background: transparent; padding: 10px 22px;
  font-size: 14px; cursor: pointer; transition: all .2s; font-family: var(--sans);
}
.btn-consult:hover { background: var(--ink); color: #fff; }

/* ===== 通用按钮 ===== */
.btn {
  display: inline-block; padding: 13px 30px; font-size: 14px; cursor: pointer;
  border: 1px solid transparent; transition: all .2s; font-family: var(--sans);
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #111; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: #6a6a6a; }
.btn-ghost-light:hover { border-color: #fff; }

/* ===== 通用区块 ===== */
section { padding: 60px 0; }
.kicker { font-size: 12px; letter-spacing: 1px; color: var(--ink-mute); margin-bottom: 14px; }
.kicker b { color: var(--accent); font-weight: 400; margin-right: 6px; }
h2.title { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: 1px; }
.sub { color: var(--ink-soft); font-size: 15px; margin: 16px 0 0; }

/* ===== 内页头部 ===== */
.page-hero { background: var(--dark); color: #fff; padding: 80px 0; }
.page-hero .breadcrumb { font-size: 13px; color: #9a9a9a; margin-bottom: 22px; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-family: var(--serif); font-size: 46px; line-height: 1.3; font-weight: 700; letter-spacing: 2px; }
.page-hero p { color: #b9b9b9; font-size: 15px; margin-top: 20px; max-width: 560px; }

/* ===== 筛选 ===== */
.filters { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.filter-btn {
  padding: 9px 22px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; cursor: pointer; color: var(--ink-soft); transition: all .2s; font-family: var(--sans);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===== 案例网格 ===== */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.work-card { background: #fff; border: 1px solid var(--line); transition: all .25s; cursor: pointer; }
.work-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.work-thumb {
  aspect-ratio: 16 / 10; background: #ececea; display: flex; align-items: center;
  justify-content: center; color: #b5b5b0; font-size: 15px; letter-spacing: 2px;
  position: relative; overflow: hidden;
}
.work-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .6s;
}
.work-card:hover .work-thumb::after { transform: translateX(100%); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-info { padding: 18px 20px 22px; }
.work-cat { font-size: 12px; color: var(--accent); margin-bottom: 6px; }
.work-info h3 { font-size: 16px; font-weight: 600; }
.work-info .client { display: none; }
.work-card.hidden { display: none; }

/* ===== CTA ===== */
.cta { background: var(--dark); color: #fff; text-align: center; padding: 100px 0; }
.cta h2 { font-family: var(--serif); font-size: 34px; letter-spacing: 2px; margin-bottom: 18px; }
.cta p { color: #b0b0b0; font-size: 15px; margin-bottom: 40px; }
.cta .hero-btns { display: flex; gap: 16px; justify-content: center; }

/* ===== Footer ===== */
footer { background: #1a1a1a; color: #9a9a9a; font-size: clamp(11px, 0.73vw, 14px); }
.foot-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: clamp(20px, 2.08vw, 40px); padding: clamp(24px, 3.13vw, 60px) clamp(24px, 5.21vw, 100px) clamp(18px, 2.34vw, 45px); }
.foot-main h4 { color: #fff; font-size: clamp(12px, 0.78vw, 15px); margin-bottom: clamp(10px, 1.04vw, 20px); font-weight: 600; }
.foot-main li { margin-bottom: clamp(6px, 0.63vw, 12px); }
.foot-main a:hover { color: #fff; }
.foot-brand { display: flex; gap: clamp(24px, 4.17vw, 80px); align-items: flex-start; }
.foot-brand h4 { font-size: clamp(13px, 0.94vw, 18px); margin-left: clamp(12px, 2.6vw, 50px); }
.foot-brand .slogan { font-size: clamp(11px, 0.78vw, 15px); line-height: 1.9; margin-left: clamp(12px, 2.6vw, 50px); }
.foot-brand-text .slogan { margin-top: 0; margin-bottom: 0; }
.foot-qr { text-align: center; margin-top: 5px; margin-left: clamp(12px, 2.6vw, 50px); }
.qr-box { width: clamp(72px, 7.81vw, 150px); height: clamp(72px, 7.81vw, 150px); background-color: #fff; display: flex; align-items: center; justify-content: center; color: #888; font-size: clamp(8px, 0.63vw, 12px); flex-shrink: 0; }
.qr-cap { display: block; margin-top: clamp(4px, 0.42vw, 8px); font-size: clamp(9px, 0.68vw, 13px); color: #cfcfcf; }
.foot-bottom { border-top: 1px solid #2e2e2e; padding: clamp(12px, 1.25vw, 24px) clamp(24px, 5.21vw, 100px); display: flex; justify-content: space-between; font-size: clamp(9px, 0.63vw, 12px); color: #6e6e6e; }

/* ===== 关于我们 ===== */
.about-story { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
/* 故事区两图：位于文字下方，3:2 横图并排 */
.team-grid-2 .team-card .avatar { height: auto; aspect-ratio: 3 / 2; }
.about-story .lead { font-family: var(--serif); font-size: 22px; line-height: 1.8; margin-bottom: 20px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.value-card { border: 1px solid var(--line); padding: 30px 26px; }
.value-card .v-num { font-family: Georgia, serif; color: var(--accent); font-size: 15px; }
.value-card h3 { font-size: 18px; margin: 12px 0 10px; }
.value-card p { font-size: 14px; color: var(--ink-soft); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.team-grid-2 { grid-template-columns: 1fr 1fr; margin-top: 0; }
.team-card .avatar { height: 240px; background-color: #ececea; display: flex; align-items: center; justify-content: center; color: #b5b5b0; font-size: 14px; letter-spacing: 1px; }
/* 团队成员头像用竖图（3:4）；并排两图区（team-grid-2）保持横图 */
.team-grid:not(.team-grid-2) .team-card .avatar { height: auto; aspect-ratio: 3 / 4; }
.team-card h3 { font-size: 16px; margin: 16px 0 4px; }
.team-card span { font-size: 13px; color: var(--ink-mute); }

/* ===== 案例详情 ===== */
.detail-cover { height: 440px; background: #ececea; display: flex; align-items: center; justify-content: center; color: #b5b5b0; letter-spacing: 2px; }
.detail-body { display: grid; grid-template-columns: 320px 1fr; gap: 60px; margin-top: 0; align-items: start; }
.detail-body h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 14px; }
.detail-body h2 + p, .detail-body p + h2 { margin-top: 0; }
.detail-main h2:not(:first-child) { margin-top: 40px; }
.detail-body p { color: var(--ink-soft); font-size: 15px; margin-bottom: 16px; }
.detail-gallery { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 60px; }
.detail-gallery .shot { background: #ececea; display: flex; align-items: center; justify-content: center; color: #b5b5b0; font-size: 14px; letter-spacing: 1px; overflow: hidden; }
.detail-gallery .shot img { width: 100%; height: auto; display: block; }
.meta-box { background: var(--paper-warm); border: 1px solid var(--line); padding: 28px 26px; align-self: start; }
.meta-box h4 { font-size: 15px; margin-bottom: 18px; }
.meta-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.meta-row span:first-child { color: var(--ink-mute); }
.detail-nav { display: flex; justify-content: space-between; margin-top: 50px; border-top: 1px solid var(--line); padding: 34px 50px 0; }
.detail-nav .dn-btn { width: 200px; text-align: center; padding: 13px 0; font-size: 14px; letter-spacing: 1px; border: 1px solid var(--ink); transition: all .2s; }
.detail-nav .dn-btn:hover { background: var(--ink); color: #fff; }
.detail-nav .dn-all { background: var(--ink); color: #fff; }
.detail-nav .dn-all:hover { background: #000; }

/* ===== 设计观点列表 ===== */
.ins-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 1.67vw, 32px); margin-top: 44px; transform: translateY(-20px); }
.ins-card { background: #fff; border: 1px solid var(--line); min-height: clamp(200px, 16.67vw, 320px); transition: all .25s; cursor: pointer; display: flex; overflow: hidden; }
.ins-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.ins-thumb { flex: 0 0 50%; width: 50%; background-color: #ececea; display: flex; align-items: center; justify-content: center; color: var(--ink-mute); font-size: clamp(9px, 0.63vw, 12px); }
.ins-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ins-body { flex: 1; padding: clamp(14px, 1.35vw, 26px) clamp(16px, 1.46vw, 28px); }
.ins-meta { font-size: clamp(10px, 0.63vw, 12px); margin-bottom: clamp(8px, 0.73vw, 14px); }
.ins-meta b { color: var(--accent); font-weight: 400; }
.ins-meta span { color: var(--ink-mute); margin-left: 10px; }
.ins-card h3 { font-size: clamp(13px, 0.94vw, 18px); margin-bottom: clamp(7px, 0.63vw, 12px); }
.ins-card p { font-size: clamp(11px, 0.73vw, 14px); color: var(--ink-soft); }

/* ===== 联系表单 ===== */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; margin-top: 20px; }
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-size: 14px; margin-bottom: 8px; color: var(--ink-soft); }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-family: var(--sans); color: var(--ink); outline: none; transition: border-color .2s;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--ink); }
.form-row textarea { resize: vertical; min-height: 130px; }
.contact-info h3 { font-size: 18px; margin-bottom: 18px; }
.contact-info .ci-row { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.contact-info .ci-row span { color: var(--ink-mute); display: inline-block; width: 64px; }
.map-box { height: 200px; background: #ececea; display: flex; align-items: center; justify-content: center; color: #b5b5b0; letter-spacing: 1px; margin-top: 24px; }

/* ===== 响应式 ===== */
/* 导航在 ≤1024px 收起为汉堡（早于布局断点，确保平板/预览宽度也能用） */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; margin-left: auto; flex-shrink: 0; }
  .brand-link { display: none; }
  .logo img { height: 44px; max-width: calc(100% - 60px); }
  .menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 24px 16px; font-size: 17px; }
  .menu.nav-open { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu a:last-child { border-bottom: none; }
}
@media (max-width: 960px) {
  .nav-toggle { display: flex; margin-left: auto; }
  .brand-link { display: none; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 24px 16px; font-size: 17px; }
  .menu.nav-open { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu a:last-child { border-bottom: none; }
  .page-hero h1 { font-size: 34px; }
  .works-grid, .ins-grid, .values, .team-grid { grid-template-columns: 1fr 1fr; }
  .about-story, .detail-body, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-main { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
/* ===== 平板 ===== */
@media (max-width: 768px) {
  .wrap { padding: 0 24px; }
  header .wrap { padding-left: 24px; padding-right: 24px; }
  .menu { padding: 6px 24px 16px; }
  .page-hero h1 { font-size: 32px; }
}
/* ===== 手机 ===== */
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  header .wrap { padding-left: 18px; padding-right: 18px; }
  .menu { padding: 6px 18px 14px; }
  section { padding: 44px 0; }
  .page-hero { padding: 56px 0; }
  .page-hero h1 { font-size: 25px; letter-spacing: 1px; }
  .page-hero p { font-size: 14px; }
  h2.title { font-size: 24px; }
  .sub { font-size: 14px; }
  .cta { padding: 60px 0; }
  .cta h2 { font-size: 24px; }
  .cta p { font-size: 14px; }
  .cta .wrap { padding-left: 20px; padding-right: 20px; }
  .cta .hero-btns { flex-direction: column; align-items: center; }
  .cta .hero-btns .btn { width: 100%; max-width: 300px; text-align: center; }
  .works-grid, .ins-grid, .values, .team-grid, .detail-gallery { grid-template-columns: 1fr; }
  /* 页脚手机端：参考站布局，左对齐单列堆叠 */
  .foot-main { display: flex; flex-direction: column; gap: 28px; padding: 44px 18px 32px; }
  .foot-brand { display: contents; }
  .foot-brand-text { order: 1; }
  .foot-main > div:nth-of-type(4) { order: 2; }
  .foot-qr { order: 3; text-align: left; margin: 2px 0 0; }
  .foot-main > div:nth-of-type(2) { order: 4; }
  .foot-main > div:nth-of-type(3) { order: 5; }
  .foot-brand-text h4 { font-size: 16px; margin-bottom: 0; margin-left: 0; }
  .foot-brand-text .slogan { margin: 0; font-size: 13px; }
  .qr-box { width: 110px; height: 110px; }
  .qr-cap { margin-top: 8px; }
  .foot-main h4 { font-size: 14px; margin-bottom: 12px; }
  .foot-brand h4 { font-size: 16px; }
  .foot-main li { margin-bottom: 10px; }
  .btn-ghost-light { border-color: rgba(255,255,255,.65); }
  .btn-ghost-light:hover { border-color: #fff; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 20px 18px; font-size: 11px; }
  .detail-cover { height: 220px; }
  .detail-body { gap: 30px; }
  .detail-nav { justify-content: center; gap: 10px; padding: 26px 0 0; }
  .detail-nav .dn-btn { width: auto; flex: 1; max-width: none; padding: 11px 0; font-size: 13px; }
  .form-row input, .form-row textarea { font-size: 16px; }
}

/* 返回顶部悬浮按钮 */
.to-top {
  position: fixed;
  right: 45px;
  bottom: 60px;
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  background: #999999;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s;
  z-index: 999;
}
.to-top svg { display: block; width: 35px; height: 35px; }
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  background: #808080;
  transform: translateY(-3px);
}
.to-top:active { transform: translateY(0); }
@media (max-width: 600px) {
  .to-top {
    right: 18px;
    bottom: 22px;
    width: 42px;
    height: 42px;
  }
  .to-top svg { width: 28px; height: 28px; }
}

/* ===== 统一图片占位（用图标占位，不显示文字） ===== */
/* 填了真实图片路径时，图片铺满占位框；加载失败则露出底层占位图标 */
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-box img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 5px; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* 通用图片占位：灰底 + 图片图标 */
.img-ph {
  background-color: #ececea;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 34%;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23b5b5b0%27%20stroke-width%3D%271.5%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%274%27%20width%3D%2718%27%20height%3D%2716%27%20rx%3D%272%27%2F%3E%3Ccircle%20cx%3D%278.5%27%20cy%3D%279.5%27%20r%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M21%2016l-5-5L7%2020%27%2F%3E%3C%2Fsvg%3E");
}
/* 二维码占位：白底 + 二维码图标 */
.qr-ph {
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 72%;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23cfcfcf%27%20stroke-width%3D%271.4%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%273%27%20width%3D%277%27%20height%3D%277%27%20rx%3D%271%27%2F%3E%3Crect%20x%3D%2714%27%20y%3D%273%27%20width%3D%277%27%20height%3D%277%27%20rx%3D%271%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%2714%27%20width%3D%277%27%20height%3D%277%27%20rx%3D%271%27%2F%3E%3Cpath%20d%3D%27M14%2014h3v3M21%2014v7M14%2021h7%27%2F%3E%3C%2Fsvg%3E");
}
/* 合作伙伴 logo 占位（原站无独立样式，此处补布局 + 占位图标） */
.clients-row { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; margin-top: 22px; }
.logo-box {
  aspect-ratio: 4 / 2;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #f4f4f2;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 38%;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23b5b5b0%27%20stroke-width%3D%271.5%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%274%27%20width%3D%2718%27%20height%3D%2716%27%20rx%3D%272%27%2F%3E%3Ccircle%20cx%3D%278.5%27%20cy%3D%279.5%27%20r%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M21%2016l-5-5L7%2020%27%2F%3E%3C%2Fsvg%3E");
}
@media (max-width: 768px) {
  .clients-row { grid-template-columns: repeat(3, 1fr); }
}
