:root {
  --bg-sky-1:#eaf6ff; --bg-sky-2:#f6fbff;
  --primary:#2b7cff; --accent:#ff7e1b;
  --text:#2b2b2b; --muted:#6b7280; --border:#e5e7eb; --card:#fff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--text);
  font-family:"Microsoft YaHei","微软雅黑","PingFang SC","Hiragino Sans GB","Source Han Sans SC","Noto Sans SC","WenQuanYi Micro Hei",Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: url('../back.jpg') center / cover no-repeat fixed;
}

/* 让表单控件继承全局字体，避免浏览器默认字体 */
input, select, textarea, button{font-family: inherit}

/* 页面窄列居中 */
.page{width:720px; margin:20px auto 100px; background:var(--card); border:none; box-shadow:0 10px 20px rgba(0,0,0,.06); border-top-left-radius:12px; border-top-right-radius:12px; border-bottom-left-radius:12px; border-bottom-right-radius:12px; overflow:hidden}
.page__header{display:block; padding:0; border-bottom:none; background:var(--card)}
.title h1{margin:0; font-size:20px}
.title .sub{margin:4px 0 0; color:var(--muted); font-size:12px}
/* 标题更贴近参考图 */
.title h1{font-size:28px; font-weight:700; letter-spacing:.5px}

/* 头部图片横幅 */
.header-banner{width:100%; height:230px; object-fit:cover; display:block}

.section{padding:16px}
.page__header+ .section{padding-top:0}
.section+.section{border-top:none}
.section--no-separator{border-top:none}
.section__title{font-weight:700; margin-bottom:10px; padding-left:12px; border-left:5px solid var(--accent); font-size:16px}
.bullet{margin:0; padding-left:18px; color:var(--muted)}
.bullet li{margin:6px 0}
.accent{color:var(--accent)}

