/* ============================================================
   小芮云诊所 · 公司官网 v1
   纯 HTML + CSS，零外部依赖，桌面 / 平板 / 移动响应式
   ============================================================ */

:root {
  --primary-color: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #42A5F5;
  --primary-soft: #E3F2FD;
  --bg-light: #F5F9FF;
  --bg-section: #FAFCFF;
  --text-primary: #1A1F36;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --white: #FFFFFF;
  --border: #E5EAF2;
  --accent-green: #10B981;
  --shadow-sm: 0 1px 3px rgba(15, 39, 89, 0.06);
  --shadow-md: 0 6px 24px rgba(15, 39, 89, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 39, 89, 0.14);
  --radius: 12px;
  --radius-lg: 18px;

  --font-stack: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--primary-color); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.3; color: var(--text-primary); font-weight: 700; }

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

/* -------- 通用按钮 -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(21, 101, 192, 0.25);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--primary-light);
}
.btn-ghost:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-outline:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.btn-lg {
  padding: 13px 30px;
  font-size: 15px;
  border-radius: 10px;
}
.btn-block { width: 100%; padding: 14px; font-size: 15px; }

/* -------- 顶部导航 -------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.brand:hover { color: var(--primary-color); }
.brand .logo { flex-shrink: 0; }
.brand-name { letter-spacing: 0.5px; }

.nav-menu {
  display: flex;
  gap: 36px;
}
.nav-menu a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-menu a:hover { color: var(--primary-color); }
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s;
}
.nav-menu a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  gap: 10px;
}

/* -------- Hero -------- */
.hero {
  padding: 130px 0 80px;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(66, 165, 245, 0.12) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text {
  animation: fadeInUp .8s ease both;
}
.badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--primary-soft);
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  margin-bottom: 22px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}
.hero h1 .text-divider {
  margin: 0 6px;
  color: var(--primary-light);
  font-weight: 300;
}
.hero h1 .text-accent {
  color: var(--primary-color);
}
.lead {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 42px;
  flex-wrap: wrap;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stats strong {
  font-size: 22px;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
}
.hero-stats span {
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-visual {
  animation: fadeInUp .9s .15s ease both;
}

/* 浏览器框装饰 */
.browser-frame {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .35s ease, box-shadow .35s ease;
}
.browser-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(15, 39, 89, 0.18);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #F1F5FA;
  border-bottom: 1px solid var(--border);
}
.browser-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }
.browser-url {
  margin-left: 14px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: -apple-system, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.3px;
}
.browser-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* -------- Section title 通用 -------- */
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 14px;
}
.section-title.left { text-align: left; }
.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0 auto 56px;
  max-width: 640px;
}
.section-sub.left { text-align: left; margin-left: 0; margin-right: 0; }

