/* ==========================================================================
   MyClass (我的课) 0.1 官方先导概念官网样式表
   Design Language: Xmind (https://xmind.cn) 纯净轻盈美学 · 极简旗舰版
   ========================================================================== */

:root {
  /* Xmind 经典品牌色盘 */
  --xm-bg: #FFFFFF;
  --xm-bg-canvas: #FFFFFF;
  --xm-bg-subtle: #F8F9FA;
  --xm-bg-muted: #F3F4F6;
  
  --xm-ink-primary: #111827;     /* 核心深黑 */
  --xm-ink-secondary: #4B5563;   /* 副标题与描述灰度 */
  --xm-ink-muted: #6B7280;       /* 辅助微文本 */
  --xm-ink-light: #9CA3AF;
  
  --xm-border: #E5E7EB;
  --xm-border-subtle: #F3F4F6;
  --xm-border-focus: #D1D5DB;
  
  /* Xmind 标志性珊瑚暖橙 */
  --xm-orange: #FA4A1E;
  --xm-orange-hover: #E03E15;
  --xm-orange-light: rgba(250, 74, 30, 0.08);
  
  /* 品牌科技青 */
  --xm-teal: #008F7F;
  --xm-teal-light: rgba(0, 188, 168, 0.08);
  
  --xm-green: #10B981;

  /* 统一圆角规范 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Xmind 纯净柔和投影体系 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.02), 0 16px 40px -12px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 2px 6px rgba(0, 0, 0, 0.03), 0 24px 60px -12px rgba(15, 23, 42, 0.10);
  --shadow-btn: 0 8px 24px rgba(250, 74, 30, 0.25);
  --shadow-btn-hover: 0 12px 32px rgba(250, 74, 30, 0.32);

  /* Xmind 标准原生高级无衬线字体栈 */
  --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html {
  font-family: var(--font-main);
  background-color: var(--xm-bg-canvas);
  color: var(--xm-ink-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--xm-bg-canvas);
  background-image: radial-gradient(1200px 550px at 50% -5%, rgba(250, 74, 30, 0.045) 0%, rgba(255, 255, 255, 0) 75%);
  background-repeat: no-repeat;
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* ==========================================================================
   Header: 极简纯净顶栏
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--xm-ink-primary);
}

.brand-zh {
  font-size: 14px;
  font-weight: 500;
  color: var(--xm-ink-secondary);
  margin-left: 6px;
}

.header-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: #FFFFFF;
  border: 1px solid var(--xm-border);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--xm-ink-secondary);
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--xm-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   Hero Stage: 大气通透的主视觉展台
   ========================================================================== */
.hero-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 88px 0 96px;
  position: relative;
  z-index: 2;
}

/* 先导微徽章 */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #FFFFFF;
  border: 1px solid var(--xm-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--xm-ink-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  transition: border-color 0.2s ease;
}

.hero-badge:hover {
  border-color: var(--xm-border-focus);
}

.badge-tag {
  background: var(--xm-orange);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

/* 核心大标题：纯粹、紧实、高冲击力 */
.hero-title {
  font-size: clamp(38px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--xm-ink-primary);
  margin-bottom: 22px;
}

/* 副标题：舒展克制的高级文本 */
.hero-subtitle {
  font-size: 17.5px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--xm-ink-secondary);
  max-width: 680px;
  margin: 0 auto 64px;
}

/* ==========================================================================
   Dual App Showcase: 纯净对称的旗舰双端展台
   ========================================================================== */
.showcase-stage-wrap {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto 68px;
}

.dual-app-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 32px;
  position: relative;
  z-index: 2;
}

/* 展台白卡 */
.app-card-slab {
  background: #FFFFFF;
  border: 1px solid var(--xm-border);
  border-radius: var(--radius-xl);
  padding: 42px 38px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.app-card-slab:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--xm-border-focus);
}

.app-slab-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon-img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.app-slab-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-role-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2.5px 10px;
  border-radius: var(--radius-full);
  width: fit-content;
  letter-spacing: 0.2px;
}

.role-tag-teal {
  background: var(--xm-teal-light);
  color: var(--xm-teal);
}

.role-tag-orange {
  background: var(--xm-orange-light);
  color: var(--xm-orange);
}

.app-card-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--xm-ink-primary);
  letter-spacing: -0.01em;
}

.app-card-tagline {
  font-size: 16px;
  font-weight: 600;
  color: var(--xm-ink-primary);
  margin: 18px 0 10px;
  line-height: 1.5;
}

.app-card-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--xm-ink-secondary);
}

/* ==========================================================================
   Action Area: 经典 Xmind 珊瑚橙行动胶囊
   ========================================================================== */
