/* ==========================================================================
   home.css — 首页专属：Hero、手机模拟器、AI 对话演示、功能分栏、场景、价格、FAQ
   仅 index.html 引用
   ========================================================================== */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 5vw, 84px) 0 clamp(56px, 5vw, 96px);
  background:
    radial-gradient(900px 420px at 12% -10%, #e6edff 0%, rgba(230, 237, 255, 0) 62%),
    radial-gradient(760px 380px at 92% 6%, #eaf3ff 0%, rgba(234, 243, 255, 0) 60%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}

.hero__grid {
  display: grid;
  gap: clamp(40px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}

.hero__title {
  margin-bottom: 20px;
}

.hero__title em {
  position: relative;
  font-style: normal;
  color: var(--brand);
  white-space: nowrap;
}

/* 标题重点词下的色块下划线 */
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.28em;
  border-radius: var(--r-pill);
  background: var(--brand-100);
  z-index: -1;
}

.hero__lead {
  max-width: 540px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__note svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--memo);
}

/* ---------- 手机模拟器 ---------- */

/* 宽度与手机一致，这样悬浮气泡的负偏移才是相对手机边缘、而非整列 */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 336px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(160deg, #dfe6f8 0%, #c7d3f0 100%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: var(--surface-soft);
}

.phone__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 3;
  width: 108px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: var(--r-pill);
  background: #0e1730;
}

.phone__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 6px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
}

.phone__statusbar-icons {
  display: inline-flex;
  gap: 4px;
  align-items: flex-end;
}

.phone__statusbar-icons i {
  display: block;
  width: 4px;
  border-radius: 1px;
  background: var(--ink);
}

.phone__statusbar-icons i:nth-child(1) { height: 5px; }
.phone__statusbar-icons i:nth-child(2) { height: 7px; }
.phone__statusbar-icons i:nth-child(3) { height: 9px; }
.phone__statusbar-icons i:nth-child(4) { height: 11px; }

.phone__titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px 12px;
}

.phone__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.phone__title {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.phone__subtitle {
  color: var(--memo);
  font-size: 0.68rem;
  font-weight: 500;
}

/* 对话区 */
.chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  height: 384px;
  padding: 4px 16px 12px;
  overflow: hidden;
}

.chat__row {
  display: flex;
  animation: bubble-in 0.34s var(--ease);
}

.chat__row--me {
  justify-content: flex-end;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.8rem;
  line-height: 1.65;
  box-shadow: var(--shadow-xs);
}

.bubble--me {
  border-bottom-right-radius: 4px;
  background: var(--brand);
  color: #fff;
}

.bubble--ai {
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

/* AI 返回的卡片：顶条蓝=待办、绿=随手记，与产品内 HTML 卡片规范一致 */
.mini-card__bar {
  height: 4px;
  background: var(--todo);
}

.mini-card__bar--memo {
  background: var(--memo);
}

.mini-card__body {
  padding: 12px 13px 13px;
}

.mini-card__title {
  margin-bottom: 9px;
  color: var(--todo);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.mini-card__title--memo {
  color: var(--memo);
}

.mini-card__field {
  display: flex;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--surface-mute);
  color: var(--text);
  font-size: 0.74rem;
  line-height: 1.55;
}

.mini-card__field + .mini-card__field {
  margin-top: 5px;
}

.mini-card__field b {
  flex: none;
  color: var(--muted);
  font-weight: 600;
}

.mini-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 11px;
}

.mini-btn {
  flex: 1;
  padding: 7px 0;
  border-radius: var(--r-pill);
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
}

.mini-btn--primary {
  background: var(--brand);
  color: #fff;
}

.mini-btn--ghost {
  border: 1px solid var(--line);
  color: var(--muted);
}

/* 正在输入 */
.typing {
  display: inline-flex;
  gap: 4px;
  padding: 13px 15px;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
  animation: typing-dot 1.1s infinite ease-in-out;
}

.typing i:nth-child(2) { animation-delay: 0.16s; }
.typing i:nth-child(3) { animation-delay: 0.32s; }

@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* 底部输入栏 */
.phone__inputbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.phone__input {
  flex: 1;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface-mute);
  color: var(--faint);
  font-size: 0.76rem;
}

.phone__mic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.phone__mic svg {
  width: 16px;
  height: 16px;
}

/* 悬浮气泡 */
.hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  animation: float-bob 4.5s ease-in-out infinite;
}

.hero__float svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* 贴在手机外侧，只轻微压住圆角，不遮挡屏幕内容 */
.hero__float--call {
  top: -14px;
  left: -104px;
  color: var(--brand-ink);
}

.hero__float--call svg {
  color: var(--brand);
}

