/* 全局重置与基础样式 */
* {
  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: #333;
  background: #f8f9fa;
  transition: background 0.3s, color 0.3s;
  scroll-behavior: smooth;
}

body.dark {
  background: #121212;
  color: #e0e0e0;
}

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

a:hover {
  text-decoration: underline;
  color: #ff6b81;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部导航 */
header {
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s;
  border-bottom: 1px solid rgba(233, 69, 96, 0.2);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e94560;
  text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #e94560;
  transition: width 0.3s;
}

nav ul li a:hover {
  background: rgba(233, 69, 96, 0.2);
  text-decoration: none;
  transform: translateY(-2px);
}

nav ul li a:hover::after {
  width: 80%;
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid #e94560;
  color: #e94560;
  font-size: 1.5rem;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

.menu-toggle:hover {
  background: #e94560;
  color: #fff;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 20px;
    gap: 10px;
    border-bottom: 2px solid #e94560;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  nav ul.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* Hero 区域 - 渐变Banner */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 60%, #1a1a2e 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
  animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease 0.2s both;
}

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

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #e94560, #ff6b81);
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.5);
  text-decoration: none;
  color: #fff;
}

/* 通用区域 */
.section {
  padding: 60px 0;
  opacity: 0;
  transform: translateY(20px);
  animation: sectionFadeIn 0.8s ease forwards;
}

@keyframes sectionFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.section:nth-child(odd) { animation-delay: 0.1s; }
.section:nth-child(even) { animation-delay: 0.2s; }

.section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  color: #1a1a2e;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #e94560, #ff6b81);
  margin: 10px auto 0;
  border-radius: 2px;
}

body.dark .section h2 {
  color: #e94560;
}

/* 卡片 - 圆角卡片 + 毛玻璃效果 */
.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

body.dark .card {
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

body.dark .card:hover {
  background: rgba(40, 40, 40, 0.95);
}

/* 网格布局 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* 关于部分 */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.company-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.company-info div {
  background: rgba(241, 243, 245, 0.8);
  backdrop-filter: blur(5px);
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark .company-info div {
  background: rgba(42, 42, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.company-info div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 评价卡片 */
.testimonial-card {
  border-left: 4px solid #e94560;
  padding: 20px;
  background: rgba(248, 249, 250, 0.8);
  backdrop-filter: blur(5px);
  border-radius: 0 12px 12px 0;
  transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .testimonial-card {
  background: rgba(42, 42, 42, 0.8);
}

.testimonial-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.2);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  cursor: pointer;
  transition: background 0.3s, padding 0.3s;
}

body.dark .faq-item {
  border-color: #444;
}

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

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

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

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding-top: 0;
  color: #666;
}

body.dark .faq-answer {
  color: #aaa;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 10px;
}

/* 操作指南 */
.howto-step {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
  transition: transform 0.3s;
}

.howto-step:hover {
  transform: translateX(5px);
}

.howto-step .step-num {
  background: linear-gradient(135deg, #e94560, #ff6b81);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(233, 69, 96, 0.3);
  transition: transform 0.3s;
}

.howto-step:hover .step-num {
  transform: scale(1.1);
}

/* 文章卡片 */
.article-card h3 {
  margin-bottom: 10px;
  color: #1a1a2e;
  transition: color 0.3s;
}

body.dark .article-card h3 {
  color: #e94560;
}

.article-card:hover h3 {
  color: #e94560;
}

.article-card .date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.article-card .read-more {
  color: #e94560;
  font-weight: 600;
  transition: letter-spacing 0.3s;
}

.article-card .read-more:hover {
  letter-spacing: 1px;
  text-decoration: none;
}

/* 联系详情 */
.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.contact-details div {
  background: rgba(241, 243, 245, 0.8);
  backdrop-filter: blur(5px);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark .contact-details div {
  background: rgba(42, 42, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-details div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 底部 */
footer {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(233, 69, 96, 0.2);
}

footer a {
  color: #e94560;
  transition: color 0.3s;
}

footer a:hover {
  color: #ff6b81;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

footer .footer-links a {
  color: #ccc;
  padding: 5px 10px;
  border-radius: 4px;
  transition: color 0.3s, background 0.3s;
}

footer .footer-links a:hover {
  color: #e94560;
  background: rgba(233, 69, 96, 0.1);
  text-decoration: none;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #e94560, #ff6b81);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.5);
}

/* 无障碍 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 40px 0;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .card {
    padding: 20px;
  }

  .grid {
    gap: 20px;
  }

  .company-info {
    grid-template-columns: 1fr 1fr;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .howto-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .howto-step .step-num {
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .company-info {
    grid-template-columns: 1fr;
  }

  footer .footer-links {
    gap: 10px;
  }

  footer .footer-links a {
    font-size: 0.9rem;
  }
}

/* 暗色模式适配（系统偏好） */
@media (prefers-color-scheme: dark) {
  body:not(.light) {
    background: #121212;
    color: #e0e0e0;
  }

  body:not(.light) .section h2 {
    color: #e94560;
  }

  body:not(.light) .card {
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  body:not(.light) .company-info div {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  body:not(.light) .testimonial-card {
    background: rgba(42, 42, 42, 0.8);
  }

  body:not(.light) .contact-details div {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  body:not(.light) .faq-item {
    border-color: #444;
  }

  body:not(.light) .faq-answer {
    color: #aaa;
  }
}