/* -------- Section 2：4 大价值 -------- */
.values {
  padding: 96px 0;
  background: var(--bg-section);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--primary-soft);
  color: var(--primary-color);
}
.icon-shield { background: #E8F5E9; color: var(--accent-green); }
.icon-chart  { background: #FFF4E5; color: #E67E22; }
.icon-lock   { background: #F3E8FF; color: #8B5CF6; }
.value-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.value-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* -------- Section 3：8 大功能模块 -------- */
.features {
  padding: 96px 0;
}
.feature-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse {
  grid-template-columns: 1.15fr 0.85fr;
}
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-shot { order: 1; }

.feature-num {
  font-family: -apple-system, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}
.feature-text h3 {
  font-size: 28px;
  margin-bottom: 18px;
}
.feature-text ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.feature-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
}

/* -------- Section 4：FAQ -------- */
.faq {
  padding: 96px 0;
  background: var(--bg-section);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  padding: 0 24px;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  font-size: 16px;
  font-weight: 600;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 36px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--primary-color);
  transition: transform .25s;
  font-weight: 300;
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

/* -------- Section 5：联系 + 试用申请表 -------- */
.contact {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info .section-title { margin-bottom: 8px; }
.contact-list {
  margin: 28px 0 32px;
  padding: 0;
}
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.contact-list li:last-child { border-bottom: none; }
.contact-label {
  width: 86px;
  flex-shrink: 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.contact-value {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}
.company-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  border-left: 4px solid var(--primary-color);
}
.company-card strong {
  display: block;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.company-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.trial-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px;
  border: 1px solid var(--border);
}
.form-header { margin-bottom: 24px; }
.form-header h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 6px;
}
.form-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.trial-form label {
  display: block;
  margin-bottom: 16px;
}
.trial-form label > span {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}
.trial-form label > span em {
  color: #E53935;
  font-style: normal;
  margin-left: 2px;
}
.trial-form input,
.trial-form textarea,
.trial-form .region-select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: #FAFBFD;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.trial-form input:focus,
.trial-form textarea:focus,
.trial-form .region-select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}
.trial-form textarea { resize: vertical; min-height: 76px; }
/* 省市区三级联动：水平 flex 三个 select */
.trial-form .region-cascader {
  display: flex;
  gap: 8px;
}
.trial-form .region-cascader .region-select {
  flex: 1;
  min-width: 0;
  /* select 默认行高跟 input 有 1-2px 差，统一 */
  padding: 10px 12px;
  cursor: pointer;
  /* 把默认箭头换成更轻的图标 */
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
/* 蜜罐字段：屏幕外但允许 bot 检测到 input；设 left: -10000px 而非 display:none，
   后者部分 bot 会跳过；屏幕用户 / 屏幕阅读器（aria-hidden）感知不到 */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 12px 0 0;
  text-align: center;
  line-height: 1.6;
}

/* -------- 页脚 -------- */
.footer {
  background: #0F1B2D;
  color: #C9D2E0;
  padding: 64px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: #8896AB;
  font-size: 14px;
  padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid #1F2A3F;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #6B778C;
}
.footer-bottom a { color: #8896AB; }
.footer-bottom a:hover { color: var(--white); }

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   响应式 - 平板（768 ~ 1280px）
   ============================================================ */
@media (max-width: 1280px) {
  .container { padding: 0 32px; }
  .hero { padding: 120px 0 64px; }
  .hero h1 { font-size: 40px; }
  .hero-inner { gap: 48px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.reverse { gap: 48px; }
}

/* ============================================================
   响应式 - 移动（< 768px）
   ============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  /* 导航 */
  .navbar { background: var(--white); }
  .nav-inner { height: 56px; }
  .brand-name { font-size: 16px; }
  .nav-menu { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn { padding: 7px 14px; font-size: 13px; }

  /* Hero */
  .hero { padding: 96px 0 56px; text-align: left; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero h1 { font-size: 30px; }
  .hero h1 .text-divider { display: none; }
  .hero h1 .text-accent { display: block; margin-top: 4px; }
  .lead { font-size: 16px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 24px; }
  .hero-stats li { flex: 1 1 calc(50% - 12px); }
  .hero-stats strong { font-size: 18px; }

  /* Section title */
  .section-title { font-size: 24px; }
  .section-sub { font-size: 14px; margin-bottom: 36px; }

  /* Values */
  .values { padding: 64px 0; }
  .value-grid { grid-template-columns: 1fr; gap: 14px; }
  .value-card { padding: 24px 20px; }

  /* Features */
  .features { padding: 64px 0; }
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 64px;
  }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-shot { order: 2; }
  .feature-text h3 { font-size: 22px; }

  /* FAQ */
  .faq { padding: 64px 0; }
  .faq-item summary { font-size: 15px; }

  /* Contact */
  .contact { padding: 64px 0; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .trial-form-wrap { padding: 24px 20px; }

  /* Footer */
  .footer { padding: 48px 0 20px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .footer-col h4 { font-size: 13px; }
  .footer-col a { font-size: 13px; }
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 26px; }
  .hero-stats { gap: 16px; }
}
