/* Inner Pillars - Co-Star / The Pattern 风格：白底 + 蓝绿色调 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  color: #1a1a2e;
  background: #ffffff;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 主题色 */
:root {
  --primary: #0d9488;
  --primary-light: #14b8a6;
  --primary-dark: #0f766e;
  --accent: #0891b2;
  --text: #1a1a2e;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  padding-top: max(2rem, env(safe-area-inset-top));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}

/* 标题区 */
.header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.header h1 {
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.header .subtitle {
  font-size: clamp(0.9rem, 3vw, 1rem);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.header .trust-line {
  font-size: clamp(0.8125rem, 2.5vw, 0.875rem);
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.75rem;
  opacity: 0.85;
  letter-spacing: 0.01em;
}

.header .privacy-checklist {
  font-size: clamp(0.75rem, 2.2vw, 0.8125rem);
  color: var(--primary);
  font-weight: 500;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.form-group .label-optional {
  font-weight: 500;
  color: var(--primary);
  font-size: 0.875em;
}

.form-privacy-hint {
  max-width: 420px;
  margin: -1rem auto 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.submit-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* 表单 */
.form {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* 日期选择：MM / DD / YYYY 分三个下拉 */
.date-row {
  display: flex;
  gap: 0.75rem;
}

.date-row select {
  flex: 1;
}

.date-row .month { flex: 1.2; }
.date-row .day { flex: 0.8; }
.date-row .year { flex: 1; }


/* 主按钮 */
.btn-primary {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 2rem;
  transition: transform 0.15s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* 第二页按钮更突出 */
.btn-generate {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  padding: 1.1rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* Site Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  margin-top: 3rem;
  background: linear-gradient(to top, rgba(13, 148, 136, 0.03), transparent);
  border-top: 1px solid rgba(13, 148, 136, 0.1);
}

.disclaimer-text {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: #0d9488;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #0f766e;
  text-decoration: underline;
}

.footer-links span {
  color: #cbd5e1;
  font-size: 0.75rem;
}

.copyright {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0.5rem 0 0;
}

/* Results page footer - more prominent disclaimer */
.results-footer .disclaimer-text {
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.6;
  padding: 0 1rem;
}

/* Email Capture Card */
.email-capture-section {
  margin-top: 2rem;
}

.email-capture-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.04), rgba(20, 184, 166, 0.04));
  border: 2px solid rgba(13, 148, 136, 0.2);
  border-radius: 16px;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.email-capture-card h3 {
  font-size: 1.25rem;
  color: #0f172a;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.email-capture-card p {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0 0 1.5rem;
}

.email-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto 1rem;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}

.email-form input[type="email"]:focus {
  outline: none;
  border-color: #0d9488;
}

.btn-email {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-email:active {
  transform: translateY(0);
}

.privacy-note {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
}

.privacy-note a {
  color: #0d9488;
  text-decoration: none;
}

.privacy-note a:hover {
  text-decoration: underline;
}

/* Mobile optimization */
@media (max-width: 480px) {
  .email-form {
    flex-direction: column;
  }
  
  .btn-email {
    width: 100%;
  }
  
  .site-footer {
    padding: 1.5rem 0.75rem 1rem;
    margin-top: 2rem;
  }
  
  .footer-links {
    font-size: 0.8125rem;
  }
}
