/* ==========================================================
   优储科技（杭州）有限公司 · 官网样式
   ========================================================== */

:root {
  --ink: #0e1f2b;
  --text: #3b4a56;
  --muted: #6b7a86;
  --line: #e3e9ee;
  --bg: #ffffff;
  --bg-soft: #f5f8f9;
  --brand: #0d5f63;
  --brand-dark: #0a474a;
  --brand-soft: #e7f2f1;
  --accent: #c8a15a;
  --accent-soft: #efe3c9;
  --header-h: 72px;
  --radius: 16px;
  --shadow-sm: 0 6px 18px rgba(14, 31, 43, 0.06);
  --shadow: 0 18px 48px rgba(14, 31, 43, 0.1);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

button {
  font-family: inherit;
}

::selection {
  background: var(--brand-soft);
  color: var(--ink);
}

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

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

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

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #132731;
}

.btn-accent:hover {
  background: #d8b26b;
  color: #132731;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #f2f7f7;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-block {
  display: flex;
  width: 100%;
  margin-top: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.brand-text strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.brand-text small {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  font-size: 15px;
  color: var(--text);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: var(--brand);
  transition: right 0.25s ease;
}

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

.site-nav a:hover::after {
  right: 0;
}

.site-nav .nav-cta {
  margin-left: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14.5px;
}

.site-nav .nav-cta::after {
  display: none;
}

.site-nav .nav-cta:hover {
  background: var(--brand-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #eaf2f3;
  background: linear-gradient(155deg, #071624 0%, #0b2536 52%, #0a2f31 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -220px;
  right: -180px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 161, 90, 0.26), transparent 62%);
  pointer-events: none;
}

.hero-ring {
  position: absolute;
  right: 8%;
  bottom: -150px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(143, 214, 203, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.hero-ring::before {
  content: "";
  position: absolute;
  inset: 46px;
  border: 1px solid rgba(143, 214, 203, 0.14);
  border-radius: 50%;
}

.hero-ring::after {
  content: "";
  position: absolute;
  inset: 108px;
  border: 1px solid rgba(200, 161, 90, 0.16);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 108px;
  padding-bottom: 100px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: #b7d8d4;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  max-width: 860px;
  margin-top: 26px;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.22;
  letter-spacing: 0.02em;
  color: #fff;
}

.hero h1 span {
  background: linear-gradient(92deg, #8fd6cb, #e6cd99);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 640px;
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(234, 242, 243, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 46px;
}

.hero-tags li {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Sections ---------- */
.section {
  padding: 92px 0;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  margin-top: 16px;
  font-size: clamp(26px, 3vw, 38px);
}

.section-lead {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

/* ---------- About ---------- */
.about-copy {
  max-width: 760px;
  margin-top: 46px;
}

.about-copy p {
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--text);
}

.about-copy p + p {
  margin-top: 15px;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 46px;
}

.card {
  padding: 28px 24px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #cfe2e1;
  box-shadow: var(--shadow);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 17.5px;
}

.card p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.step-num {
  position: absolute;
  top: -13px;
  left: 0;
  padding-right: 14px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand);
}

.step h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.step p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}

.contact-copy p {
  font-size: 15.5px;
  line-height: 1.95;
}

.contact-copy .muted {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 2px solid var(--accent-soft);
  font-size: 13.5px;
  line-height: 1.85;
}

.contact-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-line:first-child {
  padding-top: 0;
}

.contact-line:last-of-type {
  border-bottom: 0;
}

.contact-line .ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

.contact-line .ico svg {
  width: 18px;
  height: 18px;
}

.contact-line small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.contact-line strong,
.contact-line a {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  word-break: break-all;
}

.contact-line a {
  color: var(--brand);
}

.contact-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 60px 0 26px;
  background: #081a24;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand--footer .brand-text strong {
  color: #fff;
}

.brand--footer .brand-text small {
  color: rgba(255, 255, 255, 0.45);
}

.footer-brand p {
  max-width: 320px;
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h3 {
  margin: 4px 0 16px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #fff;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 9px 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col a:hover {
  color: #fff;
}

.footer-col p a {
  display: inline;
  margin: 0;
  word-break: break-all;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.62);
}

.footer-icp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.footer-icp span {
  margin: 0 7px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-legal span {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- Legal pages ---------- */
.page-head {
  padding: 66px 0 46px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin-top: 14px;
  font-size: clamp(28px, 3.4vw, 40px);
}

.page-lead {
  max-width: 760px;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.page-meta {
  margin-top: 18px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.legal {
  padding: 56px 0 88px;
}

.legal-inner {
  max-width: 820px;
}

.legal h2 {
  margin-top: 38px;
  padding-left: 14px;
  border-left: 3px solid var(--brand);
  font-size: 18px;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p,
.legal li {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--text);
}

.legal p {
  margin-top: 12px;
}

.legal ul,
.legal ol {
  margin-top: 12px;
  padding-left: 22px;
}

.legal ul {
  list-style: disc;
}

.legal ol {
  list-style: decimal;
}

.legal li {
  margin-top: 8px;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legal a {
  border-bottom: 1px solid rgba(13, 95, 99, 0.25);
}

.legal-note {
  margin-top: 26px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--bg-soft);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  font-size: 14px;
}

/* ---------- 404 ---------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 80px 0;
  text-align: center;
}

.error-page .code {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.error-page h1 {
  margin-top: 12px;
  font-size: 22px;
}

.error-page p {
  margin-top: 12px;
  color: var(--muted);
}

.error-page .btn {
  margin-top: 28px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

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

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 30px rgba(14, 31, 43, 0.08);
  }

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

  .site-nav a {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-cta {
    margin: 14px 0 0;
    padding: 12px 20px;
    border-bottom: 0;
    text-align: center;
  }

  .hero-inner {
    padding-top: 84px;
    padding-bottom: 76px;
  }

  .hero-ring {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: min(100% - 36px, var(--max));
  }

  .brand-text small {
    display: none;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
