/* ==========================================================================
   思品云 · 客户案例站
   设计令牌、导航、页脚、字体层级与官网首页 www.spinsoft.cn 完全一致
   ========================================================================== */

:root {
  --brand: #1266C4;
  --brand-dark: #0E4F9A;
  --brand-light: #E8F3FF;
  --brand-soft: #4FC3F7;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --bg-body: #FFFFFF;
  --bg-section: #F8FAFC;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px -12px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(18, 102, 196, 0.35);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -4px rgba(18, 102, 196, 0.45);
}
.btn-secondary {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.btn-secondary:hover { background: var(--brand-light); }
.btn-large { padding: 14px 32px; font-size: 16px; }
.btn-inverse {
  background: #fff;
  color: var(--brand-dark);
}
.btn-inverse:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35); }

/* ---------------------------------------------------------------- 顶部导航 */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
}
.nav a:hover, .nav a.active { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-qr { position: relative; display: flex; }
.header-qr > img {
  width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid var(--border); cursor: pointer;
}
.header-qr-popup {
  position: absolute; top: 46px; right: 0;
  display: none; padding: 10px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
}
.header-qr-popup img { width: 150px; height: 150px; }
.header-qr:hover .header-qr-popup { display: block; }

/* ---------------------------------------------------------------- 首屏 */
.hero {
  position: relative;
  padding: 158px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(79, 195, 247, 0.10) 0%, transparent 42%),
    radial-gradient(circle at 16% 84%, rgba(18, 102, 196, 0.06) 0%, transparent 38%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-light);
  border: 1px solid rgba(18, 102, 196, 0.12);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 24px;
}
.hero-badge::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
}
.hero-title {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--text-primary);
}
.hero-title .highlight { color: var(--brand); }
.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 42px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-num { font-size: 26px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.trust-label { font-size: 13px; color: var(--text-tertiary); }
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 24px 48px rgba(18, 102, 196, 0.14));
  animation: float 6s ease-in-out infinite;
}
.hero-glow {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.16) 0%, transparent 65%);
  z-index: -1;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------------------------------------------------------------- 通用版块 */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-section); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.section-head p { font-size: 16px; color: var(--text-tertiary); margin-top: 14px; }

/* ---------------------------------------------------------------- 筛选 */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin: 0 0 44px;
}
.filter {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  background: #fff; border: 1px solid var(--border);
  border-radius: 100px; padding: 8px 22px;
  cursor: pointer; transition: all var(--transition);
}
.filter:hover { border-color: var(--brand); color: var(--brand); }
.filter.active {
  background: var(--brand); border-color: var(--brand);
  color: #fff; box-shadow: 0 4px 14px -4px rgba(18, 102, 196, 0.35);
}

/* ---------------------------------------------------------------- 案例卡片 */
.grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
/* 数量 ≥4 时首张卡横跨两列，避免末行出现大片空档 */
.grid--wide > .card:first-child { grid-column: span 2; }
.grid--wide > .card:first-child .card-cover { aspect-ratio: 32 / 10; }
.grid--wide > .card:first-child h3 { font-size: 22px; }
/* 数量 ≤2 时限制卡片最大宽度并居中 */
.grid--few {
  grid-template-columns: repeat(auto-fit, minmax(0, 460px));
  justify-content: center;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(18, 102, 196, 0.35);
}
.card-cover {
  position: relative;
  aspect-ratio: 1200 / 750;
  overflow: hidden;
  background: var(--brand-light);
}
.card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition);
}
.card:hover .card-cover img { transform: scale(1.04); }
.card-badge {
  position: absolute; left: 16px; top: 16px;
  font-size: 12px; font-weight: 600; color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.94);
  padding: 5px 14px; border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.card-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.card-client {
  font-size: 13px; color: var(--brand); font-weight: 600; margin-bottom: 8px;
}
.card-client span { color: var(--text-tertiary); font-weight: 400; margin-left: 8px; }
.card h3 {
  font-size: 19px; color: var(--text-primary);
  font-weight: 700; line-height: 1.45; letter-spacing: -0.01em;
}
.card p { font-size: 14.5px; color: var(--text-secondary); margin-top: 10px; flex: 1; line-height: 1.7; }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tag {
  font-size: 12px; font-weight: 500;
  color: var(--brand); background: var(--brand-light);
  padding: 4px 12px; border-radius: 6px;
}
.card-foot {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-results { display: flex; gap: 22px; }
.card-results .r-n { font-size: 18px; font-weight: 700; color: var(--brand); line-height: 1.3; }
.card-results .r-n span { font-size: 12px; font-weight: 400; }
.card-results .r-l { font-size: 12px; color: var(--text-tertiary); }
.card-more { font-size: 14px; color: var(--brand); font-weight: 600; white-space: nowrap; }
.card-more::after { content: ' ›'; }

/* ---------------------------------------------------------------- 案例详情 */
.case-hero {
  position: relative;
  padding: 150px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(79, 195, 247, 0.10) 0%, transparent 40%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}
.crumb { font-size: 14px; color: var(--text-tertiary); margin-bottom: 22px; }
.crumb a { color: var(--text-tertiary); transition: color var(--transition); }
.crumb a:hover { color: var(--brand); }
.crumb .sep { margin: 0 8px; }
.crumb .cur { color: var(--brand); font-weight: 600; }
.case-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 860px;
}
.case-hero .sub {
  font-size: 17px; color: var(--text-secondary);
  line-height: 1.75; margin-top: 18px; max-width: 780px;
}
.case-meta {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px;
}
.case-meta .chip {
  background: #fff; border: 1px solid var(--border);
  border-radius: 100px; padding: 8px 18px;
  font-size: 13.5px; color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}
