/* ============================================================
   上海合嘉物流有限公司 - 门户样式 v4
   设计语言：Dribbble trending · Apple 极简风
   白底留白 · 近黑文字 · 品牌蓝点缀 · 胶囊按钮 · 浅灰分区 · 柔和渐变光晕
   ============================================================ */

:root {
  --c-text: #1d1d1f;          /* 主文字：Apple 近黑 */
  --c-text-2: #6e6e73;        /* 次级文字 */
  --c-text-3: #86868b;        /* 弱化文字 */
  --c-blue: #0071e3;          /* 品牌蓝 */
  --c-blue-deep: #0060c4;
  --c-blue-glow: rgba(0, 113, 227, 0.1);
  --c-bg: #ffffff;
  --c-bg-2: #f5f5f7;          /* 分区浅灰 */
  --c-line: rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 26px 64px rgba(0, 0, 0, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Source Han Sans SC", "Noto Sans SC", -apple-system,
               "SF Pro SC", "SF Pro Text", sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- 顶部品牌栏（极简白吸顶） ---------- */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 40px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-line);
}

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

.brand-logo {
  width: 58px;
  height: 44px;
  object-fit: contain;
  display: block;
}

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

.brand-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: 1px;
}

.brand-sub {
  font-size: 12px;
  color: var(--c-text-3);
  letter-spacing: 1px;
}

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

.brand-nav a {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--c-text);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.5px;
}

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

.brand-link {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.5px;
  background: var(--c-blue);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.brand-link:hover {
  background: var(--c-blue-deep);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.38);
  transform: translateY(-1px);
}

/* ---------- Hero 区 ---------- */
.hero {
  position: relative;
  padding: 128px 40px 104px;
  overflow: hidden;
}

/* 顶部柔和蓝色光晕（Dribbble trending 渐变点缀） */
.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 560px;
  background:
    radial-gradient(42% 58% at 50% 40%, rgba(0, 113, 227, 0.12), transparent 70%),
    radial-gradient(30% 44% at 30% 70%, rgba(0, 113, 227, 0.06), transparent 72%),
    radial-gradient(30% 44% at 70% 70%, rgba(88, 144, 214, 0.07), transparent 72%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  animation: rise 0.7s ease both;
}

.hero-inner.narrow { max-width: 460px; }

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--c-blue);
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: rise 0.7s 0.06s ease both;
}

.hero-title {
  font-size: clamp(34px, 5.6vw, 56px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.15;
  color: var(--c-text);
  margin-bottom: 22px;
  animation: rise 0.7s 0.12s ease both;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--c-blue), #4fa3f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 620px;
  margin: 0 auto 56px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.3px;
  line-height: 1.8;
  color: var(--c-text-2);
  animation: rise 0.7s 0.18s ease both;
}

/* ---------- 入口卡片 ---------- */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 860px;
  margin: 0 auto;
  scroll-margin-top: 90px;
  animation: rise 0.7s 0.24s ease both;
}

.entry-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 34px 38px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-line);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.entry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.entry-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-2);
  color: var(--c-blue);
  margin-bottom: 22px;
}

.entry-icon svg { width: 30px; height: 30px; }

.entry-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.entry-desc {
  font-size: 14px;
  color: var(--c-text-2);
  margin-bottom: 30px;
  min-height: 44px;
}

/* ---------- 通用板块 ---------- */
.section { padding: 108px 40px; }

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--c-blue);
  text-transform: uppercase;
  margin-bottom: 14px;
  text-align: center;
}

.section-title {
  font-size: clamp(28px, 3.8vw, 38px);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--c-text);
  text-align: center;
  margin-bottom: 18px;
}

.section-lead {
  max-width: 700px;
  margin: 0 auto 56px;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: var(--c-text-2);
  line-height: 1.9;
}

/* ---------- 关于我们 ---------- */
.about {
  scroll-margin-top: 76px;
  background: #fff;
}

/* ---------- 系统能力（浅灰分区） ---------- */
.service {
  scroll-margin-top: 76px;
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 38px 28px 34px;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-line);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-2);
  color: var(--c-blue);
  margin-bottom: 20px;
}

.service-ico svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.service-card p {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--c-text-2);
}

