/* ============================================================
   贵州民族医药与大健康产业创新研究院 · 官网样式
   天蓝科技风：清爽蓝 + 青色调，庄重中带科技感，动画简洁克制
   ============================================================ */

:root {
  --blue: #1677d2;        /* 主蓝 */
  --blue-2: #2f8be8;      /* 亮蓝 */
  --blue-deep: #0d4a8f;   /* 深蓝 */
  --blue-dark: #0a2e57;   /* 墨蓝（导航/页脚） */
  --cyan: #22b8cf;        /* 青色点缀 */
  --cyan-2: #4fd3e0;
  --bg: #eef4fb;          /* 浅蓝灰背景 */
  --card: #ffffff;
  --line: #dbe6f1;
  --text: #263a4d;
  --text-light: #7a8ea0;
  --serif: "SimSun", "宋体", "Songti SC", serif;
  --sans: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container { width: 1200px; margin: 0 auto; }

/* ============ 顶部日期条 ============ */
.topbar {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-deep));
  color: #d7e7fb;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.topbar .welcome span { margin-right: 6px; }
.topbar .tools a {
  color: #d7e7fb;
  margin-left: 16px;
  transition: color .2s;
}
.topbar .tools a:hover { color: #fff; }

/* ============ 头部（院徽 + 名称） ============ */
.header {
  background: #fff;
  border-bottom: 3px solid var(--blue);
  padding: 22px 0 18px;
}
.header .container {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header .logo { flex: 0 0 auto; }
.header .logo img {
  width: 86px; height: 86px;
  animation: logoGlow 4s ease-in-out infinite;
}
.header .titles h1 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: 3px;
  line-height: 1.25;
}
.header .titles .sub {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-top: 6px;
}

/* ============ 导航栏 ============ */
.nav {
  background: var(--blue);
  box-shadow: 0 2px 10px rgba(13, 74, 143, .25);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav .container { display: flex; }
.nav a {
  display: block;
  padding: 0 30px;
  height: 52px;
  line-height: 52px;
  color: #fff;
  font-size: 16px;
  font-family: var(--serif);
  letter-spacing: 2px;
  transition: background .2s;
  position: relative;
}
.nav a::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 3px;
  background: var(--cyan-2);
  transform: translateX(-50%);
  transition: width .3s ease;
}
.nav a:hover,
.nav a.active { background: var(--blue-deep); }
.nav a:hover::before,
.nav a.active::before { width: 100%; }

/* ============ Banner ============ */
.banner {
  position: relative;
  height: 440px;
  background: url("../assets/banner-bg.svg") center/cover no-repeat;
  overflow: hidden;
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,46,87,.5) 0%, rgba(10,46,87,.12) 50%, transparent 75%);
}
.banner .grid-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridMove 18s linear infinite;
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.banner .container {
  position: relative;
  height: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.banner .slide {
  display: none;
}
.banner .slide.active {
  display: block;
  animation: slideIn .6s ease;
}
.banner .slogan {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 6px;
  line-height: 1.4;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
  max-width: 800px;
}
.banner .slogan em {
  font-style: normal;
  color: var(--cyan-2);
  text-shadow: 0 0 18px rgba(79,211,224,.55);
}
.banner .desc {
  margin-top: 18px;
  max-width: 640px;
  font-family: var(--serif);
  font-size: 18px;
  color: #d7e7fb;
  letter-spacing: 2px;
  line-height: 1.9;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.banner .dots {
  position: absolute;
  right: 30px;
  bottom: 30px;
  z-index: 4;
  display: flex;
  gap: 10px;
}
.banner .dots i {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: all .25s;
}
.banner .dots i.on { background: var(--cyan-2); width: 30px; border-radius: 6px; }

/* 漂浮光点 */
.particle {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: rgba(120, 220, 240, .55);
  box-shadow: 0 0 12px rgba(120, 220, 240, .6);
  z-index: 2;
  animation: floatUp linear infinite;
}

/* ============ 快速入口 ============ */
.quick { margin-top: 24px; }
.quick .container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.quick a {
  background: #fff;
  border-top: 3px solid var(--blue);
  text-align: center;
  padding: 20px 8px 16px;
  transition: all .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.quick a:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(22,119,210,.18); }
.quick .ico {
  width: 46px; height: 46px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease;
}
.quick a:hover .ico { transform: rotateY(180deg); }
.quick span { font-family: var(--serif); font-size: 16px; color: var(--text); }

/* ============ 通用 section ============ */
.section { margin-top: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  padding: 26px 28px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 96px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width .5s ease;
}
.card:hover .section-title::after { width: 160px; }
.section-title .bar {
  width: 6px; height: 24px;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  border-radius: 2px;
}
.section-title h2 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--blue-deep);
  letter-spacing: 3px;
  font-weight: 700;
}
.section-title .en {
  margin-left: auto;
  font-size: 12px;
  color: #b9c7d3;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============ 双栏：新闻 + 公告 ============ */
.two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.panel-head .t {
  display: flex; align-items: center; gap: 10px;
}
.panel-head .t i {
  width: 5px; height: 18px; background: var(--blue);
  display: inline-block; border-radius: 2px;
}
.panel-head .t h3 {
  font-family: var(--serif);
  font-size: 20px; color: var(--text);
  letter-spacing: 2px; font-weight: 700;
}
.panel-head .more { font-size: 13px; color: var(--text-light); }
.panel-head .more:hover { color: var(--blue); }

.news-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px dashed var(--line);
  transition: background .2s;
}
.news-list li:hover { background: #f4f9ff; }
.news-list li:last-child { border-bottom: none; }
.news-list .date {
  flex: 0 0 auto;
  width: 54px;
  text-align: center;
  background: #eef4fb;
  border: 1px solid #d6e6f7;
  padding: 6px 0;
}
.news-list .date b {
  display: block;
  font-size: 22px; color: var(--blue);
  font-family: var(--serif); line-height: 1;
}
.news-list .date span { font-size: 12px; color: var(--text-light); }
.news-list .txt { flex: 1; }
.news-list .txt a { color: var(--text); font-size: 15.5px; transition: color .2s; }
.news-list .txt a:hover { color: var(--blue); }
.news-list .tag {
  flex: 0 0 auto;
  font-size: 12px;
  color: #fff; background: var(--blue);
  padding: 2px 8px; border-radius: 3px;
}

.notice-list li {
  padding: 9px 2px 9px 18px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}
.notice-list li:last-child { border-bottom: none; }
.notice-list li::before {
  content: "";
  position: absolute; left: 2px; top: 18px;
  width: 7px; height: 7px;
  background: var(--cyan); border-radius: 50%;
}
.notice-list a {
  display: block;
  font-size: 14.5px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .2s;
}
.notice-list a:hover { color: var(--blue); }
.notice-list .hot a { color: var(--blue); font-weight: 600; }
.notice-list .hot::before { background: var(--blue); }

/* ============ 研究院概况 ============ */
.about-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}
.about-text p { text-indent: 2em; margin-bottom: 12px; color: #3d4d5c; }
.about-text p b { color: var(--blue-deep); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-stats .stat {
  background: #eef4fb;
  border: 1px solid #d6e6f7;
  border-left: 4px solid var(--blue);
  padding: 18px 16px;
  text-align: center;
}
.about-stats .stat b {
  display: block;
  font-family: var(--serif);
  font-size: 32px; color: var(--blue); line-height: 1.1;
}
.about-stats .stat span { font-size: 14px; color: var(--text-light); }

/* ============ 组织机构 ============ */
.org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.org-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fbfdff;
  transition: all .25s;
}
.org-item:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 20px rgba(22,119,210,.14);
  transform: translateY(-3px);
}
.org-item .ic {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  color: #fff;
  font-family: var(--serif);
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease;
}
.org-item:hover .ic { transform: scale(1.12); }
.org-item h4 { font-family: var(--serif); font-size: 19px; color: var(--text); letter-spacing: 1px; }
.org-item p { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ============ 领导团队 ============ */
.leaders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.leader {
  text-align: center;
  padding: 22px 14px;
  border: 1px solid var(--line);
  background: #fff;
  transition: all .25s;
}
.leader:hover { border-color: var(--blue); box-shadow: 0 8px 20px rgba(0,0,0,.08); transform: translateY(-3px); }
.leader .avatar {
  width: 88px; height: 88px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6cc6ef, #2f8be8);
  color: #fff;
  font-family: var(--serif);
  font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--cyan);
}
.leader h4 { font-family: var(--serif); font-size: 19px; color: var(--text); }
.leader .role { font-size: 13px; color: var(--blue); margin: 4px 0 8px; }
.leader .duty { font-size: 12.5px; color: var(--text-light); line-height: 1.6; }