.case-meta .chip b { color: var(--brand); font-weight: 700; margin-right: 6px; }

.case-body { padding: 0 0 24px; }
.case-cover {
  margin: -8px auto 0;
  max-width: 980px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--brand-light);
  position: relative;
}

.case-section { padding: 56px 0 0; }
.case-section h2 {
  font-size: 24px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin-top: 4px;
}
.stat-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card .n { font-size: 34px; font-weight: 700; color: var(--brand); line-height: 1.15; }
.stat-card .u { font-size: 13px; color: var(--brand-soft); font-weight: 600; margin-top: 2px; }
.stat-card .l { font-size: 13px; color: var(--text-tertiary); margin-top: 8px; }

.list { display: grid; gap: 14px; }
.list-item {
  display: flex; gap: 14px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 22px;
}
.list-item .idx {
  flex: 0 0 26px; height: 26px; border-radius: 8px;
  background: var(--brand-light); color: var(--brand);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.list-item p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
a.list-item { transition: border-color var(--transition), box-shadow var(--transition); }
a.list-item:hover { border-color: rgba(18, 102, 196, 0.35); box-shadow: var(--shadow-md); }
a.list-item p { color: var(--brand); font-weight: 600; }

.note {
  font-size: 13px; color: var(--text-tertiary);
  background: var(--bg-section); border: 1px dashed var(--border);
  border-radius: var(--radius-md); padding: 14px 18px; margin-top: 18px;
}

.related { padding: 88px 0; background: var(--bg-section); margin-top: 88px; }
.related .section-head { margin-bottom: 44px; }

/* ---------------------------------------------------------------- 行动号召 */
.cta-band {
  background:
    radial-gradient(circle at 15% 20%, rgba(79, 195, 247, 0.18) 0%, transparent 45%),
    linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 72px 0;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.01em; }
.cta-band p { font-size: 15px; color: rgba(255, 255, 255, 0.82); margin-top: 10px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-mail { font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.cta-mail:hover { color: #fff; }

/* ---------------------------------------------------------------- 页脚（与首页一致） */
.footer { background: #0F172A; color: #94A3B8; padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px; margin-bottom: 48px;
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 300px; margin: 0 0 16px; }
.footer-qr img { width: 96px; height: 96px; border-radius: 10px; background: #fff; padding: 6px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 14px; margin-top: 16px; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.footer-col a { font-size: 14px; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: #64748B;
}

/* ---------------------------------------------------------------- 空状态 */
.empty {
  text-align: center; padding: 80px 0;
  color: var(--text-tertiary); font-size: 15px;
}

/* ---------------------------------------------------------------- 入场动画 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 140px 0 80px; }
  .hero-visual img { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .hero-title { font-size: clamp(30px, 7vw, 40px); }
  .hero-desc { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-trust { gap: 24px; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .grid--wide > .card:first-child { grid-column: span 1; }
  .grid--wide > .card:first-child .card-cover { aspect-ratio: 1200 / 750; }
  .grid--wide > .card:first-child h3 { font-size: 19px; }
  .grid--few { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .related { padding: 64px 0; margin-top: 64px; }
  .case-hero { padding: 130px 0 44px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { align-items: flex-start; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .header-actions .btn { padding: 9px 16px; font-size: 14px; }
  .header-qr { display: none; }
  .hero { padding: 120px 0 64px; }
  .hero-badge { font-size: 11.5px; padding: 5px 12px; }
  .hero-trust { flex-wrap: wrap; }
  .card-body { padding: 20px; }
  .card-foot { flex-wrap: wrap; gap: 10px 16px; }
  .card-results { gap: 16px; flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}