/* ---------- CTA（品牌蓝圆角横幅） ---------- */
.cta {
  position: relative;
  margin: 100px auto;
  max-width: 1180px;
  width: calc(100% - 80px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0071e3 0%, #0a84ff 55%, #34a2ff 100%);
  box-shadow: 0 30px 80px rgba(0, 113, 227, 0.3);
  overflow: hidden;
  animation: rise 0.7s ease both;
}

/* 渐变光斑叠加 */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 80% at 12% 0%,  rgba(255, 255, 255, 0.16), transparent 68%),
    radial-gradient(36% 70% at 96% 100%, rgba(255, 255, 255, 0.12), transparent 70%);
  z-index: 0;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 72px 40px;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 14px;
}

.cta-inner p {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 按钮（Apple 胶囊） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 34px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-blue), #0a84ff);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 113, 227, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 113, 227, 0.42);
}

.btn-ghost {
  background: #fff;
  color: var(--c-text);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
}

.btn-ghost:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.cta .btn-primary {
  background: #fff;
  color: #0071e3;
  box-shadow: 0 14px 34px rgba(0, 60, 140, 0.3);
}

.cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 60, 140, 0.38);
}

.cta .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}

.cta .btn-ghost:hover {
  background: #fff;
  color: var(--c-blue);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 60, 140, 0.3);
}

.btn-block { width: 100%; margin-top: 12px; }

/* ---------- 员工入口表单 ---------- */
.hero-slim {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-deco { display: none; }

.access-form {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 40px 36px 34px;
  box-shadow: var(--shadow);
  text-align: left;
  margin: 8px auto 0;
}

.access-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 10px;
}

.access-input {
  width: 100%;
  padding: 15px 18px;
  font-size: 15px;
  letter-spacing: 0.5px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  color: var(--c-text);
  background: var(--c-bg-2);
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
}

.access-input:focus {
  border-color: var(--c-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.access-input::placeholder { color: var(--c-text-3); }

.access-hint {
  font-size: 13px;
  margin-top: 8px;
  min-height: 20px;
  color: #e33d3d;
}

.access-help {
  margin-top: 24px;
  font-size: 13px;
  color: var(--c-text-3);
  line-height: 1.9;
}

/* ---------- 页脚（浅灰） ---------- */
.site-footer {
  padding: 44px 20px 40px;
  text-align: center;
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-line);
  color: var(--c-text-3);
}

.site-footer p {
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.site-footer .footer-sub {
  font-size: 12px;
  color: var(--c-text-3);
}

/* ---------- 动效 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner, .hero-eyebrow, .hero-title, .hero-desc, .entry-grid, .cta { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 84px 24px; }
  .hero { padding: 96px 24px 80px; }
}

@media (max-width: 760px) {
  .brand-bar { padding: 12px 18px; flex-wrap: wrap; }
  .brand-name { font-size: 15px; }
  .brand-nav { order: 3; width: 100%; justify-content: center; gap: 24px; padding-top: 10px; border-top: 1px solid var(--c-line); }
  .hero { padding: 72px 18px 60px; }
  .entry-grid { grid-template-columns: 1fr; gap: 18px; }
  .entry-desc { min-height: 0; }
  .section { padding: 68px 18px; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .cta { width: calc(100% - 36px); border-radius: 20px; margin: 64px auto; }
  .cta-inner { padding: 52px 26px; }
  .cta-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 420px) {
  .brand-logo { width: 48px; height: 38px; }
  .entry-card { padding: 36px 26px 32px; }
}

/* 统一登录表单 */
.login-form { text-align: left; margin-top: 20px; }

/* ---------- 统一登录（无边框融入式） ---------- */
.login-wrap {
  max-width: 440px;
  margin: 40px auto 0;
  text-align: left;
  animation: rise 0.7s 0.24s ease both;
  scroll-margin-top: 90px;
}

.login-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-align: center;
}

.login-desc {
  font-size: 14px;
  color: var(--c-text-2);
  margin-bottom: 34px;
  text-align: center;
  line-height: 1.7;
}

.login-form { text-align: left; }
.login-form .access-label { margin-top: 20px; }
.login-form .access-label:first-child { margin-top: 0; }
.login-form .btn-block { margin-top: 10px; }

.login-form .access-label { margin-top: 16px; }
.login-form .access-label:first-child { margin-top: 0; }
.login-form .btn-block { margin-top: 6px; }
