/* ============================================================
   星辰科技企业官网 - 全站样式（现代简约大气 · PC/移动自适应）
   ============================================================ */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #06b6d4;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
  --gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 92%); margin: 0 auto; }
.section { padding: 90px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow { display: inline-block; font-size: 13px; letter-spacing: 4px; color: var(--primary); text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: 1px; }
.section-head p { color: var(--text-muted); margin-top: 12px; }
.prose h2 { margin: 28px 0 12px; font-size: 22px; }
.prose p, .prose ul, .prose ol { margin-bottom: 14px; color: #334155; }
.prose ul, .prose ol { padding-left: 24px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 26px; border-radius: 10px; font-size: 15px; font-weight: 600; border: 1.5px solid transparent; cursor: pointer; transition: all .25s; font-family: inherit; line-height: 1.4; white-space: nowrap; text-align: center; }
.btn .icon { flex-shrink: 0; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, .28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(37, 99, 235, .38); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); box-shadow: 0 6px 18px rgba(15,23,42,.12); }
.btn-white:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 14px 34px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-danger { background: #fee2e2; color: #dc2626; border-color: transparent; }

/* 表单内按钮防护：禁止被网格拉伸变圆 */
.form-card .btn,
.modal-body .btn,
.custom-form .btn { width: auto; flex: 0 0 auto; border-radius: 10px; }

/* ---------- 头部导航 ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.logo-img { height: 40px; width: auto; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: var(--gradient); color: #fff; font-size: 20px; font-weight: 800; }
.main-nav { display: flex; gap: 6px; }
.main-nav a { padding: 8px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text-muted); transition: all .2s; }
.main-nav a:hover { color: var(--primary); background: var(--primary-light); }
.main-nav a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text); }
.user-menu { position: relative; }
.user-dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); min-width: 140px; padding: 8px; display: none; }
.user-dropdown.open { display: block; }
.user-dropdown a { display: block; padding: 9px 14px; border-radius: 8px; font-size: 14px; }
.user-dropdown a:hover { background: var(--bg-soft); color: var(--primary); }

/* ---------- Hero 轮播 ---------- */
.hero { position: relative; height: min(82vh, 720px); min-height: 480px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; opacity: 0; transition: opacity 1s; background-size: cover; background-position: center; }
.hero-slide.active { opacity: 1; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,23,42,var(--ovl,.55)), rgba(37,99,235,.55)); }
.hero-content { position: relative; z-index: 2; max-width: 780px; padding: 0 20px; animation: rise .9s ease both; }
.hero-content h1 { font-size: clamp(32px, 6vw, 60px); font-weight: 800; letter-spacing: 2px; line-height: 1.25; text-shadow: 0 4px 30px rgba(0,0,0,.3); }
.hero-content p { font-size: clamp(15px, 2.2vw, 20px); margin: 20px 0 34px; opacity: .92; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: all .3s; }
.hero-dots span.active { width: 30px; border-radius: 6px; background: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ---------- 数据条 ---------- */
.stats-band { background: var(--gradient); color: #fff; padding: 32px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; display: block; line-height: 1.2; letter-spacing: -.01em; }
.stat span { opacity: .82; font-size: 12.5px; letter-spacing: .06em; }

/* ---------- 卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-img { aspect-ratio: 16/10; background: var(--bg-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 19px; margin-bottom: 10px; }
.card-body p { color: var(--text-muted); font-size: 14.5px; flex: 1; }
.card-body .more { margin-top: 18px; color: var(--primary); font-weight: 600; font-size: 14px; }
.card-tag { display: inline-block; font-size: 12px; color: var(--primary); background: var(--primary-light); padding: 3px 12px; border-radius: 999px; margin-bottom: 12px; align-self: flex-start; }
.icon-box { width: 58px; height: 58px; border-radius: 16px; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; margin-bottom: 20px; box-shadow: 0 8px 20px rgba(37,99,235,.3); }

/* ---------- 关于区块 ---------- */
.about-visual { position: relative; }
.about-visual .big-img { border-radius: 20px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-visual .badge-card { position: absolute; right: -14px; bottom: -24px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 22px 30px; display: flex; gap: 26px; }
.about-visual .badge-card b { font-size: 30px; color: var(--primary); }
.about-visual .badge-card span { font-size: 13px; color: var(--text-muted); }
.about-list { list-style: none; margin-top: 20px; }
.about-list li { padding: 8px 0; color: #334155; }
.about-list li::before { content: "✓"; display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-light); color: var(--primary); align-items: center; justify-content: center; font-size: 13px; margin-right: 10px; font-weight: 700; }

/* ---------- 新闻 ---------- */
.news-meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* ---------- CTA ---------- */
.cta-band { background: var(--gradient); border-radius: 24px; color: #fff; text-align: center; padding: 70px 30px; box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: clamp(24px, 3.6vw, 36px); margin-bottom: 14px; }
.cta-band p { opacity: .9; margin-bottom: 30px; }

/* ---------- 页面 Banner ---------- */
.page-banner { background: var(--gradient); color: #fff; text-align: center; padding: 90px 0 70px; }
.page-banner h1 { font-size: clamp(28px, 4.4vw, 44px); letter-spacing: 2px; }
.page-banner .crumbs { margin-top: 12px; font-size: 14px; opacity: .85; }

/* ---------- 表单 ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #334155; }
.form-group label .req { color: #ef4444; margin-left: 2px; }
.form-group input,
.form-group textarea,
.form-group select {
  display: block; width: 100%; box-sizing: border-box;
  padding: 12px 15px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s; background: var(--bg-soft);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.form-group textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.form-group input[type=file] { padding: 9px 12px; background: #fff; }

/* 自定义表单网格：两列自适应，长字段独占一行 */
.custom-form .cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.custom-form .cf-grid .form-group.full { grid-column: 1 / -1; }
.custom-form .cf-title { font-size: 20px; margin-bottom: 8px; }
.custom-form .cf-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; line-height: 1.7; }
.custom-form .cf-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 50px; margin-top: 6px;
  border: none; border-radius: 12px; cursor: pointer;
  background: var(--gradient); color: #fff;
  font-size: 15.5px; font-weight: 600; letter-spacing: 1px; font-family: inherit;
  box-shadow: 0 8px 22px rgba(37,99,235,.3);
  transition: transform .2s, box-shadow .2s;
}
.custom-form .cf-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(37,99,235,.4); }
.custom-form .cf-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.custom-form .cf-tip { font-size: 13px; color: var(--text-muted); margin-top: 12px; text-align: center; }
.custom-form .cf-tip a { color: var(--primary); font-weight: 600; }
.cf-options { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 4px 0; }
.cf-opt { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 400; cursor: pointer; margin: 0; }
.cf-opt input { width: auto; margin: 0; }
.form-msg { padding: 12px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; display: none; }
.form-msg.ok { background: #dcfce7; color: #15803d; display: block; }
.form-msg.err { background: #fee2e2; color: #b91c1c; display: block; }

/* ---------- 联系信息卡 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 50px; }
.contact-item { background: var(--bg-soft); border-radius: var(--radius); padding: 30px; text-align: center; }
.contact-item .icon-box { margin: 0 auto 16px; }
.contact-item h3 { font-size: 17px; margin-bottom: 6px; }
.contact-item p { color: var(--text-muted); font-size: 15px; }

/* ---------- 登录/注册 ---------- */
.auth-wrap { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; background: var(--bg-soft); padding: 50px 0; }
.auth-card { width: min(440px, 92%); background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 46px 40px; }
.auth-card h1 { font-size: 26px; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 30px; }
.auth-card .alt { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-muted); }
.auth-card .alt a { color: var(--primary); font-weight: 600; }
.auth-benefit { margin-top: 26px; padding: 16px 20px; background: var(--primary-light); border-radius: 12px; font-size: 13.5px; color: var(--primary-dark); }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 46px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); font-size: 14px; padding: 0 12px; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--gradient); color: #fff; border: none; font-weight: 600; }
.pagination .disabled, .pagination .dots { color: var(--text-muted); border: none; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0f172a; color: #94a3b8; padding: 70px 0 0; margin-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 44px; padding-bottom: 50px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; color: #94a3b8; font-size: 14px; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.brand-light .brand-text { color: #fff; }
.footer-about p { margin: 14px 0; line-height: 1.8; }
.footer-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-stats b { color: #fff; font-size: 20px; margin-right: 4px; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 22px 0; text-align: center; font-size: 13px; }

/* ---------- 提示 ---------- */
.alert { padding: 14px 20px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #dcfce7; color: #15803d; }
.alert-error { background: #fee2e2; color: #b91c1c; }
.empty-tip { text-align: center; color: var(--text-muted); padding: 60px 0; }

/* ============================================================
   移动端自适应
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .section { padding: 60px 0; }
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .main-nav { position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 18px; border-radius: 10px; }
  .nav-toggle { display: block; }
  .header-actions .btn-outline { display: none; }
  .hero { min-height: 420px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .about-visual .badge-card { position: static; margin-top: 18px; justify-content: center; }
  .auth-card { padding: 34px 26px; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .header-actions .btn-primary { display: none; }
  .brand-text { font-size: 17px; }
}

/* ============ 组件补充 v2 ============ */
.icon { display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }

/* ---------- 导航栏电话（登录按钮左侧） ---------- */
.header-tel {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 8px; border-radius: 10px;
  margin-right: 4px;
  transition: background .22s;
}
.header-tel:hover { background: rgba(37, 99, 235, .07); }
.header-tel .ht-ic {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .12));
  color: var(--primary);
}
.header-tel .ht-tx { display: flex; flex-direction: column; line-height: 1.15; }
.header-tel .ht-tx small { font-size: 10.5px; color: var(--text-muted); letter-spacing: .06em; }
.header-tel .ht-tx b { font-size: 16px; font-weight: 800; color: var(--ink, #0b1120); letter-spacing: .02em; }
.header-tel:hover .ht-tx b { color: var(--primary); }
@media (max-width: 1180px) {
  .header-tel .ht-tx small { display: none; }
  .header-tel .ht-tx b { font-size: 15px; }
}
@media (max-width: 960px) {
  .header-tel { display: none; }
}
.topbar {
  background: linear-gradient(90deg, #0b1120 0%, #132a5c 55%, #0c4a6e 100%);
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
  letter-spacing: .02em;
  position: relative;
  z-index: 101;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 40px; gap: 16px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; min-width: 0; }
.topbar a { color: rgba(255, 255, 255, .84); display: inline-flex; align-items: center; gap: 6px; transition: color .2s; white-space: nowrap; }
.topbar a:hover { color: #fff; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar .tb-item .icon { opacity: .72; }
.topbar .tb-phone b { color: #fff; font-weight: 700; letter-spacing: .04em; font-size: 14px; }
.topbar .tb-phone:hover b { color: #7dd3fc; }
.topbar .tb-divider { width: 1px; height: 14px; background: rgba(255, 255, 255, .18); }
.topbar .tb-quick { color: rgba(255, 255, 255, .6); font-size: 12.5px; }
@media (max-width: 860px) {
  .topbar-inner { height: 34px; }
  .topbar { font-size: 12.5px; }
  .topbar-left .tb-quick, .topbar .tb-divider, .topbar-right .tb-extra { display: none; }
  .topbar-left, .topbar-right { gap: 12px; }
  .topbar .tb-phone b { font-size: 13px; }
}

/* 服务卡片 */
.card-service { padding: 36px 30px; }
.card-service h3 { font-size: 19px; margin-bottom: 10px; }
.card-service p { color: var(--text-muted); font-size: 14.5px; line-height: 1.75; margin-bottom: 18px; }
.card-service .more { color: var(--primary); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; margin-top: auto; }
.card-service .icon-box { margin-bottom: 22px; }

/* CTA 区块 */
.cta-band .cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band .cta-phone { margin-top: 26px; font-size: 14px; opacity: .95; }
.cta-band .cta-phone b { font-size: 22px; font-weight: 800; letter-spacing: 1px; margin-left: 6px; }
.btn-on-dark { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-on-dark:hover { background: rgba(255,255,255,.16); border-color: #fff; }

/* 友情链接 */
.links-row { display: flex; gap: 12px; flex-wrap: wrap; }
.links-row a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-muted); font-size: 14px; transition: all .2s; }
.links-row a:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }

/* 页脚联系行 */
.footer-contact { display: flex; align-items: flex-start; gap: 8px; }
.footer-contact .icon { margin-top: 5px; color: #64748b; }
.footer-contact span { flex: 1; }

/* 新闻元信息对齐 */
.news-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* hero dots 按钮化 */
.hero-dots button { border: none; padding: 0; cursor: pointer; }

/* 联系页 / 关于页 */
.contact-grid .ci-main { color: var(--text); font-weight: 600; font-size: 15.5px; }
.contact-grid .ci-sub { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.contact-form-wrap { max-width: 720px; margin: 0 auto; }
.about-content { max-width: 880px; }
.about-content .prose { font-size: 16px; }
.stats-grid-light .stat b { color: var(--primary); }
.stats-grid-light .stat span { color: var(--text-muted); }
.stats-grid-light .stat b, .stats-grid-light .stat span { opacity: 1; }

/* 移动端表单 */
@media (max-width: 860px) {
  .custom-form .cf-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
}

/* 移动端 Hero 按钮不换行挤压 */
@media (max-width: 860px) {
  .hero-actions { padding: 0 6px; }
  .hero { min-height: 300px; height: auto; padding: 56px 0; }
  .hero-content h1 { font-size: clamp(26px, 7.4vw, 34px); line-height: 1.35; }
  .hero-content p { font-size: 14.5px; margin: 14px 0 26px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .stat b { font-size: 30px; }
}


/* ============================================================
   案例模块（列表 / 详情）
   ============================================================ */
.card-img.no-img {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.55), transparent 46%),
    linear-gradient(135deg, #dbeafe 0%, #e0f2fe 45%, #cffafe 100%);
  position: relative;
}
.card-img.no-img::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.1) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 82%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 82%);
}
.card-img.no-img .no-img-mark {
  position: relative; z-index: 1;
  width: 58px; height: 58px; border-radius: 17px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, rgba(37,99,235,.92), rgba(6,182,212,.92));
  box-shadow: 0 14px 30px -12px rgba(37,99,235,.8), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.card:hover .card-img.no-img .no-img-mark { transform: scale(1.06); }
.card .more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--primary); margin-top: 4px; }

.case-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 12.5px; color: var(--text-muted);
  padding-top: 12px; margin-top: auto; margin-bottom: 10px;
  border-top: 1px dashed rgba(15,23,42,.08);
}
.case-meta span { display: inline-flex; align-items: center; gap: 5px; }

.case-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px; margin-bottom: 28px;
}
.case-facts .cf-item {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #f4f8ff, #f0fdff);
  border: 1px solid #dbeafe; border-radius: 14px; padding: 16px 18px;
}
.case-facts .cf-item > span {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 8px 18px -8px rgba(37,99,235,.8);
}
.case-facts small { display: block; font-size: 11.5px; color: var(--text-muted); letter-spacing: .06em; margin-bottom: 3px; }
.case-facts b { font-size: 14.5px; color: var(--ink); font-weight: 700; line-height: 1.5; }

.case-rel { margin-top: 52px; padding-top: 34px; border-top: 1px solid rgba(15,23,42,.08); }
.case-rel h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.case-rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.case-rel-grid a {
  display: block; border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid rgba(15,23,42,.08); transition: transform .3s, box-shadow .3s;
}
.case-rel-grid a:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -18px rgba(15,23,42,.4); }
.case-rel-grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.case-rel-grid span { display: block; padding: 13px 15px; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.6; }

@media (max-width: 640px) {
  .case-facts { grid-template-columns: 1fr; }
}
