/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #e2e8f0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 鼠标跟随光效 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.15), transparent 40%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* 页面加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* 脉冲动画 */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Styles - Fixed Layout Issues */
.site-header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #f1f5f9;
  font-weight: 600;
  font-size: 1.25rem;
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(0, 150, 214, 0.3));
}

.brand:hover img {
  transform: rotate(360deg) scale(1.1);
  filter: drop-shadow(0 0 12px rgba(0, 150, 214, 0.6));
}

.brand.mini img {
  width: 24px;
  height: 24px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
  overflow: hidden;
}

.main-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
  transition: left 0.5s ease;
}

.main-nav a:hover::before {
  left: 100%;
}

.main-nav a:hover,
.main-nav a.active {
  color: #93c5fd;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 1px;
}

.download-btn {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.support-note {
  font-size: 0.9rem;
  color: #94a3b8;
  text-align: center;
  max-width: 500px;
  line-height: 1.5;
  background: rgba(30, 41, 59, 0.3);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(10px);
  margin-top: 0.5rem;
}

.support-note a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.support-note a:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.download-icon {
  font-size: 1.3rem;
  margin-right: 0.75rem;
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* Page Hero */
.page-hero {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn.primary, .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.btn.primary::before, .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.btn.primary:hover::before, .btn-primary:hover::before {
  left: 100%;
}

.btn.primary:hover, .btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.btn.secondary {
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.btn.secondary:hover {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(148, 163, 184, 0.2);
}

/* Section Styles - Enhanced with better spacing and visual separation */
.section {
  padding: 6rem 0;
  position: relative;
  margin: 2rem 0;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.2), transparent);
}

.section:first-child::before {
  display: none;
}

.mission,
.mission-section,
.features,
.how-it-works,
.trust,
.key-free-tech,
.exchange-process {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  margin: 4rem 0;
  background: rgba(30, 41, 59, 0.1);
  border-radius: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.05);
}

.mission::before,
.mission-section::before,
.features::before,
.how-it-works::before,
.trust::before,
.key-free-tech::before,
.exchange-process::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  border-radius: 2rem;
  z-index: -1;
}

.mission h2,
.mission-section h2,
.features h2,
.how-it-works h2,
.trust h2,
.key-free-tech h2,
.exchange-process h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #f1f5f9, #60a5fa, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.mission p,
.mission-section p,
.features p,
.how-it-works p,
.trust p {
  font-size: 1.2rem;
  color: #cbd5e1;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
}

/* 保持首页等全宽模块布局基于大容器 */
.features .container,
.how-it-works .container,
.trust .container,
.team-section .container,
.mission-section .container,
.hero .container,
.page-hero .container {
  max-width: 1200px;
  padding: 0 2rem;
}

/* Team Section - Enhanced with 2x2 grid layout */
.team,
.team-section {
  padding: 6rem 0;
  background: rgba(30, 41, 59, 0.1);
  border-radius: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.05);
  position: relative;
  margin: 4rem 0;
}

.team::before,
.team-section::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  border-radius: 2rem;
  z-index: -1;
}

.team h2,
.team-section h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 4rem;
  text-align: center;
  background: linear-gradient(135deg, #f1f5f9, #60a5fa, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.team-member,
.team-member-card {
  background: rgba(30, 41, 59, 0.6);
  border: 2px solid rgba(148, 163, 184, 0.15);
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-member::before,
.team-member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.team-member:hover,
.team-member-card:hover {
  transform: translateY(-12px) scale(1.03);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.3);
  background: rgba(30, 41, 59, 0.9);
}

.team-member:hover::before,
.team-member-card:hover::before {
  opacity: 1;
}

.member-photo,
.member-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #374151, #4b5563);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.875rem;
  text-align: center;
}

.photo-placeholder {
  padding: 1rem;
  line-height: 1.2;
}

.team-member h3,
.team-member-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f1f5f9;
}

