/* ===== 全局变量 ===== */
:root {
  --bg: #ffffff;
  --text: #1a1a2e;
  --primary: #e94560;
  --secondary: #0f3460;
  --accent: #16213e;
  --glass: rgba(255,255,255,0.85);
  --shadow: 0 8px 32px rgba(0,0,0,0.1);
  --radius: 16px;
  --gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --card-bg: #ffffff;
  --card-text: #1a1a2e;
  --border-color: rgba(0,0,0,0.1);
  --faq-border: rgba(0,0,0,0.1);
  --section-alt: rgba(233,69,96,0.05);
  --section-alt2: rgba(15,52,96,0.05);
  --footer-bg: #0a0a1a;
  --footer-text: #ccc;
  --footer-link: #aaa;
  --footer-heading: #fff;
  --breadcrumb-bg: rgba(255,255,255,0.05);
  --breadcrumb-text: #aaa;
  --search-input-bg: rgba(255,255,255,0.1);
  --search-input-border: rgba(255,255,255,0.2);
  --search-input-placeholder: rgba(255,255,255,0.5);
  --search-results-bg: var(--glass);
  --fade-transform: translateY(30px);
  --transition-speed: 0.3s;
}

.dark-mode {
  --bg: #0f0f1a;
  --text: #e0e0e0;
  --glass: rgba(15,15,30,0.9);
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --card-bg: #1a1a2e;
  --card-text: #e0e0e0;
  --border-color: rgba(255,255,255,0.1);
  --faq-border: rgba(255,255,255,0.1);
  --section-alt: rgba(233,69,96,0.1);
  --section-alt2: rgba(15,52,96,0.15);
  --footer-bg: #050510;
  --footer-text: #aaa;
  --footer-link: #888;
  --footer-heading: #ddd;
  --breadcrumb-bg: rgba(0,0,0,0.3);
  --breadcrumb-text: #888;
  --search-input-bg: rgba(0,0,0,0.3);
  --search-input-border: rgba(255,255,255,0.1);
  --search-input-placeholder: rgba(255,255,255,0.3);
  --search-results-bg: var(--glass);
}

