/* Dmscn 官方网站 —— 样式 */
:root {
  --bg: #f7f8fa;
  --bg-alt: #eef1f6;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --brand-ink: #ffffff;
  --ok: #16a34a;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 34px rgba(15, 23, 42, .14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.5vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

.o-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* -------------------------------------------------------------- 顶栏 */
.o-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.o-header-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.o-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; }
.o-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #7c3aed); color: #fff;
}
.o-brand-name { letter-spacing: .01em; }
.o-nav { display: flex; gap: 4px; margin-left: auto; }
.o-nav a {
  padding: 8px 13px; border-radius: 9px; color: var(--ink-2); font-size: 15px; font-weight: 500;
}
.o-nav a:hover { color: var(--ink); background: rgba(15, 23, 42, .05); }
.o-nav a.is-active { color: var(--brand); background: rgba(37, 99, 235, .08); }
.o-cta {
  padding: 9px 18px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; font-size: 15px;
  white-space: nowrap;
}
.o-cta:hover { background: var(--brand-2); }

/* -------------------------------------------------------------- 按钮 */
.o-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 11px; border: 1px solid transparent;
  font-size: 15.5px; font-weight: 600; cursor: pointer; transition: transform .08s ease, background .15s ease, border-color .15s;
}
.o-btn:active { transform: translateY(1px); }
.o-btn-primary { background: var(--brand); color: #fff; }
.o-btn-primary:hover { background: var(--brand-2); }
.o-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.o-btn-ghost:hover { border-color: var(--ink-3); background: #fff; }
.o-btn-light { background: #fff; color: var(--ink); }
.o-btn-light:hover { background: #f1f5f9; }
.o-btn-sm { padding: 8px 15px; font-size: 14px; border-radius: 9px; }
.o-btn-block { width: 100%; }
.o-btn-danger { background: transparent; color: var(--danger); border-color: rgba(220, 38, 38, .3); }
.o-btn-danger:hover { background: rgba(220, 38, 38, .06); }

/* -------------------------------------------------------------- Hero */
.o-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 80% -10%, #dbeafe 0%, transparent 55%), linear-gradient(180deg, #f8fafc, #eef2f7);
  border-bottom: 1px solid var(--line);
}
.o-hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 72px 20px 84px; }
.o-eyebrow { color: var(--brand); font-weight: 600; font-size: 14px; letter-spacing: .02em; margin-bottom: 12px; }
.o-hero h1 { margin-bottom: 18px; }
.o-lead { color: var(--ink-2); font-size: 17px; max-width: 46ch; }
.o-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 34px; }
.o-hero-stats { display: flex; gap: 34px; }
.o-hero-stats div { display: flex; flex-direction: column; }
.o-hero-stats strong { font-size: 26px; font-weight: 700; color: var(--ink); }
.o-hero-stats span { color: var(--ink-3); font-size: 13px; }

.o-hero-art { position: relative; height: 340px; }
.o-art-card {
  position: absolute; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 16px 18px; color: var(--ink-2); font-size: 14px;
}
.o-art-card i { font-style: normal; font-weight: 700; font-size: 22px; color: var(--ink); }
.o-art-a { top: 8px; left: 8px; width: 200px; height: 128px; }
.o-art-b { top: 44px; right: 0; width: 178px; height: 118px; }
.o-art-c { bottom: 8px; left: 60px; width: 210px; height: 112px; }
.o-art-glow {
  position: absolute; inset: 0; border-radius: 24px;
  background: radial-gradient(circle at 30% 40%, rgba(37, 99, 235, .12), transparent 60%);
}

/* -------------------------------------------------------------- 区块 */
.o-sec { padding: 64px 0; }
.o-sec-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.o-sec-head { max-width: 640px; margin-bottom: 34px; }
.o-sec-head h2 { margin-bottom: 8px; }
.o-sec-head p { color: var(--ink-2); }
.o-center { text-align: center; margin-top: 30px; }

.o-grid { display: grid; gap: 20px; }
.o-grid-3 { grid-template-columns: repeat(3, 1fr); }

.o-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.o-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }

