/* 优基盈备案首页样式：定义品牌令牌、响应式布局与轻量动效。 */

/* 页面品牌与布局常量。 */
:root {
  --color-bg: #ffffff;
  --color-surface: #f5f9ff;
  --color-text: #071a3d;
  --color-muted: #536783;
  --color-border: #e2eaf5;
  --color-primary: #086df6;
  --color-primary-dark: #0058e9;
  --color-primary-soft: #eaf3ff;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --container: 1328px;
  --gutter: clamp(24px, 4vw, 48px);
  --shadow-button: 0 10px 25px rgba(0, 88, 233, 0.18);
}

/* 基础重置与全局排版。 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  display: flex;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* 主内容不足一屏时由首屏补足高度，使页脚自然贴底。 */
main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

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

img,
svg {
  display: block;
}

h1,
h2,
p {
  margin-top: 0;
}

:focus-visible {
  outline: 3px solid rgba(8, 109, 246, 0.28);
  outline-offset: 4px;
}

/* 通用内容容器。 */
.container {
  width: min(100%, calc(var(--container) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 键盘用户跳转入口。 */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--color-text);
  color: #fff;
  font-size: 14px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* 顶部导航区域。 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(226, 234, 245, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 48px;
  height: 48px;
}

.brand-name {
  color: var(--color-text);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.nav-link {
  position: relative;
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 520;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--color-primary);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-primary);
}

.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* 首屏文案、行动按钮与数据视觉。 */
.hero {
  position: relative;
  display: flex;
  flex: 1 0 auto;
  min-height: 500px;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  display: grid;
  min-height: 500px;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.95fr);
  align-items: center;
  gap: 42px;
}

.hero-copy {
  position: relative;
  z-index: 4;
  padding-block: 110px 50px;
}

