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

body {
  background: #f5f7fa;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* 柔和的背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(99, 102, 241, 0.08) 1px, transparent 0);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

.wechatOA {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: var(--vh);
  padding: 20px;
  gap: 20px;
  z-index: 1;
}

/* 标题区域 */
.header-section {
  text-align: center;
  margin-top: 20px;
  animation: fadeInDown 0.8s ease-out;
}

.main-title {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.subtitle {
  font-size: clamp(15px, 3vw, 16px);
  color: #1e293b;
  font-weight: 600;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.subtitle::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.5s ease;
}

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

.subtitle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}

/* 主卡片 */
.wechat-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  padding: clamp(24px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.wechat-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #6366f1, #8b5cf6, #a855f7, #d946ef);
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wechat-card:hover::before {
  opacity: 0.15;
}

/* 二维码区域 */
.qrcode-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 24px;
}

.qrcode {
  width: clamp(220px, 55vw, 280px);
  height: clamp(220px, 55vw, 280px);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.qrcode:hover {
  transform: scale(1.05);
}

.tips {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(13px, 2.8vw, 15px);
  color: #666;
  margin-top: 16px;
  text-align: center;
}

/* 公众号卡片 */
.wechatOA-card {
  width: 100%;
  display: flex;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  padding: clamp(16px, 3.5vw, 20px);
  border-radius: 16px;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  margin-bottom: 20px;
}

.wechatOA-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
}

.wechatOA-head {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background-image: url(./img/icon.svg);
  border-radius: 50%;
  background-size: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wechatOA-info {
  flex: 1;
  min-width: 0;
}

.wechatOA-name {
  font-weight: 700;
  font-size: clamp(16px, 3.2vw, 18px);
  color: #2c3e50;
  margin-bottom: 6px;
}

.wechatOA-description {
  font-size: clamp(13px, 2.8vw, 14px);
  color: #7f8c8d;
}

/* 功能特色 */
.features {
  display: flex;
  justify-content: space-around;
  width: 100%;
  gap: 12px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 16px 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-item:hover {
  background: #f8f9fa;
  transform: translateY(-4px);
}

.feature-icon {
  font-size: clamp(28px, 6vw, 36px);
  filter: grayscale(0.2);
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  filter: grayscale(0);
  transform: scale(1.15);
}

.feature-text {
  font-size: clamp(12px, 2.8vw, 14px);
  color: #666;
  font-weight: 600;
  text-align: center;
}

/* 底部区域 */
.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  animation: fadeIn 1s ease-out 0.4s backwards;
}

a.help {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(13px, 2.8vw, 14px);
  color: #64748b;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

a.help:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

a.help:visited {
  color: #64748b;
}

.icon-help {
  width: 18px;
  height: 18px;
}

.copyright {
  font-size: clamp(11px, 2.5vw, 12px);
  color: #94a3b8;
  text-align: center;
}

/* 动画 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* 响应式设计 - 移动端优化 */
@media (max-width: 480px) {
  .wechatOA {
    padding: 15px;
    gap: 15px;
  }

  .header-section {
    margin-top: 10px;
  }

  .subtitle {
    padding: 10px 18px;
    font-size: clamp(14px, 3.5vw, 15px);
  }

  .wechat-card {
    padding: 24px 20px;
  }

  .features {
    gap: 8px;
  }

  .feature-item {
    padding: 12px 8px;
  }

  .wechatOA-head {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
}

/* 平板和小屏桌面 */
@media (min-width: 481px) and (max-width: 768px) {
  .wechatOA {
    padding: 25px;
  }

  .wechat-card {
    padding: 36px 30px;
  }
}

/* 桌面端优化 */
@media (min-width: 769px) {
  .wechatOA {
    justify-content: center;
    padding: 40px 20px;
  }

  .wechat-card {
    padding: 44px;
  }

  .header-section {
    margin-top: 0;
    margin-bottom: 10px;
  }

  .feature-item {
    padding: 20px 16px;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  a.help {
    min-height: 44px;
  }

  .feature-item {
    min-height: 88px;
  }
}