/* 服务卡 */
.o-svc-card { padding: 24px; }
.o-svc-no { color: var(--brand); font-weight: 800; font-size: 14px; letter-spacing: .06em; margin-bottom: 10px; }
.o-svc-card h3 { font-size: 19px; }
.o-svc-card p { color: var(--ink-2); font-size: 14.5px; min-height: 3.2em; }
.o-svc-price { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; }

/* 案例卡 */
.o-case-card { overflow: hidden; }
.o-case-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #e2e8f0; }
.o-case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.o-case-card:hover .o-case-thumb img { transform: scale(1.04); }
.o-case-body { padding: 18px 20px 20px; }
.o-case-body h3 { font-size: 17px; margin-bottom: 6px; }
.o-case-body p { color: var(--ink-2); font-size: 14px; margin: 0; }

.o-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.o-tags span { background: rgba(37, 99, 235, .08); color: var(--brand); font-size: 12.5px; padding: 3px 9px; border-radius: 999px; }

/* 步骤 */
.o-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.o-steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.o-step-no { color: var(--brand); font-weight: 800; font-size: 14px; }
.o-steps h3 { font-size: 16px; margin: 8px 0 4px; }
.o-steps p { color: var(--ink-2); font-size: 13.5px; margin: 0; }

/* CTA 带 */
.o-cta-band { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; }
.o-cta-band-in { text-align: center; }
.o-cta-band h2 { color: #fff; }
.o-cta-band p { color: rgba(255, 255, 255, .82); }

/* -------------------------------------------------------------- 页头 */
.o-page-head { padding: 52px 0 8px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f8fafc, #eef2f7); }
.o-page-head h1 { margin-bottom: 8px; }
.o-page-head p { color: var(--ink-2); max-width: 62ch; }
.o-back { display: inline-block; color: var(--ink-2); font-size: 14px; margin-bottom: 12px; }
.o-back:hover { color: var(--brand); }

/* 服务列表 */
.o-svc-list { display: flex; flex-direction: column; gap: 16px; }
.o-svc-item {
  display: grid; grid-template-columns: 64px 1fr 240px; gap: 22px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.o-svc-item-no { font-size: 26px; font-weight: 800; color: var(--brand); opacity: .5; }
.o-svc-item h2 { font-size: 21px; margin-bottom: 6px; }
.o-svc-desc { color: var(--ink-2); }
.o-svc-item ul { margin: 6px 0; color: var(--ink-2); font-size: 15px; }
.o-svc-excl { font-size: 13.5px; color: var(--ink-3); }
.o-svc-item-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding-left: 22px; border-left: 1px solid var(--line); }
.o-price { font-size: 22px; font-weight: 800; color: var(--ink); }
.o-cycle { color: var(--ink-3); font-size: 13.5px; }

.o-rules { margin-top: 34px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.o-rules h3 { font-size: 16px; }
.o-rules ol, .o-rules ul { color: var(--ink-2); font-size: 15px; }

/* 服务详情 / 案例详情 / 关于 */
.o-svc-detail, .o-about { display: grid; grid-template-columns: 1fr 300px; gap: 30px; }
.o-svc-detail-side, .o-about-side { position: sticky; top: 84px; }
.o-svc-detail-side, .o-about-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow);
}
.o-svc-detail h2 { font-size: 18px; margin-top: 20px; }
.o-svc-detail-main > h2:first-child { margin-top: 0; }
.o-svc-detail ul { color: var(--ink-2); }

.o-case-hero { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 24px; }
.o-case-detail-body { max-width: 680px; }
.o-case-svc-link { margin: 18px 0; color: var(--ink-2); }

.o-about-main p { color: var(--ink-2); font-size: 16.5px; }
.o-about-main h2 { font-size: 18px; margin-top: 26px; }
.o-about-main ul { color: var(--ink-2); }
.o-about-name { font-size: 22px; font-weight: 700; }
.o-about-role { color: var(--ink-2); font-size: 14px; }

/* -------------------------------------------------------------- 联系 */
.o-contact { display: grid; grid-template-columns: 320px 1fr; gap: 30px; }
.o-contact-info ul { list-style: none; padding: 0; }
.o-contact-info li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.o-contact-info li span { color: var(--ink-3); font-size: 14px; }
.o-contact-note { margin-top: 18px; color: var(--ink-3); font-size: 13.5px; }

.o-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.o-form label { display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; color: var(--ink-2); }
.o-input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font: inherit; font-size: 15.5px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.o-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
textarea.o-input { resize: vertical; min-height: 110px; }
.o-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.o-flash { padding: 11px 14px; border-radius: 10px; font-size: 14.5px; }
.o-flash-ok { background: rgba(22, 163, 74, .1); color: var(--ok); }

/* -------------------------------------------------------------- 线索后台 */
.o-leads-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; }
.o-badge { font-size: 14px; font-weight: 600; color: var(--brand); }
.o-form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.o-form-inline .o-input { width: auto; min-width: 140px; }
.o-leads { display: flex; flex-direction: column; gap: 14px; }
.o-lead { display: flex; gap: 20px; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.o-lead.is-new { border-color: rgba(37, 99, 235, .4); box-shadow: var(--shadow); }
.o-lead-title { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.o-lead-title strong { font-size: 17px; }
.o-tag-status { font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: rgba(37, 99, 235, .1); color: var(--brand); }
.o-lead.is-new .o-tag-status { background: rgba(22, 163, 74, .12); color: var(--ok); }
.o-lead-contact { color: var(--ink); font-weight: 600; }
.o-lead-meta { color: var(--ink-2); font-size: 14px; }
.o-lead-msg { color: var(--ink-2); margin: 8px 0 6px; white-space: pre-wrap; }
.o-lead-time { color: var(--ink-3); font-size: 12.5px; margin-top: 8px; }
.o-lead-actions { display: flex; flex-direction: column; gap: 8px; }
.o-lead-actions form { margin: 0; }
.o-empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 50px; text-align: center; color: var(--ink-3); }

/* -------------------------------------------------------------- 页脚 */
.o-footer { background: #0f172a; color: #cbd5e1; padding: 56px 0 0; margin-top: 20px; }
.o-footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.o-footer .o-brand { color: #fff; }
.o-footer .o-mark { background: linear-gradient(135deg, var(--brand), #7c3aed); }
.o-footer-desc { color: #94a3b8; font-size: 14.5px; max-width: 34ch; }
.o-footer-h { color: #fff; font-weight: 600; margin-bottom: 12px; font-size: 15px; }
.o-footer-col a, .o-footer-col span { display: block; color: #94a3b8; font-size: 14.5px; padding: 3px 0; }
.o-footer-col a:hover { color: #fff; }
.o-footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px; font-size: 13.5px; color: #64748b;
}
.o-footer-bottom a { color: #64748b; }
.o-footer-bottom a:hover { color: #cbd5e1; }

/* -------------------------------------------------------------- 响应式 */
@media (max-width: 900px) {
  .o-hero-in { grid-template-columns: 1fr; padding: 48px 20px 56px; }
  .o-hero-art { display: none; }
  .o-grid-3 { grid-template-columns: 1fr 1fr; }
  .o-steps { grid-template-columns: 1fr 1fr; }
  .o-svc-item { grid-template-columns: 44px 1fr; }
  .o-svc-item-side { grid-column: 2; border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 14px; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .o-svc-detail, .o-about, .o-contact { grid-template-columns: 1fr; }
  .o-svc-detail-side, .o-about-side { position: static; }
  .o-footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .o-header-in { height: auto; flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
  .o-nav { order: 3; width: 100%; overflow-x: auto; gap: 2px; margin-left: 0; }
  .o-nav a { padding: 7px 11px; font-size: 14px; white-space: nowrap; }
  .o-cta { margin-left: auto; }
  .o-grid-3, .o-steps { grid-template-columns: 1fr; }
  .o-hero-stats { gap: 22px; }
  .o-svc-item { grid-template-columns: 1fr; }
  .o-svc-item-side { grid-column: auto; }
  .o-footer-in { grid-template-columns: 1fr; }
  .o-lead { flex-direction: column; }
}
