/* 宇创纪元官网 — 暖色浅色主题，与 Logo 橙 / 黑协调 */
:root {
  --bg: #faf7f2;
  --bg-warm: #f5f0e8;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --text: #1c1917;
  --text-muted: #57534e;
  --accent: #ea580c;
  --accent-bright: #f97316;
  --accent-deep: #c2410c;
  --accent-dim: rgba(234, 88, 12, 0.12);
  --accent-glow: rgba(249, 115, 22, 0.18);
  --border: rgba(28, 25, 23, 0.09);
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 8px 30px rgba(28, 25, 23, 0.08);
  --shadow-orange: 0 12px 40px rgba(234, 88, 12, 0.15);
  --font-sans: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
  --radius: 14px;
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    /* 细腻点阵 */
    radial-gradient(rgba(120, 113, 108, 0.09) 1px, transparent 1px),
    /* 右上暖橙光晕 */
    radial-gradient(ellipse 90% 70% at 100% 0%, var(--accent-glow), transparent 55%),
    /* 左下琥珀光 */
    radial-gradient(ellipse 70% 55% at 0% 100%, rgba(251, 191, 36, 0.12), transparent 50%),
    /* 中部淡橙氛围 */
    radial-gradient(ellipse 60% 45% at 50% 35%, rgba(249, 115, 22, 0.06), transparent 55%),
    /* 纵向暖白渐变 */
    linear-gradient(180deg, #fffefb 0%, var(--bg) 35%, var(--bg-warm) 100%);
  background-size:
    28px 28px,
    auto,
    auto,
    auto,
    auto;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* 顶部柔光条（装饰） */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 320px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 247, 237, 0.95) 0%,
    rgba(255, 247, 237, 0.4) 45%,
    transparent 100%
  );
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: rgba(249, 115, 22, 0.28);
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 254, 252, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo:hover .logo-text {
  color: var(--text);
}

/* 浅色顶栏：Logo 白底轻边框，与橙系阴影呼应 */
.logo-img-wrap {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 11px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(234, 88, 12, 0.1);
}

.logo-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: min(200px, 48vw);
  object-fit: contain;
}

.logo-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 400px) {
  .logo-text {
    display: none;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: var(--accent-dim);
  text-decoration: none;
}

.nav a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
}

.lang-switch a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--accent);
  background: var(--accent-dim);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

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

  .nav-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 254, 252, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

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

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-wrap .nav {
    flex-direction: column;
    width: 100%;
  }

  .lang-switch {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    justify-content: center;
  }
}

@media (min-width: 769px) {
  .nav-wrap {
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
  }
}

/* Main */
main {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* 主内容区淡橙点阵（仅作层次，不抢内容） */
main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: radial-gradient(rgba(234, 88, 12, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, transparent, black 6%, black 94%, transparent);
  z-index: -1;
}

/* 首页轮播 */
.hero-carousel {
  margin: 0 0 2rem;
}

.carousel {
  position: relative;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-orange), var(--shadow-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 245, 0.98) 50%, rgba(255, 247, 237, 1) 100%),
    linear-gradient(180deg, rgba(249, 115, 22, 0.04) 0%, transparent 40%);
}

.carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(249, 115, 22, 0.09), transparent 50%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(251, 191, 36, 0.08), transparent 45%);
  z-index: 0;
}

.carousel-viewport,
.carousel-btn,
.carousel-dots {
  position: relative;
  z-index: 1;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition-duration: 0.01ms;
  }
}

.carousel-slide {
  flex: 0 0 100%;
  min-height: 200px;
  padding: 2rem 1.75rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .carousel-slide {
    min-height: 240px;
    padding: 2.5rem 2.5rem 3rem;
  }
}

.carousel-slide h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.carousel-slide p {
  margin: 0;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.carousel-slide .slide-cta {
  margin-top: 1.15rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.carousel-btn:hover {
  background: #fff;
  border-color: rgba(234, 88, 12, 0.4);
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.15);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel-prev {
  left: 0.5rem;
}

.carousel-next {
  right: 0.5rem;
}

@media (max-width: 480px) {
  .carousel-prev {
    left: 0.25rem;
  }

  .carousel-next {
    right: 0.25rem;
  }

  .carousel-btn {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 1.15rem;
  }
}

.carousel-dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #a8a29e;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

.carousel-dot:hover {
  opacity: 0.85;
}

.carousel-dot[aria-current="true"] {
  opacity: 1;
  background: var(--accent);
  transform: scale(1.15);
}

/* Hero */
.hero {
  position: relative;
  padding: 2rem 1.25rem 3.25rem;
  text-align: center;
  border-radius: var(--radius);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 85% 90% at 50% 20%, rgba(249, 115, 22, 0.09), transparent 58%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(251, 191, 36, 0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero .tagline {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.hero .company-name {
  display: block;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #fff;
  box-shadow: 0 4px 22px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: rgba(234, 88, 12, 0.45);
  color: var(--accent);
  background: #fff;
}

/* Sections */
.section-title {
  position: relative;
  margin: 0 0 1.35rem;
  padding-bottom: 0.65rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent-deep));
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(234, 88, 12, 0.35);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(249, 115, 22, 0.06);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.15), rgba(234, 88, 12, 0.08));
  border: 1px solid rgba(234, 88, 12, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  font-size: 1.25rem;
}

/* Page header (inner pages) */
.page-head {
  padding: 1.35rem 1.5rem 1.75rem;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 247, 237, 0.55) 100%);
  box-shadow: var(--shadow-sm);
}

.page-head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.page-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 42rem;
}

.prose {
  color: var(--text-muted);
  max-width: 42rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose strong {
  color: var(--text);
}

.contact-block {
  background: linear-gradient(180deg, #fff 0%, rgba(255, 250, 245, 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-block dt {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 1rem;
}

.contact-block dt:first-child {
  margin-top: 0;
}

.contact-block dd {
  margin: 0.25rem 0 0;
  font-size: 1.0625rem;
  color: var(--text);
}

.contact-block a {
  word-break: break-all;
}

/* Footer — 暖深灰（非纯黑），与橙色点缀协调 */
.site-footer {
  margin-top: auto;
  padding: 2.5rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(68, 58, 52, 0.97) 0%, #3d3530 45%, #342e2a 100%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(249, 115, 22, 0.12), transparent 55%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #e7e5e4;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  font-weight: 600;
  color: #faf7f2;
}

.footer-meta {
  font-size: 0.875rem;
  color: #a8a29e;
}

.site-footer a {
  color: #fdba74;
}

.site-footer a:hover {
  color: #ffedd5;
  text-decoration: underline;
}

.icp-slot {
  font-size: 0.8125rem;
  color: #a8a29e;
  padding: 0.5rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.15);
}

.icp-slot a {
  color: #d6d3d1;
}

.icp-slot a:hover {
  color: #fdba74;
}

.copyright {
  font-size: 0.8125rem;
  color: #78716c;
}
