/* 家长通知与同意收集 H5 —— 视觉/结构对齐旧 demo（拓璞为学「上课须知」） */
:root {
  --brand: #007aff;        /* iOS 蓝，与旧 demo 一致 */
  --brand-dark: #0056b3;
  --text: #333;
  --bg: #f3f1ea;           /* 暖纸背景，与管理后台统一 */
  --muted: #555;
  --line: #eee;
  --ok: #67c23a;
  --warn: #e6a23c;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  background-color: var(--bg);
  /* 极淡点阵纹理，与管理后台一致 */
  background-image: radial-gradient(rgba(27,39,64,.045) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 整体：满高 flex 列，内容区独立滚动，底部按钮固定 */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background-color: transparent;   /* 透明，露出 body 的暖纸背景，白色须知卡浮于其上 */
}

/* 顶部 logo 导航栏 */
.navbar {
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background-color: transparent;   /* 露暖纸，去掉突兀的白底 */
  z-index: 10;
}
.nav-logo { max-height: 40px; object-fit: contain; }

/* 演示模式横幅 */
.demo-banner {
  flex-shrink: 0;
  background: #fff7e6; color: #ad6800;
  border-bottom: 1px solid #ffe58f;
  padding: 8px 16px; font-size: 13px; text-align: center;
}

/* 内容区（独立滚动） */
.content-wrapper {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
}

.container {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 0 auto;
}

h1.title { text-align: center; font-size: 22px; margin-bottom: 24px; font-weight: bold; }

.notice p { margin-bottom: 16px; text-align: justify; font-size: 15px; line-height: 1.7; }
.highlight { font-weight: bold; text-decoration: underline; }

/* 学生信息行（token 个性化，旧 demo 没有；不显示手机全量） */
.info-line {
  font-size: 14px; color: var(--muted);
  background: #f5f7fa; border-radius: 8px;
  padding: 10px 14px; margin-bottom: 20px;
}
.info-line b { color: var(--text); }

.footer { margin-top: 40px; text-align: right; font-size: 14px; color: var(--muted); }
.footer p { text-align: right; margin-bottom: 8px; }
.footer p:last-child { margin-bottom: 0; }

/* ICP 备案页脚：内容区底部、白卡之外，落在暖纸背景上；克制的居中小字 */
.site-footer { text-align: center; padding: 18px 16px 4px; font-size: 12px; color: #9a958a; letter-spacing: .2px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover, .site-footer a:active { color: var(--muted); text-decoration: underline; }

/* 合规：隐私告知 + 单独同意勾选（未成年人敏感信息要求） */
.privacy {
  margin-top: 28px; padding: 12px 14px;
  background: #fafafa; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; color: #666; line-height: 1.6;
}
.privacy a { color: var(--brand-dark); }
.consent-check { display: flex; align-items: flex-start; gap: 10px; margin: 16px 2px 4px; font-size: 14px; }
.consent-check input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--brand); }

/* 底部固定按钮栏 */
.bottom-bar {
  flex-shrink: 0;
  background-color: transparent;   /* 露暖纸，去掉突兀的白底 */
  padding: 15px 20px;
  padding-bottom: calc(15px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; align-items: center;
  z-index: 10;
}
.btn {
  background-color: var(--brand); color: #fff; border: none;
  padding: 12px 60px; font-size: 16px; border-radius: 24px; font-weight: 500;
  cursor: pointer; box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
  transition: background-color 0.3s, transform 0.1s;
}
.btn:active:not(:disabled) { transform: scale(0.96); }
.btn:disabled { background-color: #ccc; cursor: not-allowed; box-shadow: none; transform: none; }

/* 成功/提示 模态弹窗 */
.modal-overlay {
  position: fixed; inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal-content {
  background-color: #fff; padding: 30px 40px; border-radius: 12px; text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: scale(0.9); transition: transform 0.3s ease; max-width: 80%;
}
.modal-overlay.show .modal-content { transform: scale(1); }
.modal-icon {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%;
  color: #fff; font-size: 30px; line-height: 1; margin: 0 auto 15px;
  background-color: var(--ok);
}
.modal-text { font-size: 18px; color: #333; font-weight: 500; }

/* 状态 */
.state { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 15px; }
.state.error { color: #d4380d; }
.hidden { display: none !important; }

@media (max-width: 600px) {
  .container { padding: 20px 15px; }
  .content-wrapper { padding: 15px; }
}
