/* 基础样式与主题变量 */
:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --focus: #2563eb;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* 顶部 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-name { font-size: 18px; letter-spacing: .2px; }

/* 头图区域 */
.hero {
  background-image: url("./images/bg-banner.jpg"); /* 路径替换成你的图片路径 */
  background-size: cover;   /* 让图片等比例放大并覆盖整个区域 */
  background-position: center; /* 居中显示 */
  background-repeat: no-repeat; /* 不重复平铺 */
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  padding: 80px 0;
}

.hero-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-illustration img {
  width: 100%;
  max-width: 473px;
}
.robot {
  position: absolute;
  width: 150px;
  height: 180px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #eef2ff);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}
.robot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 26%;
  transform: translateX(-50%);
  width: 96px;
  height: 56px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 40%, #0ea5e9 0 38%, #0d9488 38% 100%);
  box-shadow: inset 0 0 0 8px #0b2447;
}
.robot-left { left: 4%; bottom: -12px; transform: rotate(-4deg); }
.robot-center { left: 36%; bottom: -22px; transform: scale(1.1); z-index: 1; }
.robot-right { left: 68%; bottom: -10px; transform: rotate(3deg); }

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.25;
  font-weight: 600;
  font-size: 32px;
}
.hero-content .lead {
  margin: 0 0 18px;
  font-weight: 600;
  color: #0f172a;
}
.hero-content p { margin: 0 0 10px; }
.hero-content .muted { color: var(--muted); margin-top: 30px; }

/* 订阅区 */
.subscribe { background: var(--bg); padding: 28px 0 56px; }
.subscribe-inner { text-align: center; }
.subscribe h2 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.4vw, 24px);
}
.subscribe .sub { color: var(--muted); margin: 0 0 18px; }
.subscribe-wrapper {
  display: flex;
  background: #EDF2F6;
  border-radius: 999px;
}


.subscribe-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  width: min(640px, 100%);
  margin: 34px auto;
}
.subscribe-form input {
  flex: 1;
  height: 50px;
  padding: 0 20px;
  border: 0;
  font-size: 16px;
  outline: none;
  background: none;
  border-radius: 999px;
}
.subscribe-form button {
  height: 50px;
  padding: 0 40px;
  border: 0;
  border-radius: 999px;
  background: #334155;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.subscribe-form button[disabled] { opacity: .6; cursor: not-allowed; }

.help { margin-top: 14px; }
.help a { color: #000;  }

.message { margin-top: 12px; min-height: 22px; font-weight: 600; }
.message.error { color: #b91c1c; }
.message.success { color: #047857; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.footer-nav { display: inline-flex; align-items: center; gap: 10px; }
.footer-nav a { color: #334155; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-nav .dot { color: #94a3b8; }
main { flex: 1 0 auto; }

/* 无障碍隐藏但可读 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 响应式 */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-illustration { order: 2; min-height: 220px; }
  .robot { width: 110px; height: 140px; border-radius: 22px; }
  .robot::before { width: 78px; height: 44px; }
}

@media (max-width: 520px) {
  .subscribe-form { grid-template-columns: 1fr; }
}

/* 禁用浏览器自动填充导致的样式变化，保持与正常输入一致 */
.subscribe-form input:-webkit-autofill,
.subscribe-form input:-webkit-autofill:hover,
.subscribe-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  /* 用超大内阴影覆盖 Chrome/Safari 黄色背景 */
  -webkit-box-shadow: 0 0 0 1000px #EDF2F6 inset !important;
  box-shadow: 0 0 0 1000px #EDF2F6 inset !important;
  /* 防止短暂闪黄 */
  transition: background-color 9999s ease-out 0s !important;
}

/* Firefox 自动填充 */
.subscribe-form input:-moz-autofill {
  color: var(--text) !important;
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px #EDF2F6 inset;
}