/* ============================================================
   河南米融网络科技有限公司 - 企业官网
   全局样式表
   ============================================================ */

/* --- CSS 变量 --- */
:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #3B82F6;
  --color-accent: #0EA5E9;
  --color-dark: #0F172A;
  --color-dark-2: #1E293B;
  --color-text: #334155;
  --color-text-light: #64748B;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-bg-card: #FFFFFF;
  --color-border: #E2E8F0;
  --color-success: #10B981;
  --color-success-dark: #059669;
  --color-gradient: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px -10px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1200px;
  --nav-height: 72px;
  --safe-inset-bottom: env(safe-area-inset-bottom, 0px);
}

/* --- 重置 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light only;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; touch-action: manipulation; }
input, textarea, select { font-family: inherit; font-size: 16px; }

/* 防止 iOS 输入框自动缩放 */
@media (max-width: 768px) {
  input, textarea, select { font-size: 16px !important; }
}

/* --- 工具类 --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

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

.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

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

.btn-white {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

/* --- 导航栏 --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--color-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  /* SVG logo mark renders on top of gradient background */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: rgba(37,99,235,0.06);
}

.nav-cta {
  margin-left: 12px;
}

/* 导航栏按钮文字颜色修正（覆盖 .nav-links a 的灰色） */
.nav-links .btn-primary {
  color: #fff;
}
.nav-links .btn-primary:hover {
  color: #fff;
  background: var(--color-primary-dark);
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  padding: calc(var(--nav-height) + 80px) 0 100px;
  background: linear-gradient(180deg, #F0F5FF 0%, #FFFFFF 100%);
  overflow: hidden;
}

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

.hero-content h1 {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

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

.hero-content p {
  font-size: 18px;
  color: var(--color-text-light);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}

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

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

.hero-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

.hero-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.hero-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.hero-card-divider {
  height: 1px;
  background: var(--color-border);
  margin: 30px 0;
}

.hero-card-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-card-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--color-dark);
  font-weight: 500;
}

.hero-card-feature .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #DEF7EC;
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* --- 业务卡片 --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
}

.card-icon.blue { background: #EFF6FF; color: var(--color-primary); }
.card-icon.green { background: #ECFDF5; color: var(--color-success); }
.card-icon.orange { background: #FFF7ED; color: #F97316; }
.card-icon.purple { background: #F5F3FF; color: #8B5CF6; }

.card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap 0.2s ease;
}

.card-link:hover { gap: 10px; }

/* --- 产品特色 --- */
.features-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  transition: background 0.2s ease;
}

.feature-item:hover { background: #F0F5FF; }

.feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: 8px;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.feature-text p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- 流程步骤 --- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-item::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: var(--color-border);
}

.step-item:last-child::after { display: none; }

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

.step-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.step-item p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* --- 时间线 --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #DBEAFE;
}

.timeline-year {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.timeline-content h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* --- 版本对比表 --- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: center;
  font-size: 15px;
}

.compare-table thead th {
  background: var(--color-bg-alt);
  font-weight: 700;
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-border);
}

.compare-table thead th:first-child {
  text-align: left;
  padding-left: 28px;
}

.compare-table tbody td {
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.compare-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--color-dark);
  padding-left: 28px;
}

.compare-table .check-mark { color: var(--color-success); font-weight: 700; }
.compare-table .dash { color: var(--color-text-light); }

.compare-table .highlight-col {
  background: #F0F5FF;
}

.compare-table .highlight-col th {
  color: var(--color-primary);
}

/* --- 联系表单 --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: flex-start;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--color-text-light);
  margin-bottom: 36px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #EFF6FF;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.contact-detail-text p {
  font-size: 14px;
  color: var(--color-text-light);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--color-dark);
  background: var(--color-bg-alt);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

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

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

/* --- 页脚 --- */
.footer {
  background: var(--color-dark);
  color: #CBD5E1;
  padding: 60px 0 30px;
}

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