/* ============ 重大活动 ============ */
.activity {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--blue-dark), var(--blue-deep) 55%, var(--blue));
  color: #fff;
  padding: 36px 40px;
}
.activity::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,211,224,.25), transparent 70%);
}
.activity .tag-line {
  display: inline-block;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--cyan-2);
  border: 1px solid var(--cyan-2);
  padding: 4px 14px;
  border-radius: 20px;
}
.activity h3 {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: 3px;
  margin: 16px 0 10px;
  line-height: 1.5;
}
.activity p { color: #d7e7fb; max-width: 720px; font-size: 15px; }
.activity .meta { margin-top: 18px; display: flex; gap: 26px; flex-wrap: wrap; }
.activity .meta span { font-size: 14px; color: #d7e7fb; }
.activity .meta b { color: var(--cyan-2); margin-right: 6px; font-weight: 600; }

/* ============ 合作交流 ============ */
.coop-group { margin-bottom: 20px; }
.coop-group:last-child { margin-bottom: 0; }
.coop-group .g-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.coop-group .g-head .badge {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 2px;
  color: #fff;
  padding: 4px 14px;
  border-radius: 3px;
}
.coop-group .g-head .note { font-size: 13px; color: var(--text-light); }
.coop-group:nth-child(1) .badge { background: var(--blue); }
.coop-group:nth-child(2) .badge { background: var(--blue-2); }
.coop-group:nth-child(3) .badge { background: var(--cyan); }
.coop-group:nth-child(4) .badge { background: var(--blue-deep); }
.partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.partner {
  min-height: 62px;
  background: #fbfdff;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 15px;
  color: #4a5f70;
  letter-spacing: 1px;
  padding: 8px 10px;
  line-height: 1.4;
  transition: all .25s;
}
.partner:hover { color: var(--blue); border-color: var(--blue); box-shadow: 0 6px 16px rgba(22,119,210,.14); transform: translateY(-3px); }

/* ============ 页脚 ============ */
.footer {
  margin-top: 30px;
  background: linear-gradient(180deg, var(--blue-deep), var(--blue-dark));
  color: #d7e7fb;
}
.footer .links {
  padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer .links a { color: #d7e7fb; font-size: 14px; }
.footer .links a:hover { color: #fff; }
.footer .links a + a { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.2); }
.footer .bottom { padding: 22px 0 30px; text-align: center; }
.footer .bottom p { font-size: 13px; line-height: 2; color: #bfd4ea; }
.footer .bottom .org { font-family: var(--serif); font-size: 16px; color: #fff; letter-spacing: 2px; margin-bottom: 6px; }
.footer .bottom .beian { color: #9fb8d2; }

/* ============ 回到顶部 ============ */
.back-top {
  position: fixed;
  right: 24px; bottom: 40px;
  width: 46px; height: 46px;
  background: var(--blue);
  color: #fff;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  z-index: 200;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--blue-deep); }

/* ============ 滚动淡入动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

/* ============ 关键帧 ============ */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(22,119,210,0)); }
  50% { filter: drop-shadow(0 0 10px rgba(34,184,207,.45)); }
}
@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}
@keyframes floatUp {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: .8; }
  85% { opacity: .4; }
  100% { transform: translateY(-430px); opacity: 0; }
}

/* ============ 响应式 ============ */
@media (max-width: 1220px) {
  .container { width: 96%; }
}
@media (max-width: 900px) {
  .header .titles h1 { font-size: 28px; }
  .quick .container { grid-template-columns: repeat(3, 1fr); }
  .two-col, .about-wrap { grid-template-columns: 1fr; }
  .org-grid { grid-template-columns: 1fr 1fr; }
  .leaders { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .banner .slogan { font-size: 32px; }
}
