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

:root {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --text: #1a1a2e;
  --text-secondary: #4a4a6a;
  --accent: #e94560;
  --accent-dark: #c62a47;
  --accent-glow: rgba(233, 69, 96, 0.35);
  --border: #e2e4ed;
  --border-glass: rgba(255, 255, 255, 0.35);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 28px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: var(--font);
}

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

/* ===== 导航吸顶（毛玻璃） ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  white-space: nowrap;
}

.logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

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

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 0.93rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

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

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

.nav-links a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 6px 14px;
  gap: 8px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  width: 150px;
  color: var(--text);
  font-family: var(--font);
}

.search-box input::placeholder {
  color: #9a9ab0;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.search-box button:hover {
  color: var(--accent);
}

.search-box button svg {
  width: 18px;
  height: 18px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  color: var(--text-secondary);
}

.theme-toggle:hover {
  background: var(--bg);
  transform: rotate(20deg);
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 16px 0 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "›";
  color: #b0b0c0;
  margin-right: 2px;
}

.breadcrumb a {
  color: var(--text-secondary);
}

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

/* ===== Hero 渐变 Banner ===== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(233, 69, 96, 0.08) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: heroShine 8s ease-in-out infinite;
  pointer-events: none;
}

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

.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero-text h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-text h1 span {
  color: #e94560;
  background: linear-gradient(90deg, #e94560, #ff7a95);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
  max-width: 520px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--accent-glow);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

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

.hero-visual svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: floatY 6s ease-in-out infinite;
}

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

/* ===== 数据条 ===== */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  transition: background var(--transition), border-color var(--transition);
}

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

.stat-item {
  padding: 8px;
  border-radius: var(--radius);
  transition: transform var(--transition), background var(--transition);
}

.stat-item:hover {
  transform: translateY(-3px);
  background: var(--bg);
}

.stat-item .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ===== 通用区块 ===== */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--surface);
  transition: background var(--transition);
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 4px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--accent), #ff7a95);
}

.section-header p {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.98rem;
}

/* ===== 卡片网格（圆角卡片 + hover） ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #0f3460);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #e94560, #c62a47);
  box-shadow: 0 6px 16px var(--accent-glow);
  transition: transform var(--transition);
}

.card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card ul a {
  color: var(--text-secondary);
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}

.card ul a:hover {
  color: var(--accent);
  padding-left: 4px;
}

/* ===== 文章列表 ===== */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.article-cover {
  height: 160px;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.article-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(233, 69, 96, 0.2), transparent 60%);
  transition: opacity var(--transition);
}

.article-card:hover .article-cover::after {
  opacity: 0.6;
}

.article-cover svg {
  width: 64px;
  height: 64px;
  opacity: 0.6;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.article-card:hover .article-cover svg {
  transform: scale(1.12);
}

.article-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  font-size: 0.78rem;
  color: #9a9ab0;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}

.article-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--text);
  transition: color var(--transition);
}

.article-card:hover .article-body h3 {
  color: var(--accent);
}

.article-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 12px;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.read-more:hover {
  gap: 8px;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-item.active {
  border-color: var(--accent);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 24px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease, color var(--transition);
  color: var(--text-secondary);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== HowTo ===== */
.howto-steps {
  max-width: 820px;
  margin: 0 auto;
  counter-reset: step;
}

.howto-step {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.howto-step:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ===== 客户评价 ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.testimonial-card::before {
  content: "“";
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 12px;
  left: 20px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  padding-top: 12px;
  font-style: italic;
}

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

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e94560, #0f3460);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.testimonial-card:hover .author-avatar {
  transform: scale(1.1);
}

.author-info .author-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}

.author-info .author-role {
  font-size: 0.78rem;
  color: #9a9ab0;
}

/* ===== 新闻 ===== */
.news-list {
  max-width: 820px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--transition);
}

.news-item:hover {
  padding-left: 8px;
}

.news-date {
  flex-shrink: 0;
  text-align: center;
  padding: 8px 14px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.news-item:hover .news-date {
  border-color: var(--accent);
}

.news-date .day {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.news-date .month {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.news-content h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  transition: color var(--transition);
}

.news-item:hover .news-content h3 {
  color: var(--accent);
}

.news-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== 联系 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 3px;
}

.contact-item .ci-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.contact-item .ci-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.contact-form:hover {
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 0;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 16px;
}

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

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition: color var(--transition), padding-left var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

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

.back-to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

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

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

/* ===== 暗黑模式 ===== */
body.dark {
  --bg: #0f0f1a;
  --surface: #1a1a2e;
  --surface-glass: rgba(26, 26, 46, 0.75);
  --text: #e8e8f0;
  --text-secondary: #a0a0b8;
  --border: #2a2a40;
  --border-glass: rgba(255, 255, 255, 0.08);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
}

body.dark .site-header {
  background: var(--surface-glass);
}

body.dark .hero {
  background: linear-gradient(135deg, #0a0a14 0%, #0f0f1a 50%, #1a1a2e 100%);
}

body.dark .article-cover {
  background: linear-gradient(135deg, #0f0f1a, #1a1a2e);
}

body.dark .news-date {
  background: var(--surface);
}

body.dark .back-to-top {
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
}

body.dark .search-box {
  background: var(--bg);
}

body.dark .form-group input,
body.dark .form-group textarea {
  background: var(--bg);
}

body.dark .card:hover {
  border-color: var(--accent);
}

/* ===== 响应式 900px ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual svg {
    max-width: 320px;
  }

  .hero-text h1 {
    font-size: 1.7rem;
  }

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

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

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

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
  }

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

  .nav-links.open {
    display: flex;
  }

  .nav-links a::after {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .search-box input {
    width: 110px;
  }
}

/* ===== 响应式 600px ===== */
@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .header-actions .search-box {
    display: none;
  }

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

  .section {
    padding: 44px 0;
  }

  .hero {
    padding: 40px 0 36px;
  }

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

  .news-item {
    flex-direction: column;
    gap: 12px;
  }

  .howto-step {
    flex-direction: column;
    gap: 14px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .section-header h2 {
    font-size: 1.45rem;
  }
}

/* ===== 无障碍与减少动画 ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}