/* AIKE 智能客服推广站 — 参考得助智能官网排版 */
:root {
  --primary: #175dff;
  --primary-dark: #0d47cc;
  --primary-light: #e8f0ff;
  --text: #222;
  --text-secondary: #666;
  --text-muted: #999;
  --border: #eee;
  --bg: #f7f9fc;
  --white: #fff;
  --header-h: 60px;
  --container: 1200px;
  --radius: 4px;
  --shadow: 0 8px 32px rgba(23, 93, 255, 0.08);
  --transition: 0.25s ease;
}

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

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* ── Header ── */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(50%) blur(10px);
  -webkit-backdrop-filter: saturate(50%) blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #4d8bff);
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.logo-text span {
  color: var(--primary);
}

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

.nav > li {
  position: relative;
}

.nav > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--text);
  border-radius: var(--radius);
}

.nav > li > a:hover,
.nav > li > a.active {
  color: var(--primary);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  padding: 12px 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nav-dropdown a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-tel {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.header-tel strong {
  color: var(--primary);
  font-size: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 20px;
  height: 36px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-lg {
  height: 48px;
  padding: 0 32px;
  font-size: 16px;
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--white);
}

.btn-white:hover {
  background: var(--primary-light);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero Banner ── */
.hero {
  margin-top: var(--header-h);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0ff 50%, #f7f9ff 100%);
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  min-height: 520px;
  padding: 80px 0 100px;
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.6s ease;
}

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

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

.hero-content h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-features {
  margin-bottom: 36px;
}

.hero-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 12px;
}

.hero-features li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23175dff'/%3E%3Cpath d='M5 9l3 3 5-6' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

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

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-mockup {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4/3;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(23, 93, 255, 0.15);
  overflow: hidden;
  border: 1px solid var(--border);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #f5f7fa;
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
}

.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: calc(100% - 45px);
}

.chat-bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: #f0f4ff;
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(23, 93, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
}

.hero-dot.active {
  background: var(--primary);
  width: 48px;
}

/* ── Section common ── */
.section {
  padding: 80px 0;
}

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

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

.section-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  margin-bottom: 12px;
}

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

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

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

.stat-item strong {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
}

.stat-item span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── Product tabs ── */
.product-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 24px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.product-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary-light);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.product-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.product-card .tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 2px;
  background: #fff3e0;
  color: #e65100;
  margin-left: 6px;
  vertical-align: middle;
}

.product-card .tag.hot {
  background: #ffebee;
  color: #c62828;
}

.product-card .tag.new {
  background: var(--primary-light);
  color: var(--primary);
}

.card-link {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}

.card-link:hover {
  text-decoration: underline;
}

/* ── Solutions ── */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.solution-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.solution-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--primary) 0%, #4d8bff 100%);
  opacity: 0.9;
}

.solution-card:nth-child(2) .solution-card-bg { background: linear-gradient(160deg, #0d47cc, #175dff); }
.solution-card:nth-child(3) .solution-card-bg { background: linear-gradient(160deg, #1565c0, #42a5f5); }
.solution-card:nth-child(4) .solution-card-bg { background: linear-gradient(160deg, #1a237e, #3949ab); }
.solution-card:nth-child(5) .solution-card-bg { background: linear-gradient(160deg, #00695c, #26a69a); }
.solution-card:nth-child(6) .solution-card-bg { background: linear-gradient(160deg, #e65100, #ff9800); }
.solution-card:nth-child(7) .solution-card-bg { background: linear-gradient(160deg, #4a148c, #7b1fa2); }
.solution-card:nth-child(8) .solution-card-bg { background: linear-gradient(160deg, #37474f, #607d8b); }

.solution-card-content {
  position: relative;
  z-index: 1;
  padding: 28px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}

.solution-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.solution-card p {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.6;
}

/* ── Cases ── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow);
}

.case-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light), #d4e4ff);
  display: grid;
  place-items: center;
  font-size: 48px;
}

.case-body {
  padding: 24px;
}

.case-body .industry {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 8px;
}

.case-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.case-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.case-metrics {
  display: flex;
  gap: 20px;
}

.case-metrics div strong {
  display: block;
  font-size: 22px;
  color: var(--primary);
}

.case-metrics div span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Resources ── */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.resource-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: box-shadow var(--transition);
}

.resource-card:hover {
  box-shadow: var(--shadow);
}

.resource-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--primary-light);
  display: grid;
  place-items: center;
  font-size: 26px;
}

.resource-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.resource-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Community ── */
.community-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.news-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.news-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: var(--primary-light);
}

.news-item h4 {
  font-size: 15px;
  font-weight: 500;
  flex: 1;
}

.news-item time {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.community-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  flex: 1;
  padding: 28px;
  background: linear-gradient(135deg, var(--primary), #4d8bff);
  border-radius: 8px;
  color: var(--white);
}

.side-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.side-card p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
  line-height: 1.6;
}

.side-card .btn-white {
  width: 100%;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-content h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.about-feat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.about-feat .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.about-feat h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.about-feat p {
  font-size: 13px;
  margin: 0;
}

.about-visual {
  background: var(--bg);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--border);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.contact-item strong {
  display: block;
  font-size: 15px;
}

.contact-item span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── CTA ── */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #0d47cc 100%);
  padding: 72px 0;
  text-align: center;
  color: var(--white);
}

.cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}

.cta p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Footer ── */
.footer {
  background: #1a1f36;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo-text {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

/* ── Float CTA ── */
.float-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(23, 93, 255, 0.4);
  transition: transform var(--transition);
  display: grid;
  place-items: center;
}

.float-btn:hover {
  transform: scale(1.08);
}

.float-btn.tel {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}

.float-btn img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

/* ── Page hero (sub pages) ── */
.page-hero {
  margin-top: var(--header-h);
  padding: 64px 0 56px;
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0ff 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 640px;
  margin-inline: auto;
}

/* ── Client logos ── */
.clients-bar {
  padding: 48px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.clients-bar .label {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
}

.client-logo {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: filter var(--transition), opacity var(--transition);
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ── QR cards ── */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.qr-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.qr-card img {
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: var(--white);
}

.qr-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.qr-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-qr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-qr img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px;
  background: #fff;
}

.footer-qr span {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.footer-logo img {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.case-logo {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 12px;
}

.case-thumb.img-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--white);
}

.case-thumb.img-thumb img {
  max-height: 56px;
  width: auto;
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.preview-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}

.preview-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.preview-card .icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.preview-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.preview-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.preview-card code {
  font-size: 13px;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 3px;
}

@media (max-width: 1024px) {
  .qr-grid,
  .preview-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .qr-grid,
  .preview-cards {
    grid-template-columns: 1fr;
  }

  .client-logo {
    height: 36px;
    max-width: 120px;
  }
}

/* ── Mobile nav overlay ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  background: var(--white);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav > li {
  border-bottom: 1px solid var(--border);
}

.mobile-nav > li > a {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
}

.mobile-sub {
  padding: 0 0 12px 16px;
}

.mobile-sub a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.mobile-nav-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-actions .btn {
  width: 100%;
  height: 44px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-mockup {
    max-width: 400px;
  }

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

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

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

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

@media (max-width: 768px) {
  .nav,
  .header-tel {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .hero-slide {
    min-height: auto;
    padding: 48px 0 72px;
  }

  .product-grid,
  .case-grid,
  .resource-grid,
  .solution-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

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

  .float-cta {
    right: 16px;
    bottom: 16px;
  }

  .header-actions .btn-outline {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
