/* ============================================================
   5Bot Mobile Stylesheet
   ============================================================ */

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --gradient: linear-gradient(135deg, #0ea5e9, #06b6d4);
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   HEADER
   ============================================================ */
.m-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}

.m-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.m-logo-mark {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}

.m-logo .logo-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: max-content;
}

.m-logo .logo-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  line-height: 1;
}

.m-logo .logo-tag {
  display: block;
  width: 100%;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  color: #0891b2;
  line-height: 1.1;
  white-space: nowrap;
}

.m-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.m-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray-700);
  background: #fff;
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  z-index: 40;
}

.lang-switch-opt {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
}

.lang-switch-opt:hover,
.lang-switch-opt.is-active {
  background: #e0f2fe;
  color: var(--primary-dark);
}

.lang-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
}

.lang-btn.active {
  background: #e0f2fe;
  color: var(--primary-dark);
}

.m-login-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.m-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.m-btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.m-btn-primary:active {
  transform: scale(0.97);
}

.m-btn-outline {
  background: var(--white);
  color: var(--gray-900);
  border: 2px solid var(--gray-200);
}

.m-btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  margin-top: 8px;
}

/* ============================================================
   HERO
   ============================================================ */
.m-hero {
  padding: 100px 24px 52px;
  background: linear-gradient(160deg, #0c1a3a 0%, #0e2a5c 40%, #0a4a7a 70%, #0ea5e9 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.m-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 300px 300px at 80% 20%, rgba(14, 165, 233, 0.25), transparent),
    radial-gradient(ellipse 200px 200px at 20% 80%, rgba(6, 182, 212, 0.15), transparent);
  pointer-events: none;
}

.m-hero-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 20px;
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.45);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #67e8f9;
  margin-bottom: 20px;
  position: relative;
}

.m-hero-tag + .m-hero-tag {
  margin-left: 8px;
}

.m-hero h1 {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 16px;
  position: relative;
}

.m-hero-line1,
.m-hero-line2 {
  display: block;
}

.m-hero-line1 {
  color: rgba(255,255,255,0.95);
  letter-spacing: 0;
}

html[lang="zh-CN"] .m-hero-line1,
html[lang="zh-CN"] .m-use h2 {
  word-break: keep-all;
}

.m-hero-line2 {
  color: #38bdf8;
  letter-spacing: 0;
}

.hero-ai {
  color: #fbbf24;
  background: none;
  -webkit-text-fill-color: #fbbf24;
}

.m-hero-line1:empty,
.m-hero-line2:empty {
  display: none;
}

.m-hero-desc:has(span:empty):not(:has(span:not(:empty))) {
  display: none;
}

.m-hero-desc {
  margin-bottom: 28px;
  position: relative;
}

.m-hero-desc [data-i18n-html="hero.sub"],
.m-hero-desc [data-i18n-html="hero.sub2"] {
  display: block;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
}

.m-hero-desc strong {
  color: #fff;
  font-weight: 700;
}

.m-hero-desc [data-i18n-html="hero.sub2"] {
  margin-top: 10px;
}

.m-hero .m-btn {
  width: 100%;
  max-width: 280px;
  position: relative;
}

.m-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  position: relative;
}

.m-stat {
  text-align: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}

.m-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}

.m-stat span {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   FEATURES
   ============================================================ */
.m-features {
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.m-feature {
  padding: 20px 16px;
  border-radius: var(--radius);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
}

.m-feature-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.m-feature h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray-900);
}

.m-feature p {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================================
   USE CASES
   ============================================================ */
.m-use {
  padding: 40px 24px 8px;
  text-align: center;
}

.m-use h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.m-use-desc {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.m-use .m-btn + .m-btn {
  display: block;
  margin: 12px auto 0;
}

.m-use-card {
  text-align: left;
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  margin-bottom: 12px;
}

.m-use-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.m-use-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

.m-channels {
  padding: 40px 24px 28px;
  text-align: center;
}

.m-channels-tag {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
}

.m-channels h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.m-channels .m-use-card:last-child {
  margin-bottom: 0;
}

/* ============================================================
   STEPS
   ============================================================ */
.m-steps {
  padding: 48px 24px;
  background: var(--gray-50);
  text-align: center;
}

.m-steps-panel {
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
}

.m-steps-intro {
  padding: 28px 20px 24px;
  margin-bottom: 0;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 40%, #172554 100%);
  border-radius: 0;
  color: #fff;
}

.m-steps-tag {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
}

.m-steps-lead {
  font-size: 15px;
  font-weight: 600;
  color: #93c5fd;
  margin: 0 0 8px;
}

.m-steps h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 0;
  color: #fff;
}

.m-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  padding: 16px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.m-step:last-of-type {
  border-bottom: none;
}

.m-step-num {
  font-size: 32px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
  flex-shrink: 0;
  width: 48px;
}

.m-step-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.m-step-content p {
  font-size: 13px;
  color: var(--gray-500);
}

.m-steps .m-btn {
  margin-top: 28px;
  width: 100%;
}

/* ============================================================
   PRICING
   ============================================================ */
.m-pricing {
  padding: 48px 24px;
}

.m-pricing h2 {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
}

.m-price-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  margin-bottom: 16px;
  position: relative;
  transition: all 0.3s;
}

