/* 坝坷网络官网：基础样弝与版弝 */

:root {
  --paper: #efece4;
  --paper-2: #e6e1d6;
  --ink: #171614;
  --ink-soft: #4c4841;
  --line: rgba(23, 22, 20, 0.12);
  --line-strong: rgba(23, 22, 20, 0.22);
  --hero: #12151a;
  --hero-2: #1b212b;
  --hero-text: #f3efe6;
  --hero-muted: rgba(243, 239, 230, 0.68);
  --accent: #8eb4c8;
  --accent-deep: #2d5f78;
  --focus: #d7b37a;
  --danger: #b42318;
  --radius: 18px;
  --header-h: 72px;
  --shadow: 0 18px 40px rgba(18, 21, 26, 0.12);
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-en: "Avenir Next", "Segoe UI", "PingFang SC", sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", monospace;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--hero);
  color: var(--hero-text);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* 顶栝 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(18, 21, 26, 0.88);
  color: var(--hero-text);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(243, 239, 230, 0.08);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.brand-text small {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--hero-muted);
}

.nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.92rem;
}

.nav a {
  color: var(--hero-muted);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--hero-text);
}

.header-cta {
  display: inline-flex;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(243, 239, 230, 0.16);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--hero-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-small {
  min-height: 38px;
  padding: 0 0.95rem;
  font-size: 0.85rem;
  background: var(--hero-text);
  color: var(--hero);
}

.btn-primary {
  background: var(--hero-text);
  color: var(--hero);
}

.btn-ghost {
  border-color: rgba(243, 239, 230, 0.22);
  color: var(--hero-text);
}

.btn-full {
  width: 100%;
}

.btn-dark {
  background: var(--hero);
  color: var(--hero-text);
}

/* 首页主视觉 */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(243, 239, 230, 0.09) 1px, transparent 0) 0 0 / 28px 28px,
    linear-gradient(160deg, var(--hero) 0%, var(--hero-2) 55%, #243140 100%);
  color: var(--hero-text);
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5.5rem);
}

.hero-glow {
  position: absolute;
  right: -8%;
  top: -20%;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, rgba(141, 180, 200, 0.22), transparent 62%);
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  right: -4%;
  bottom: -18%;
  font-size: clamp(12rem, 34vw, 28rem);
  font-weight: 600;
  line-height: 0.8;
  color: rgba(243, 239, 230, 0.05);
  pointer-events: none;
  user-select: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  font-weight: 650;
}

.lead {
  max-width: 38rem;
  margin-top: 1.3rem;
  color: var(--hero-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-panel {
  padding: 1.4rem 1.5rem 1.2rem;
  border: 1px solid rgba(243, 239, 230, 0.12);
  border-radius: var(--radius);
  background: rgba(18, 21, 26, 0.45);
  backdrop-filter: blur(10px);
}

.panel-kicker {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-facts li {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(243, 239, 230, 0.1);
}

.hero-facts li span {
  font-size: 0.78rem;
  color: var(--hero-muted);
}

.hero-facts a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 定佝条 */

.strip {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.strip-inner {
  padding: 1.1rem 0;
}

.strip p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* 通用区块 */

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

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

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem 1.6rem;
  align-items: start;
  margin-bottom: 2.4rem;
}

.section-index {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
}

.section-index.light {
  color: var(--accent);
}

.section-head h2,
.contact-copy h2,
.about-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.section-head p,
.about-head p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

/* 能力坡片 */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  padding: 1.4rem 1.35rem 1.5rem;
  background: #f7f4ed;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
}

.card h3 {
  margin: 0.7rem 0 0.55rem;
  font-size: 1.12rem;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* 坈作浝程 */

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process li {
  position: relative;
  padding: 1.3rem 1.1rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.process span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-deep);
}

.process h3 {
  margin: 0.7rem 0 0.45rem;
  font-size: 1.05rem;
}

.process p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* 关于我们 */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem 2.5rem;
}

.about-head {
  grid-column: 1 / -1;
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-copy p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.values {
  display: grid;
  gap: 0.9rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.values li {
  display: grid;
  gap: 0.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent-deep);
}

.values strong {
  font-size: 0.98rem;
}

.values span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.about-facts {
  margin: 0;
  padding: 0.4rem 1.4rem;
  background: #f7f4ed;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.about-facts > div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.about-facts > div:last-child {
  border-bottom: 0;
}

.about-facts dt {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.about-facts dd {
  margin: 0.25rem 0 0;
  line-height: 1.65;
}

.about-facts a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 蝔系坈作 */

.contact {
  background: var(--hero);
  color: var(--hero-text);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-copy p {
  max-width: 36rem;
  margin: 0.8rem 0 1.6rem;
  color: var(--hero-muted);
}

.contact-card {
  display: grid;
  gap: 1.2rem;
  font-style: normal;
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(243, 239, 230, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.contact-card span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  color: var(--hero-muted);
}

.contact-card a {
  font-size: 1.08rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-card p {
  margin: 0;
  color: var(--hero-text);
}

.copy-btn {
  display: inline-flex;
  margin-top: 0.7rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(243, 239, 230, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--hero-text);
  cursor: pointer;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px;
}

.contact-form h3 {
  font-size: 1.2rem;
}

.form-note,
.form-status {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent-deep);
  outline-offset: 1px;
  border-color: transparent;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-ok {
  color: var(--accent-deep);
}

/* 页脚 */

.site-footer {
  background: #0d1014;
  color: var(--hero-muted);
  padding: 2.2rem 0 2rem;
  border-top: 1px solid rgba(243, 239, 230, 0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 0.8rem;
}

.footer-brand img {
  border-radius: 8px;
}

.footer-brand strong {
  display: block;
  color: var(--hero-text);
  font-size: 0.95rem;
}

.footer-brand p {
  margin-top: 0.25rem;
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}

.footer-links a:hover {
  color: var(--hero-text);
}

.footer-legal {
  font-size: 0.85rem;
  text-align: right;
}

.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal a:hover {
  color: var(--hero-text);
}

.footer-address {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(243, 239, 230, 0.08);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* 滚动显现 */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* 哝应弝 */

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .process {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.6rem 1rem 1rem;
    background: rgba(18, 21, 26, 0.97);
    border-bottom: 1px solid rgba(243, 239, 230, 0.08);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid rgba(243, 239, 230, 0.08);
  }

  .card-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

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

  .btn,
  .card,
  .reveal {
    transition: none;
    animation: none;
    transform: none;
    opacity: 1;
  }
}
