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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--font-family-cn);
}

body {
  font-family: var(--font-family-cn);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-cn);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  color: var(--color-text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: 48px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent-cyan);
  color: var(--color-bg-primary);
  padding: 8px 16px;
  z-index: 10000;
  font-weight: var(--font-weight-medium);
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  top: 0;
}

/* Focus States */
:focus-visible {
  outline: 2px solid var(--color-accent-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-height: var(--touch-target-min);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--color-accent-cyan);
  color: var(--color-bg-primary);
}

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-text-primary);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-cta {
  background-color: var(--color-accent-orange);
  color: var(--color-text-primary);
}

.btn-cta:hover {
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

/* Cards */
.card {
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  padding: 40px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* Section Animations */
.section-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}

.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page Load Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-load {
  animation: fadeIn 600ms ease-out;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .section-animate {
    opacity: 1;
    transform: none;
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 85px;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.navbar .container {
  height: 100%;
}

.navbar.scrolled {
  background-color: var(--color-bg-nav);
  border-bottom-color: var(--color-border);
}

.navbar .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar .logo {
  position: absolute;
  left: 24px;
}

.navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 64px;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--color-text-primary);
}

.logo-icon {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links .current {
  color: var(--color-text-primary);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-hover);
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease-out, transform 200ms ease-out, visibility 200ms;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 24px;
  font-size: var(--font-size-body-sm);
  color: var(--color-text-secondary);
  border-left: 3px solid transparent;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu a:hover {
  background-color: #1A2744;
  color: var(--color-text-primary);
}

/* Language Switcher */
.lang-switcher {
  position: absolute;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 0;
}

.lang-switcher .lang-btn {
  padding: 0 15px;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
  height: 23px;
  line-height: 21px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-switcher .lang-btn:hover {
  background: RGBA(255,255,255,0.3);
}

.lang-switcher .lang-btn.active {
  background: RGBA(255,255,255,0.5);
  color: #fff;
}

.lang-switcher .lang-btn:first-child {
  border-right: none;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: transform 300ms ease, opacity 300ms ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background-color: var(--color-bg-primary);
  z-index: 999;
  padding: 80px 32px 32px;
  transform: translateX(100%);
  transition: transform 300ms ease;
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 998;
}

.mobile-nav-overlay.active {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-links > li {
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-links a {
  display: block;
  padding: 20px 0;
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-dropdown-icon {
  transition: transform 300ms ease;
}

.mobile-dropdown-toggle.expanded .mobile-dropdown-icon {
  transform: rotate(180deg);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.mobile-submenu.expanded {
  max-height: 200px;
}

.mobile-submenu a {
  padding: 12px 0 12px 24px;
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
}

.mobile-contact {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.mobile-contact p {
  color: var(--color-text-muted);
  font-size: var(--font-size-caption);
  margin-bottom: 8px;
}

/* Footer */
.footer {
  background-color: #333333;
  padding: 50px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-col {
  color: #FFFFFF;
  text-align: left;
}

.footer-col p {
  margin-bottom: 10px;
}

.footer-col p:last-child {
  margin-bottom: 0;
}

.footer-heading {
  font-size: 18px;
  color: #FFFFFF;
  font-weight: 400;
  line-height: 24px;
}

.footer-phone {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 24px;
}

.footer-text {
  font-size: 14px;
  color: #CCCCCC;
  line-height: 24px;
}

.footer-text a {
  color: #CCCCCC;
  text-decoration: none;
}

.footer-text a:hover {
  color: #FFFFFF;
}

.footer-text-indent {
  margin-left: 36px;
}

.footer-beian-inner {
  white-space: nowrap;
  display: inline;
}

.footer-beian {
  font-size: 12px;
  color: #CCCCCC;
  line-height: 24px;
}

.footer-beian a {
  color: #CCCCCC;
  text-decoration: none;
}

.footer-beian a:hover {
  color: #FFFFFF;
}

.footer-copyright {
  font-size: 12px;
  color: #CCCCCC;
  line-height: 24px;
}

.footer-qr {
  width: 100px;
  height: 100px;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-col-qr {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-h1: 28px;
    --font-size-h2: 26px;
    --font-size-h3: 24px;
    --font-size-h4: 22px;
    --font-size-body: 15px;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .nav-links,
  .navbar .btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
