/* ============================================================
   甲状腺结节恶性风险智能预测 —— 样式表
   配色与结构取自说明书内嵌原站截图的像素分析 + 视觉识别：
     页头亮蓝 #0066CC（Logo + 搜索框）
     导航深蓝 #012368 → #002268（关于/研究所/预测/联系 + 登录）
     内容白底 ｜ 参数表行交替 #F2F5F9 / #FAFBFD
     侧栏深蓝宣传块 ｜ 正文 #333333
   结果页为左右两栏：左侧结果卡 + 右侧边栏（超声图 + 宣传块）
   ============================================================ */

:root {
  --blue:        #0066cc;
  --blue-dark:   #002268;
  --blue-deep:   #08296c;
  --blue-mid:    #3485d6;
  --blue-light:  #e5eaf5;
  --blue-panel:  #c1d5e7;
  --blue-panel2: #dce9f6;
  --grey-bg:     #fbfbfb;
  --grey-line:   #d8d8d8;
  --text:        #333333;
  --text-mid:    #666666;
  --text-light:  #999999;
  --low:         #2e7d32;
  --mid:         #d98200;
  --high:        #c62828;
  --radius:      2px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 14px; line-height: 1.7; color: var(--text); background: var(--grey-bg);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: 1080px; max-width: 100%; margin: 0 auto; padding: 0 20px; }

/* ============ 页头：亮蓝 Logo+搜索 → 深蓝导航 ============ */

.sitehead { background: var(--blue); }
.sitehead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 62px; }

