/* 买得值官网 — 可信成都科技公司气质 */
:root {
  --ink: #1a1214;
  --ink-soft: #3a2428;
  --paper: #f7f2f2;
  --paper-deep: #efe6e6;
  --mist: #dbc8c8;
  --accent: #c62828;
  --accent-deep: #8e1b1b;
  --accent-bright: #e53935;
  --text: #2a1c1e;
  --muted: #7a5c5f;
  --white: #ffffff;
  --focus: #c62828;
  --header-h: 4rem;
  /* 不依赖外网字体，保证国内访问与管局抽查可打开 */
  --font-display: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-content {
    animation: none !important;
  }
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--mist) 70%, transparent);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--accent), var(--ink));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

/* Hero — one composition, brand first */
.hero {
  position: relative;
  padding: 3.25rem 0 4rem;
  color: var(--white);
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(229, 57, 53, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(142, 27, 27, 0.4), transparent 50%),
    linear-gradient(160deg, #14090a 0%, #1a1214 42%, #4a1518 100%);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: rise 0.9s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ff8a80;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 28em;
  font-size: 1.1rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--white) 86%, var(--mist));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.35rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-bright);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid color-mix(in srgb, var(--white) 45%, transparent);
}

.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
  background: color-mix(in srgb, var(--white) 8%, transparent);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--paper-deep);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.section-intro,
.lede {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 40em;
}

.section p {
  margin: 0 0 1rem;
  max-width: 42em;
}

.section p:last-child {
  margin-bottom: 0;
}

.service-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--mist);
}

.service-list li {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 1rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--mist);
  align-items: baseline;
}

.service-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.service-list p {
  margin: 0;
  color: var(--muted);
}

.contact-note {
  margin-top: 1.5rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--mist);
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer — ICP 必备 */
.site-footer {
  padding: 2.5rem 0 2.75rem;
  background: var(--ink);
  color: color-mix(in srgb, var(--white) 78%, var(--mist));
}

.footer-inner {
  text-align: left;
}

.footer-name {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 600;
}

.footer-meta {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.footer-meta a {
  color: color-mix(in srgb, var(--white) 88%, var(--accent-bright));
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer-meta a:hover {
  color: #ff8a80;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--white) 55%, var(--mist));
}

@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 1.75rem);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0.55rem 0;
  }

  .site-header {
    height: auto;
    min-height: var(--header-h);
  }

  .nav {
    width: 100%;
    gap: 0.35rem 1rem;
    justify-content: flex-start;
  }

  .nav a {
    font-size: 0.88rem;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .service-list li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

}