.member-title {
  color: #93c5fd;
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.member-bio {
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.team-note {
  text-align: center;
  color: #64748b;
  font-style: italic;
  margin-top: 2rem;
}

/* Careers Section */
.careers-section {
  padding: 4rem 0;
  background: rgba(30, 41, 59, 0.3);
}

.careers-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.careers-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.careers-section p {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.careers-cta {
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.footer-grid nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.footer-grid nav a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-grid nav a:hover {
  color: #93c5fd;
}

.footer-grid > div:last-child {
  text-align: right;
}

.muted {
  color: #94a3b8;
  font-size: 0.875rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .header-content {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
  }
  
  .main-nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    order: 3;
    width: 100%;
  }
  
  .download-btn {
    order: 2;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2rem;
  }
  
  .team-member,
  .team-member-card {
    min-height: 300px;
  }
  
  .feature-grid,
  .process-steps,
  .tech-comparison {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-grid > div:last-child {
    text-align: center;
  }
  
  .footer-grid nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .main-nav {
    gap: 0.5rem;
  }
  
  .main-nav a {
    font-size: 0.9rem;
  }
  
  .download-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* 键盘导航支持 */
.keyboard-navigation *:focus {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
  border-radius: 4px;
}

/* 增强的焦点样式 */
.btn:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

.main-nav a:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 4px;
  border-radius: 4px;
}

/* 加载状态样式 */
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid #60a5fa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 增强的滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

/* 选择文本样式 */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #f1f5f9;
}

::-moz-selection {
  background: rgba(59, 130, 246, 0.3);
  color: #f1f5f9;
}

/* Feature Cards and Process Steps - Enhanced styling */
.feature-grid,
.process-steps,
.tech-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

.feature-card,
.process-step,
.comparison-item {
  background: rgba(30, 41, 59, 0.6);
  border: 2px solid rgba(148, 163, 184, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.feature-card::before,
.process-step::before,
.comparison-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.feature-card:hover,
.process-step:hover,
.comparison-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.2);
}

.feature-card:hover::before,
.process-step:hover::before,
.comparison-item:hover::before {
  opacity: 1;
}

.feature-card h3,
.process-step h4,
.comparison-item h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #93c5fd;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.feature-card p,
.process-step p,
.comparison-item p {
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 1rem;
}

/* Step Numbers Styling */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Feature Icons Styling */
.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

/* 文本对齐 - 大部分内容左对齐，保持居中布局 */
.legal-content {
  text-align: left;
  margin: 0 auto;
  max-width: 800px;
}

.faq-item {
  text-align: left;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.faq-item h3 {
  color: #93c5fd;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.faq-item p {
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.faq-item a {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.faq-item a:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.careers-info {
  text-align: left;
  margin: 0 auto;
}

/* 主要内容区域左对齐 */
.section {
  text-align: left;
}

.section .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

/* FAQ区域样式优化 */
.faq {
  width: 100%;
  max-width: 960px; /* from 800px -> 960px to make Support page less narrow */
  margin: 0 auto;
  text-align: left;
  padding: 2rem;
}

/* Ensure only Support FAQ overrides the narrow combo width rule */
.faq.container.section,
.section.container.faq {
  max-width: 960px;
}

.faq h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #93c5fd;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 页面主要内容居中但文字左对齐 */
.page-hero {
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.page-hero .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* 页面窄版布局（仅用于需要更窄阅读宽度的组合类） */
.container.section,
.section.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem; /* 添加水平内边距保证阅读留白 */
}

/* Legal/Terms/Privacy 标题与内容左对齐一致 */
.container.section > h1,
.section.container > h1,
.legal-content { 
  text-align: left;
}

/* 主体区域占满高度，便于背景垂直居中展示 */
main {
  width: 100%;
  min-height: calc(100vh - 200px);
}

/* Support页面特殊样式 */
.callout {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 2rem auto;
  max-width: 600px;
}

.callout h2 {
  color: #93c5fd;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.callout p {
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.callout .muted {
  color: #94a3b8;
  font-size: 0.95rem;
}

/* 法律内容样式 - 增强蓝色文字对比度和大小 */
.legal-content {
  width: 100%;
  max-width: 800px;
  line-height: 1.7;
  margin: 0 auto;
  padding: 0; /* 与 .container.section 的内边距对齐，避免标题与内容左右不齐 */
}

/* 让预格式化文本在小屏也能自动换行且不横向溢出 */
.legal-text {
  white-space: pre-wrap; /* 允许换行并保留原有换行 */
  overflow-wrap: anywhere; /* 遇到长单词/长串也断行 */
  word-break: break-word; /* 兜底处理亚洲语言与长串 */
  margin: 1rem 0 0 0;
  color: #e2e8f0;
  font-size: 1rem;
  line-height: 1.75;
  font-family: inherit; /* 使用与正文一致的字体，避免等宽字体 */
}

/* 预格式化文本中的锚点偏移与占位，确保跳转不被吸顶头部遮挡且不影响布局 */
.legal-text span[id] {
  display: block;
  height: 0;
  overflow: hidden;
  scroll-margin-top: 96px;
}
.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-sections h2,
.legal-sections h3,
.legal-sections h4 { scroll-margin-top: 96px; }

/* 列表微调 */
.legal-list { margin: 0.5rem 0 1rem 1.25rem; }
.legal-list.roman { list-style: lower-roman; }

/* ===================== */
/* Legal TOC link color overrides (higher contrast, align with Support page) */
.legal-toc a {
  color: #bfdbfe !important; 
}
.legal-toc a:hover,
.legal-toc a:focus {
  color: #dbeafe !important; 
}
.legal-toc a:visited {
  color: #ddd6fe !important; 
}
.legal-toc a:active,
.legal-toc a[aria-current="true"] {
  color: #f5d0fe !important; 
}
.legal-toc strong { color: #f1f5f9; }

/* Legal content: mailto links high-contrast color only within legal content */
.legal-content a[href^="mailto:"] {
  color: #bfdbfe;
}
.legal-content a[href^="mailto:"]:hover,
.legal-content a[href^="mailto:"]:focus {
  color: #bfdbfe;
}
.legal-content a[href^="mailto:"]:visited {
  color: #c4b5fd;
}