/* 重庆迈利思科技 · 官网样式 v2 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #0ea5e9;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --footer-bg: #0b1220;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --max-width: 1180px;
  --header-h: 72px;
  --guolai: #7a8a9a;
  --guolai-soft: #eef1f4;
  --store: #16a34a;
  --store-soft: #ecfdf5;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

.container {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.logo:hover { color: var(--text); }

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.site-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  color: var(--primary);
  border-color: #bfdbfe;
  background: #f8fbff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.25); color: #fff; }

/* ========== Homepage Hero ========== */
.hero-main {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 50%, #ffffff 100%);
}

.hero-main::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-main::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #bfdbfe;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.hero-main h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
}

.hero-main h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  margin: 0 0 32px;
  max-width: 540px;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  display: grid;
  gap: 16px;
}

.hero-card-preview {
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.hero-card-preview.guolai-preview {
  border-left: 4px solid var(--guolai);
}

.hero-card-preview.store-preview {
  border-left: 4px solid var(--store);
}

.preview-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.preview-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
}

.preview-desc {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.preview-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.preview-link:hover { text-decoration: underline; }

/* ========== Stats / Values ========== */
.values-bar {
  padding: 0 0 80px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.value-item {
  text-align: center;
  padding: 12px 16px;
}

.value-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: var(--bg-soft);
}

.value-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.value-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== Sections ========== */
.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

/* ========== Product Cards ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product-card {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.product-card.guolai::before { background: linear-gradient(90deg, var(--guolai), #9aa8b6); }
.product-card.store::before { background: linear-gradient(90deg, var(--store), #22c55e); }

.product-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.product-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.product-card.guolai .product-icon { background: var(--guolai-soft); }
.product-card.store .product-icon { background: var(--store-soft); }

.product-card h3 {
  margin: 0 0 4px;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.product-card .product-tagline {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.product-card .product-desc {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.product-features span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
}

.product-card.guolai .product-features span { background: var(--guolai-soft); }
.product-card.store .product-features span { background: var(--store-soft); }

/* ========== App Page Hero ========== */
.hero-app {
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}

.hero-app.guolai-theme {
  background: linear-gradient(180deg, #eef1f4 0%, #fafaf8 60%, #fff 100%);
}

.hero-app.store-theme {
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 60%, #fff 100%);
}

.hero-app-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: center;
}

.hero-app h1 {
  margin: 0 0 16px;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-app .lead {
  margin: 0;
  max-width: 560px;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.phone-showcase {
  justify-self: end;
}

.phone-frame {
  padding: 12px;
  border-radius: 32px;
  background: #1e293b;
  box-shadow: var(--shadow-lg);
}

.phone-frame img {
  border-radius: 22px;
  width: 260px;
  height: auto;
  object-fit: contain;
  background: #000;
}

/* ========== Audit Box ========== */
.audit-box {
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.audit-box h2 {
  margin: 0 0 20px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}

.audit-item {
  font-size: 0.9375rem;
}

.audit-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.audit-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ========== Features ========== */
.feature-list {
  display: grid;
  gap: 64px;
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: center;
  padding: 40px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.feature-item:nth-child(even) {
  direction: rtl;
}

.feature-item:nth-child(even) > * {
  direction: ltr;
}

.feature-num {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
}

.feature-item h3 {
  margin: 0 0 12px;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.feature-item p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.8;
}

.feature-screenshot .phone-frame {
  margin: 0 auto;
}

.feature-screenshot .phone-frame img {
  width: 240px;
}

/* ========== Contact ========== */
.contact-section {
  padding: 88px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}

.contact-section .section-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #93c5fd;
}

.contact-section .section-title { color: #fff; }
.contact-section .section-desc { color: #94a3b8; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.contact-item {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contact-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item span,
.contact-item a {
  color: #f1f5f9;
  font-size: 1rem;
  font-weight: 500;
}

.contact-item a:hover { color: #93c5fd; }

/* ========== Privacy ========== */
.privacy-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.privacy-content h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.privacy-meta {
  margin: 0 0 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.privacy-content h2 {
  margin: 40px 0 16px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.privacy-content p,
.privacy-content li {
  color: var(--text-secondary);
  line-height: 1.85;
}

.privacy-content ul { padding-left: 1.5rem; }
.privacy-content li { margin-bottom: 8px; }

/* ========== Footer ========== */
.site-footer {
  background: var(--footer-bg);
  color: #64748b;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand-block .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #f1f5f9;
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-brand-block p {
  margin: 0;
  max-width: 320px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #64748b;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9375rem;
}

.footer-links a:hover { color: #f1f5f9; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: #475569;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  width: 100%;
  text-align: center;
}

.footer-bottom .footer-legal {
  justify-content: flex-start;
  width: auto;
}

.footer-icp {
  color: #64748b;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-icp:hover {
  color: #94a3b8;
  text-decoration: none;
}

.footer-copy {
  padding: 32px 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #475569;
}

.footer-copy .footer-legal {
  margin-top: 8px;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .hero-grid,
  .hero-app-inner,
  .product-grid,
  .audit-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .phone-showcase {
    justify-self: center;
  }

  .feature-item,
  .feature-item:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    padding: 28px;
  }

  .feature-screenshot {
    order: -1;
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--max-width)); }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .site-nav a {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.875rem;
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }

  .hero-main { padding: 56px 0 72px; }
  .section { padding: 64px 0; }
}
