/* 全局重置与变量 */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #e94560;
  --primary-dark: #c23152;
  --primary-light: #ff6b81;
  --secondary: #0f3460;
  --bg: #1a1a2e;
  --bg-light: #16213e;
  --text: #f5f5f5;
  --text-muted: #b0b0b0;
  --card-bg: rgba(255, 255, 255, 0.07);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.15);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --gradient-primary: linear-gradient(135deg, #e94560, #ff6b81);
  --gradient-bg: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #1a1a2e 100%);
}

body.light {
  --bg: #f0f2f5;
  --bg-light: #ffffff;
  --text: #1a1a2e;
  --text-muted: #555;
  --card-bg: rgba(0, 0, 0, 0.04);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --border: rgba(0, 0, 0, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
  --gradient-bg: linear-gradient(135deg, #f0f2f5 0%, #e0e5ec 50%, #f0f2f5 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}

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

a:hover {
  color: var(--primary-dark);
}

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

ul, ol {
  list-style: none;
}

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

/* 区块 */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
  line-height: 1.3;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* 网格系统 */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.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);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(233, 69, 96, 0.03) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(233, 69, 96, 0.2);
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gradient-primary);
  color: #fff;
  text-align: center;
  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.15), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.4);
}

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

.btn-outline:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

/* 工具类 */
.text-center {
  text-align: center;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-12 {
  gap: 12px;
}

.gap-20 {
  gap: 20px;
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* 导航栏 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

body.light header {
  background: rgba(255, 255, 255, 0.85);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  text-decoration: none;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  border-radius: 2px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  color: var(--text);
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: transparent;
  border: none;
}

.menu-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 4px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px 20px;
  flex-direction: column;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  z-index: 999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

body.light .mobile-nav {
  background: rgba(255, 255, 255, 0.97);
}

.mobile-nav.open {
  max-height: 600px;
  display: flex;
  padding: 24px 20px;
}

.mobile-nav a {
  color: var(--text);
  font-size: 1.1rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition);
}

.mobile-nav a:hover {
  color: var(--primary);
  padding-left: 8px;
}

/* Hero 区域 */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: var(--gradient-bg);
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.2) 0%, transparent 70%);
  pointer-events: none;
  animation: heroPulse 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(circle, rgba(15, 52, 96, 0.3) 0%, transparent 70%);
  pointer-events: none;
  animation: heroPulse2 10s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 1; }
}

@keyframes heroPulse2 {
  0% { transform: scale(1) translateX(0); opacity: 0.4; }
  100% { transform: scale(1.15) translateX(30px); opacity: 0.8; }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(233, 69, 96, 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 30px;
  background: rgba(233, 69, 96, 0.15);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(233, 69, 96, 0.3);
  backdrop-filter: blur(4px);
}

/* 轮播 */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 400px;
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.carousel-inner {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
  min-width: 100%;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.carousel-item h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carousel-item p {
  max-width: 600px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px 0;
  position: relative;
  z-index: 2;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dots button.active {
  background: var(--primary);
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(233, 69, 96, 0.5);
}

/* 数据展示 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--glass);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.15);
}

.stat-item .number {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-item .label {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

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

.faq-question .icon {
  font-size: 1.4rem;
  transition: var(--transition);
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-muted);
  padding: 0;
  line-height: 1.8;
}

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

/* 合作伙伴 */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 50px;
  align-items: center;
}

.partner-item {
  opacity: 0.5;
  transition: var(--transition);
  filter: grayscale(0.8);
}

.partner-item:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.05);
}

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

.team-card {
  text-align: center;
  padding: 24px 16px;
}

.team-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
  transition: var(--transition);
}

.team-card:hover .avatar {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(233, 69, 96, 0.5);
}

.team-card h4 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.team-card .role {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.team-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.5;
}

/* 客户评价 */
.testimonial-card {
  padding: 28px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card .quote {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .author .initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}

/* 新闻 */
.news-card {
  padding: 24px;
}

.news-card .date {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
  padding: 2px 10px;
  background: rgba(233, 69, 96, 0.1);
  border-radius: 12px;
}

.news-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 搜索 */
.search-box {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  background: var(--glass);
  border-radius: 50px;
  border: 1px solid var(--border);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.search-box input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

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

.search-box button {
  padding: 14px 24px;
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.search-box button:hover {
  background: var(--primary-dark);
}

/* 联系我们 & 地图 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-info svg {
  flex-shrink: 0;
}

.map-placeholder {
  background: var(--card-bg);
  border-radius: var(--radius);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text-muted);
  gap: 8px;
  transition: var(--transition);
}

.map-placeholder:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.1);
}

/* 底部 */
footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  transition: var(--transition);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

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

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-col a,
.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
  transition: var(--transition);
  line-height: 1.6;
}

.footer-col a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* 返回顶部 */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 999;
  line-height: 1;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  transform: translateY(-4px) scale(1.1);
  background: var(--primary-dark);
  box-shadow: 0 6px 30px rgba(233, 69, 96, 0.6);
}

/* 滚动动画 */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* 面包屑 */
.breadcrumb {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  color: var(--text-muted);
  margin: 0 2px;
}

/* 图片懒加载占位 */
.lazy-placeholder {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

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

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-content h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image svg {
    max-width: 280px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .stats-grid,
  .team-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section-sub {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }

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

  .carousel-item {
    padding: 40px 20px;
  }

  .carousel-item h3 {
    font-size: 1.4rem;
  }

  .back-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 4px 14px;
  }

  .stat-item .number {
    font-size: 2.2rem;
  }

  .stat-item {
    padding: 20px 12px;
  }

  .card {
    padding: 24px 20px;
  }

  .contact-grid {
    gap: 24px;
  }

  .map-placeholder {
    height: 200px;
  }

  .team-card .avatar {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-item .number {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .hero .container {
    gap: 20px;
  }

  .hero-image svg {
    max-width: 220px;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .header-inner {
    padding: 10px 16px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo svg {
    width: 30px;
    height: 30px;
  }

  .mobile-nav a {
    font-size: 1rem;
  }

  .carousel {
    min-height: 300px;
  }

  .carousel-item {
    padding: 30px 16px;
  }

  .carousel-item h3 {
    font-size: 1.2rem;
  }

  .grid-3 {
    gap: 20px;
  }

  .grid-2 {
    gap: 24px;
  }

  .team-grid {
    gap: 16px;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-col h4 {
    font-size: 1rem;
  }

  .back-top {
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* 暗色模式下的微调 */
body.light .hero {
  background: linear-gradient(135deg, #f0f2f5 0%, #dce1e8 50%, #f0f2f5 100%);
}

body.light .hero::before {
  background: radial-gradient(circle, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
}

body.light .hero::after {
  background: radial-gradient(circle, rgba(15, 52, 96, 0.1) 0%, transparent 70%);
}

body.light .stat-item {
  background: rgba(255, 255, 255, 0.8);
}

body.light .search-box {
  background: rgba(255, 255, 255, 0.8);
}

body.light .carousel {
  background: rgba(255, 255, 255, 0.6);
}

/* 打印样式 */
@media print {
  header,
  .back-top,
  .mobile-nav,
  .menu-toggle,
  .theme-toggle {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .section {
    padding: 30px 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  body {
    background: #fff;
    color: #000;
  }

  .container {
    max-width: 100%;
  }
}

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

/* 焦点样式 */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* 选择样式 */
::selection {
  background: rgba(233, 69, 96, 0.3);
  color: var(--text);
}