.action-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-xmind-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--xm-orange);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 16px 44px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-btn);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-xmind-pill:hover {
  background: var(--xm-orange-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

.action-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--xm-ink-muted);
}

.meta-dot {
  color: #D1D5DB;
}

/* ==========================================================================
   Footer: 通透极简白底脚栏
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--xm-border);
  padding: 36px 0;
  font-size: 13px;
  color: var(--xm-ink-muted);
  background: #FFFFFF;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--xm-ink-primary);
}

.icp-tag {
  color: var(--xm-ink-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

.icp-tag:hover {
  color: var(--xm-ink-primary);
  text-decoration: underline;
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 420px;
  width: 100%;
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  position: relative;
  text-align: center;
  animation: popIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--xm-bg-muted);
  font-size: 14px;
  color: var(--xm-ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.modal-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--xm-ink-primary);
}

.modal-desc {
  font-size: 13.5px;
  color: var(--xm-ink-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-input {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--xm-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s ease;
}

.modal-input:focus {
  border-color: var(--xm-orange);
}

.btn-modal-submit {
  width: 100%;
  padding: 13px;
  font-size: 15px;
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--xm-ink-primary);
  color: #FFFFFF;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  z-index: 2000;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive: 全端深度自适应规范 (iPhone SE / Pro Max / iPad / PC)
   ========================================================================== */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .hero-stage { padding: 72px 0 80px; }
  .hero-title { font-size: clamp(36px, 4.8vw, 48px); }
  .showcase-stage-wrap { margin-bottom: 56px; }
  .dual-app-container { gap: 24px; }
  .app-card-slab { padding: 36px 32px; }
}

@media (max-width: 768px) {
  .site-header { height: 64px; }
  .brand-logo-img { width: 32px; height: 32px; }
  .brand-name { font-size: 18px; }
  .brand-zh { font-size: 13px; }
  .header-status-pill { padding: 4px 12px; font-size: 12px; }

  .hero-stage { padding: 52px 0 60px; }
  .hero-badge { 
    margin-bottom: 24px; 
    padding: 6px 14px; 
    font-size: 12.5px; 
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }
  .hero-title { 
    font-size: clamp(30px, 7vw, 38px); 
    line-height: 1.32;
    margin-bottom: 18px; 
  }
  .hero-subtitle { 
    font-size: 15.5px; 
    line-height: 1.75; 
    margin-bottom: 44px; 
    padding: 0 4px;
  }

  /* 双端卡片流式堆叠 */
  .dual-app-container { 
    grid-template-columns: 1fr; 
    gap: 18px; 
  }
  .app-card-slab { 
    padding: 30px 26px; 
    border-radius: 20px;
  }
  .app-icon-img { width: 52px; height: 52px; border-radius: 13px; }
  .app-card-title { font-size: 19.5px; }
  .app-card-tagline { font-size: 15px; margin: 14px 0 8px; }
  .app-card-desc { font-size: 14px; line-height: 1.7; }

  /* 行动区 */
  .showcase-stage-wrap { margin-bottom: 48px; }
  .btn-xmind-pill { 
    width: 100%; 
    max-width: 360px; 
    padding: 15px 28px;
    font-size: 15.5px;
  }
  .action-meta { 
    flex-wrap: wrap; 
    gap: 8px 14px; 
    font-size: 12.5px; 
  }
  .footer-inner { 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-stage { padding: 36px 0 48px; }
  
  .hero-badge {
    display: inline-flex;
    flex-direction: row;
    gap: 6px;
    padding: 5px 12px;
    font-size: 11.5px;
    margin-bottom: 20px;
  }
  .badge-tag { font-size: 9.5px; padding: 1.5px 6px; }

  .hero-title { 
    font-size: 28px; 
    letter-spacing: -0.01em; 
  }
  .hero-subtitle { 
    font-size: 14.5px; 
    line-height: 1.65;
    margin-bottom: 36px;
  }

  .app-card-slab { 
    padding: 24px 20px; 
    border-radius: 18px;
  }
  .app-slab-head { gap: 14px; }
  .app-icon-img { width: 46px; height: 46px; border-radius: 11px; }
  .app-card-title { font-size: 18px; }
  .app-role-tag { font-size: 11px; padding: 2px 8px; }
  .app-card-tagline { font-size: 14px; margin: 12px 0 6px; }
  .app-card-desc { font-size: 13px; line-height: 1.65; }

  .action-meta .meta-dot { display: none; }
  .action-meta { gap: 6px 12px; font-size: 12px; }

  .site-footer {
    padding: 28px 0 max(24px, env(safe-area-inset-bottom, 24px));
    font-size: 12px;
  }
  .footer-links { gap: 16px; }

  /* 弹窗小屏适配 */
  .modal-card {
    padding: 28px 20px;
    border-radius: 20px;
    max-width: 100%;
  }
}
