/* Shared iOS glass treatment: desktop header and footer only. */
:root {
  --ios-glass-surface: rgba(255, 255, 255, .72);
  --ios-glass-line: rgba(255, 255, 255, .72);
  --ios-ink: #172033;
  --ios-accent: #2f7cf6;
  --ios-spring: cubic-bezier(.22, 1.25, .36, 1);
}

.ios-glass-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  z-index: 50;
  min-height: 96px;
  padding: 16px 0;
  box-sizing: border-box;
  background: rgba(7, 11, 18, .52);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}

html { scroll-padding-top: 112px; }
body { padding-top: 0; }

body.ios-home-page { padding-top: 0; }

.ios-glass-header.ios-home-overlay {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.ios-glass-header.ios-home-overlay .ios-primary-nav li a {
  color: rgba(255, 255, 255, .94) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .24);
}

.ios-glass-header.ios-home-overlay.ios-scrolled {
  background: rgba(7, 11, 18, .52);
  border-bottom-color: rgba(255, 255, 255, .16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}

.ios-glass-header.ios-home-overlay.ios-scrolled .ios-primary-nav li a {
  color: rgba(255, 255, 255, .90) !important;
  text-shadow: none;
}

.ios-desktop-shell {
  width: 90% !important;
  max-width: 1920px;
  min-width: 0;
  height: auto !important;
  margin: 0 auto !important;
  overflow: visible !important;
  box-sizing: border-box;
}

.ios-glass-header .ios-desktop-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 64px;
}

.ios-glass-header .ios-brand,
.ios-glass-header .ios-primary-nav {
  float: none !important;
}

.ios-glass-header .ios-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 140px;
}

.ios-glass-header .ios-brand a {
  display: flex;
  align-items: center;
  min-height: 60px;
}

.ios-glass-header .ios-brand img {
  max-height: 62px !important;
  filter: drop-shadow(0 7px 12px rgba(34, 64, 119, .16));
  transition: transform .5s var(--ios-spring), filter .5s ease;
}

.ios-glass-header .ios-brand a:hover img {
  transform: translateY(-2px) scale(1.025);
  filter: drop-shadow(0 12px 18px rgba(34, 64, 119, .22));
}

.ios-glass-header .ios-primary-nav {
  margin-left: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0;
}

.ios-glass-header .ios-primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.ios-glass-header .ios-primary-nav li {
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

.ios-glass-header .ios-primary-nav li span {
  display: none !important;
}

.ios-glass-header .ios-primary-nav li a {
  display: block;
  width: auto !important;
  height: auto !important;
  padding: 11px 17px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, .90) !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: transform .42s var(--ios-spring), background-color .3s ease, box-shadow .3s ease, color .3s ease;
}

.ios-glass-header .ios-primary-nav li a:hover {
  color: var(--ios-accent) !important;
  background: rgba(255, 255, 255, .72) !important;
  border-color: rgba(255, 255, 255, .86) !important;
  box-shadow: 0 9px 20px rgba(48, 89, 150, .14);
  transform: translateY(-2px);
}

.ios-glass-header .ios-primary-nav li.on a {
  color: #fff !important;
  background: linear-gradient(135deg, #5c9cff, #3975ed) !important;
  border-color: rgba(255, 255, 255, .48) !important;
  box-shadow: 0 9px 18px rgba(42, 105, 224, .28);
}

.ios-glass-footer {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  background: linear-gradient(135deg, rgba(15, 31, 59, .94), rgba(43, 75, 129, .88));
  border-top: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 -12px 36px rgba(18, 36, 70, .12);
  color: rgba(255, 255, 255, .88);
}

.ios-glass-footer::before {
  position: absolute;
  inset: -45% auto auto 52%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(105, 161, 255, .20);
  filter: blur(2px);
  content: "";
  pointer-events: none;
}

.ios-glass-footer .footer {
  position: relative;
  /* 覆盖旧模板的 #303030，避免蓝色页脚中央出现深灰色块。 */
  background: transparent !important;
  padding: 46px 0 34px;
  box-sizing: border-box;
}

.ios-glass-footer .ios-footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
}

.ios-glass-footer .ios-footer-content .item,
.ios-glass-footer .ios-footer-content .contact_f {
  float: none !important;
  width: auto !important;
  min-width: 240px;
  height: auto !important;
  margin: 0 !important;
}

.ios-glass-footer .title {
  height: auto !important;
  margin-bottom: 14px !important;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 1.4 !important;
  font-weight: 600;
  letter-spacing: .04em;
}

.ios-glass-footer .item_c,
.ios-glass-footer .contact_eles {
  height: auto !important;
  color: rgba(255, 255, 255, .74) !important;
  line-height: 2 !important;
}

.ios-glass-footer .item_c a,
.ios-glass-footer .contact_eles a {
  display: inline-block;
  color: rgba(255, 255, 255, .80) !important;
  transition: color .25s ease, transform .35s var(--ios-spring);
}

.ios-glass-footer .item_c a:hover,
.ios-glass-footer .contact_eles a:hover {
  color: #fff !important;
  transform: translateX(3px);
}

.ios-glass-footer .footer2 {
  position: relative;
  background: rgba(0, 0, 0, .14) !important;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.ios-glass-footer .ios-footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
}

.ios-glass-footer .ios-footer-meta > img {
  display: none !important;
}

.ios-glass-footer .copyright {
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, .65) !important;
  line-height: 1.6 !important;
  text-align: center;
}

.ios-glass-footer .copyright a {
  color: rgba(255, 255, 255, .78) !important;
}

@media (max-width: 980px) {
  .ios-glass-header .ios-desktop-shell { gap: 18px; }
  .ios-glass-header .ios-primary-nav li a { padding: 9px 11px !important; font-size: 14px !important; }
  .ios-glass-footer .ios-footer-content { gap: 28px; }
}

/* English navigation labels need a little more room at common laptop widths. */
@media (max-width: 1440px) {
  .ios-glass-header .ios-desktop-shell { gap: 18px; }
  .ios-glass-header .ios-primary-nav ul { gap: 4px; }
  .ios-glass-header .ios-primary-nav li a { padding: 9px 10px !important; font-size: 13px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .ios-glass-header .ios-brand img,
  .ios-glass-header .ios-primary-nav li a,
  .ios-glass-footer .item_c a,
  .ios-glass-footer .contact_eles a { transition: none !important; }
}
