/* ==========================================================================
   SanC 主题（与 YoursDesigner commonjs/frontend/css/sanc-theme.css 保持同一份；
   改页头 / 页脚样式时两边一起改，否则两站切换时会跳样式）
   品牌：SanC 蓝 #0056B3 · QC 绿 #1FA34A / 按钮 #117A37 · 深海蓝 #002550
         警示红 #FF5A5F · 墨色 #14233C · 浅灰底 #F3F6FA · 线 #E3E8F0
   字体：Noto Sans SC（中文）· Barlow / Barlow Condensed（英文、数字）
   与 SanC 官网框架（重塑标签平台参考/SanC官网框架）保持一致。
   ========================================================================== */

:root {
  --sc-blue: #0056B3;
  --sc-blue-hover: #00479A;
  --sc-blue-ink: #003F86;
  --sc-blue-soft: #E8F0FA;
  --sc-green: #1FA34A;
  --sc-green-btn: #117A37;
  --sc-green-hover: #0E6A2F;
  --sc-green-soft: #E7F6EC;
  --sc-navy: #002550;
  --sc-navy-line: #1C3560;
  --sc-red: #FF5A5F;
  --sc-red-ink: #C8333A;
  --sc-ink: #14233C;
  --sc-body: #4A5A73;
  --sc-muted: #5B6B84;
  --sc-faint: #8A97AB;
  --sc-line: #E3E8F0;
  --sc-field: #C5CFDD;
  --sc-paper: #F3F6FA;
  --sc-card-bg: #E9EEF5;
  --sc-max: 1240px;
  --sc-radius: 4px;
  --sc-radius-card: 8px;
  --sc-font: "Noto Sans SC", "Barlow", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --sc-font-latin: "Barlow", "Noto Sans SC", "Segoe UI", sans-serif;
  --sc-font-cond: "Barlow Condensed", "Barlow", "Arial Narrow", sans-serif;

  /* 旧 site.css 变量映射到 SanC 品牌 */
  --yl-blue: var(--sc-blue);
  --yl-blue-deep: var(--sc-blue);
  --yl-blue-nav: var(--sc-blue);
  --yl-orange: var(--sc-green-btn);
  --yl-orange-hover: var(--sc-green-hover);
  --yl-charcoal: var(--sc-ink);
  --yl-hero: var(--sc-paper);
  --yl-ink: var(--sc-ink);
  --yl-muted: var(--sc-muted);
  --yl-line: var(--sc-line);
  --yl-paper: var(--sc-paper);
  --yl-max: var(--sc-max);
  --yl-gray-200: var(--sc-line);
  --yl-gray-300: var(--sc-field);
  --yl-gray-500: var(--sc-muted);
  --yl-gray-600: var(--sc-body);
  --font-display: var(--sc-font);
  --font-body: var(--sc-font);
}

