/* ==================== 翼讯优科技 · 全局基础样式 (base.css) ==================== */
/* 所有页面共享：变量、重置、排版、按钮、导航、底部、弹窗、动画 */

/* ==================== Reset & Variables ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
:root {
  /* 主色：红 */
  --primary: #d6000f;
  --primary-dark: #b5000d;
  --primary-light: #ff1a2a;
  --primary-soft: rgba(214,0,15,.06);
  --primary-glow: rgba(214,0,15,.15);
  /* 兼容旧引用 */
  --accent: var(--primary);
  --accent-soft: var(--primary-soft);
  --accent-light: #e63946;
  --accent-bright: #ff2d3b;
  --accent-glow: var(--primary-glow);
  /* 边框 */
  --border-medium: #e5e7eb;
  --border-dark: rgba(255,255,255,.1);
  --border-light: rgba(0,0,0,.06);
  /* 中性色 */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #667085;
  --gray-600: #475467;
  /* 深色背景 */
  --dark-900: #1a1a1f;
  --dark-800: #222228;
  --dark-700: #2b2b33;
  --surface-dark: #1e1e24;
  --surface-card: #262630;
  /* 文字色 */
  --text-white: #ffffff;
  --text-white-soft: rgba(255,255,255,.8);
  --text-white-muted: rgba(255,255,255,.5);
  --text-dark: #111827;
  --text-dark-soft: #4b5563;
  --text-dark-muted: #9ca3af;
}
body {
  font-family: 'Noto Sans SC', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.body--menu-open { overflow: hidden; }
a { text-decoration: none; color: inherit; transition: color .2s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
section { position: relative; }
[id] { scroll-margin-top: 80px; }

/* ==================== Layout ==================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container--wide { max-width: 1400px; }
.text-center { text-align: center; }

/* ==================== Typography ==================== */
.heading-xl {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
}
.heading-lg {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700; line-height: 1.3; letter-spacing: -0.01em;
}
.heading-md {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600; line-height: 1.4;
}
.body-lg {
  font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.8;
}
.section-desc {
  max-width: 640px; margin: 1rem auto 0;
  font-size: .95rem; line-height: 1.8; color: var(--text-dark-soft);
}
.section-desc--light { color: rgba(255,255,255,.85); }

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 6px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: all .2s ease; border: none;
  font-family: inherit; white-space: nowrap;
}
.btn--primary {
  background: var(--primary); color: var(--white);
  border-radius: 30px; padding: .85rem 2.2rem;
  box-shadow: 0 4px 16px rgba(214,0,15,.2);
}
.btn--primary:hover {
  background: var(--primary-dark); transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(214,0,15,.3);
}
.btn--outline-light {
  background: transparent; border: 1px solid rgba(255,255,255,.5);
  color: var(--white); border-radius: 30px;
}
.btn--outline-light:hover {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8);
}
.btn--outline-dark {
  background: transparent; border: 1px solid var(--gray-300);
  color: var(--text-dark); border-radius: 30px;
}
.btn--outline-dark:hover {
  border-color: var(--primary); color: var(--primary);
}
.btn--outline-primary {
  background: transparent; border: 1px solid var(--primary);
  color: var(--primary); border-radius: 30px;
}
.btn--outline-primary:hover { background: var(--primary-soft); }
.btn--ghost {
  background: transparent; color: var(--primary);
  padding-left: 0; padding-right: 0;
}
.btn--ghost:hover { color: var(--primary-dark); }
.btn--ghost svg { transition: transform .2s; }
.btn--ghost:hover svg { transform: translateX(3px); }
.btn--white {
  background: var(--white); color: var(--primary);
  border-radius: 30px; padding: .85rem 2.2rem; font-weight: 700;
}
.btn--white:hover { background: #f0f0f0; transform: translateY(-1px); }

/* ==================== Navigation ==================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0; height: 64px;
  display: flex; align-items: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-medium);
  transition: all .3s;
}
body.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .nav { top: 46px; }
}
.nav--scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.nav__logo {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.1rem; color: var(--primary); flex-shrink: 0;
}
.nav__logo-img {
  height: 32px; width: auto; object-fit: contain;
  display: inline-block; flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(14%) sepia(96%) saturate(6028%) hue-rotate(356deg) brightness(95%) contrast(107%);
}
.nav__links { display: flex; align-items: center; gap: 0; }
.nav__links a {
  color: var(--text-dark-soft); font-size: .88rem; font-weight: 400;
  padding: .5rem 1.1rem; transition: color .2s; position: relative;
}
.nav__links a:hover { color: var(--text-dark); }
.nav__links a.is-active { color: var(--primary); font-weight: 600; }
.nav__links a.is-active::after {
  content: ''; position: absolute; bottom: -.2rem; left: 1.1rem; right: 1.1rem;
  height: 2px; border-radius: 2px; background: var(--primary);
}
.nav__hotline {
  display: flex; align-items: center; gap: .3rem;
  font-size: .82rem; color: var(--primary); font-weight: 600;
  margin-left: .5rem; white-space: nowrap;
}
.nav__hotline svg { width: 14px; height: 14px; flex-shrink: 0; }
.nav__cta {
  padding: .45rem 1.2rem !important; font-size: .82rem !important;
  background: transparent !important; color: var(--primary) !important;
  border: 1px solid var(--primary) !important; border-radius: 30px;
  font-weight: 600 !important; margin-left: .5rem;
}
.nav__cta:hover { background: var(--primary-soft) !important; }
/* Nav Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle { display: flex; align-items: center; gap: .3rem; cursor: pointer; }
.nav__dropdown-toggle svg { width: 14px; height: 14px; transition: transform .2s; fill: currentColor; flex-shrink: 0; }
.nav__dropdown:hover .nav__dropdown-toggle svg { transform: rotate(180deg); }
.nav__dropdown-menu {
  position: absolute; top: calc(100% + .2rem); left: 50%; transform: translateX(-50%);
  min-width: 180px; background: var(--white);
  border: 1px solid var(--border-medium); border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.1); padding: .5rem;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease;
}
/* 用伪元素填补触发区域到菜单之间的间隙，防止鼠标经过空隙时触发 mouseout */
.nav__dropdown-menu::before {
  content: ''; position: absolute; top: -1rem; left: 0; right: 0; height: 1rem;
}
.nav__dropdown:hover .nav__dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; }
.nav__dropdown-menu a {
  display: block; padding: .55rem .9rem; border-radius: 6px;
  font-size: .85rem; color: var(--text-dark-soft); white-space: nowrap; transition: all .15s;
}
.nav__dropdown-menu a::after { display: none !important; }
.nav__dropdown-menu a:hover { background: var(--gray-50); color: var(--primary); }
.nav__mobile { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav__mobile svg { width: 24px; height: 24px; fill: var(--text-dark); }

/* ==================== Sections ==================== */
.section { padding: 6rem 0; }
.section--dark { background: var(--dark-900); color: var(--text-white); }
.section--darker { background: var(--dark-900); color: var(--text-white); }
.section--dark .heading-lg, .section--darker .heading-lg { color: var(--white); }
.section--dark .heading-lg::after, .section--darker .heading-lg::after { background: var(--accent-bright); }
.section--dark .section-desc, .section--darker .section-desc { color: var(--text-white-soft); }
.section--dark .section-tag, .section--darker .section-tag { color: var(--white); background: rgba(255,255,255,.1); }
.section--dark .section-tag::before, .section--darker .section-tag::before { background: var(--white); }
.section--light { background: var(--gray-50); }
.section--white { background: var(--white); }
.section-tag {
  display: block; width: fit-content; margin: 0 auto 1.4rem;
  font-size: .92rem; font-weight: 600; letter-spacing: .06em;
  color: var(--primary); background: var(--primary-soft);
  padding: .4rem 1.1rem; border-radius: 100px;
}
.section-tag::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  background: var(--primary); border-radius: 50%; margin-right: .45rem;
  vertical-align: middle; position: relative; top: -1px;
}
.section-tag--light { color: #fff; background: rgba(255,255,255,.18); }
.section-tag--light::before { background: #fff; }
.section-label {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
  padding: .35rem 1rem; border: 1px solid rgba(214,0,15,.15);
  border-radius: 100px; background: var(--primary-soft);
}
.section-subtitle { margin: 1rem auto 0; max-width: 980px; font-size: clamp(.96rem,1.12vw,1.05rem); line-height: 1.82; }
.section-subtitle--muted { color: var(--text-dark-soft); }
.section-subtitle--soft { color: rgba(17,24,39,.72); }
.section-subtitle--spacious { margin-top: 1.5rem; }
.text-gold { color: var(--primary); }
.text-blue { color: var(--primary-dark); }
.text-muted { color: var(--text-dark-soft); }

/* Section heading underline accent */
.section .heading-lg {
  position: relative; display: inline-block;
  padding-bottom: .65rem; margin-top: .15rem;
}
.section .heading-lg::after {
  content: ''; position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 3px; background: var(--primary); border-radius: 2px;
}

/* ==================== Page Hero (sub-pages) ==================== */
.page-hero {
  position: relative; padding: 8.5rem 0 4rem;
  background: var(--gray-50); overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 75% 20%, rgba(214,0,15,.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(214,0,15,.03) 0%, transparent 50%),
    linear-gradient(180deg, var(--gray-50) 0%, #fff 100%);
}
.page-hero__bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,0,0,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero__inner { max-width: 780px; margin: 0 auto; text-align: center; }
.page-hero__tag {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem; border-radius: 100px;
  font-size: .78rem; font-weight: 600;
  background: var(--primary-soft); color: var(--primary);
  margin-bottom: 1.5rem;
}
.page-hero__title { color: var(--text-dark); margin-top: .5rem; }
.page-hero__title em { font-style: normal; color: var(--primary); }
.page-hero__lead {
  max-width: 620px; margin: 1.5rem auto 0;
  font-size: 1.02rem; line-height: 1.85; color: var(--text-dark-soft);
}
.page-hero__actions { display: flex; gap: .75rem; margin-top: 2.5rem; flex-wrap: wrap; justify-content: center; }

/* ==================== CTA (sub-pages) ==================== */
.cta {
  padding: 6rem 0; text-align: center; position: relative; overflow: hidden;
  background: #1a0005 url('../img/bg/cta-office.jpg') center/cover no-repeat;
}
.cta__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(214,0,15,.88), rgba(160,0,10,.85));
}
.cta .container { position: relative; z-index: 2; }
.cta__panel { max-width: 720px; margin: 0 auto; }
.cta__meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .6rem; margin-top: 1.5rem;
}
.cta__meta-item {
  padding: .4rem .9rem; border-radius: 6px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: var(--white); font-size: .82rem;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.cta__actions {
  display: flex; gap: .75rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap;
}

/* ==================== Footer (dark, matches homepage) ==================== */
.footer {
  background: #1a1a1f; color: rgba(255,255,255,.6);
  padding: 4.5rem 0 0; font-size: .82rem; border-top: none;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3.5rem; padding-bottom: 3.5rem;
}
.footer__logo {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 1.2rem;
}
.footer__logo img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.footer__contact { font-size: .85rem; line-height: 2.2; color: rgba(255,255,255,.85); }
.footer__contact a { color: #fff; font-weight: 600; }
.footer__contact a:hover { color: rgba(255,255,255,.75); }
.footer__col-title {
  font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 1.2rem; padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__col-links { display: flex; flex-direction: column; gap: .65rem; }
.footer__col-links a { font-size: .85rem; color: rgba(255,255,255,.6); transition: all .2s; }
.footer__col-links a:hover { color: #fff; padding-left: 4px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0; text-align: center;
  font-size: .78rem; color: rgba(255,255,255,.3);
}

/* ==================== Phone Modal ==================== */
.phone-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; }
.phone-modal--open { display: flex; }
.phone-modal__box { background: var(--white); border-radius: 16px; padding: 2.5rem 2rem; text-align: center; max-width: 380px; width: 90%; position: relative; box-shadow: 0 32px 80px rgba(0,0,0,.3); animation: modalIn .3s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(.95) translateY(10px); } to { opacity: 1; transform: none; } }
.phone-modal__close { position: absolute; top: .8rem; right: 1rem; background: none; border: none; font-size: 1.6rem; color: var(--gray-400); cursor: pointer; line-height: 1; transition: color .2s; }
.phone-modal__close:hover { color: var(--text-dark); }
.phone-modal__icon { font-size: 2.2rem; margin-bottom: .6rem; }
.phone-modal__title { font-size: 1.25rem; font-weight: 700; color: var(--text-dark); margin-bottom: .5rem; }
.phone-modal__desc { font-size: .9rem; color: var(--text-dark-soft); line-height: 1.7; margin-bottom: 1.2rem; }
.phone-modal__number { display: inline-block; font-size: 1.5rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: .6rem 1.6rem; border-radius: 8px; transition: all .2s; }
.phone-modal__number:hover { background: rgba(214,0,15,.1); }
.phone-modal__hint { font-size: .78rem; color: var(--text-dark-muted); margin-top: .5rem; }

/* ==================== Scroll Animations ==================== */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal--visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .4s; }

/* ==================== Mobile Menu ==================== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.5rem;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility .3s;
}
.mobile-menu--open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu a {
  font-size: 1.2rem; color: var(--text-dark-soft); font-weight: 500;
  padding: .6rem 1rem; transition: color .2s;
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu__link.is-active { color: var(--primary); }
.mobile-menu__close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: none; cursor: pointer; padding: .5rem;
}
.mobile-menu__close svg { width: 24px; height: 24px; fill: var(--text-dark); }

/* ==================== Reduced Motion ==================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .page-hero { padding: 7rem 0 3rem; }
  .nav__links { display: none; }
  .nav__hotline { display: none; }
  .nav__mobile { display: block; }
  .page-hero__actions { flex-direction: column; align-items: center; }
  .cta__actions { flex-direction: column; align-items: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