/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition-speed), color var(--transition-speed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== 容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 头部 ===== */
header {
  background: var(--gradient);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(26,26,46,0.95);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.logo svg {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease;
}

.logo:hover svg {
  transform: rotate(-5deg) scale(1.05);
}

.logo span {
  background: linear-gradient(135deg, #e94560, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 导航 ===== */
nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
  padding: 4px 0;
}

nav a:hover,
nav a.active {
  color: #e94560;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e94560;
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ===== 暗黑切换按钮 ===== */
.dark-toggle {
  background: none;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.dark-toggle:hover {
  background: #e94560;
  border-color: #e94560;
  transform: scale(1.02);
}

/* ===== 汉堡菜单 ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger:hover span:nth-child(1) {
  transform: translateY(-1px);
}

.hamburger:hover span:nth-child(3) {
  transform: translateY(1px);
}

/* ===== 移动菜单 ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15,15,30,0.98);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  backdrop-filter: blur(20px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
  position: relative;
}

.mobile-menu a:hover {
  color: #e94560;
  transform: scale(1.05);
}

.mobile-menu .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu .close-btn:hover {
  transform: rotate(90deg);
}

/* ===== Hero区 ===== */
.hero {
  background: var(--gradient);
  color: #fff;
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(233,69,96,0.15) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(20px,20px); }
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.hero .btn {
  display: inline-block;
  background: #e94560;
  color: #fff;
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  border: none;
  cursor: pointer;
}

.hero .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(233,69,96,0.4);
}

.hero .btn:active {
  transform: translateY(0);
}

.hero-banner {
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.hero-banner img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== 轮播 ===== */
.banner-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.carousel-slide {
  display: none;
  width: 100%;
  animation: slideFade 0.5s ease;
}

@keyframes slideFade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background 0.3s, transform 0.3s;
  z-index: 2;
  line-height: 1;
}

.carousel-btn:hover {
  background: rgba(233,69,96,0.7);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.carousel-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.carousel-dots span.active {
  background: #e94560;
  transform: scale(1.2);
}

.carousel-dots span:hover {
  background: rgba(233,69,96,0.6);
}

/* ===== 通用区域 ===== */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #e94560;
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  opacity: 0.7;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ===== 网格布局 ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== 卡片 ===== */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--card-text);
  border: 1px solid transparent;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  border-color: rgba(233,69,96,0.1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.3s;
}

.card:hover .card-icon {
  transform: scale(1.1);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.card p {
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== 按钮 ===== */
.btn-outline {
  display: inline-block;
  border: 2px solid #e94560;
  color: #e94560;
  padding: 10px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  background: #e94560;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233,69,96,0.3);
}

.btn-outline:active {
  transform: translateY(0);
}

/* ===== 统计区 ===== */
.stats {
  background: var(--gradient);
  color: #fff;
  padding: 60px 0;
}

.stats .grid-4 {
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px 10px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  opacity: 0.8;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 500;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--faq-border);
  padding: 18px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.faq-item:hover {
  background: rgba(233,69,96,0.03);
  border-radius: 8px;
  padding-left: 12px;
  padding-right: 12px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  user-select: none;
}

.faq-question span {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

.faq-item.open .faq-question span {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  opacity: 0.8;
  padding-top: 0;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-top: 12px;
}

/* ===== 联系信息 ===== */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.contact-item {
  text-align: center;
  padding: 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.contact-item:hover {
  transform: translateY(-4px);
}

.contact-item svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  fill: #e94560;
  transition: transform 0.3s;
}

.contact-item:hover svg {
  transform: scale(1.1);
}

.contact-item h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.contact-item p {
  opacity: 0.8;
  font-size: 0.95rem;
}

/* ===== 页脚 ===== */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h4 {
  color: var(--footer-heading);
  margin-bottom: 16px;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #e94560;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.3s, padding-left 0.3s;
  display: inline-block;
}

.footer-col a:hover {
  color: #e94560;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* ===== 回到顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #e94560;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(233,69,96,0.4);
  display: none;
  transition: all 0.3s ease;
  z-index: 100;
  line-height: 1;
}

.back-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(233,69,96,0.6);
}

.back-to-top:active {
  transform: scale(0.95);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  background: var(--breadcrumb-bg);
  padding: 12px 0;
  font-size: 0.9rem;
  color: var(--breadcrumb-text);
}

.breadcrumb a {
  color: #e94560;
  text-decoration: none;
  transition: opacity 0.3s;
}

.breadcrumb a:hover {
  opacity: 0.8;
}

.breadcrumb span {
  margin: 0 6px;
}

/* ===== 搜索框 ===== */
.search-box {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 20px auto 0;
  position: relative;
  z-index: 1;
}

.search-box input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 30px;
  border: 1px solid var(--search-input-border);
  background: var(--search-input-bg);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
  border-color: #e94560;
  box-shadow: 0 0 0 3px rgba(233,69,96,0.2);
}

.search-box input::placeholder {
  color: var(--search-input-placeholder);
}

.search-box button {
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  background: #e94560;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.search-box button:hover {
  background: #d63850;
  transform: translateY(-1px);
}

.search-results {
  display: none;
  background: var(--search-results-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.search-results.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.search-results p {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.search-results p:last-child {
  border-bottom: none;
}

/* ===== 滚动动画 ===== */
.fade-in {
  opacity: 0;
  transform: var(--fade-transform);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero {
    padding: 70px 0 50px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  section {
    padding: 50px 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .stats .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .card {
    padding: 24px;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .hero .btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .stats .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  .card {
    padding: 20px;
  }
  
  .card h3 {
    font-size: 1.1rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .logo svg {
    width: 30px;
    height: 30px;
  }
  
  .header-inner {
    padding: 10px 16px;
  }
  
  .dark-toggle {
    font-size: 0.8rem;
    padding: 4px 10px;
  }
  
  .search-box {
    flex-direction: column;
    gap: 8px;
  }
  
  .search-box button {
    width: 100%;
  }
}

/* ===== 暗色模式额外调整 ===== */
.dark-mode .card {
  background: var(--card-bg);
  border-color: rgba(255,255,255,0.05);
}

.dark-mode .card:hover {
  border-color: rgba(233,69,96,0.2);
}

.dark-mode .contact-item {
  background: var(--card-bg);
}

.dark-mode .faq-item:hover {
  background: rgba(233,69,96,0.08);
}

/* ===== 打印样式 ===== */
@media print {
  .back-to-top,
  .dark-toggle,
  .hamburger,
  .mobile-menu,
  .carousel-btn,
  .search-box,
  .search-results {
    display: none !important;
  }
  
  .hero {
    padding: 40px 0;
  }
  
  .card {
    break-inside: avoid;
  }
}

/* ===== 辅助功能 ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ===== 选择文本样式 ===== */
::selection {
  background: #e94560;
  color: #fff;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #e94560;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d63850;
}

/* ===== 图片响应 ===== */
img {
  max-width: 100%;
  height: auto;
}

/* ===== 链接样式 ===== */
a {
  color: #e94560;
  transition: color 0.3s;
}

a:hover {
  color: #d63850;
}

/* ===== 列表样式 ===== */
ul, ol {
  padding-left: 20px;
}

/* ===== 标题层级 ===== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 0.5em;
}

/* ===== 段落 ===== */
p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ===== 按钮禁用 ===== */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== 焦点样式 ===== */
:focus-visible {
  outline: 2px solid #e94560;
  outline-offset: 2px;
}

/* ===== 暗色模式下的焦点 ===== */
.dark-mode :focus-visible {
  outline-color: #ff6b6b;
}