.hero__float--done {
  right: -92px;
  bottom: -10px;
  color: #047857;
  animation-delay: 1.6s;
}

.hero__float--done svg {
  color: var(--memo);
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* 列宽不够时气泡会溢出容器，直接隐藏，不做挤压变形 */
@media (max-width: 1199px) {
  .hero__float {
    display: none;
  }
}

/* ---------- 能力速览 ---------- */

.feature-card__title {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.feature-card__text {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

/* ---------- 功能详解（左右交替） ---------- */

.split {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse .split__media {
    order: -1;
  }
}

.split + .split {
  margin-top: clamp(56px, 5vw, 88px);
}

.split__title {
  margin-bottom: 16px;
}

.split__list {
  margin-top: 22px;
}

.split__list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.75;
}

.split__list li + li {
  margin-top: 12px;
}

.split__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e63dd' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.split__list--memo li::before {
  background-color: var(--memo-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* 演示用界面卡片 */
.mock {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.mock__head-title {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
}

/* 待办行 */
.todo-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 13px;
  border-radius: var(--r-md);
  background: var(--surface-mute);
}

.todo-row + .todo-row {
  margin-top: 9px;
}

.todo-row__dot {
  width: 9px;
  height: 9px;
  flex: none;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--memo);
}

.todo-row__dot--high { background: var(--danger); }
.todo-row__dot--mid { background: var(--warn); }

.todo-row__main {
  flex: 1;
  min-width: 0;
}

.todo-row__title {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.todo-row--done .todo-row__title {
  color: var(--faint);
  text-decoration: line-through;
}

.todo-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.todo-row__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.todo-row__meta svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.todo-row__sub {
  margin-top: 8px;
  padding-left: 2px;
  border-left: 2px solid var(--line);
}

.todo-row__sub li {
  padding-left: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.9;
}

.todo-row__sub li b {
  color: var(--memo);
  font-weight: 600;
}

/* 提醒方式 */
.remind-list {
  display: grid;
  gap: 12px;
}

.remind-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}

.remind-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
}

.remind-item__icon svg {
  width: 20px;
  height: 20px;
}

.remind-item__icon--call { background: var(--brand-50); color: var(--brand); }
.remind-item__icon--sms { background: var(--memo-soft); color: var(--memo); }
.remind-item__icon--push { background: var(--warn-soft); color: #d97706; }

.remind-item__name {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
}

.remind-item__desc {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ---------- 场景 ---------- */

.scene-card {
  height: 100%;
  padding: 28px 26px;
}

.scene-card__role {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.scene-card__quote {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-soft);
  color: var(--brand-ink);
  font-size: 0.9rem;
  line-height: 1.7;
}

.scene-card__result {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ---------- 价格 ---------- */

.plans {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 860px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 880px;
    margin: 0 auto;
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
}

.plan--featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}

.plan__badge {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.plan__name {
  font-size: 1.25rem;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 6px;
}

.plan__price-num {
  color: var(--ink);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.plan__price-unit {
  color: var(--muted);
  font-size: 0.92rem;
}

.plan__note {
  color: var(--muted);
  font-size: 0.88rem;
}

.plan__features {
  margin: 24px 0 28px;
}

.plan__features li {
  position: relative;
  padding-left: 27px;
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.7;
}

.plan__features li + li {
  margin-top: 11px;
}

.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--brand-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e63dd' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}

.plan__features li.is-off {
  color: var(--faint);
}

.plan__features li.is-off::before {
  background: var(--surface-mute)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3.4' stroke-linecap='round'%3E%3Cline x1='6' y1='12' x2='18' y2='12'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}

.plan__cta {
  margin-top: auto;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 4px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
  transition: color 0.18s var(--ease);
}

.faq__q:hover {
  color: var(--brand);
}

.faq__icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--muted);
  transition: transform 0.28s var(--ease), color 0.18s var(--ease);
}

.faq__q[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
  color: var(--brand);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}

.faq__a.is-open {
  grid-template-rows: 1fr;
}

.faq__a-inner {
  overflow: hidden;
}

.faq__a-inner p {
  padding: 0 4px 22px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

/* ---------- 结尾 CTA ---------- */

.cta-band {
  padding: clamp(52px, 5vw, 84px) 0;
  background: linear-gradient(135deg, #3e63dd 0%, #2d47b0 100%);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  max-width: 560px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.75;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.cta-band .btn--primary {
  background: #fff;
  color: var(--brand-ink);
  box-shadow: 0 10px 28px rgba(9, 20, 60, 0.24);
}

.cta-band .btn--primary:hover {
  background: #f2f6ff;
  color: var(--brand-ink);
}

.cta-band .btn--ghost {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: none;
}

.cta-band .btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
