/* Reset and base variables */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #0066cc;
  --primary-dark: #004d99;
  --primary-light: #3385d6;
  --secondary: #f5f7fa;
  --text-dark: #0a2540;
  --text-light: #64748b;
  --white: #fff;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background: var(--secondary);
  line-height: 1.6;
  overflow-x: hidden;
}
body.no-scroll {
  overflow: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Font Awesome icon styling */
.fas, .fab, .far {
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}
.btn:hover, .btn:focus {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn--outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn--outline:hover, .btn--outline:focus {
  background: var(--primary);
  color: var(--white);
}
.btn--disabled,
.btn:disabled {
  background: #bfc9d1 !important;
  color: #fff !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  opacity: 0.7;
  pointer-events: none;
}
.section__title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}
.section__title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* 修正锚点定位偏移问题：为锚点section添加滚动补偿 */
section[id] {
  scroll-margin-top: 90px;
}

/* QR Modal Styles */
.qr-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
}
.qr-modal.active {
  opacity: 1;
  visibility: visible;
}
.qr-modal__content {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  max-width: 320px;
  width: 90vw;
  text-align: center;
  position: relative;
  animation: qrModalIn 0.25s;
}
@keyframes qrModalIn {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.qr-modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s;
}
.qr-modal__close:hover {
  color: #0a2540;
}
.qr-modal__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0a2540;
}
.qr-modal__image {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  background: #f5f7fa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.qr-modal__text {
  margin-top: 1rem;
  color: #64748b;
  font-size: 1rem;
}

@media (max-width: 1024px) {
  .container { padding: 0 1rem; }
  .section__title { font-size: 2rem; }
}
@media (max-width: 768px) {
  html { font-size: 14px; }
  .container { padding: 0 1rem; }
  .section__title { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 0.875rem; }
}
@media (max-width: 360px) {
  .container { padding: 0 0.75rem; }
}
