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

:root {
  --bg: #f8f9fa;
  --text: #1a1a2e;
  --card: #ffffff;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.7);
  --primary: #1a1a2e;
  --accent: #f7b731;
  --radius: 20px;
  --transition: 0.3s ease;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.dark {
  --bg: #0f0f1a;
  --text: #e0e0e0;
  --card: #1a1a2e;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --glass: rgba(26, 26, 46, 0.7);
  --primary: #f7b731;
  --accent: #1a1a2e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e0a020;
}

/* ===== 选择文本 ===== */
::selection {
  background: var(--accent);
  color: #1a1a2e;
}

/* ===== 头部 ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 0;
  transition: background var(--transition);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f7b731, #1a1a2e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  user-select: none;
}

.logo span {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

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

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

nav a:hover {
  color: var(--accent);
}

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text);
  transition: color var(--transition);
  padding: 4px 8px;
}

.dark-toggle {
  background: none;
  border: 2px solid var(--accent);
  border-radius: 50px;
  padding: 6px 14px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
  font-size: 0.9rem;
  white-space: nowrap;
}

.dark-toggle:hover {
  background: var(--accent);
  color: #1a1a2e;
  box-shadow: 0 0 20px rgba(247, 183, 49, 0.3);
}

/* ===== 移动端导航 ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 16px 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 70vh;
    overflow-y: auto;
  }

  nav.active {
    display: flex;
  }

  nav a {
    margin: 8px 0;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
  }

  nav a:hover {
    background: rgba(247, 183, 49, 0.1);
  }
}

/* ===== Banner ===== */
.banner {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  margin-bottom: 60px;
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(247, 183, 49, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(26, 26, 46, 0.2) 0%, transparent 50%);
  animation: float 20s infinite alternate;
  pointer-events: none;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-30px, -30px) rotate(2deg);
  }
}

.banner::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--bg);
  clip-path: ellipse(70% 100% at 50% 100%);
  transition: background var(--transition);
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  max-width: 900px;
  animation: fadeInUp 1s ease;
}

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

.banner h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.banner h1 span {
  color: #f7b731;
}

.banner p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: #f7b731;
  color: #1a1a2e;
  box-shadow: 0 8px 24px rgba(247, 183, 49, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(247, 183, 49, 0.5);
  background: #f0a820;
}

.btn-outline {
  background: transparent;
  border: 2px solid #f7b731;
  color: #f7b731;
}

.btn-outline:hover {
  background: #f7b731;
  color: #1a1a2e;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(247, 183, 49, 0.3);
}

/* ===== 通用 Section ===== */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1.3;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #f7b731, #1a1a2e);
  margin: 12px auto 0;
  border-radius: 4px;
  transition: width 0.4s;
}

.section-title:hover::after {
  width: 100px;
}

.section-sub {
  text-align: center;
  color: var(--text);
  opacity: 0.7;
  max-width: 700px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
  line-height: 1.8;
}

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

/* ===== 卡片 ===== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f7b731, #1a1a2e);
  transition: transform var(--transition);
}

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

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

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

/* ===== 毛玻璃 ===== */
.glassy {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

/* ===== 统计 ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item .num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}

.stat-item p {
  font-size: 1rem;
  opacity: 0.8;
}

/* ===== 客户评价 ===== */
.testimonial-card {
  padding: 32px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 6px solid #f7b731;
  transition: all var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-card p {
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 12px;
  line-height: 1.8;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--accent);
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-item:hover {
  background: rgba(247, 183, 49, 0.03);
}

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

.faq-question span {
  transition: transform 0.3s ease;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
}

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

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-top: 8px;
}

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

/* ===== 新闻卡片 ===== */
.news-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.news-card .date {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 6px;
  font-weight: 500;
}

.news-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.4;
}

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

.news-card .read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.news-card .read-more:hover {
  color: #e0a020;
  transform: translateX(4px);
}

/* ===== HowTo 步骤 ===== */
.howto-step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.howto-step .step-num {
  background: var(--accent);
  color: #1a1a2e;
  font-weight: 900;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

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

.howto-step .step-content h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  font-weight: 700;
}

/* ===== 页脚 ===== */
footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
  margin-top: 80px;
  border-radius: 40px 40px 0 0;
}

footer .grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
  line-height: 2;
}

footer a:hover {
  color: #f7b731;
}

footer h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.2rem;
  font-weight: 700;
}

footer p {
  line-height: 1.8;
}

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

.footer-bottom p {
  margin-bottom: 4px;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a2e;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(247, 183, 49, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(247, 183, 49, 0.5);
  background: #f0a820;
}

/* ===== 滚动动画 ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate:nth-child(2) {
  transition-delay: 0.1s;
}
.scroll-animate:nth-child(3) {
  transition-delay: 0.2s;
}
.scroll-animate:nth-child(4) {
  transition-delay: 0.3s;
}
.scroll-animate:nth-child(5) {
  transition-delay: 0.4s;
}
.scroll-animate:nth-child(6) {
  transition-delay: 0.5s;
}

/* ===== 搜索框 ===== */
.search-box {
  display: flex;
  max-width: 400px;
  margin: 0 auto 40px;
  background: var(--card);
  border-radius: 50px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.search-box:focus-within {
  box-shadow: 0 0 0 3px rgba(247, 183, 49, 0.3);
}

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

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

.search-box button {
  padding: 12px 24px;
  background: var(--accent);
  border: none;
  color: #1a1a2e;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.search-box button:hover {
  background: #f0a820;
}

/* ===== SVG 图标 ===== */
.svg-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* ===== QR 码 ===== */
.qr-svg {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  display: block;
  margin: 10px auto;
  transition: transform 0.3s;
}

.qr-svg:hover {
  transform: scale(1.05);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .banner h1 {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .banner {
    min-height: 70vh;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
  }
  .banner h1 {
    font-size: 2.2rem;
  }
  .banner p {
    font-size: 1rem;
  }
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .section-sub {
    font-size: 1rem;
    margin-bottom: 32px;
  }
  .grid {
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card {
    padding: 24px 20px;
  }
  .howto-step {
    flex-direction: column;
    gap: 12px;
  }
  footer {
    padding: 40px 0 20px;
    margin-top: 60px;
    border-radius: 30px 30px 0 0;
  }
  footer .grid {
    grid-template-columns: 1fr 1fr;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .banner h1 {
    font-size: 1.8rem;
  }
  .banner-content {
    padding: 20px;
  }
  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .logo {
    font-size: 1.4rem;
  }
  .dark-toggle {
    font-size: 0.8rem;
    padding: 4px 10px;
  }
  footer .grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 暗色模式微调 ===== */
.dark .banner::after {
  background: #0f0f1a;
}

.dark .card {
  border-color: rgba(255, 255, 255, 0.05);
}

.dark .search-box input {
  color: #e0e0e0;
}

.dark .faq-item {
  border-color: rgba(255, 255, 255, 0.05);
}

/* ===== 打印优化 ===== */
@media print {
  .banner {
    min-height: auto;
    padding: 40px 0;
  }
  .back-to-top,
  .menu-toggle,
  .dark-toggle {
    display: none !important;
  }
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  .scroll-animate {
    opacity: 1 !important;
    transform: none !important;
  }
}