.m-price-card-active {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
}

.m-price-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: var(--white);
  padding: 3px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.m-price-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.m-price-amount {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.m-price-card p {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.m-price-card ul {
  list-style: none;
  margin-bottom: 20px;
}

.m-price-card li {
  font-size: 14px;
  padding: 5px 0;
  color: var(--gray-700);
}

.m-price-card .m-btn {
  width: 100%;
}

/* ============================================================
   BOT SHOWCASE
   ============================================================ */
.m-showcase {
  padding: 48px 24px;
  text-align: center;
}

.m-showcase h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.m-showcase-desc {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.m-showcase-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.m-showcase-card iframe {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
}

.m-showcase .m-btn {
  width: 100%;
  margin-top: 24px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.m-testimonials {
  padding: 48px 24px;
  background: var(--gray-50);
}

.m-testimonials h2 {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
}

.m-testimonial {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.m-stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 8px;
}

.m-testimonial p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 12px;
}

.m-author {
  font-size: 13px;
  color: var(--gray-500);
}

.m-author strong {
  color: var(--gray-900);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.m-contact {
  padding: 48px 24px;
  background: var(--gradient);
  color: var(--white);
}

.m-contact h2 {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.m-contact-desc {
  font-size: 14px;
  text-align: center;
  opacity: 0.8;
  margin-bottom: 28px;
}

.m-form-section {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-bottom: 16px;
}

.m-form-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.m-form-group {
  margin-bottom: 14px;
}

.m-form-group:last-child {
  margin-bottom: 0;
}

.m-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.required {
  color: #fbbf24;
}

.m-form-group input,
.m-form-group select,
.m-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}

.m-form-group input::placeholder,
.m-form-group textarea::placeholder {
  color: rgba(255,255,255,0.45);
}

.m-form-group input:focus,
.m-form-group select:focus,
.m-form-group textarea:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.18);
}

.m-form-group select {
  -webkit-appearance: none;
  appearance: none;
}

.m-form-group select option {
  color: var(--gray-900);
  background: var(--white);
}

.m-hint {
  display: block;
  font-size: 12px;
  opacity: 0.6;
  margin-top: 4px;
}

.m-radio-group {
  display: flex;
  gap: 16px;
  padding-top: 4px;
}

.m-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}

.m-radio input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #22d3ee;
}

.m-radio span {
  font-weight: 400;
}

/* Avatar upload */
.m-avatar-upload {
  cursor: pointer;
}

.m-avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}

.m-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-avatar-preview span {
  font-size: 10px;
  margin-top: 2px;
}

.m-note {
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 12px;
}

.m-btn-submit {
  background: var(--white);
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ============================================================
   FOOTER
   ============================================================ */
.m-footer {
  padding: 32px 24px;
  text-align: center;
  background: var(--gray-900);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}

.m-footer p {
  margin-bottom: 8px;
}

.m-copyright {
  font-size: 12px;
  opacity: 0.5;
}

/* ============================================================
   SMOOTH SCROLL
   ============================================================ */
html {
  scroll-behavior: smooth;
}

/* Prevent horizontal overflow */
section, header, footer {
  overflow-x: hidden;
}

/* 中文站首屏：说明文字为视觉重点，标题退为辅助 */
html[lang="zh-CN"] .m-hero h1 {
  font-size: 29px;
}

html[lang="zh-CN"] .m-hero-desc {
  padding-left: 14px;
  border-left: 3px solid #38bdf8;
}

html[lang="zh-CN"] .m-hero-desc [data-i18n-html="hero.sub"],
html[lang="zh-CN"] .m-hero-desc [data-i18n-html="hero.sub2"] {
  font-size: 19px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
}

html[lang="zh-CN"] .m-hero-desc strong {
  color: #fbbf24;
}

/* ============================================================
   CHINESE SITE ONLY: event, capabilities list, AI workforce
   ============================================================ */
.m-event {
  margin: 24px 16px 0;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 40%, #172554 100%);
  color: var(--white);
  text-align: left;
}

.m-event .m-channels-tag {
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
}

.m-event h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
}

.m-event-line {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}

.m-event-line strong {
  color: #06b6d4;
  margin-right: 6px;
}

.m-event .m-btn {
  margin-top: 12px;
}

.m-core {
  list-style: none;
  text-align: left;
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.m-core li strong {
  display: block;
  font-size: 15px;
}

.m-core li span {
  font-size: 14px;
  color: var(--gray-500);
}

.m-invest {
  background: var(--gray-50);
}

.m-invest .m-use-card {
  background: var(--white);
}

.m-shift {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
}

.m-shift span {
  color: var(--gray-500);
}

.m-shift b {
  color: #2563eb;
}

.m-shift + .m-use-card,
.m-shift:last-of-type {
  margin-bottom: 18px;
}
