:root {
  --teal: #0F6E56;
  --teal-light: #E1F5EE;
  --ink: #1f2421;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.8;
}
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,0.04); }
.nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 20px; padding: 14px 20px; }
.brand { font-weight: 600; color: var(--teal); text-decoration: none; font-size: 17px; }
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding-bottom: 4px; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s; }
.site-header nav a:hover { color: var(--teal); }
.site-header nav a.active { color: var(--teal); font-weight: 600; border-bottom-color: var(--teal); }
.lang-switch { display: flex; gap: 0; align-items: center; grid-column: 3; grid-row: 1; justify-self: end; }
.lang-link { color: var(--muted); text-decoration: none; font-size: 15px; padding: 0 10px 4px; border-bottom: 2px solid transparent; }
.lang-link + .lang-link { border-left: 1px solid var(--line); }
.lang-link:last-child { padding-right: 0; }
.lang-link:hover, .lang-link.is-active { color: var(--teal); }
.lang-link.is-active { font-weight: 700; }
.site-header nav.desktop-navigation { grid-column: 2; grid-row: 1; gap: 12px; justify-content: center; }
@media (min-width: 641px) and (max-width: 900px) {
  .site-header nav.desktop-navigation { gap: 8px; }
  .site-header nav.desktop-navigation a { font-size: 14px; }
}
.mobile-navigation { display: none; grid-column: 1 / -1; }
.mobile-navigation > summary { display: none; }
.mobile-navigation:not([open]) > nav { display: flex; }
@media (max-width: 640px) {
  .nav { grid-template-columns: 1fr auto; gap: 10px 12px; }
  .brand { grid-column: 1; grid-row: 1; font-size: 16px; }
  .lang-switch { grid-column: 2; grid-row: 1; justify-self: end; }
  .site-header nav.desktop-navigation { display: none; }
  .mobile-navigation { display: block; grid-column: 1 / -1; grid-row: 2; }
  .mobile-navigation > summary { display: block; cursor: pointer; color: var(--teal); font-size: 14px; padding: 6px 0; }
  .mobile-navigation > summary::before { content: "☰ "; }
  .mobile-navigation:not([open]) > nav { display: none; }
  .site-header nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; padding: 12px 0; }
}

main.container { padding-top: 36px; padding-bottom: 48px; }

