/* 浙江大学工程结构耐久性创新团队网站 · 全站样式 */
:root {
  --zju-blue: #00468C;
  --zju-blue-dark: #003268;
  --ink: #1c2530;
  --muted: #5b6b7c;
  --line: #e3e9f0;
  --bg-soft: #f5f8fb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--zju-blue); flex-shrink: 0; }
.brand .logo { width: 38px; height: 38px; border-radius: 8px; background: var(--zju-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; letter-spacing: .5px; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
nav.menu { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
nav.menu a { padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--ink); white-space: nowrap; }
nav.menu a:hover { background: var(--bg-soft); color: var(--zju-blue); }
nav.menu a.active { color: var(--zju-blue); font-weight: 600; background: var(--bg-soft); }
.lang-btn { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: 13px; color: var(--zju-blue); font-weight: 600; flex-shrink: 0; }
.lang-btn:hover { background: var(--zju-blue); color: #fff; }

/* ---------- 首页 Hero ---------- */
.hero { background: linear-gradient(135deg, var(--zju-blue-dark), var(--zju-blue) 60%, #1a6ab5); color: #fff; padding: 88px 0 72px; }
.hero h1 { font-size: 34px; font-weight: 800; letter-spacing: .5px; }
.hero .en { font-size: 15px; opacity: .85; margin-top: 6px; font-weight: 400; }
.hero .motto { margin-top: 22px; font-size: 17px; font-style: italic; opacity: .95; border-left: 3px solid rgba(255,255,255,.5); padding-left: 14px; }
.hero .tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero .tag { border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 6px 16px; font-size: 13px; }

/* ---------- 子页面页头横幅 ---------- */
.page-hero { background: linear-gradient(135deg, var(--zju-blue-dark), var(--zju-blue) 60%, #1a6ab5); color: #fff; padding: 52px 0 44px; }
.page-hero h1 { font-size: 28px; font-weight: 800; }
.page-hero .en { font-size: 14px; opacity: .85; margin-top: 4px; font-weight: 400; }
.page-hero .desc { margin-top: 14px; font-size: 14px; opacity: .92; max-width: 760px; }

/* ---------- 统计条 ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 26px 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 30px; color: var(--zju-blue); font-weight: 800; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- 区块 ---------- */
section { padding: 64px 0; }
section.alt { background: var(--bg-soft); }
main.page { min-height: 50vh; padding: 48px 0 64px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 30px; }
.sec-head h2 { font-size: 24px; color: var(--zju-blue); }
.sec-head h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--zju-blue); margin-top: 6px; border-radius: 2px; }
.sec-head .more { font-size: 13px; color: var(--muted); }
.sec-head .more:hover { color: var(--zju-blue); }
.sub-head { font-size: 18px; color: var(--zju-blue); margin: 36px 0 16px; padding-left: 12px; border-left: 4px solid var(--zju-blue); }
.sub-head:first-of-type { margin-top: 0; }

/* ---------- 研究方向卡 ---------- */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.dir-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; transition: .2s; }
.dir-card:hover { border-color: var(--zju-blue); box-shadow: 0 6px 18px rgba(0,70,140,.08); transform: translateY(-2px); }
.dir-card .icon { font-size: 24px; }
.dir-card h3 { font-size: 16px; margin: 10px 0 4px; color: var(--ink); }
.dir-card .en { font-size: 12px; color: var(--muted); }
.dir-card p { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- 论文列表 ---------- */
.paper-list { display: flex; flex-direction: column; gap: 12px; }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start; transition: .2s; }
.paper:hover { border-color: var(--zju-blue); }
.paper .badge { flex-shrink: 0; background: var(--zju-blue); color: #fff; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 3px 8px; margin-top: 3px; }
.paper .badge.ei { background: #b0761a; }
.paper .badge.core { background: #4a7c59; }
.paper h4 { font-size: 15px; font-weight: 600; line-height: 1.5; }
.paper h4 a:hover { color: var(--zju-blue); text-decoration: underline; }
.paper .zh { font-size: 13px; color: var(--muted); margin-top: 2px; }
.paper .meta { font-size: 12px; color: var(--zju-blue); margin-top: 6px; font-weight: 600; }
.paper .authors { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- 工程应用 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: flex; gap: 12px; align-items: center; transition: .2s; }
.case:hover { border-color: var(--zju-blue); box-shadow: 0 4px 12px rgba(0,70,140,.06); }
.case .dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--zju-blue); }
.case h4 { font-size: 14px; font-weight: 600; }
.case .en { font-size: 12px; color: var(--muted); }

/* 工程应用详情卡（工程页） */
.case-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; transition: .2s; }
.case-card:hover { border-color: var(--zju-blue); box-shadow: 0 8px 20px rgba(0,70,140,.1); transform: translateY(-2px); }
.case-card .thumb { height: 150px; background: linear-gradient(135deg, var(--zju-blue), #1a6ab5); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); font-size: 38px; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-card .body { padding: 16px 18px; }
.case-card h4 { font-size: 15px; font-weight: 600; }
.case-card .en { font-size: 12px; color: var(--muted); margin-top: 2px; }
.case-card .loc { font-size: 12px; color: var(--zju-blue); margin-top: 8px; font-weight: 600; }

/* ---------- 成员卡 ---------- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.member-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-align: center; transition: .2s; }
.member-card:hover { border-color: var(--zju-blue); box-shadow: 0 6px 18px rgba(0,70,140,.08); }
.member-card .avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 12px; background: var(--bg-soft); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: var(--zju-blue); overflow: hidden; }
.member-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-card h4 { font-size: 16px; }
.member-card .name-en { font-size: 12px; color: var(--muted); }
.member-card .title { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--zju-blue); background: var(--bg-soft); border-radius: 999px; padding: 2px 12px; }
.member-card .research { margin-top: 10px; font-size: 12px; color: var(--muted); }
.member-card .email { margin-top: 8px; font-size: 12px; }
.member-card .email a { color: var(--zju-blue); }
.member-card .dest { margin-top: 8px; font-size: 12px; color: #4a7c59; }

/* ---------- 项目卡 ---------- */
.proj-list { display: flex; flex-direction: column; gap: 14px; }
.proj { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; transition: .2s; }
.proj:hover { border-color: var(--zju-blue); box-shadow: 0 4px 12px rgba(0,70,140,.06); }
.proj .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.proj h4 { font-size: 16px; font-weight: 600; }
.proj .en { font-size: 12px; color: var(--muted); margin-top: 2px; }
.proj .pill { flex-shrink: 0; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.proj .pill.on { background: #e3f1e6; color: #2e7d46; }
.proj .pill.done { background: var(--bg-soft); color: var(--muted); }
.proj .meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; font-size: 13px; color: var(--zju-blue); font-weight: 600; }
.proj .desc { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- 筛选条 / Tab ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 26px; }
.filter-bar select, .filter-bar input { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font-size: 13px; color: var(--ink); background: #fff; font-family: inherit; }
.filter-bar input { flex: 1; min-width: 180px; }
.filter-bar select:focus, .filter-bar input:focus { outline: none; border-color: var(--zju-blue); }
.filter-bar .btn { background: var(--zju-blue); color: #fff; border: none; border-radius: 6px; padding: 8px 20px; font-size: 13px; cursor: pointer; font-weight: 600; }
.filter-bar .btn:hover { background: var(--zju-blue-dark); }
.filter-bar .btn.ghost { background: #fff; color: var(--zju-blue); border: 1px solid var(--zju-blue); }

.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tabs button { border: none; background: none; padding: 10px 18px; font-size: 14px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: inherit; }
.tabs button:hover { color: var(--zju-blue); }
.tabs button.active { color: var(--zju-blue); font-weight: 700; border-bottom-color: var(--zju-blue); }

/* ---------- 通用列表行（专利/获奖/新闻/合作） ---------- */
.row-list { display: flex; flex-direction: column; gap: 10px; }
.row-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; display: flex; gap: 16px; align-items: flex-start; transition: .2s; }
.row-item:hover { border-color: var(--zju-blue); }
.row-item .date { flex-shrink: 0; min-width: 86px; text-align: center; background: var(--bg-soft); border-radius: 8px; padding: 8px 6px; }
.row-item .date b { display: block; font-size: 18px; color: var(--zju-blue); }
.row-item .date span { font-size: 11px; color: var(--muted); }
.row-item h4 { font-size: 15px; font-weight: 600; }
.row-item .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.row-item .tag2 { flex-shrink: 0; align-self: center; font-size: 11px; font-weight: 700; color: var(--zju-blue); background: var(--bg-soft); border-radius: 4px; padding: 3px 10px; }

/* ---------- 新闻时间线 ---------- */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; display: flex; gap: 18px; align-items: baseline; transition: .2s; }
.news-item:hover { border-color: var(--zju-blue); }
.news-item .ndate { flex-shrink: 0; font-size: 13px; color: var(--zju-blue); font-weight: 700; min-width: 100px; }
.news-item h4 { font-size: 14px; font-weight: 600; }
.news-item .ncat { flex-shrink: 0; font-size: 11px; color: var(--muted); background: var(--bg-soft); border-radius: 4px; padding: 2px 8px; }

/* ---------- 数据表 ---------- */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; }
.data-table th { background: var(--zju-blue); color: #fff; text-align: left; padding: 12px 14px; font-weight: 600; white-space: nowrap; }
.data-table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.data-table tr:nth-child(even) td { background: var(--bg-soft); }
.table-wrap { overflow-x: auto; border-radius: 12px; }
.result-info { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.result-info b { color: var(--zju-blue); }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(10,25,45,.5); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 14px; max-width: 640px; width: 100%; max-height: 82vh; overflow-y: auto; padding: 30px; position: relative; }
.modal .close { position: absolute; top: 14px; right: 16px; border: none; background: var(--bg-soft); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px; color: var(--muted); }
.modal h3 { color: var(--zju-blue); font-size: 20px; padding-right: 30px; }
.modal .en { font-size: 13px; color: var(--muted); margin-top: 2px; }
.modal .loc { font-size: 13px; color: var(--zju-blue); font-weight: 600; margin-top: 10px; }
.modal .points { margin-top: 16px; font-size: 14px; white-space: pre-line; color: var(--ink); }

/* ---------- 空态 ---------- */
.empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 14px; background: #fff; border: 1px dashed var(--line); border-radius: 12px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.contact-card .ic { font-size: 26px; }
.contact-card h4 { font-size: 15px; color: var(--zju-blue); margin: 10px 0 6px; }
.contact-card p { font-size: 14px; color: var(--ink); }
.contact-card a { color: var(--zju-blue); }
.contact-card a:hover { text-decoration: underline; }

/* ---------- 页脚 ---------- */
footer { background: var(--zju-blue-dark); color: rgba(255,255,255,.85); padding: 40px 0 26px; margin-top: 20px; }
footer .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer h5 { color: #fff; font-size: 15px; margin-bottom: 8px; }
footer p, footer a { font-size: 13px; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .copy { border-top: 1px solid rgba(255,255,255,.15); margin-top: 26px; padding-top: 16px; font-size: 12px; text-align: center; opacity: .7; }

@media (max-width: 860px) {
  nav.menu { display: none; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .hero h1 { font-size: 26px; }
}
