* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: 'Noto Serif SC', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1a1a1a;
  background: #ffffff;
  overflow-x: hidden;
}

#app {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: #ffffff;
  padding: 60px 0 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 80px 0;
  margin-bottom: 60px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  background: #0d9488;
  color: white;
  font-size: 28px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: 'Noto Sans SC', sans-serif;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-title { display: flex; align-items: baseline; gap: 8px; }
.brand-name { font-size: 24px; font-weight: 600; color: #1a1a1a; }
.brand-pro {
  font-size: 12px;
  font-weight: 600;
  color: #0d9488;
  background: #f0fdfa;
  border: 1px solid #0d9488;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.brand-desc { font-size: 14px; color: #4b5563; }
.brand-url { font-size: 12px; color: #6b7280; font-family: 'Noto Sans SC', sans-serif; }

.hero { padding: 0 80px 40px; text-align: center; }
.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 60px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #1a1a1a;
  margin-bottom: 24px;
  white-space: nowrap;
}
.text-ai { color: #0d9488; font-style: italic; font-weight: 700; }
.text-sub { color: #1a1a1a; font-weight: 500; font-size: 0.65em; letter-spacing: 0; }
.text-dot { color: #d1d5db; font-weight: 300; font-size: 0.6em; padding: 0 4px; }
.hero-sub {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 14px; font-size: 16px; color: #4b5563; font-family: 'Noto Sans SC', sans-serif;
}
.text-dollar { color: #10b981; font-weight: 600; }
.dot { color: #d1d5db; font-weight: 400; }

/* 通用横滚容器 */
.row-section {
  width: 100%;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 24px 0;
  overflow: hidden;
}
.row-section + .row-section { border-top: none; }
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  user-select: none;
  cursor: grab;
}
.marquee-wrap:active { cursor: grabbing; }
.marquee {
  display: flex;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 40px;
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  font-weight: 500;
  color: #1a1a1a;
  border-right: 1px solid #e5e7eb;
  height: 56px;
  line-height: 56px;
  transition: color 0.2s;
}
.marquee-item:hover { color: #0d9488; }

.major-item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 8px 18px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 6px;
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
  height: 36px;
}
.major-item:hover {
  background: #f0fdfa;
  border-color: #0d9488;
  color: #0d9488;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  color: #4b5563;
  margin: 0 18px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
  height: 36px;
  line-height: 36px;
}
.tag-item:hover { color: #0d9488; }

@media (max-width: 768px) {
  #app { padding: 90px 0 0; }
  .brand { padding: 0 20px; margin-bottom: 24px; gap: 12px; }
  .brand-icon { width: 40px; height: 40px; font-size: 20px; }
  .brand-name { font-size: 18px; }
  .brand-pro { font-size: 10px; }
  .brand-desc { font-size: 11px; }
  .brand-url { font-size: 10px; }
  .hero { padding: 0 20px 20px; }
  .hero-title { font-size: 22px; letter-spacing: -0.3px; margin-bottom: 10px; white-space: normal; }
  .text-sub { font-size: 0.7em; }
  .text-dot { padding: 0 2px; }
  .hero-sub { font-size: 11px; gap: 6px; }
  .row-section { padding: 16px 0; }
  .marquee-item { font-size: 17px; padding: 0 20px; height: 40px; line-height: 40px; }
  .major-item { font-size: 12px; padding: 5px 12px; height: 28px; margin: 0 4px; }
  .tag-item { font-size: 14px; margin: 0 10px; height: 28px; line-height: 28px; }
}


/* ===== 右上角时间 ===== */
.top-bar {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 1000;
  font-family: 'Share Tech Mono', 'Roboto Mono', 'Courier New', monospace;
  font-size: 18px;
  font-weight: 400;
  color: #0d9488;
  letter-spacing: 1.5px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  user-select: none;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.top-time {
  font-variant-numeric: tabular-nums;
}

/* ===== 右下角状态条 (随滚动常驻) ===== */
.status-bar {
  position: fixed;
  top: 64px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #065f46;
  background: rgba(236, 253, 245, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
  user-select: none;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 移动端: 缩小字号, 调整位置 */
@media (max-width: 768px) {
  .top-bar {
    top: 10px;
    right: 12px;
    font-size: 15px;
    padding: 5px 10px;
    letter-spacing: 1px;
  }
  .status-bar {
    top: 46px;
    right: 12px;
    font-size: 10px;
    padding: 5px 10px;
  }
}

/* ===== v-cloak 防止模版闪烁 ===== */
[v-cloak] {
  display: none !important;
}

/* ===== 致家长的一封信 ===== */
.parents-letter-section {
  padding: 40px 24px;
  background: #ffffff;
  display: flex;
  justify-content: center;
}
.parents-letter-card {
  width: 100%;
  max-width: 640px;
  background: #faf7f2;
  border: 1px dashed rgba(26, 26, 26, 0.15);
  border-radius: 8px;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.parents-letter-card::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: 6px;
  pointer-events: none;
}
.parents-letter-card h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  font-weight: 600;
  color: #0d9488;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 2px;
}
.parents-letter-content {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  color: #374151;
  line-height: 1.9;
  text-align: justify;
}
.parents-letter-content p {
  margin-bottom: 18px;
  text-indent: 2em;
}
.parents-letter-content p:last-child {
  margin-bottom: 0;
}

/* ===== 底部悬浮双按钮 CTA ===== */
.floating-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  gap: 16px;
  z-index: 900;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.03);
}
#app {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
.cta-btn {
  flex: 1;
  max-width: 240px;
  height: 48px;
  border-radius: 24px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  user-select: none;
}
.cta-btn-free {
  background: #ffffff;
  border: 1.5px solid #0d9488;
  color: #0d9488;
}
.cta-btn-free:hover {
  background: #f0fdfa;
  transform: translateY(-2px);
}
.cta-btn-pay {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
  position: relative;
  overflow: hidden;
}
.cta-btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}
.cta-btn-pay::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: shine 4s infinite ease-in-out;
}
@keyframes shine {
  0% { left: -60%; }
  15% { left: 140%; }
  100% { left: 140%; }
}

/* ===== 模态弹窗系统 (Dialog / Modals) ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
  animation: fadeIn 0.25s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideUp {
  from { transform: translateY(30px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.modal-close-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #f3f4f6;
}
.modal-header h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}
.step-indicator {
  font-size: 12px;
  color: #0d9488;
  font-weight: 600;
  margin-top: 4px;
  font-family: 'Share Tech Mono', monospace;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f9fafb;
}

/* ===== 智能问卷内部样式 ===== */
.progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: #f3f4f6;
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: #0d9488;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.form-group {
  margin-bottom: 20px;
}
.form-group:last-child {
  margin-bottom: 0;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}
.form-select, .form-input {
  width: 100%;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 0 14px;
  font-size: 14px;
  color: #1f2937;
  outline: none;
  transition: border-color 0.2s;
  background: #ffffff;
}
.form-select:focus, .form-input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.08);
}
.form-row {
  display: flex;
  gap: 16px;
}
.form-row .col {
  flex: 1;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f9fafb;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
}
.radio-label input {
  accent-color: #0d9488;
  width: 16px;
  height: 16px;
}

.modal-btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
}
.modal-btn-secondary {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #4b5563;
}
.modal-btn-secondary:hover {
  background: #f9fafb;
  border-color: #c5c6c9;
}
.modal-btn-primary {
  background: #0d9488;
  color: #ffffff;
}
.modal-btn-primary:hover {
  background: #0f766e;
}
.modal-btn-primary:disabled {
  background: #a5f3fc;
  color: rgba(255, 255, 255, 0.8);
  cursor: not-allowed;
}

/* ===== 解锁付费弹窗样式 ===== */
.pay-tag {
  font-size: 12px;
  color: #d97706;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
}
.pay-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pay-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f0fdfa;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(13, 148, 136, 0.1);
}
.benefit-item {
  display: flex;
  gap: 12px;
}
.benefit-icon {
  color: #0d9488;
  font-weight: bold;
  font-size: 16px;
}
.benefit-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}
.benefit-text p {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.4;
}

