:root {
  --bg: #0f172a;
  --bg-alt: #0b1223;
  --card: #111a30;
  --primary: #4dd0e1;
  --primary-strong: #22c1c3;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: radial-gradient(120% 120% at 20% 20%, rgba(77, 208, 225, 0.08), transparent 40%), var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8vw;
  background: rgba(11, 18, 35, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.brand {
  font-weight: 700;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--text);
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #0b1223;
  box-shadow: 0 10px 30px rgba(77, 208, 225, 0.35);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-btn:active {
  background: rgba(255, 255, 255, 0.12);
}

.menu-btn .material-icons {
  font-size: 26px;
  display: block;
}

.hero {
  position: relative;
  padding: 0;
  min-height: calc(100vh - 70px);
  overflow: hidden;
}

.hero__content {
  position: absolute;
  top: 50%;
  left: 8vw;
  transform: translateY(-50%);
  z-index: 3;
  max-width: 540px;
  padding: 20px 18px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.2));
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.hero__content .btn {
  min-width: 140px;
}

.hero__content h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 12px 0;
}

.subtitle {
  color: var(--muted);
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #0b1223;
  box-shadow: 0 14px 35px rgba(77, 208, 225, 0.35);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.btn.full {
  width: 100%;
}

.btn:hover {
  transform: translateY(-1px);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chip {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.hero__slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: linear-gradient(145deg, #111a30, #0b1223);
  min-height: 100%;
}

.banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.banner-slide {
  min-width: 100%;
  padding: 22px;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.banner-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.banner-title {
  font-size: 22px;
  margin: 0 0 6px;
}

.banner-desc {
  margin: 0;
  color: var(--muted);
}

.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all 0.2s ease;
}

.banner-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.banner-dot.active {
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(77, 208, 225, 0.18);
}

.banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.banner-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

.banner-btn.prev { left: 12px; }
.banner-btn.next { right: 12px; }

.section {
  padding: 60px 8vw;
}

.section--alt {
  background: var(--bg-alt);
}

.section__header h2 {
  margin: 6px 0;
  font-size: 28px;
}

.section__lead {
  color: var(--muted);
  max-width: 760px;
}

.eyebrow {
  letter-spacing: 0.25em;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
}

.filters {
  margin: 20px 0 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.filter-btn:active {
  transform: scale(0.98);
}

.filter-btn.active {
  border-color: rgba(77, 208, 225, 0.6);
  color: var(--primary);
}

.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tools-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tool-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
}

.tool-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.tool-desc {
  color: var(--muted);
  margin: 0;
}

.tool-meta {
  color: var(--primary);
  font-size: 13px;
}

.card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 208, 225, 0.4);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(77, 208, 225, 0.15);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.badge--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.card h3 {
  margin: 4px 0 8px;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.tags {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--primary);
  font-size: 13px;
}

.card__link {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--primary);
  font-weight: 600;
  width: fit-content;
  transition: all 0.2s ease;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}

.card__link:hover {
  border-color: rgba(77, 208, 225, 0.6);
  color: var(--text);
  background: rgba(77, 208, 225, 0.08);
}

.card__link:active {
  transform: scale(0.98);
}

.about-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 22px;
}

.about-card {
  padding: 18px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(77, 208, 225, 0.12);
  color: var(--primary);
  border-radius: 12px;
  margin-bottom: 10px;
}