/* 表单行式布局 */
.form{width:100%}
.form--narrow{max-width:660px}
.form-row{display:flex; align-items:center; gap:12px; margin:12px 0}
.form-label{width:120px; color:#555; text-align:left}
.form-label.required::after{content:'*'; color:#e11d48; margin-left:4px}
.form-field{flex:1; min-width:0}
.form-field input,.form-field select,.form-field textarea{width:100%; border:1px solid var(--border); border-radius:8px; padding:10px 12px; font-size:14px; background:#fff}
/* 使输入框高度与 .btn-lg 一致：采用相同的垂直内边距与字体大小 */
.card-key-field input{padding:12px 12px; font-size:16px}
.form-subtitle{margin-top:14px; font-weight:600; color:#555}
.form-subtitle + .radio-group{margin-top:10px}
.checkboxes{display:flex; gap:16px; flex-wrap:wrap; margin-top:6px}
.agreements{display:flex; align-items:center; gap:12px; margin-top:10px}
.agreements .tip{color:var(--accent); font-size:12px}

.form-actions{margin-top:14px}
.form-actions--center{display:flex; justify-content:center; align-items:center; gap:12px}
.btn{border:1px solid var(--border); background:#fff; color:var(--text); padding:10px 16px; border-radius:8px; cursor:pointer}
.btn-lg{padding:12px 47px; font-size:16px}
.btn-primary{border-color:transparent; background:#0b3d91; color:#fff}
.btn:hover{filter:brightness(.98)}
.btn-primary:hover{filter:brightness(1.05)}
.btn-sm{padding:6px 10px; font-size:13px}

.alert{padding:10px 12px; border-radius:8px; margin-bottom:12px}
.alert-success{background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0}

.table{width:100%; border-collapse:collapse; margin-top:10px}
.table th,.table td{border:1px solid var(--border); padding:8px 10px; font-size:13px}
.table-note{margin-top:6px; font-size:12px; color:var(--muted)}
/* 红色强调提示，继承同样的间距与字号，仅改变颜色 */
.table-note--red{color:#e11d48}

.page__footer{text-align:center; padding:16px 12px 20px; color:#666666; border-top:none; font-size:13px; background: url('../foot.png') center/cover no-repeat; min-height:120px; line-height:1.6}
.page__footer a{color:#FF6600; text-decoration:none}
.page__footer .footer-text{display:block}
.page__footer .footer-brand{display:block; margin-top:6px}
.page__footer .footer-text, .page__footer .footer-brand{ text-shadow:0 1px 2px rgba(0,0,0,.15) }
.page__footer a:hover{ color:#ff7a1a }
/* 品牌前图标样式 */
.page__footer .footer-brand .footer-icon{
  width:16px; height:16px; display:inline-block;
  vertical-align:text-bottom; margin-right:6px;
  border-radius:3px; filter:drop-shadow(0 1px 1px rgba(0,0,0,.2));
}

@media (max-width:720px){
  /* 保持与桌面一致的背景，不再移除 */
  .page{width:100%; margin:0 0 100px}
  .form-label{width:96px}
  /* 保持头图为固定高度并 cover，避免错位 */
  .header-banner{width:100%; height:200px; object-fit:cover}
}
@media (max-width:720px){.form-field select[name="level"]{max-width:none}}

/* 背景底图占位（可替换为真实素材） */
.bg-bottom{position:fixed; left:0; right:0; bottom:0; height:160px; background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.85)), url('assets/bg-bottom.jpg') center bottom / cover no-repeat; pointer-events:none}

/* 简洁弹窗样式 */
.modal[hidden]{display:none}
.modal{position:fixed; inset:0; display:flex; align-items:center; justify-content:center; z-index:1000}
.modal__overlay{position:absolute; inset:0; background:rgba(0,0,0,.35)}
.modal__content{position:relative; width:90%; max-width:600px; max-height:80vh; overflow:auto; background:#fff; border:1px solid var(--border); box-shadow:0 10px 20px rgba(0,0,0,.12); border-radius:10px; padding:16px}
.modal__header{display:flex; justify-content:space-between; align-items:center; margin-bottom:8px}
.modal__body{font-size:14px; color:#444; line-height:1.85}

/* 单选组统一样式（性别） */
.radio-group{display:grid; grid-template-columns:repeat(2,1fr); gap:12px; width:100%; justify-items:start; align-items:center}
.radio-group label{display:flex; align-items:center; justify-content:flex-start; gap:8px; padding:10px 12px; border:1px solid var(--border); border-radius:8px; background:#fafafa; cursor:pointer; user-select:none; width:100%; text-align:left}
.radio-group label{ text-align:left }
.radio-group label span, .radio-group label{ white-space:nowrap }
.radio-group input[type="radio"]{margin:0; width:30px; flex:0 0 30px}
.radio-group input[type="checkbox"]{margin:0}
/* 超过5字的长名称使用单列展示 */
.radio-group--single{grid-template-columns:1fr}
/* 分组之间增加间距 */
.radio-group+ .radio-group{margin-top:8px}

/* 附加四格（2×2），与单选组视觉一致 */
.four-grid{display:grid; grid-template-columns:repeat(2,50%); gap:3px; width:100%; justify-items:start; justify-content:start; align-items:center; margin-top:8px}
.four-grid__cell{box-sizing:border-box}
.four-grid__cell{padding:10px 12px; border:1px solid var(--border); border-radius:8px; background:#fafafa; min-height:44px; width:100%; display:flex; flex-direction:column}
.four-grid__cell p{margin:0 0 6px; font-size:14px; color:#333}
.four-grid__cell p:last-child{margin-bottom:0}
.four-grid__cell .grid-title{font-weight:600; color:#111}
.four-grid__cell .price-primary{font-weight:600; color:#ff7a00}
/* original price: gray text with strikethrough on number */
.four-grid__cell .price-original{color:#888}
.four-grid__cell .price-original s{text-decoration:line-through}
/* 等高卡片：按钮固定在底部以获得更美观的纵向对齐 */
.four-grid__cell .buy-btn{margin-top:auto}
/* 四格说明文字：字号缩小一号 */
.four-grid__cell .grid-note{font-size:13px}
/* solid divider between title and first price */
.grid-divider{border:0; border-top:1px solid var(--border); margin:6px 0}
/* buy button spacing, reuse submit button styles via classes */
.buy-btn{display:block; margin:4px auto 6px; width:36%; height:30px; line-height:30px; padding:0; border:0; overflow:hidden; text-align:center; box-sizing:border-box; text-decoration:none}
/* 移动端：赞助按钮加宽为全宽，保证文字完整显示 */
@media (max-width:720px){
  .buy-btn{width:100%}
}

/* 专业名称下方的赞助说明 */
.support-note{margin:12px 0; color:#555; font-size:13px}
.support-note p{margin:0 0 4px}
/* 星号加粗红色，并与文本留出微距 */
.support-note .note-asterisk{color:#d93025; font-weight:700; margin-right:4px}
/* 限时特惠徽标：绿底白字，整行加粗 */
.support-note .note-badge{display:block; background:#2db55d; color:#fff; font-weight:700; padding:6px 8px; border-radius:6px; margin-bottom:6px}
/* 说明首行整体加粗 */
.support-note .note-line{font-weight:700; font-size:14px}
/* 内联绿底白字：宽度仅包裹文字 */
.support-note .note-inline{display:inline; background:#2db55d; color:#fff; font-weight:700; padding:0 2px; border-radius:4px}

/* 四格标题中的“限时”标记复用同款样式 */
.four-grid__cell .note-inline{display:inline; background:#2db55d; color:#fff; font-weight:700; padding:0 2px; border-radius:4px}

/* 说明行中“请选择一个赞助支持，”设为黑色 */
.support-note .note-text{color:#111}

/* 防骗提示与审查机制：内容文字缩小一号并加深灰色，标题不变 */
.fraud-note{margin:12px 0}
.fraud-note p:not(.rich-heading){font-size:13px; color:#555}
/* 缩小提示块内段落的行间距 */
.fraud-note p{line-height:1.35}

/* 选中态高亮：性别、荣誉博士、专业名称 */
.radio-group label:has(input[type="radio"]:checked),
.radio-group label:has(input[type="checkbox"]:checked){
    background:#E1F5FF;
    border-color:#60CBFF;
}

/* 活动说明主文案 */
.hero{text-align:center}
.hero-title{font-size:18px; font-weight:700; letter-spacing:.4px}
.hero-title-sub{display:block; margin-top:4px; font-size:16px; font-weight:600; letter-spacing:.4px}
.hero-sub{margin-top:6px; color:var(--accent); font-weight:600}
/* 长文案排版 */
.rich{font-size:14px; line-height:1.9; color:#444}
.rich p{margin:10px 0}
.rich strong{font-weight:700}
.rich-title{font-size:16px; font-weight:700; color:#222}
.rich-heading{margin-top:12px; font-weight:700; color:var(--accent)}
/* 缩小提示区标题字号并保持加粗 */
.fraud-note .rich-heading{font-size:14px; font-weight:700}
.note-title{font-weight:700; margin-top:12px}
/* 滚动模块样式 */
.scroll-feed{border:1px solid var(--border); border-radius:8px; background:#fff; margin:10px 0; box-shadow:0 8px 20px rgba(0,0,0,0.05)}
.scroll-feed__title{padding:6px 8px; text-align:center; font-weight:700}
.scroll-feed__viewport{height:192px; overflow:hidden}
.scroll-feed__list{list-style:none; margin:0; padding:0; will-change:transform; transition:transform 700ms cubic-bezier(0.22, 1, 0.36, 1)}
.scroll-feed__item{display:flex; justify-content:space-between; gap:10px; padding:10px 24px; font-size:13px; color:#555; border-top:1px dashed #eee; transition:background 150ms ease, color 150ms ease}
.scroll-feed__item:hover{background:#f5f7ff; color:#333}
.scroll-feed__item:nth-child(even){background:#fafafa}
.scroll-feed__item:first-child{border-top:none}
.scroll-feed__col{flex:1}
.scroll-feed__col--time{flex:0 0 120px; text-align:right; color:#666}

/* 滚动模块列宽与对齐：姓名左对齐、电话居中、时间右对齐 */
.scroll-feed .col{flex:0 0 auto}
.scroll-feed .col-1{flex:0 0 96px; text-align:left; font-weight:600; color:#222}
.scroll-feed .col-2{flex:0 0 150px; text-align:center; letter-spacing:0.2px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}
/* 新增：在电话与时间之间展示荣誉头衔 */
.scroll-feed .col-3{flex:0 0 110px; text-align:center; color:#333}
/* 时间列右对齐并占据剩余空间 */
.scroll-feed .col-4{flex:1 1 auto; text-align:right; color:#666}

/* 保证所有列在同一行显示并在移动端更美观 */
.scroll-feed__item{flex-wrap:nowrap; align-items:center}
.scroll-feed .col{white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0}

@media (max-width:720px){
  .scroll-feed__item{gap:4px; font-size:11px; padding:8px 12px}
  .scroll-feed .col-1{flex:0 0 56px}
  .scroll-feed .col-2{flex:0 0 110px}
  .scroll-feed .col-3{flex:0 0 68px}
  .scroll-feed .col-4{flex:1 1 auto; min-width:0; text-align:right}
}
/* 网格中全宽模块 */
.scroll-feed--inline{grid-column:1 / -1}

/* 桌面端优化：更舒适的间距与列比例 */
@media (min-width:1024px){
  .scroll-feed__viewport{height:216px}
  .scroll-feed__item{gap:12px; padding:12px 26px; font-size:14px}
  .scroll-feed .col-1{flex:0 0 110px}
  .scroll-feed .col-2{flex:0 0 160px; letter-spacing:0.3px}
  .scroll-feed .col-3{flex:0 0 120px}
  .scroll-feed .col-4{flex:1 1 auto}
}