.qr-code-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qr-code-wrap {
  width: 160px;
  height: 160px;
  border: 1px solid #e5e7eb;
  padding: 8px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  position: relative;
  margin-bottom: 12px;
}
.qr-code-img {
  width: 142px;
  height: 142px;
  object-fit: contain;
}
.qr-scan-line {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(to right, rgba(13, 148, 136, 0), #0d9488, rgba(13, 148, 136, 0));
  animation: scan 3s infinite linear;
}
@keyframes scan {
  0% { top: 8px; }
  50% { top: 150px; }
  100% { top: 8px; }
}
.qr-tip {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}
.qr-subtip {
  font-size: 11px;
  color: #6b7280;
  max-width: 280px;
  line-height: 1.4;
}

.activation-section {
  border-top: 1px solid #f3f4f6;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.activation-input-wrap {
  display: flex;
  gap: 8px;
}
.activation-input {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 0 12px;
  font-size: 14px;
  color: #1f2937;
  outline: none;
}
.activation-input:focus {
  border-color: #0d9488;
}
.activation-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: #0d9488;
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.activation-btn:hover {
  background: #0f766e;
}
.activation-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}
.activation-status {
  font-size: 12px;
  text-align: center;
}
.activation-status.success {
  color: #059669;
}
.activation-status.error {
  color: #dc2626;
}

/* ===== 移动端自适应 ===== */
@media (max-width: 768px) {
  .parents-letter-section {
    padding: 24px 16px;
  }
  .parents-letter-card {
    padding: 24px 20px;
  }
  .parents-letter-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
  }
  .parents-letter-content {
    font-size: 14px;
    line-height: 1.8;
  }
  .floating-cta-bar {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .cta-btn {
    height: 44px;
    font-size: 14px;
  }
  #app {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .modal-card {
    max-height: 85vh;
  }
  .modal-header {
    padding: 16px 16px 12px;
  }
  .modal-header h3 {
    font-size: 17px;
  }
  .modal-body {
    padding: 16px;
  }
  .modal-footer {
    padding: 12px 16px;
  }
  .form-group {
    margin-bottom: 14px;
  }
  .form-select, .form-input {
    height: 38px;
    font-size: 13px;
  }
}

/* ===== 技术底座展示 (Apple 简约风格) ===== */
.tech-stack-section {
  padding: 80px 24px;
  background: #f5f5f7;
}
.tech-stack-container {
  max-width: 1100px;
  margin: 0 auto;
}
.tech-stack-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 30px;
  font-weight: 600;
  color: #1d1d1f;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.tech-stack-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: #86868b;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.6;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.tech-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  padding: 36px 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
}
.tech-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(13, 148, 136, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}
.tech-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.tech-card-header h4 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
}
.tech-desc {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #515154;
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-tags span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px;
  color: #0d9488;
  background: rgba(13, 148, 136, 0.06);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

@media (max-width: 768px) {
  .tech-stack-section {
    padding: 56px 16px;
  }
  .tech-stack-title {
    font-size: 24px;
  }
  .tech-stack-subtitle {
    font-size: 14px;
    margin-bottom: 40px;
  }
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .tech-card {
    padding: 28px 24px;
    border-radius: 16px;
  }
}