.footer-brand p {
  font-size: 14px;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-brand .logo { color: #fff; }

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #CBD5E1;
  padding: 6px 0;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #94A3B8;
}

/* --- 标签切换 --- */
.tabs-nav {
  display: flex;
  gap: 4px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 40px;
  width: fit-content;
}

.tab-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- 下载卡片 --- */
.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.download-card {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.download-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.download-card-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-card h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.download-card p {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

/* --- 案例卡片 --- */
.case-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.case-card-image {
  height: 180px;
  background: var(--color-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.case-card-image.c2 { background: linear-gradient(135deg, #0EA5E9 0%, #2563EB 100%); }
.case-card-image.c3 { background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%); }

.case-card-body {
  padding: 20px;
}

.case-card-body .tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 10px;
}

.tag.web { background: #EFF6FF; color: var(--color-primary); }
.tag.miniapp { background: #ECFDF5; color: var(--color-success); }
.tag.app { background: #FFF7ED; color: #F97316; }

.case-card-body h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.case-card-body p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* --- 页面横幅 --- */
.page-banner {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  background: linear-gradient(180deg, #F0F5FF 0%, #FFFFFF 100%);
  text-align: center;
}

.page-banner h1 {
  font-size: clamp(26px, 5.5vw, 40px);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* --- 平台标签 --- */
.platform-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  background: #EFF6FF;
  color: var(--color-primary);
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 380px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .features-row { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: repeat(3, 1fr); }
  .step-item:nth-child(3)::after { display: none; }
  .step-item::after { left: calc(50% + 24px); width: calc(100% - 48px); }
  .download-cards { grid-template-columns: repeat(2, 1fr); }
  .case-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; }
  .hero-content h1 { font-size: 34px; }
  .page-banner h1 { font-size: 30px; }

  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-cta { margin-left: 0; margin-top: 8px; }

  .cards-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .step-item:nth-child(even)::after { display: none; }
  .download-cards { grid-template-columns: 1fr; }
  .case-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .hero-card-stats { gap: 12px; }
  .hero-stat-value { font-size: 24px; }
  .hero-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .tabs-nav { width: 100%; overflow-x: auto; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 10px 12px; }

  /* 内联两栏布局 → 单栏 */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  /* 导航栏移动端安全区 */
  .nav-links {
    padding-bottom: calc(16px + var(--safe-inset-bottom));
  }
}

/* --- 小屏手机 (≤480px) --- */
@media (max-width: 480px) {
  .section { padding: 40px 0; }
  .container { padding: 0 16px; }
  .section-title { font-size: 22px; }
  .section-header { margin-bottom: 32px; }

  .hero { padding: calc(var(--nav-height) + 40px) 0 60px; }
  .hero-content h1 { font-size: 26px; }
  .hero-content p { font-size: 15px; }
  .hero-card { padding: 20px 16px; border-radius: var(--radius-lg); }
  .hero-card-stats { gap: 8px; }
  .hero-stat-value { font-size: 22px; }
  .hero-stat-label { font-size: 11px; }

  .page-banner { padding: calc(var(--nav-height) + 40px) 0 40px; }
  .page-banner h1 { font-size: 24px; }
  .page-banner p { font-size: 15px; }

  .card { padding: 24px 20px; }

  .timeline { padding-left: 30px; }
  .timeline::before { left: 10px; }
  .timeline-dot { left: -27px; width: 11px; height: 11px; }
  .timeline-content h4 { font-size: 15px; }
  .timeline-content p { font-size: 13px; }

  .contact-form { padding: 24px 18px; }
  .contact-info h2 { font-size: 24px; }
  .contact-detail { gap: 10px; }

  .btn-lg { padding: 12px 24px; font-size: 15px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; text-align: center; }

  .steps-row { gap: 12px; }
  .step-num { width: 44px; height: 44px; font-size: 18px; }
  .step-item h4 { font-size: 13px; }
  .step-item p { font-size: 12px; }
  .step-item::after { left: calc(50% + 20px); width: calc(100% - 40px); }

  .footer { padding: 40px 0 24px; }
  .footer-grid { gap: 24px; }

  .tabs-nav { gap: 2px; padding: 3px; }
  .tab-btn { padding: 8px 14px; font-size: 13px; }

  [style*="font-size:32px"] { font-size: 24px !important; }

  .back-to-top { bottom: calc(16px + var(--safe-inset-bottom)); right: 16px; }
}

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* 滚动渐显 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 回到顶部 --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
}

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

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* --- 横向滚动阴影提示 --- */
.scroll-shadow-x {
  position: relative;
  overflow-x: auto;
}
.scroll-shadow-x::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.scroll-shadow-x.scrolled-end::after {
  opacity: 0;
}

/* --- Toast --- */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-success);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: fadeInUp 0.3s ease;
}

/* --- 打印样式 --- */
@media print {
  .navbar,
  .menu-toggle,
  .back-to-top,
  .btn,
  .footer .footer-col,
  section[style*="background:var(--color-gradient)"] {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  .container {
    max-width: 100%;
    padding: 0;
  }
  .section {
    padding: 20px 0;
    break-inside: avoid;
  }
  .footer {
    background: none;
    color: #000;
    border-top: 1px solid #ccc;
    padding: 20px 0;
  }
  .footer-bottom {
    border-top-color: #ccc;
  }
  a { color: #000; }
  img { max-width: 100% !important; page-break-inside: avoid; }
}