.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; flex: 0 0 34px;
}
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: .8px; white-space: nowrap; }
.logo-text small { display: block; font-size: 10px; font-weight: 400; letter-spacing: .5px; color: #cfe4f7; line-height: 1.2; }

.search { display: flex; align-items: center; flex: 0 0 260px; max-width: 40%; }
.search input {
  flex: 1; min-width: 0; height: 30px; padding: 0 10px; font-size: 13px; font-family: inherit;
  border: 0; border-radius: 15px 0 0 15px; outline: none; color: var(--text);
}
.search button {
  height: 30px; padding: 0 14px; border: 0; border-radius: 0 15px 15px 0;
  background: #0057ad; color: #fff; font-size: 13px; font-family: inherit; cursor: pointer;
}
.search button:hover { background: #00468c; }

.navbar { background: linear-gradient(180deg, #012368 0%, var(--blue-dark) 100%); }
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 46px; }

.nav { display: flex; gap: 0; align-items: stretch; height: 46px; }
.nav a {
  display: flex; align-items: center; padding: 0 22px; color: #d6e2f5; font-size: 14px; letter-spacing: .5px;
}
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.nav a.on { background: rgba(255,255,255,.20); color: #fff; font-weight: 700; }

.login {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: #fff; font-size: 13px;
  padding: 5px 16px; border-radius: 14px;
}
.login:hover { background: #0057b0; color: #fff; text-decoration: none; }

.pagehead { background: linear-gradient(180deg, #012368 0%, var(--blue-deep) 100%); color: #fff; padding: 16px 0 18px; }
.pagehead h1 { margin: 0; font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.pagehead p  { margin: 6px 0 0; font-size: 13px; color: #b9c9e6; }

/* ============ 布局 ============ */

main { padding: 22px 0 40px; }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.layout .main-col { min-width: 0; }

.card { background: #fff; border: 1px solid var(--grey-line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 18px; }
.card:last-child { margin-bottom: 0; }
.card > h2 { margin: 0 0 14px; font-size: 17px; color: var(--blue-dark); padding-left: 11px; border-left: 4px solid var(--blue); line-height: 1.3; }
.card > h3 { margin: 20px 0 8px; font-size: 15px; color: var(--blue-dark); }

.lead { font-size: 15px; color: var(--text); }
.crumb { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
.crumb a { color: var(--text-mid); }

/* ============ 首页 ============ */

.hero { background: var(--blue-panel2); border: 1px solid var(--blue-panel); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.hero-inner { display: flex; align-items: stretch; }
.hero-art { flex: 0 0 46%; background: #e9eef5; display: flex; align-items: center; justify-content: center; min-height: 230px; color: #9aa7b6; font-size: 13px; text-align: center; padding: 16px; }
.hero-copy { flex: 1; padding: 30px 34px; }
.hero-copy h2 { margin: 0 0 10px; font-size: 24px; color: var(--blue-dark); line-height: 1.35; }
.hero-copy p { margin: 0 0 20px; color: var(--text-mid); }

.btn { display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: var(--radius); padding: 10px 26px; font-size: 15px; font-family: inherit; cursor: pointer; letter-spacing: .5px; }
.btn:hover { background: #0057b0; text-decoration: none; color: #fff; }
.btn.ghost { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn.ghost:hover { background: var(--blue-light); color: var(--blue-dark); }
.btn.lg { padding: 12px 44px; font-size: 16px; }
.btn.block { width: 100%; text-align: center; }
.btn:disabled { background: #b9c3d0; cursor: not-allowed; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.tile { background: #fff; border: 1px solid var(--grey-line); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 20px 20px 22px; }
.tile h3 { margin: 0 0 8px; font-size: 15px; color: var(--blue-dark); }
.tile p { margin: 0 0 12px; font-size: 13px; color: var(--text-mid); }
.tile .more { font-size: 13px; }
.tile.soon { border-top-color: var(--grey-line); }
.tile.soon h3 { color: var(--text-light); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--grey-line); border: 1px solid var(--grey-line); margin-bottom: 18px; }
.stat { background: #fff; padding: 16px 10px; text-align: center; }
.stat b { display: block; font-size: 22px; color: var(--blue); font-weight: 700; }
.stat span { font-size: 12px; color: var(--text-mid); }

/* ============ 侧边栏 ============ */

.sidebar .widget { background: #fff; border: 1px solid var(--grey-line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.widget > h3 { margin: 0; font-size: 14px; color: var(--blue-dark); padding: 11px 15px; border-bottom: 1px solid var(--grey-line); background: #f5f8fc; }

.usimg { height: 170px; background: #22262b; color: #8d959e; display: flex; align-items: center; justify-content: center; font-size: 12px; text-align: center; letter-spacing: 1px; }

.promo { background: linear-gradient(180deg, #012368 0%, var(--blue-deep) 100%); color: #fff; padding: 20px 18px 22px; }
.promo .eyebrow { font-size: 12px; color: #9db4dc; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 2px; }
.promo h4 { margin: 0 0 10px; font-size: 16px; color: #fff; line-height: 1.4; }
.promo p { margin: 0 0 14px; font-size: 12.5px; color: #c8d6ec; line-height: 1.7; }
.promo .need { display: inline-block; font-size: 13px; color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 14px; padding: 5px 16px; }
.promo .need:hover { background: rgba(255,255,255,.15); text-decoration: none; }

.widget .list { padding: 12px 15px; }
.widget .list a { display: block; font-size: 13px; padding: 5px 0; color: var(--text-mid); border-bottom: 1px dashed #ececec; }
.widget .list a:last-child { border-bottom: 0; }

/* ============ 表单（单栏，竖向选项） ============ */

.form-section { border-bottom: 1px dashed var(--grey-line); padding: 18px 0; }
.form-section:first-of-type { padding-top: 4px; }
.form-section:last-of-type { border-bottom: 0; }

.q-title { font-size: 15px; font-weight: 700; color: var(--blue-dark); margin-bottom: 4px; }
.q-title .idx { color: var(--blue); margin-right: 6px; }
.q-note { font-size: 12px; color: var(--text-light); margin-bottom: 10px; line-height: 1.65; }
.req { color: var(--high); margin-left: 4px; }

.opts { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.opt { display: inline-flex; align-items: center; gap: 8px; padding: 5px 4px 5px 0; cursor: pointer; font-size: 14px; user-select: none; }
.opt:hover span { color: var(--blue); }
.opt input { margin: 0; width: 15px; height: 15px; accent-color: var(--blue); }
.opt input:checked + span { color: var(--blue-dark); font-weight: 700; }
.opt.sel span { color: var(--blue-dark); font-weight: 700; }

.age-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.age-row input[type=number], .age-row input[type=text] { width: 130px; padding: 8px 10px; font-size: 14px; font-family: inherit; border: 1px solid var(--grey-line); border-radius: var(--radius); color: var(--text); }
.age-row input:focus { outline: none; border-color: var(--blue); }
.age-unit { color: var(--text-mid); font-size: 13px; }

.form-error { display: none; background: #fdecea; border: 1px solid #f5c6c2; color: var(--high); padding: 10px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 16px; }
.form-error.show { display: block; }

.form-actions { padding-top: 24px; border-top: 1px solid var(--grey-line); margin-top: 22px; text-align: center; }
.form-actions .hint { display: block; font-size: 12px; color: var(--text-light); margin-top: 10px; }

/* ============ 结果页 ============ */

.result-title { font-size: 26px; font-weight: 700; color: var(--blue-dark); margin: 0 0 4px; line-height: 1.35; }
.result-sub { font-size: 13px; color: var(--text-light); margin: 0 0 20px; letter-spacing: 1px; }
.result-title.low  { color: var(--low); }
.result-title.intermediate { color: var(--mid); }
.result-title.high { color: var(--high); }

.badge { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 10px; margin-left: 8px; vertical-align: middle; }
.badge.low  { background: #e8f5e9; color: var(--low); border: 1px solid #a5d6a7; }
.badge.intermediate { background: #fff6e5; color: var(--mid); border: 1px solid #f0c987; }
.badge.high { background: #fdecea; color: var(--high); border: 1px solid #f0a9a3; }

table.kv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.kv th, table.kv td { border: 1px solid var(--grey-line); padding: 9px 13px; text-align: left; }
table.kv th { background: #f2f5f9; color: var(--blue-dark); font-weight: 700; width: 46%; }
table.kv tr:nth-child(even) td { background: #fafbfd; }

table.data { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
table.data th, table.data td { border: 1px solid var(--grey-line); padding: 8px 11px; text-align: left; }
table.data th { background: #f2f5f9; color: var(--blue-dark); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }

.result-advice { font-size: 14px; line-height: 1.85; background: #f7fafd; border-left: 3px solid var(--blue); padding: 14px 18px; border-radius: var(--radius); margin: 18px 0; }

.probline { font-size: 14px; color: var(--text-mid); margin: 0 0 16px; }
.probline b { font-size: 20px; color: var(--text); }
.probline .z { font-size: 12px; color: var(--text-light); margin-left: 6px; }

.gauge { margin: 20px 0 4px; }
.gauge-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; border: 1px solid rgba(0,0,0,.08); position: relative; }
.gauge-bar i { display: block; }
.gauge-bar .g-low  { background: #a5d6a7; }
.gauge-bar .g-mid  { background: #f0c987; }
.gauge-bar .g-high { background: #f0a9a3; }
.gauge-mark { position: absolute; top: -4px; width: 2px; height: 18px; background: #333; }
.gauge-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-mid); margin-top: 6px; }

.note { background: var(--blue-light); border-left: 3px solid var(--blue); padding: 12px 16px; font-size: 13px; color: var(--text-mid); border-radius: var(--radius); margin: 14px 0; }
.note b { color: var(--blue-dark); }
.warn { background: #fff8e1; border-left: 3px solid #e0a800; padding: 12px 16px; font-size: 13px; color: #6b5300; border-radius: var(--radius); margin: 14px 0; }

.empty { text-align: center; padding: 40px 20px; }
.empty p { color: var(--text-mid); margin: 0 0 20px; }

/* ============ 论文列表 ============ */

ol.pubs { margin: 0; padding-left: 22px; }
ol.pubs li { margin-bottom: 9px; font-size: 13px; line-height: 1.65; color: var(--text-mid); }
ol.pubs li b { color: var(--text); }
.pub-group { margin-bottom: 8px; font-size: 13px; color: var(--blue-dark); font-weight: 700; }

/* ============ 页脚 ============ */

footer { background: #4a4a4a; color: #d6d6d6; font-size: 13px; padding: 22px 0 26px; margin-top: 30px; }
footer .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer h4 { margin: 0 0 8px; font-size: 13px; color: #fff; font-weight: 700; }
footer p { margin: 0 0 4px; }
footer a { color: #cfd8e3; }
footer .copy { margin-top: 16px; padding-top: 14px; border-top: 1px solid #5c5c5c; color: #9a9a9a; font-size: 12px; }
footer .qr { width: 84px; height: 84px; background: #5f5f5f; border: 1px solid #6e6e6e; display: flex; align-items: center; justify-content: center; color: #b5b5b5; font-size: 11px; text-align: center; }

/* ============ 响应式 / 打印 ============ */

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .tiles, .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .sitehead .wrap { height: auto; flex-direction: column; align-items: stretch; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .search { flex: 1 1 auto; max-width: none; }
  .navbar .wrap { height: auto; flex-direction: column; align-items: stretch; padding: 0; }
  .nav { height: auto; flex-wrap: wrap; }
  .nav a { padding: 10px 16px; }
  .navbar .login { margin: 8px 16px 10px; align-self: flex-start; }
  .hero-inner { flex-direction: column; }
  .hero-art { min-height: 150px; }
}
@media (max-width: 560px) {
  .tiles, .stats { grid-template-columns: 1fr; }
  .card { padding: 18px 16px; }
  .result-title { font-size: 21px; }
  table.kv th { width: 40%; }
}
@media print {
  .navbar, .sitehead, footer, .form-actions, .sidebar { display: none; }
  .layout { grid-template-columns: 1fr; }
  body { background: #fff; }
}
/* ============================================================
   对齐原站截图的覆盖样式
   （依据原站截图与复刻页的逐项视觉比对结论修正）
   ============================================================ */

/* 1. Logo：原版为 图形 + 英文站名 */
.logo-text { font-size: 16px; letter-spacing: .6px; }
.logo-text small { font-size: 10px; color: #cfe4f7; letter-spacing: .5px; }

/* 2. 搜索框：原版是一个白色圆角框 + 放大镜图标，无独立按钮 */
.search { position: relative; flex: 0 0 240px; }
.search input {
  width: 100%; height: 30px; padding: 0 34px 0 14px;
  border: 0; border-radius: 15px; outline: none;
  font-size: 13px; font-family: inherit; color: var(--text); background: #fff;
}
.search button {
  position: absolute; right: 2px; top: 2px;
  width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #8a97a8; font-size: 14px; cursor: pointer; line-height: 1;
}
.search button:hover { background: #eef3f9; color: var(--blue); }

/* 3. 登录：原版为深蓝底上的白色图标+文字（描边样式） */
.login {
  background: transparent; border: 1px solid rgba(255,255,255,.7);
  color: #fff; border-radius: 13px; padding: 4px 15px;
}
.login:hover { background: rgba(255,255,255,.16); color: #fff; }

/* 4. 结果大标题：原版三档均为深蓝粗体 */
.result-title,
.result-title.low, .result-title.intermediate, .result-title.high { color: var(--blue-dark); }

/* 5. 参数表：原版为整行交替底色（浅灰/浅蓝），表头列无独立底色 */
table.kv th { background: transparent; color: var(--text); font-weight: 700; width: 46%; }
table.kv tr:nth-child(odd)  th, table.kv tr:nth-child(odd)  td { background: #fafbfd; }
table.kv tr:nth-child(even) th, table.kv tr:nth-child(even) td { background: #eef4fa; }

/* 6. 深海军蓝主按钮（原版「编辑信息」） */
.btn.navy { background: var(--blue-dark); }
.btn.navy:hover { background: #00184a; }

/* 7. 侧栏宣传块的「tell us your needs !」：原版为白色长条输入框样式 */
.promo .need {
  display: block; width: 100%; box-sizing: border-box;
  background: #fff; color: #7b8a9e; border: 0; border-radius: 14px;
  padding: 7px 14px; font-size: 12.5px; text-align: left;
}
.promo .need:hover { background: #f2f7fd; text-decoration: none; color: #5c6b7f; }

/* 8. 概率与刻度：原作者页面无此元素，此处刻意收敛为次要信息 */
.probline { font-size: 13px; color: var(--text-mid); margin: 0 0 10px; }
.probline b { font-size: 16px; color: var(--text); }

/* 9. 模型说明折叠区，避免结果页过长 */
details.modelbox { margin-top: 18px; border: 1px solid var(--grey-line); border-radius: var(--radius); background: #fff; padding: 0 16px; }
details.modelbox > summary { cursor: pointer; padding: 12px 0; font-size: 14px; font-weight: 700; color: var(--blue-dark); outline: none; }
details.modelbox[open] > summary { border-bottom: 1px solid var(--grey-line); margin-bottom: 12px; }

/* 10. 表单更紧凑，贴近原站单栏表单的纵向密度 */
.form-section { padding: 14px 0; }
.opts { gap: 4px; }
.opt { padding: 3px 4px 3px 0; }
.q-note { margin-bottom: 8px; }
/* 11. 侧栏配图：原站为真实医学照片，此处使用原型素材中的甲状腺颈部检查照片 */
.sidebar .widget img { width: 100%; height: auto; display: block; }
/* 12. 首页主视觉：使用原型素材中的「医生阅片」照片 */
.hero-art { min-height: 0; padding: 0; background: #e9eef5; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 13. 表单纵向密度对齐原站（原站约 144px/题） */
.form-section { padding: 12px 0; }
.q-title { font-size: 14.5px; margin-bottom: 3px; }
.q-note { font-size: 12px; margin-bottom: 7px; line-height: 1.5; }
.opts { gap: 2px; }
.opt { padding: 2px 4px 2px 0; font-size: 13.5px; line-height: 1.5; }
.opt input { width: 14px; height: 14px; }
.age-row input[type=number], .age-row input[type=text] { padding: 6px 10px; }
/* 14. 页脚配色对齐原站实测值（#666666 底 / #999999 版权行） */
footer { background: #666666; color: #e4e4e4; }
footer h4 { color: #ffffff; }
footer a { color: #dcdcdc; }
footer .copy { border-top-color: #7c7c7c; color: #999999; }
footer .qr { background: #757575; border-color: #858585; color: #cfcfcf; }

/* 15. 内容页区块标题：原站为「标题 + 下方蓝色横线」 */
.card > h2.underline {
  border-left: 0; padding-left: 0; padding-bottom: 8px;
  border-bottom: 2px solid var(--blue);
  display: inline-block; min-width: 140px;
}
/* ============ 中英文切换按钮 ============ */
.navtools { display: flex; align-items: center; gap: 10px; }
.langbtn {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: 1px solid rgba(255,255,255,.7);
  color: #fff; border-radius: 13px; padding: 4px 13px;
  font-size: 13px; font-family: inherit; cursor: pointer; letter-spacing: .5px;
}
.langbtn:hover { background: rgba(255,255,255,.16); }
.langbtn .langicon { font-size: 12px; line-height: 1; opacity: .9; }

/* 表单「仅作记录」标记与必填星号 */
.q-title .rec { font-weight: 400; color: #999; font-size: 12px; }
.q-title .req { color: #c62828; margin-left: 3px; }

@media (max-width: 820px) {
  .navtools { margin: 8px 16px 10px; }
}
/* ============ 结果页：模型分数小字 ============ */
.scoreline { margin: 16px 0 0; font-size: 13px; color: #666; }
.scoreline b { font-size: 16px; color: #002268; }
.scoreline .z { font-size: 12px; color: #999; margin-left: 8px; }
/* ============ 评分公式块（说明书 4.2） ============ */
pre.formula {
  background: #f6f9fc; border: 1px solid var(--grey-line); border-left: 3px solid var(--blue);
  border-radius: var(--radius); padding: 14px 18px; margin: 10px 0 4px;
  font-family: Consolas, "Courier New", monospace; font-size: 12.5px; line-height: 1.75;
  color: #24313f; overflow-x: auto; white-space: pre;
}
/* ============================================================
   页脚（严格按说明书第6章截图）
     上排左：联系我们 + 电话 + 邮箱　｜　上排右：4 个分享图标
     下排中：Copyright 2018 | ALL RIGHTS RESERVED
   ============================================================ */
footer { background: #666666; color: #e4e4e4; font-size: 13px; padding: 18px 0 16px; margin-top: 30px; }
footer .foot-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .foot-contact { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
footer .foot-contact .lab { color: #ffffff; }
footer .foot-contact .sep { color: #8e8e8e; }
footer .foot-contact a { display: inline-flex; align-items: center; gap: 5px; color: #f0f0f0; }
footer .foot-contact a:hover { color: #ffffff; text-decoration: none; }
footer .foot-contact svg { opacity: .85; flex: 0 0 auto; }

footer .foot-copy { margin-top: 12px; padding-top: 10px; border-top: 1px solid #7c7c7c; color: #cfcfcf; font-size: 12px; text-align: center; }

@media (max-width: 700px) {
  footer .foot-top { justify-content: flex-start; }
}