.contact-card {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  background: var(--card);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(77, 208, 225, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.footer {
  padding: 24px 8vw 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  background: var(--bg-alt);
}

.footer__links {
  display: flex;
  gap: 12px;
}

.demo-wrapper,
.embed-frame {
  margin-top: 20px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  background: #020617;
}

.demo-wrapper iframe,
.embed-frame iframe {
  width: 100%;
  min-height: 640px;
  border: none;
  background: #020617;
}

.demo-actions,
.embed-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.embed-main {
  min-height: calc(100vh - 160px);
}

.page-embed {
  background: var(--bg);
}

/* --------- 响应式优化 --------- */

/* 平板横屏和中等屏幕 (1024px 及以下) */
@media (max-width: 1024px) {
  .topbar {
    padding: 14px 5vw;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: unset;
    padding: 86px 5vw 40px;
  }

  .hero__content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 100%;
    margin: 0;
    padding: 18px 16px;
    background: rgba(0, 0, 0, 0.4);
  }

  .hero__actions {
    width: 100%;
  }

  .hero__slider {
    position: relative;
    height: 360px;
    min-height: 360px;
    border-radius: 16px;
    overflow: hidden;
  }

  .banner-btn {
    width: 44px;
    height: 44px;
  }

  .banner-dots {
    bottom: 14px;
  }

  .section {
    padding: 50px 5vw;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
  }

  .about-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .demo-wrapper iframe,
  .embed-frame iframe {
    min-height: 500px;
  }
}

/* 平板竖屏 (768px 及以下) */
@media (max-width: 768px) {
  .topbar {
    padding: 12px 4vw;
  }

  .brand {
    font-size: 16px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 12px 4vw 16px;
    background: rgba(11, 18, 35, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 16px;
    border-radius: 12px;
    width: 100%;
    text-align: center;
  }

  .menu-btn {
    display: inline-flex;
    cursor: pointer;
    padding: 8px;
  }

  .menu-btn .material-icons {
    font-size: 28px;
  }

  .hero {
    padding: 76px 4vw 32px;
    gap: 12px;
  }

  .hero__content {
    padding: 16px 14px;
  }

  .hero__content h1 {
    font-size: 28px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__slider {
    height: 300px;
    min-height: 300px;
  }

  .banner-btn {
    display: none;
  }

  .section {
    padding: 42px 4vw;
  }

  .section__header h2 {
    font-size: 24px;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .demo-wrapper iframe,
  .embed-frame iframe {
    min-height: 420px;
  }

  .footer {
    padding: 20px 4vw 32px;
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }
}

/* 手机大屏 (640px 及以下) */
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .topbar {
    padding: 10px 4vw;
  }

  .brand {
    font-size: 15px;
  }

  .hero {
    padding: 70px 4vw 28px;
  }

  .hero__content {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .hero__content h1 {
    font-size: 24px;
    margin: 8px 0;
  }

  .subtitle {
    font-size: 14px;
  }

  .hero__slider {
    height: 260px;
    min-height: 260px;
    border-radius: 14px;
  }

  .banner-slide {
    padding: 16px;
  }

  .banner-content {
    max-width: 100%;
  }

  .banner-title {
    font-size: 18px;
  }

  .banner-desc {
    font-size: 14px;
  }

  .section {
    padding: 36px 4vw;
  }

  .section__header h2 {
    font-size: 22px;
  }

  .section__lead {
    font-size: 14px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    padding: 16px;
  }

  .card h3 {
    font-size: 18px;
  }

  .card p {
    font-size: 14px;
  }

  .btn {
    padding: 11px 16px;
    font-size: 14px;
  }

  .chip {
    padding: 6px 10px;
    font-size: 12px;
  }

  .demo-wrapper iframe,
  .embed-frame iframe {
    min-height: 380px;
  }

  .demo-wrapper,
  .embed-frame {
    border-radius: 14px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    padding: 12px 14px;
  }
}

/* 手机小屏 (480px 及以下) */
@media (max-width: 480px) {
  .topbar {
    padding: 10px 3vw;
  }

  .hero {
    padding: 68px 3vw 24px;
  }

  .hero__content {
    padding: 12px 10px;
  }

  .hero__content h1 {
    font-size: 22px;
  }

  .hero__slider {
    height: 240px;
    min-height: 240px;
  }

  .section {
    padding: 32px 3vw;
  }

  .section__header h2 {
    font-size: 20px;
  }

  .card {
    padding: 14px;
  }

  .card h3 {
    font-size: 17px;
  }

  .about-card {
    padding: 14px;
  }

  .about-card__icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .contact-card {
    padding: 14px;
  }

  .demo-wrapper iframe,
  .embed-frame iframe {
    min-height: 320px;
  }

  .footer {
    padding: 18px 3vw 28px;
    font-size: 13px;
  }

  .footer__links {
    font-size: 13px;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav a,
  .filter-btn,
  .card__link,
  .menu-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .banner-dot {
    width: 12px;
    height: 12px;
    margin: 4px;
  }

  /* 移除悬停效果，使用触摸反馈 */
  .btn:active {
    transform: scale(0.98);
  }

  .card:active {
    transform: translateY(-2px);
  }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 60px 4vw 24px;
  }

  .hero__slider {
    height: 280px;
    min-height: 280px;
  }

  .section {
    padding: 36px 4vw;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


