/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.section {
  padding: var(--space-4xl) 0;
}
.section-alt {
  background: var(--color-bg);
}
.section-dark {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: var(--space-md); }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
}
.logo-img {
  height: 52px;
  width: auto;
}
.logo-text {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1;
  letter-spacing: 0.04em;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
  font-weight: 700; font-size: 1rem;
}
.nav-list {
  display: flex;
  gap: var(--space-xl);
}
.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-sm) 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width 0.3s;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}
.nav-caret {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.7em;
  transition: transform 0.25s;
}
.nav-dropdown:hover > .nav-link .nav-caret,
.nav-dropdown.open > .nav-link .nav-caret {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm) 0;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown.open > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  color: var(--color-text);
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.nav-dropdown-menu a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding-left: calc(var(--space-lg) + 4px);
}
.nav-dropdown-menu a::after { display: none; }

.mobile-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  padding: var(--space-sm);
}
.mobile-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Announcement ticker (轮播字幕条)
   ---------------------------------
   公共组件，由 js/components.js 注入，紧跟 .site-header 之后。
   - 文案从右向左无缝滚动，鼠标悬停暂停
   - 右上角 × 可关闭，刷新页面后重新出现
   - 关闭后由 JS 同步收掉下面的占位高度，避免页头压住内容 */
.announce-bar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: 44px;
  z-index: 999;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-accent) 100%);
  color: var(--color-white);
  box-shadow: 0 2px 10px rgba(13, 71, 161, 0.18);
  overflow: hidden;
}
.announce-bar.is-hidden { display: none; }

/* 让出公告条高度，避免固定页头遮住页面顶部 */
.header-offset { height: calc(var(--header-height) + 44px); }
.header-offset.is-hidden { height: var(--header-height); }

.announce-inner {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 左侧"新品"标识 */
.announce-label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  margin-right: var(--space-md);
  padding: 0 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.announce-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75);
  animation: announce-pulse 2s ease-out infinite;
}
@keyframes announce-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* 滚动视窗 */
.announce-viewport {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.announce-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  animation: announce-scroll 22s linear infinite;
}
.announce-bar:hover .announce-track { animation-play-state: paused; }
@keyframes announce-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.announce-item {
  flex-shrink: 0;
  padding-right: 64px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
}
.announce-item b {
  font-weight: 700;
  color: #fff;
  padding: 0 2px;
}

/* 关闭按钮 */
.announce-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-left: var(--space-sm);
  margin-right: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.announce-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg);
}

@media (max-width: 767px) {
  .announce-bar { height: 40px; }
  .header-offset { height: calc(var(--header-height) + 40px); }
  .header-offset.is-hidden { height: var(--header-height); }
  .announce-label { display: none; }
  .announce-item { font-size: 0.875rem; padding-right: 40px; }
  .announce-close { margin-right: var(--space-sm); }
}

@media (prefers-reduced-motion: reduce) {
  .announce-track { animation-duration: 60s; }
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}
.footer-brand .logo-text {
  font-size: 1.5rem;
  color: var(--color-white);
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  opacity: 0.8;
}
.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}
.footer-links li { margin-bottom: var(--space-sm); }
.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
}
.footer-links a:hover { color: var(--color-white); }
.footer-contact li {
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
  display: flex; align-items: flex-start; gap: var(--space-sm);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: 0.8125rem;
  opacity: 0.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
}
.btn-white:hover {
  background: var(--color-bg);
}

/* Cards */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-2xl);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid var(--color-primary);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 56px; height: 56px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
}
.card-icon svg {
  width: 28px; height: 28px;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.card-text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Grid utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); }

/* Hero */
.hero {
  position: relative;
  min-height: 600px;
  display: flex; align-items: center;
  padding-top: calc(var(--header-height) + 44px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(13,71,161,0.75);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 800px;
  color: var(--color-white);
}
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}
.hero-desc {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}
.hero-actions { display: flex; gap: var(--space-md); }

/* Hero carousel */
.hero-carousel .hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,71,161,0.85) 0%, rgba(13,71,161,0.55) 60%, rgba(13,71,161,0.25) 100%);
  z-index: 1;
}
.hero-slide .hero-content {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s ease 0.2s;
}
.hero-slide.active .hero-content {
  opacity: 1;
}
.hero-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  backdrop-filter: blur(6px);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
}
.hero-arrow:hover {
  background: rgba(255,255,255,0.3);
}
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }
.hero-cta {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.btn-outline-light {
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  text-decoration: none;
  transition: all 0.25s;
  display: inline-block;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hero-dot:hover { background: rgba(255,255,255,0.7); }
.hero-dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.3s;
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-primary-dark); }

/* Responsive */
@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2.25rem; }
}

@media (max-width: 767px) {
  .nav-list {
    position: fixed;
    top: var(--header-height); left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    padding: var(--space-lg);
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }
  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-link { padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); }
  .nav-link::after { display: none; }
  /* Mobile: dropdown stacks vertically inside nav-list */
  .nav-dropdown { width: 100%; }
  .nav-dropdown > .nav-link { display: flex; justify-content: space-between; align-items: center; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border: none;
    border-top: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--color-bg);
    width: 100%;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-dropdown.open > .nav-dropdown-menu { max-height: 600px; }
  .nav-dropdown-menu a { padding-left: var(--space-xl); }
  .nav-dropdown-menu a:hover { padding-left: calc(var(--space-xl) + 4px); }
  .mobile-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .section { padding: var(--space-2xl) 0; }
  .hero { min-height: 480px; }
  .hero-title { font-size: 1.875rem; }
  .hero-desc { font-size: 1rem; }
  .hero { padding-top: calc(var(--header-height) + 40px); }
  .hero-actions { flex-direction: column; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.25rem; }
}
