/* ==========================================================================
   gandehao.cn 响应式网站开发页专属样式 · xiangying-shi.css
   依赖：global.css
   独有签名：居中白卡 Hero（卡内左文下图）+ 三端设备框（纯 CSS 模拟）
   ========================================================================== */

/* ---------- Hero：居中白卡 ---------- */
.xy-hero {
  padding: clamp(90px, 11vw, 140px) 0 clamp(80px, 10vw, 120px);
}
.xy-hero-card {
  position: relative;
  background: var(--c-white); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); border: 1px solid var(--c-line);
  padding: clamp(34px, 5vw, 56px);
  max-width: 860px; margin: 0 auto; text-align: center;
}
.xy-hero-card h1 { font-size: clamp(26px, 3.8vw, 44px); line-height: 1.42; margin: 16px 0 18px; }
.xy-hero-card > p { color: var(--c-muted); font-size: 16px; line-height: 1.95; max-width: 640px; margin: 0 auto; }
.xy-hero-cta { margin: 28px 0 36px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.xy-hero-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); }
.xy-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 三端设备框（签名布局，纯 CSS） ---------- */
.device-card { text-align: center; padding: 30px 20px 26px; }
.device-frame {
  margin: 0 auto 22px; background: var(--c-white); border: 2px solid var(--c-line);
  border-radius: var(--r-md); box-shadow: var(--sh-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.device-card:hover .device-frame { transform: translateY(-6px) scale(1.02); box-shadow: var(--sh-md); }
.is-phone { width: 110px; height: 180px; border-radius: 20px; }
.is-tablet { width: 170px; height: 130px; border-radius: 12px; }
.is-desktop { width: 240px; height: 150px; }
.screen-line { display: block; height: 6px; border-radius: 3px; background: var(--c-green-soft); width: 60%; }
.screen-line.w60 { width: 45%; background: var(--c-blue-soft); }
.screen-line.w80 { width: 70%; background: var(--c-line); }
.device-card h3 { font-size: 18px; margin-bottom: 8px; }
.device-card p { font-size: 14px; color: var(--c-muted); line-height: 1.85; max-width: 260px; margin: 0 auto; }

/* ---------- 为什么刚需清单 ---------- */
.xy-list { list-style: none; display: grid; gap: 12px; margin: 22px 0 26px; }
.xy-list li {
  padding: 13px 18px; background: var(--c-white); border-radius: var(--r-md);
  box-shadow: var(--sh-sm); border-left: 4px solid var(--c-green);
  font-size: 14.5px; line-height: 1.8;
}

/* ---------- 适配表 ---------- */
.compare-table-wrap { max-width: 920px; margin: 0 auto; box-shadow: var(--sh-sm); border-radius: var(--r-lg); overflow: hidden; }
.xy-table th:nth-child(1) { width: 24%; }
.xy-table th:nth-child(2), .xy-table th:nth-child(3) { width: 38%; }

/* ---------- 案例卡 ---------- */
.case-card { display: block; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .3s, box-shadow .3s; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.case-media { height: 210px; overflow: hidden; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover .case-media img { transform: scale(1.05); }
.case-body { padding: 18px 22px 22px; }
.case-body h3 { font-size: 17px; margin-bottom: 6px; }
.case-body p { font-size: 14px; color: var(--c-muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 560px) {
  .is-desktop { width: 100%; max-width: 260px; }
}