.hero { text-align: center; padding: 48px 0 32px; }
.hero h1 { font-size: 36px; margin: 0 0 12px; color: var(--teal); }
.hero h1 .h1-en { display: block; font-size: 20px; font-weight: 500; color: var(--muted); margin-top: 8px; letter-spacing: .5px; }
.tagline { font-size: 19px; color: var(--muted); margin: 0 0 18px; }
.lead { max-width: 640px; margin: 0 auto 24px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 10px 22px; border-radius: 8px;
  background: var(--teal); color: #fff; text-decoration: none; font-size: 14px;
}
.btn:hover { background: #0c5945; }
.btn-ghost { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn-ghost:hover { background: var(--teal-light); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 32px 0; }
.card {
  display: block; padding: 20px; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s;
}
.card:hover { border-color: var(--teal); }
.card h3 { margin: 0 0 6px; color: var(--teal); font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.page h1 { color: var(--teal); font-size: 28px; }
.page p, .page li { font-size: 17px; line-height: 1.85; }
.role { color: var(--muted); font-weight: 500; margin-top: -6px; }
.muted { color: var(--muted); font-size: 15px; }
.email a { color: var(--teal); }

.recent { margin-top: 40px; }
.recent h2 { font-size: 22px; color: var(--teal); }
.linklist { list-style: none; padding: 0; }
.linklist li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.linklist a { color: var(--ink); text-decoration: none; }
.linklist a:hover { color: var(--teal); }

.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 0; color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--teal); }
.visit-line { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.visit-line .visit-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: #e8f5ee; color: #0f6e56; border: 1px solid #bfe3dc; font-size: 12px; font-weight: 600; line-height: 1; }
.privacy-note { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

/* 首页三向分流卡片 */
.lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 28px 0 8px; }
.lead-card {
  display: block; padding: 22px 20px; border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--ink); background: #fff; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.lead-card:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 8px 24px rgba(15,110,86,.10); }
.lead-emoji { font-size: 28px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--teal-light); border-radius: 12px; margin-bottom: 12px; }
.lead-card h3 { margin: 0 0 8px; color: var(--teal); font-size: 18px; }
.lead-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* 校友名单 */
.alumni-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; }
.alumni { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.alumni .an { flex: 0 0 240px; font-weight: 600; color: var(--ink); font-size: 16px; }
.alumni .ar { flex: 1 1 200px; color: var(--teal); font-size: 15px; }
.alumni .ad { flex: 0 0 auto; color: var(--muted); font-size: 14px; text-align: right; }
@media (max-width: 640px) {
  .alumni { gap: 2px; }
  .alumni .an { flex-basis: 100%; }
  .alumni .ar { flex-basis: 100%; }
  .alumni .ad { flex-basis: 100%; text-align: left; }
}

/* 论文列表 */
.pub-list { margin-top: 8px; }
.pub-legend { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.pub-year { color: var(--teal); font-size: 22px; margin: 28px 0 12px; border-bottom: 2px solid var(--teal); padding-bottom: 4px; display: inline-block; }
.pub-count { color: var(--muted); font-size: 15px; font-weight: 400; }
.pub-group { display: flex; flex-direction: column; gap: 16px; }
.pub-item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: box-shadow .15s ease, transform .15s ease; }
.pub-item:hover { box-shadow: 0 4px 16px rgba(15,110,86,.10); transform: translateY(-1px); }

/* === 产业化奖项卡片网格 === */
.industry-intro { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.industry-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease; }
.industry-card:hover { box-shadow: 0 6px 18px rgba(15,110,86,.12); transform: translateY(-2px); }
.industry-card .industry-cert { border-bottom: 1px solid var(--line); }
.industry-card .industry-cert > summary { cursor: pointer; list-style: none; padding: 11px 16px; font-size: 13.5px; font-weight: 600; color: var(--teal); user-select: none; }
.industry-card .industry-cert > summary::-webkit-details-marker { display: none; }
.industry-card .industry-cert > summary::before { content: "▸ "; }
.industry-card .industry-cert[open] > summary::before { content: "▾ "; }
.industry-card .industry-cert > a { display: block; padding: 0 16px 14px; }
.industry-card .industry-cert > a img { width: 100%; height: auto; display: block; border-radius: 6px; }
.industry-card .pub-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.industry-card .pub-title { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.industry-card .pub-date { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.pub-body { min-width: 0; }
.pub-title { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.5; margin-bottom: 6px; }
.pub-authors { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 8px; }
.pub-journal { display: flex; }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 2px; }
.pub-date { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); letter-spacing: .2px; }
.pub-pill { display: inline-block; font-size: 13.5px; color: var(--teal); background: #e6f4f1; border: 1px solid #bfe3dc; border-radius: 999px; padding: 3px 12px; text-decoration: none; line-height: 1.5; }
.pub-pill:hover { background: #d5ece7; }
.pub-pill.static { color: var(--muted); background: #f3f4f6; border-color: var(--line); }
/* 已商业转化：暖琥珀色，与专利绿区分 */
.pub-pill--commercial { color: #b45309; background: #fff6e9; border-color: #fcd9a8; font-weight: 600; }
/* 折叠更早论文 */
.pub-more { margin-top: 20px; border-top: 1px dashed var(--line); padding-top: 14px; }
.pub-more > summary { cursor: pointer; color: var(--teal); font-size: 15px; font-weight: 600; list-style: none; }
.pub-more > summary::-webkit-details-marker { display: none; }
.pub-more > summary::before { content: "▸ "; }
.pub-more[open] > summary::before { content: "▾ "; }
.pub-collapse-inner { margin-top: 16px; }

/* 团队成员照片墙 */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 22px; margin: 16px 0 40px; }
.member { text-align: center; }
.member img { width: 100%; max-width: 168px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; display: block; }
.member img.member-portrait-round { border-radius: 50%; object-position: center top; }
.member .cn { margin: 12px 0 2px; font-size: 15px; font-weight: 600; color: var(--ink); }
.member .en { margin: 0; font-size: 13px; color: var(--muted); }
.group-title { color: var(--teal); font-size: 21px; margin: 34px 0 2px; }
.pi-row { display: flex; justify-content: center; margin: 18px 0 8px; }
.member.pi { max-width: 200px; }
.member.pi img { max-width: 200px; }

/* ===== 照片墙 gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 24px 0 8px; }
.gallery-item { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,110,86,.12); border-color: var(--teal); }
.gallery-item img { display: block; width: 100%; height: 220px; object-fit: cover; }
.gallery-item figcaption { padding: 10px 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Lightbox 放大查看 */
.lightbox { position: fixed; inset: 0; background: rgba(15,24,21,.88); display: none; align-items: center; justify-content: center; flex-direction: column; z-index: 1000; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.lightbox p { color: #eaf6f1; margin-top: 14px; font-size: 15px; text-align: center; max-width: 90vw; }
.lightbox-close { position: absolute; top: 18px; right: 26px; background: none; border: none; color: #fff; font-size: 38px; line-height: 1; cursor: pointer; opacity: .85; }
.lightbox-close:hover { opacity: 1; }

/* ===== 相册主页封面卡片 ===== */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 24px 0 8px; }
.album-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.album-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,110,86,.12); border-color: var(--teal); }
.album-cover { aspect-ratio: 3 / 2; overflow: hidden; }
.album-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.album-meta { padding: 14px 16px 16px; }
.album-meta h3 { margin: 0 0 6px; font-size: 17px; color: var(--teal); }
.album-desc { margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.album-count { font-size: 12px; color: var(--muted); background: var(--teal-tint, #E1F5EE); padding: 3px 10px; border-radius: 999px; }
.album-back { margin: 0 0 8px; font-size: 14px; }
.album-back a { color: var(--muted); text-decoration: none; }
.album-back a:hover { color: var(--teal); }

/* ===== 团队成员页：头像可点进简介 ===== */
.member-link { display: block; text-decoration: none; color: inherit; border-radius: 14px; padding: 6px 4px; transition: background .15s ease, transform .15s ease; }
.member-link:hover { background: var(--teal-light); transform: translateY(-2px); }
.member-link .cn { transition: color .15s ease; }
.member-link:hover .cn { color: var(--teal); }

/* ===== 成员简介页 ===== */
.member-profile { max-width: 820px; }
.profile-head { display: flex; align-items: center; justify-content: flex-start; gap: 22px; padding: 8px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.profile-photo { width: 132px; height: 132px; object-fit: cover; border-radius: 16px; box-shadow: 0 4px 16px rgba(15,110,86,.12); flex: 0 0 auto; margin: 0 !important; }
.profile-id h1 { margin: 0 0 4px; color: var(--teal); font-size: 30px; text-align: left; }
.pub-count { font-weight: 500; font-size: 16px; color: var(--muted); margin-left: 8px; }
.author-self { font-weight: 700; color: var(--teal); }
.profile-en { margin: 0; font-size: 15px; color: var(--muted); letter-spacing: .3px; }
.profile-bio { margin: 0 0 26px; }
.profile-bio p { font-size: 16px; line-height: 1.8; }
.profile-pubs h2 { font-size: 22px; color: var(--teal); margin: 0 0 14px; }
.profile-pubs .pub-list { display: flex; flex-direction: column; gap: 12px; }
.back-link { margin-top: 30px; font-size: 14px; }
.back-link.top { margin: 0 0 16px; }
.back-link a { color: var(--muted); text-decoration: none; }
.back-link a:hover { color: var(--teal); }

.coffee-img { display: block; max-width: 320px; width: 100%; height: auto; border-radius: 14px; margin: 24px auto 0; box-shadow: 0 4px 18px rgba(15,110,86,.12); }

/* ===== 工业界合作页 ===== */
.page h2 { color: var(--teal); font-size: 24px; margin: 38px 0 6px; }

.stat-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 8px; }
.stat { flex: 1 1 150px; background: var(--teal-light); border-radius: 12px; padding: 18px 16px; text-align: center; }
.stat .num { display: block; font-size: 26px; font-weight: 700; color: var(--teal); line-height: 1.2; }
.stat .lbl { font-size: 13px; color: var(--muted); }

.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 22px 0 8px; }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; padding: 16px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.partner:hover { border-color: var(--teal); box-shadow: 0 8px 24px rgba(15,110,86,.10); }
.partner:hover .partner-name { color: var(--teal); }
.partner:hover .partner-name { color: var(--teal); }
.partner-logo { width: 160px; height: 56px; object-fit: contain; object-position: bottom; }
.partner-logo-sm { width: 96px; height: 34px; }
.partner-logo-sq { width: 96px; height: 96px; object-fit: contain; object-position: center; margin: 0 auto; }
.partner .partner-logo { border: 0; border-radius: 0; background: transparent; }
.partner-name { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 8px; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 15.5px; line-height: 1.7; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.steps li b { color: var(--teal); }

.contact-cta { background: var(--teal-light); border-radius: 16px; padding: 26px 24px; margin: 30px 0 8px; text-align: center; }
.contact-cta h2 { color: var(--teal); margin: 0 0 8px; font-size: 22px; }
.contact-cta p { color: var(--ink); margin: 0 0 16px; font-size: 15.5px; }

.research-media { margin: 22px 0 8px; display: block; max-width: 420px; }
.rm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 22px 0 8px; align-items: start; }
.rm-grid .research-media { margin: 0; max-width: 100%; }
.rm-thumb { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.rm-thumb:hover { border-color: var(--teal); box-shadow: 0 8px 24px rgba(15,110,86,.10); }
.rm-thumb img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.rm-grid .rm-thumb { height: 200px; }
.rm-grid .rm-thumb img { height: 200px; object-fit: cover; }
.research-media figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.rm-external { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--teal); text-decoration: none; }
.rm-external:hover { text-decoration: underline; }
.rm-linkcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 420px; margin: 14px 0 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.rm-linkcard:hover { border-color: var(--teal); box-shadow: 0 8px 24px rgba(15,110,86,.10); }
.rm-linkcard a { color: var(--teal); font-weight: 600; font-size: 15px; text-decoration: none; }
.rm-linkcard a:hover { text-decoration: underline; }
.rm-linkurl { font-size: 13px; color: var(--muted); }
/* 五个核心工作卡片 */
.rm-work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.rm-work { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.rm-work:hover { border-color: var(--teal); box-shadow: 0 8px 24px rgba(15,110,86,.10); }
.rm-work-head { display: flex; align-items: baseline; gap: 8px; }
.rm-work-abbr { font-weight: 700; color: var(--teal); font-size: 16px; letter-spacing: .2px; }
.rm-work-full { font-size: 13px; color: var(--muted); }
.rm-work-target { font-size: 14.5px; color: var(--ink); line-height: 1.55; }
.rm-work-metric { font-size: 13px; color: #4b5563; line-height: 1.6; }
.rm-work-paper { font-size: 12.5px; color: var(--muted); margin-top: auto; }
.rm-work-paper a { color: var(--teal); text-decoration: none; }
.rm-work-paper a:hover { text-decoration: underline; }
.rm-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 1000; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.rm-lightbox:target { display: flex; }
.rm-lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.rm-close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 34px; line-height: 1; text-decoration: none; pointer-events: none; }

/* ---- 在线工具 / 模型交互页 ---- */
.tool-form { max-width: 560px; display: flex; flex-direction: column; gap: 8px; margin: 22px 0 8px; }
.tool-form label { font-weight: 500; margin-top: 6px; }
.tool-form input[type=text], .tool-form input[type=number], .tool-form input[type=file] {
  padding: 10px 12px; border: 1px solid var(--border, #ddd); border-radius: 10px; font-size: 15px; font-family: inherit; background: #fff;
}
.tool-form button {
  align-self: flex-start; margin-top: 12px; padding: 10px 22px; border: none; border-radius: 10px;
  background: var(--teal); color: #fff; font-size: 15px; font-weight: 500; cursor: pointer;
}
.tool-form button:hover { background: var(--teal-d, #0a5c47); }
.tool-form button:disabled { opacity: .6; cursor: not-allowed; }
.tool-status { font-size: 13px; color: var(--muted); margin-left: 12px; }
/* ---- 预测结果醒目卡片 ---- */
.tool-result { margin-top: 26px; max-width: 640px; }
.rf-card {
  border: 1px solid var(--teal);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15,110,86,.14);
  animation: rf-pop .35s ease;
}
@keyframes rf-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rf-card__head {
  position: relative;
  background: linear-gradient(135deg, #0F6E56 0%, #159a78 100%);
  color: #fff;
  padding: 18px 22px 20px;
}
.rf-card__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: .4px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.4);
  padding: 3px 12px; border-radius: 999px;
  margin-bottom: 12px;
}
.rf-card__body { padding: 16px 22px 22px; }
/* 单次预测结果：左 TLC 板 + 右结构/信息 */
.rf-result { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.rf-tlc { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.rf-tlc__caption {
  font-size: 14px; font-weight: 600; color: #0a5c47;
  text-align: center; line-height: 1.45; max-width: 240px;
}
.rf-tlc__canvas { width: 200px; height: 380px; max-width: 100%; display: block; }
.rf-side { flex: 1 1 240px; min-width: 240px; display: grid; gap: 10px; }
/* 详情块 */
.rf-detail {
  display: flex; flex-direction: column; gap: 4px;
  padding: 11px 14px; background: var(--teal-light);
  border-radius: 10px;
}
.rf-detail__k { font-size: 12px; color: var(--muted); letter-spacing: .2px; }
.rf-detail__v { font-size: 14.5px; color: var(--ink); word-break: break-all; line-height: 1.5; }
.rf-detail__v code { background: transparent; padding: 0; font-size: 13.5px; }
.rf-detail--mol { background: #fff; border: 1px solid var(--line); }
.rf-mol { display: flex; justify-content: center; align-items: center; min-height: 170px; padding: 8px; }
.rf-mol img { max-width: 100%; height: auto; display: block; border-radius: 6px; }
.solvent-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.solvent-cell { display: flex; flex-direction: column; gap: 4px; }
.solvent-name { font-weight: 600; font-size: 13px; text-align: center; line-height: 1.25; color: var(--teal-d, #0a5c47); }
.solvent-name small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.solvent-grid input { width: 100%; }
.tool-form code { background: #eef3f1; padding: 1px 6px; border-radius: 6px; font-size: 13px; }

.example-presets { margin: 4px 0 18px; max-width: 560px; }
.example-presets-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.example-card {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border, #ddd); border-radius: 12px; padding: 10px 14px;
  background: #f9fbfa; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.example-card:hover { border-color: var(--teal); box-shadow: 0 4px 14px rgba(15,110,86,.08); }
.example-card img {
  width: 96px; height: 96px; object-fit: contain; border-radius: 8px; background: #fff;
  border: 1px solid #e9eeec; align-self: center;
}
.example-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.example-info strong { display: block; font-size: 14px; color: #1d3b32; }
.example-info span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.example-info code { font-size: 11px; background: #eef3f1; padding: 1px 5px; border-radius: 5px; }
.example-card button {
  padding: 7px 14px; border: none; border-radius: 8px; background: var(--teal); color: #fff;
  font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
  align-self: center; margin-top: 0;
}
.example-card button:hover { background: var(--teal-d, #0a5c47); }
@media (max-width: 480px) {
  .example-card { flex-wrap: wrap; }
  .example-card img { width: 96px; height: 96px; }
  .example-card button { width: 100%; }
}

/* ---- 批量预测 ---- */
.batch-hint { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 0; }
.batch-hint code { background: #eef3f1; padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.link-btn {
  align-self: flex-start; margin-top: 4px; padding: 7px 14px; border: 1px solid var(--teal);
  border-radius: 9px; background: #fff; color: var(--teal); font-size: 13.5px; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: background .15s, color .15s;
}
.link-btn:hover { background: var(--teal); color: #fff; }
.batch-summary { font-size: 14px; color: var(--ink); margin-top: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
.batch-summary .ok { color: var(--teal-d, #0a5c47); font-weight: 600; }
.batch-summary .err { color: #c0392b; font-weight: 600; }
/* 多化合物输入行 */
.batch-cmp-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.batch-cmp-row {
  display: grid;
  grid-template-columns: 14px minmax(120px, 1.1fr) minmax(180px, 2fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.batch-cmp-swatch { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(0,0,0,0.04); }
.batch-cmp-row input {
  width: 100%; padding: 8px 10px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 7px; background: #fbfdfc; color: var(--ink);
  font-family: inherit;
}
.batch-cmp-row input:focus { outline: none; border-color: var(--teal); background: #fff; }
.batch-cmp-row input.batch-cmp-name { font-weight: 600; }
.batch-cmp-rm {
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--muted); font-size: 16px; cursor: pointer; line-height: 1;
  transition: all .15s;
}
.batch-cmp-rm:hover:not(:disabled) { border-color: var(--red, #d6453c); color: #d6453c; background: #fff6f5; }
.batch-cmp-rm:disabled { opacity: .35; cursor: not-allowed; }
/* 「＋ 添加化合物」按钮对齐 Rf 比较的 cmp-add（需覆盖 .tool-form button 优先级） */
#batch-add.cmp-add { background: #fff; color: var(--teal); }
/* TLC 可视化结果 */
.batch-tlc-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.batch-caption { font-size: 14px; font-weight: 600; color: #0a5c47; text-align: center; line-height: 1.45; }
#batch-tlc { width: 100%; max-width: 760px; height: auto; display: block; }
.batch-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 4px; }
.batch-legend__item { display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.batch-legend__dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.batch-legend__name { font-weight: 600; color: var(--ink); }
.batch-legend__rf { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- 工具标签页 ---- */
.tool-tabs { display: flex; gap: 4px; margin: 22px 0 0; border-bottom: 1px solid var(--border, #ddd); flex-wrap: wrap; }
.tool-tab {
  appearance: none; font-family: inherit; cursor: pointer;
  border: 1px solid transparent; border-bottom: none; background: transparent;
  padding: 10px 18px; font-size: 15px; font-weight: 500; color: var(--muted);
  border-radius: 10px 10px 0 0; margin-bottom: -1px;
  transition: color .15s, background .15s, border-color .15s;
}
.tool-tab:hover { color: var(--teal-d, #0a5c47); background: #f3f8f6; }
.tool-tab.is-active { color: var(--teal-d, #0a5c47); background: #fff; border-color: var(--border, #ddd); border-bottom-color: #fff; }
.tool-panel { display: none; padding-top: 6px; }
.tool-panel.is-active { display: block; animation: rf-pop .25s ease; }
.tool-coming {
  max-width: 560px; text-align: center; padding: 40px 22px; margin-top: 18px;
  border: 1px dashed var(--border, #ddd); border-radius: 14px; background: #fafcfb;
}
.tool-coming__icon { font-size: 34px; }
.tool-coming h3 { margin: 10px 0 8px; color: var(--teal-d, #0a5c47); font-size: 17px; }
.tool-coming p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---- 反推溶剂（Reverse solvent）---- */
.reverse-head h3 { margin: 18px 0 6px; color: var(--teal-d, #0a5c47); font-size: 18px; }
.reverse-desc { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.reverse-desc strong { color: var(--teal-d, #0a5c47); }
.reverse-controls { display: block; max-width: 640px; }
.reverse-smiles-row { display: flex; gap: 10px; align-items: center; }
.reverse-smiles-row input { flex: 1; }
/* .link-btn 全局有 align-self:flex-start + margin-top:4px（为 column 布局），
   在本行内 row-flex 容器里会破坏居中 → 这里覆盖回来 */
.reverse-smiles-row .link-btn { align-self: center; margin-top: 0; }
.reverse-solvents { display: flex; align-items: flex-end; gap: 14px; margin: 14px 0; }
.reverse-solvent { display: flex; flex-direction: column; gap: 6px; }
.reverse-solvent select {
  appearance: none; font-family: inherit; font-size: 14px; color: var(--ink, #1a1a1a);
  padding: 8px 30px 8px 12px; border: 1px solid var(--border, #ccc); border-radius: 9px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%230a5c47'/></svg>") no-repeat right 12px center;
  cursor: pointer; min-width: 168px;
}
.reverse-colon { font-size: 20px; font-weight: 600; color: var(--teal-d, #0a5c47); padding-bottom: 8px; }
.reverse-draw { font-size: 15px; padding: 10px 22px; margin-top: 4px; }
.reverse-canvas-wrap { margin: 20px 0 8px; max-width: 680px; }
.reverse-curve {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--border, #ddd); border-radius: 12px; background: #fff;
}
.reverse-summary { margin: 10px 0 4px; font-size: 14px; color: var(--ink, #1a1a1a); }
.reverse-summary .ok { color: var(--teal-d, #0a5c47); font-weight: 600; }
.reverse-summary .err { color: #c0392b; font-weight: 600; }
.reverse-tlc-wrap { display: flex; flex-direction: row; align-items: flex-start; gap: 22px; margin: 10px 0 4px; flex-wrap: wrap; }
.reverse-tlc {
  width: 200px; max-width: 100%; height: auto; display: block;
  border: 1px solid var(--border, #ddd); border-radius: 12px; background: #fff;
  touch-action: none; cursor: grab; flex: 0 0 auto;
}
.reverse-tlc:active { cursor: grabbing; }
.reverse-readout {
  display: flex; flex-direction: column; gap: 14px; padding-top: 10px; min-width: 220px; flex: 1 1 220px;
}
.reverse-readout__item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 16px; border: 1px solid var(--border, #ddd); border-radius: 12px; background: #fafcfb;
}
.reverse-readout__k { font-size: 12.5px; color: var(--muted); }
.reverse-readout__v { font-size: 24px; font-weight: 700; color: var(--teal-d, #0a5c47); font-variant-numeric: tabular-nums; }
.reverse-tlc-hint { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; max-width: 340px; line-height: 1.6; }
.reverse-tlc-hint strong { color: var(--teal-d, #0a5c47); }
.reverse-mode { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; max-width: 640px; }
.reverse-mode-opt {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 10px 14px; border: 1px solid var(--border, #ddd); border-radius: 10px;
  font-size: 14.5px; color: var(--ink, #1a1a1a); background: #fff;
  transition: border-color .15s, background .15s;
}
.reverse-mode-opt:hover { border-color: var(--teal, #0F6E56); }
.reverse-mode-opt input { accent-color: var(--teal, #0F6E56); width: 16px; height: 16px; cursor: pointer; flex: 0 0 auto; }
.reverse-mode-opt.is-selected { border-color: var(--teal, #0F6E56); background: #f3f8f6; font-weight: 600; }
.reverse-preset-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.7; }
.reverse-preset-note strong { color: var(--teal-d, #0a5c47); }
.reverse-warn {
  font-size: 13px; color: #b5480f; background: #fdf1e7; border: 1px solid #f3c9a8;
  border-radius: 10px; padding: 9px 14px; margin: 6px 0 0; max-width: 640px; line-height: 1.6;
}

@media (max-width: 520px) {
  .reverse-solvents { flex-wrap: wrap; }
  .reverse-solvent select { min-width: 140px; }
}

/* ---- 我的课程页 ---- */
.course-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 22px 0 8px; }
.course { border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 18px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.course:hover { border-color: var(--teal); box-shadow: 0 8px 24px rgba(15,110,86,.10); }
.course-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.course-head h3 { margin: 0; font-size: 19px; color: var(--teal); }
.course-tag { flex: 0 0 auto; font-size: 12.5px; color: var(--teal); background: var(--teal-light); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.course-meta { margin: 10px 0 8px; font-size: 13.5px; color: var(--muted); }
.course-desc { margin: 0 0 12px; font-size: 15.5px; line-height: 1.85; }
.course-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.course-tags span { font-size: 12.5px; color: var(--ink); background: #f3f5f4; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }
a.course-link { display: block; text-decoration: none; color: inherit; border-radius: 14px; }
a.course-link:hover .course { border-color: var(--teal); box-shadow: 0 8px 24px rgba(15,110,86,.10); }
a.course-link .course-head h3 { transition: color .15s; }
a.course-link:hover .course-head h3 { color: var(--teal-d, #0a5c47); }
.course-more { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 500; color: var(--teal); }
a.course-link:hover .course-more { text-decoration: underline; }
/* 往期讲座表格：基础样式 + 4 列固定宽度（讲次｜主讲人｜题目｜单位及职务） */
.ai4s-course table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 14px 0 22px; font-size: 15px; }
.ai4s-course table th,
.ai4s-course table td { border-bottom: 1px solid var(--line); padding: 10px 12px; vertical-align: top; text-align: left; line-height: 1.65; }
.ai4s-course table th { font-weight: 600; color: var(--teal); background: var(--teal-light); border-bottom-color: #cfe6dd; }
.ai4s-course table tbody tr:hover { background: #f9fbfa; }
.ai4s-course table th:nth-child(1),
.ai4s-course table td:nth-child(1) { width: 4.8em; white-space: nowrap; }
.ai4s-course table th:nth-child(2),
.ai4s-course table td:nth-child(2) { width: 5.5em; white-space: nowrap; }
.ai4s-course table th:nth-child(3),
.ai4s-course table td:nth-child(3) { width: 38%; }
.ai4s-course table th:nth-child(4),
.ai4s-course table td:nth-child(4) { width: auto; }
@media (max-width: 640px) {
  .ai4s-course table { font-size: 14px; }
  .ai4s-course table th, .ai4s-course table td { padding: 8px 6px; }
}

/* ---- 课件下载列表 ---- */
.file-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 6px; }
.file-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; color: var(--ink); font-size: 15.5px; transition: border-color .15s, box-shadow .15s; }
.file-item:hover { border-color: var(--teal); box-shadow: 0 6px 18px rgba(15,110,86,.10); color: var(--teal); }
.file-ext { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--teal); background: var(--teal-light); border-radius: 6px; padding: 2px 8px; }
.file-note { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }

/* ===== 论文双语入口按钮 ===== */
.pub-bilingual { display: inline-block; margin-top: 10px; padding: 5px 12px; border: 1px solid var(--teal); border-radius: 999px; color: var(--teal); font-size: 13px; font-weight: 600; text-decoration: none; background: var(--teal-light); transition: background .15s, color .15s; }
.pub-bilingual:hover { background: var(--teal); color: #fff; }

/* ===== 双语全文页 ===== */
.bilingual-note { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }
article.page img { display: block; max-width: 100%; height: auto; margin: 18px auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
article.page p { line-height: 1.85; margin: 0 0 12px; font-size: 16px; }
article.page h1, article.page h2, article.page h3 { color: var(--teal); line-height: 1.4; margin: 26px 0 12px; }
article.page h1 { font-size: 24px; }
article.page h2 { font-size: 20px; }
article.page h3 { font-size: 17px; }

/* ===== Rf 比较 · 示例反应一键导入 ===== */
.cmp-example {
  display: flex; gap: 16px; align-items: center;
  margin: 14px 0 18px; padding: 14px 16px;
  background: #f4f8f6; border: 1px solid #e2eae6; border-radius: 10px;
}
.cmp-example-img {
  width: 360px; height: auto; flex: 0 0 auto; max-width: 100%;
  background: #fff; border: 1px solid #e2eae6; border-radius: 6px; padding: 4px;
}
.cmp-example-info { flex: 1 1 auto; min-width: 0; }
.cmp-example-title { font-weight: 600; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.cmp-example-desc { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.cmp-example-btn {
  appearance: none; border: 1px solid #0F6E56; background: #0F6E56; color: #fff;
  font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 8px; cursor: pointer;
  transition: background .15s ease;
}
.cmp-example-btn:hover { background: #0c5a46; }
.cmp-example-btn:active { transform: translateY(1px); }

/* ===== Rf 比较（cmp） ===== */
.cmp-intro { font-size: 14.5px; color: var(--muted); line-height: 1.7; margin: 0 0 18px; }
.cmp-intro strong { color: var(--ink); }

.cmp-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }

.cmp-row {
  display: grid;
  grid-template-columns: 14px minmax(120px, 1.1fr) minmax(180px, 2fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cmp-swatch { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(0,0,0,0.04); }
.cmp-row input {
  width: 100%; padding: 8px 10px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 7px; background: #fbfdfc; color: var(--ink);
  font-family: inherit;
}
.cmp-row input:focus { outline: none; border-color: var(--teal); background: #fff; }
.cmp-row input.cmp-name { font-weight: 600; }
.cmp-remove {
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--muted); font-size: 16px; cursor: pointer; line-height: 1;
  transition: all .15s;
}
.cmp-remove:hover:not(:disabled) { border-color: var(--red, #d6453c); color: #d6453c; background: #fff6f5; }
.cmp-remove:disabled { opacity: .35; cursor: not-allowed; }

.cmp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.cmp-add, .cmp-run {
  padding: 10px 18px; font-size: 14.5px; font-weight: 600; border-radius: 8px;
  cursor: pointer; border: 1px solid transparent; transition: all .15s;
}
.cmp-add { background: #fff; border-color: var(--teal); color: var(--teal); }
.cmp-add:hover:not(:disabled) { background: var(--teal); color: #fff; }
.cmp-run { background: var(--teal); color: #fff; }
.cmp-run:hover:not(:disabled) { background: #0c5b46; }
.cmp-add:disabled, .cmp-run:disabled { opacity: .5; cursor: not-allowed; }

.cmp-result { margin-top: 24px; }
.cmp-charts { display: grid; grid-template-columns: 1fr; gap: 22px; }
.cmp-chart {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px 18px; box-shadow: 0 1px 2px rgba(15,110,86,0.04);
}
.cmp-chart__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.cmp-chart__title { font-size: 17px; font-weight: 700; color: var(--teal); margin: 0; }
.cmp-chart__legend { display: flex; flex-wrap: wrap; gap: 14px; }
.cmp-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); }
.cmp-legend-item i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.cmp-chart__plot { position: relative; width: 100%; }
.cmp-chart__plot canvas { display: block; width: 100%; height: auto; }
.cmp-chart__tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: rgba(23,37,33,0.92); color: #fff; font-size: 12.5px; line-height: 1.5;
  padding: 7px 10px; border-radius: 7px; white-space: nowrap; transform: translate(-50%, -115%);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.cmp-chart__tip b { color: #fff; }
.cmp-chart__tip .tip-rf { color: #9fe3cf; font-weight: 700; }
.cmp-chart__tip .tip-err { color: #ffb4a8; }

@media (max-width: 560px) {
  .cmp-row { grid-template-columns: 14px 1fr 34px; grid-template-areas: "sw name rm" "sw smiles rm"; row-gap: 8px; }
  .cmp-swatch { grid-area: sw; }
  .cmp-row .cmp-name { grid-area: name; }
  .cmp-row .cmp-smiles { grid-area: smiles; }
  .cmp-remove { grid-area: rm; }
}

/* Clip every profile portrait and its background to a circle. */
article.page img.profile-photo { height: 132px; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; border: 0; background: transparent; }
article.page img.profile-photo.member-portrait-round { object-position: center top; }

/* Keep the full portrait visible for Lü Guangyao. */
.member img[src="/img/members/lvguangyao.jpg"],
article.page img.profile-photo[src="/img/members/lvguangyao.jpg"] { object-fit: contain; object-position: center; background: #fff; border-radius: 50%; }

/* Hide white corners outside existing circular member portraits. */
.member img.member-avatar-circle { border-radius: 50%; background: transparent; }

/* Frame the supplied Sinochem artwork without its surrounding whitespace. */
.partner-logo-sinochem { display: block; position: relative; width: 160px; height: 80px; margin: 18px auto; overflow: hidden; }
article.page .partner-logo-sinochem img { position: absolute; width: 440px; max-width: none; height: auto; left: -140px; top: -119px; margin: 0; border: 0; border-radius: 0; }