.hero h1 {
  max-width: 640px;
  margin-bottom: 26px;
  font-size: clamp(48px, 4vw, 54px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.hero-copy p {
  max-width: 590px;
  margin-bottom: 34px;
  color: var(--color-muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  min-width: 142px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: var(--shadow-button);
  color: #fff;
}

.button-primary:hover {
  box-shadow: 0 14px 30px rgba(0, 88, 233, 0.24);
}

.button-secondary {
  background: #fff;
  color: var(--color-primary);
}

.button-secondary:hover {
  background: var(--color-primary-soft);
}

.hero-visual {
  position: relative;
  height: 430px;
  margin-right: -8vw;
}

.data-grid {
  position: absolute;
  inset: 28px 0 0 8%;
  opacity: 0.62;
  background-image: linear-gradient(rgba(8, 109, 246, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 109, 246, 0.09) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 80%, transparent 100%);
}

.data-bars {
  position: absolute;
  inset: 64px 15% 56px 4%;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 14px;
}

.data-bars span {
  width: 9%;
  height: var(--height);
  border: 1px solid rgba(8, 109, 246, 0.16);
  background: linear-gradient(180deg, rgba(8, 109, 246, 0.24), rgba(8, 109, 246, 0.03));
}

.trend-line {
  position: absolute;
  inset: 30px 0 40px -2%;
  z-index: 2;
  width: 100%;
  height: calc(100% - 70px);
  overflow: visible;
}

.trend-path {
  fill: none;
  stroke: #2e86ff;
  stroke-linecap: round;
  stroke-width: 2;
}

.trend-line circle {
  fill: #fff;
  stroke: #1675fa;
  stroke-width: 3;
}

.ribbon {
  position: absolute;
  z-index: 3;
  width: 500px;
  height: 126px;
  border: 1px solid rgba(8, 109, 246, 0.3);
  background: linear-gradient(110deg, rgba(28, 136, 255, 0.04), rgba(0, 88, 233, 0.32));
  clip-path: polygon(0 75%, 16% 59%, 37% 68%, 67% 34%, 100% 0, 76% 58%, 50% 90%, 20% 100%);
  transform: rotate(-11deg);
  transform-origin: center;
}

.ribbon-one {
  right: -20px;
  bottom: 48px;
  animation: float-ribbon 8s ease-in-out infinite;
}

.ribbon-two {
  right: 6px;
  bottom: 6px;
  opacity: 0.54;
  transform: rotate(-8deg) scale(1.08);
  animation: float-ribbon 10s 800ms ease-in-out infinite reverse;
}

/* 公司简介浅蓝分区。 */
.about-section {
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.about-inner {
  position: relative;
  display: grid;
  min-height: 240px;
  grid-template-columns: 280px minmax(0, 1fr) 220px;
  align-items: center;
  gap: 54px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 740;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.heading-line {
  display: block;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--color-primary);
}

.about-copy {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 2;
}

.layer-mark {
  position: relative;
  width: 154px;
  height: 130px;
  justify-self: end;
  transform: rotate(30deg) skewX(-12deg);
}

.layer-mark span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(8, 109, 246, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(8, 109, 246, 0.18));
  box-shadow: 14px 18px 28px rgba(0, 88, 233, 0.08);
}

.layer-mark span:nth-child(2) {
  transform: translate(14px, 24px);
}

.layer-mark span:nth-child(3) {
  transform: translate(28px, 48px);
}

/* 联系信息区域。 */
.contact-section {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.contact-inner {
  display: grid;
  min-height: 200px;
  grid-template-columns: 280px minmax(0, 580px);
  align-items: center;
  gap: 54px;
}

.contact-list {
  display: grid;
  margin: 0;
  font-style: normal;
}

.contact-row {
  display: grid;
  min-height: 68px;
  grid-template-columns: 52px 100px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--color-border);
  transition: color 180ms ease;
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row[href]:hover {
  color: var(--color-primary);
}

.contact-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-label {
  color: var(--color-muted);
  font-size: 15px;
}

.contact-value {
  font-size: 16px;
  font-weight: 560;
  letter-spacing: 0.01em;
}

/* 页脚版权区域。 */
.site-footer {
  display: grid;
  min-height: 72px;
  place-items: center;
  background: #fbfdff;
  color: #6c7c92;
  text-align: center;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

.filing-link {
  font-size: 14px;
  transition: color 180ms ease;
}

.filing-link:hover {
  color: var(--color-primary);
}

/* 默认保持内容可见，确保脚本不可用时仍能阅读。 */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* JavaScript 可用时启用进入视口渐显状态。 */
.has-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 装饰丝带的低幅漂浮动画。 */
@keyframes float-ribbon {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

/* 平板与小型桌面布局。 */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
    gap: 10px;
  }

  .hero-visual {
    margin-right: -22vw;
    opacity: 0.88;
  }

  .about-inner {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .layer-mark {
    display: none;
  }

  .contact-inner {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

/* 手机端单列布局。 */
@media (max-width: 700px) {
  html {
    scroll-padding-top: 70px;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 21px;
  }

  .site-nav {
    gap: 18px;
  }

  .nav-link {
    font-size: 14px;
  }

  .hero,
  .hero-inner {
    min-height: 640px;
  }

  .hero-inner {
    display: block;
  }

  .hero-copy {
    padding-block: 76px 0;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  .hero-copy p {
    max-width: 560px;
    font-size: 17px;
  }

  .hero-visual {
    position: absolute;
    right: -180px;
    bottom: -34px;
    width: 600px;
    height: 300px;
    margin: 0;
    opacity: 0.58;
  }

  .about-inner,
  .contact-inner {
    display: grid;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 66px;
  }

  .contact-list {
    max-width: 580px;
  }
}

/* 窄屏手机导航与联系信息布局。 */
@media (max-width: 520px) {
  :root {
    --gutter: 20px;
  }

  .brand-name {
    display: none;
  }

  .site-nav {
    gap: 16px;
  }

  .hero-actions {
    gap: 12px;
  }

  .button {
    min-width: 128px;
  }

  .contact-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 4px 14px;
    padding-block: 12px;
  }

  .contact-icon {
    grid-row: 1 / span 2;
  }

  .contact-value {
    overflow-wrap: anywhere;
  }

}

/* 减少动态偏好下关闭滚动与装饰动画。 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