html { scroll-padding-top: 88px; }
body, .sc-body {
  font-family: var(--sc-font);
  color: var(--sc-ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: rgba(0, 86, 179, .16); }

/* ---------- 通用组件 ---------- */
.sc-eyebrow {
  font-family: var(--sc-font-latin);
  font-weight: 600;
  letter-spacing: .14em;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--sc-green-btn);
}
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--sc-radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.sc-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.sc-btn-blue { background: var(--sc-blue); color: #fff; }
.sc-btn-blue:hover { background: var(--sc-blue-hover); color: #fff; }
.sc-btn-green { background: var(--sc-green-btn); color: #fff; }
.sc-btn-green:hover { background: var(--sc-green-hover); color: #fff; }
.sc-btn-line { background: #fff; color: var(--sc-blue); border: 1.5px solid var(--sc-field); }
.sc-btn-line:hover { border-color: var(--sc-blue); }
.sc-btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.sc-btn-ghost-light:hover { background: rgba(255,255,255,.16); }

/* 旧按钮统一成 SanC 风格：.yl-btn = 行动绿，.yl-btn.ghost = 白底描边 */
.yl-btn {
  min-height: 40px;
  border-radius: var(--sc-radius);
  background: var(--sc-green-btn);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0;
}
.yl-btn:hover { background: var(--sc-green-hover); color: #fff; }
.yl-btn.ghost {
  background: #fff;
  color: var(--sc-blue);
  border: 1.5px solid var(--sc-field);
}
.yl-btn.ghost:hover { background: #fff; border-color: var(--sc-blue); color: var(--sc-blue); }
.yl-btn.primary, .yl-btn.is-primary { background: var(--sc-blue); }
.yl-btn.primary:hover, .yl-btn.is-primary:hover { background: var(--sc-blue-hover); }
.yl-btn.is-danger, .yl-btn.danger { background: var(--sc-red-ink); color: #fff; border: 0; }
.yl-btn.is-danger:hover, .yl-btn.danger:hover { background: #A9262D; }
.yl-btn:focus-visible, .sc-btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sc-blue);
  outline-offset: 2px;
}

input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], select, textarea {
  font-family: inherit;
}
.yl-field input, .yl-field select, .yl-field textarea,
.search-row input, .yl-toolbar input[type="search"] {
  min-height: 44px;
  border: 1px solid var(--sc-field);
  border-radius: var(--sc-radius);
  font-size: 15px;
  color: var(--sc-ink);
  background: #fff;
}
.yl-field input:focus, .yl-field select:focus, .yl-field textarea:focus,
.search-row input:focus { border-color: var(--sc-blue); box-shadow: 0 0 0 3px rgba(0, 86, 179, .12); outline: none; }

.yl-crumb { display: none; }

/* ---------- 页头 ---------- */
#yl-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  transition: box-shadow .2s ease;
}
#yl-header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(3, 20, 50, .35); }
.sc-header { background: #fff; border-bottom: 1px solid var(--sc-line); }
.sc-header-inner {
  max-width: var(--sc-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sc-logo img { height: 44px; width: auto; display: block; }
.sc-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.sc-nav-link { color: var(--sc-ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.sc-nav-link:hover { color: var(--sc-blue); }
.sc-nav-link.is-active { color: var(--sc-blue); font-weight: 700; border-bottom-color: var(--sc-green); padding-bottom: 4px; }
.sc-actions { display: flex; align-items: center; gap: 6px; }
.sc-account { display: inline-flex; align-items: center; gap: 4px; }
.sc-login-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  color: var(--sc-blue); font-weight: 700; font-size: 15px; text-decoration: none;
}
.sc-login-link:hover { color: var(--sc-green-btn); }
.sc-icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: var(--sc-radius); background: transparent;
  color: var(--sc-body); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px;
}
.sc-icon-btn:hover { background: var(--sc-paper); color: var(--sc-blue); }
.sc-menu-btn { display: none; }

.sc-lang { position: relative; }
.sc-lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 150px; padding: 6px;
  background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius-card);
  box-shadow: 0 16px 40px rgba(3, 20, 50, .14); display: none; z-index: 120;
}
.sc-lang-menu.open { display: block; }
.sc-lang-item {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 12px; border: 0; background: transparent; border-radius: var(--sc-radius);
  font: inherit; font-size: 14px; color: var(--sc-ink); cursor: pointer; text-align: left;
}
.sc-lang-item:hover { background: var(--sc-paper); }
.sc-lang-item.is-active { color: var(--sc-blue); font-weight: 700; }

.sc-user { position: relative; }
.sc-user-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px 0 6px;
  border: 0; background: transparent; border-radius: var(--sc-radius); cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--sc-ink);
}
.sc-user-btn:hover { background: var(--sc-paper); }
.sc-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--sc-blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sc-font-latin); font-weight: 700; font-size: 15px;
}
.sc-user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-user-chev { font-size: 11px; color: var(--sc-faint); }
.sc-user-menu {
  position: absolute; right: 0; top: calc(100% + 4px); min-width: 220px; padding: 6px;
  background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius-card);
  box-shadow: 0 16px 40px rgba(3, 20, 50, .16); display: none; z-index: 120;
}
.sc-user-menu.open { display: block; }
.sc-user-info { padding: 10px 12px 12px; border-bottom: 1px solid var(--sc-line); margin-bottom: 4px; display: grid; gap: 2px; }
.sc-user-info b { font-size: 15px; }
.sc-user-info span { font-size: 13px; color: var(--sc-muted); word-break: break-all; }
.sc-user-menu a, .sc-user-menu button {
  display: block; width: 100%; padding: 9px 12px; border: 0; background: transparent; border-radius: var(--sc-radius);
  font: inherit; font-size: 14px; color: var(--sc-ink); text-align: left; text-decoration: none; cursor: pointer;
}
.sc-user-menu a:hover, .sc-user-menu button:hover { background: var(--sc-paper); color: var(--sc-blue); }
.sc-user-menu #ylLogoutBtn { color: var(--sc-red-ink); }

/* ---------- 页脚 ---------- */
.sc-footer { background: var(--sc-navy); color: #B9C6DA; padding: 64px 24px 32px; font-size: 14px; }
.sc-footer-inner { max-width: var(--sc-max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px 56px; }
.sc-foot-brand { flex: 1 1 280px; }
.sc-foot-brand img { height: 60px; width: auto; display: block; }
.sc-foot-brand p { margin: 18px 0 0; line-height: 1.8; max-width: 320px; }
.sc-foot-col { flex: 1 1 140px; display: flex; flex-direction: column; gap: 10px; }
.sc-foot-wide { flex-basis: 220px; }
.sc-foot-col b { color: #fff; font-weight: 700; }
.sc-foot-col a { color: #B9C6DA; text-decoration: none; }
.sc-foot-col a:hover { color: #fff; }
.sc-footer-bottom {
  max-width: var(--sc-max); margin: 48px auto 0; padding-top: 20px; border-top: 1px solid var(--sc-navy-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #8FA6C8;
}
.sc-footer-bottom a { color: #B9C6DA; text-decoration: underline; }
.sc-footer-bottom a:hover { color: #fff; }
.sc-foot-langs { display: inline-flex; align-items: center; gap: 8px; }
.sc-foot-langs i { font-style: normal; }
.sc-foot-lang { border: 0; background: transparent; color: #8FA6C8; font: inherit; cursor: pointer; padding: 2px 0; }
.sc-foot-lang:hover, .sc-foot-lang.is-active { color: #fff; }

/* ---------- 平台页眉（蓝底蜂窝，同官网标签设计平台 Hero） ---------- */
.sc-hero {
  position: relative;
  overflow: hidden;
  background: var(--sc-blue);
  color: #fff;
}
.sc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16Z M28 64v33' fill='none' stroke='%23FFFFFF' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  pointer-events: none;
}
.sc-hero-inner {
  position: relative;
  max-width: var(--sc-max);
  margin: 0 auto;
  padding: 36px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.sc-hero .sc-eyebrow { color: #BFF0D3; }
.sc-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
  color: #fff;
}
.sc-hero p { margin: 10px 0 0; font-size: 16px; line-height: 1.7; color: #DCE6F5; max-width: 640px; }
.sc-hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.sc-stat {
  min-width: 120px;
  padding: 14px 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
}
.sc-stat b { display: block; font-family: var(--sc-font-cond); font-size: 30px; line-height: 1; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.sc-stat span { display: block; margin-top: 6px; font-size: 13px; color: #C9D5E8; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .sc-header-inner { flex-wrap: nowrap; }
  .sc-menu-btn { display: inline-flex; }
  .sc-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: #fff; border-bottom: 1px solid var(--sc-line);
    box-shadow: 0 18px 30px -18px rgba(3, 20, 50, .35);
  }
  .sc-nav-open .sc-nav { display: flex; }
  .sc-nav-link { padding: 12px 4px; border-bottom: 1px solid var(--sc-line); }
  .sc-nav-link.is-active { border-bottom: 1px solid var(--sc-line); box-shadow: inset 3px 0 0 var(--sc-green); padding-left: 12px; }
  .sc-header { position: relative; }
  .sc-user-name { display: none; }
}
@media (max-width: 560px) {
  .sc-header-inner { padding: 10px 16px; gap: 8px; }
  .sc-logo img { height: 36px; }
  .sc-login-link { padding: 0 8px; font-size: 14px; }
  .sc-account .sc-btn { padding: 0 12px; font-size: 14px; min-height: 40px; }
  .sc-hero-inner { padding: 28px 16px 30px; }
  .sc-footer { padding: 48px 16px 28px; }
}
