/*
Theme Name: DBYH Speed
Theme URI: https://www.dbyh.top/
Author: DBYH
Description: 面向网站速度优化、数据库性能调优、MySQL、SQL Server、Elasticsearch 优化服务的中文营销型 WordPress 主题。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: dbyh-speed
*/

:root {
  --ink: #15202b;
  --muted: #5d6b78;
  --line: #d8e1e8;
  --panel: #ffffff;
  --soft: #f3f7f8;
  --dark: #0b1720;
  --teal: #0f8f8a;
  --teal-dark: #096d69;
  --amber: #f2b84b;
  --blue: #2f6fbd;
  --shadow: 0 20px 60px rgba(15, 37, 54, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fbfcfd;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(216, 225, 232, 0.75);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 800;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }
.nav { display: flex; align-items: center; gap: 8px; color: #314252; font-size: 14px; }
.nav a { padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--soft); }

.order-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 8px;
  color: #281600;
  background: var(--amber);
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: clamp(64px, 8vw, 108px) clamp(18px, 5vw, 64px);
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.78; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 23, 32, 0.94) 0%, rgba(11, 23, 32, 0.8) 42%, rgba(11, 23, 32, 0.22) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { margin: 0 0 14px; color: var(--teal); font-size: 14px; font-weight: 800; }
.hero .eyebrow { color: #8ee8df; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(42px, 6vw, 76px); line-height: 1.06; letter-spacing: 0; }
h2 { margin-bottom: 16px; font-size: clamp(28px, 4vw, 44px); line-height: 1.18; letter-spacing: 0; }
h3 { margin-bottom: 10px; font-size: 21px; line-height: 1.35; }
.lead { max-width: 680px; margin-bottom: 28px; color: rgba(255,255,255,.85); font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 900;
}
.button.primary { color: #062323; background: #8ee8df; }
.button.order { color: #281600; background: var(--amber); }
.button.secondary { color: #fff; border: 1px solid rgba(255,255,255,.36); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 12px; max-width: 640px; margin: 0; }
.metrics div { padding: 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.09); }
.metrics dt { font-size: 22px; font-weight: 900; }
.metrics dd { margin: 0; color: rgba(255,255,255,.75); font-size: 13px; }

.section { padding: clamp(58px, 8vw, 96px) clamp(18px, 5vw, 64px); }
.section-heading, .section-copy { max-width: 780px; }
.section-heading { margin-bottom: 30px; }
.intro, .cases { display: grid; grid-template-columns: minmax(0,.95fr) minmax(320px,1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; background: var(--soft); }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checklist span { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(26,50,68,.06); }
.service-grid, .article-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service-grid article, .article-grid article { min-height: 250px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 14px 34px rgba(26,50,68,.08); }
.article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-grid article { min-height: 210px; }
.icon { display: inline-grid; width: 46px; height: 46px; place-items: center; margin-bottom: 22px; border-radius: 8px; color: #fff; background: var(--teal); font-weight: 900; }
.process { color: #fff; background: #102532; }
.process .eyebrow { color: #8ee8df; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { min-height: 210px; padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.06); counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 24px; color: var(--amber); font-weight: 900; }
.steps strong, .steps span { display: block; }
.steps span { margin-top: 8px; color: rgba(255,255,255,.75); }
.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.case-stats div { padding: 24px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.case-stats strong, .case-stats span { display: block; }
.case-stats strong { color: var(--teal-dark); font-size: clamp(34px, 5vw, 54px); line-height: 1; }
.case-stats span { margin-top: 12px; color: var(--muted); }
.faq { background: #fff; }
details { max-width: 920px; padding: 18px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-size: 20px; font-weight: 800; }
details p { max-width: 760px; margin: 14px 0 0; color: var(--muted); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px clamp(18px, 5vw, 64px); color: rgba(255,255,255,.78); background: #08141c; }
.footer strong { color: #fff; }

.content-wrap { max-width: 960px; margin: 0 auto; padding: 56px 18px; }
.content-wrap article { padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.content-wrap a { color: var(--teal-dark); text-decoration: underline; }

@media (max-width: 980px) {
  .nav { display: none; }
  .hero { min-height: 640px; }
  .hero::after { background: linear-gradient(180deg, rgba(11,23,32,.95) 0%, rgba(11,23,32,.78) 58%, rgba(11,23,32,.5) 100%); }
  .intro, .cases, .service-grid, .article-grid, .steps { grid-template-columns: 1fr; }
  .service-grid article, .article-grid article, .steps li { min-height: auto; }
}

@media (max-width: 640px) {
  .site-header { padding: 12px 16px; }
  .brand small { display: none; }
  .hero { min-height: 760px; padding-top: 56px; }
  .hero-actions, .metrics, .checklist, .case-stats { grid-template-columns: 1fr; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
}
