/* news_medicalmint - 医疗薄荷蓝绿风 - style.css */

:root {
  --mdm-mint: #3bc9a8;
  --mdm-mint-dark: #2ba98c;
  --mdm-mint-light: #e6f9f4;
  --mdm-blue: #4d96d9;
  --mdm-blue-dark: #3a7bc0;
  --mdm-blue-light: #eaf3fc;
  --mdm-bg: #f5fbfa;
  --mdm-surface: #ffffff;
  --mdm-text: #1e3330;
  --mdm-text-soft: #4d6663;
  --mdm-text-mute: #7d9793;
  --mdm-border: #dcf0ec;
  --mdm-shadow: 0 6px 20px rgba(59, 201, 168, 0.12);
  --mdm-radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.mdm-body {
  margin: 0;
  padding: 0;
  background: var(--mdm-bg);
  color: var(--mdm-text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- topline ---------- */
.mdm-topline {
  height: 4px;
  background: linear-gradient(90deg, var(--mdm-mint) 0%, var(--mdm-blue) 100%);
}

/* ---------- header ---------- */
.mdm-header {
  background: var(--mdm-surface);
  border-bottom: 1px solid var(--mdm-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(30, 51, 48, 0.05);
}

.mdm-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.mdm-brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.mdm-brand-logo {
  height: 44px;
  width: auto;
}

.mdm-nav {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

.mdm-nav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mdm-pill {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mdm-text-soft);
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mdm-pill:hover {
  background: var(--mdm-mint-light);
  color: var(--mdm-mint-dark);
  border-color: var(--mdm-mint);
}

.mdm-pill-active,
.mdm-pill-active:hover {
  background: linear-gradient(90deg, var(--mdm-mint) 0%, var(--mdm-blue) 100%);
  color: #ffffff;
  border-color: transparent;
}

.mdm-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: var(--mdm-mint-light);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.mdm-burger span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--mdm-mint-dark);
  border-radius: 2px;
}

.mdm-nav-mobile {
  display: none;
}

/* ---------- shell layout (right sticky sidebar) ---------- */
.mdm-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.mdm-main {
  flex: 1;
  min-width: 0;
}

.mdm-aside {
  width: 300px;
  flex-shrink: 0;
}

.mdm-aside-inner {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- hero ---------- */
.mdm-hero {
  background: linear-gradient(135deg, var(--mdm-mint-light) 0%, var(--mdm-blue-light) 100%);
  border-radius: var(--mdm-radius);
  padding: 36px 32px;
  margin-bottom: 32px;
}

.mdm-hero-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: var(--mdm-mint-dark);
  background: linear-gradient(90deg, var(--mdm-mint-dark) 0%, var(--mdm-blue-dark) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mdm-hero-sub {
  margin: 0;
  color: var(--mdm-text-soft);
  font-size: 15px;
  max-width: 640px;
}

/* ---------- section head ---------- */
.mdm-section {
  margin-bottom: 36px;
}

.mdm-section-head {
  margin-bottom: 16px;
}

.mdm-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--mdm-text);
  margin: 0;
}

.mdm-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mdm-mint);
  flex-shrink: 0;
}

.mdm-badge-dot-blue {
  background: var(--mdm-blue);
}

/* ---------- three-column card grid ---------- */
.mdm-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 20px;
}

.mdm-card {
  position: relative;
  background: var(--mdm-surface);
  border: 1px solid var(--mdm-border);
  border-radius: var(--mdm-radius);
  padding: 22px 18px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mdm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mdm-shadow);
  border-color: var(--mdm-mint);
}

.mdm-card-badge {
  position: absolute;
  top: -14px;
  left: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mdm-mint);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(59, 201, 168, 0.35);
}

.mdm-card-badge-blue {
  background: var(--mdm-blue);
  box-shadow: 0 4px 10px rgba(77, 150, 217, 0.35);
}

.mdm-card-link {
  display: block;
  margin-top: 10px;
}

.mdm-card-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--mdm-text);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mdm-card:hover .mdm-card-title {
  color: var(--mdm-mint-dark);
}

.mdm-card-info {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--mdm-text-mute);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mdm-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mdm-text-mute);
  border-top: 1px dashed var(--mdm-border);
  padding-top: 10px;
}

/* ---------- category chip row ---------- */
.mdm-cate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mdm-cate-chip {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--mdm-blue-light);
  color: var(--mdm-blue-dark);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mdm-cate-chip:hover {
  background: var(--mdm-blue);
  color: #ffffff;
  border-color: var(--mdm-blue-dark);
}

/* ---------- aside panels ---------- */
.mdm-panel {
  background: var(--mdm-surface);
  border: 1px solid var(--mdm-border);
  border-radius: var(--mdm-radius);
  padding: 18px;
}

.mdm-panel-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--mdm-text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mdm-mint-light);
}

.mdm-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--mdm-border);
}

.mdm-panel-list li:last-child {
  border-bottom: none;
}

.mdm-panel-list li a {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--mdm-text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.mdm-panel-list li a:hover {
  color: var(--mdm-mint-dark);
}

.mdm-panel-list-plain li {
  display: block;
  border-bottom: none;
  padding: 6px 0;
}

.mdm-panel-list-plain li a {
  display: block;
  white-space: normal;
}

.mdm-record-bar {
  display: inline-block;
  width: 5px;
  height: 16px;
  border-radius: 4px;
  background: var(--mdm-mint);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---------- breadcrumb ---------- */
.mdm-breadcrumb {
  font-size: 13px;
  color: var(--mdm-text-mute);
  margin-bottom: 18px;
}

.mdm-breadcrumb a {
  color: var(--mdm-mint-dark);
  transition: opacity 0.2s ease;
}

.mdm-breadcrumb a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.mdm-breadcrumb-sep {
  margin: 0 6px;
  color: var(--mdm-text-mute);
}

.mdm-breadcrumb-cur {
  color: var(--mdm-text-soft);
  font-weight: 600;
}

/* ---------- list page: record rows with colored bar ---------- */
.mdm-record-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--mdm-surface);
  border: 1px solid var(--mdm-border);
  border-radius: var(--mdm-radius);
  overflow: hidden;
}

.mdm-record-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--mdm-border);
  transition: background 0.2s ease;
}

.mdm-record-row:last-child {
  border-bottom: none;
}

.mdm-record-row:hover {
  background: var(--mdm-mint-light);
}

.mdm-record-row .mdm-record-bar {
  height: 30px;
  margin-top: 0;
}

.mdm-record-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--mdm-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mdm-record-row:hover .mdm-record-title {
  color: var(--mdm-mint-dark);
}

.mdm-record-info {
  flex: 2;
  min-width: 0;
  font-size: 13px;
  color: var(--mdm-text-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mdm-record-date,
.mdm-record-hits {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--mdm-text-mute);
  width: 100px;
  text-align: right;
}

/* ---------- pagination ---------- */
.mdm-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.mdm-page-link {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mdm-surface);
  border: 1px solid var(--mdm-border);
  font-size: 13px;
  color: var(--mdm-text-soft);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mdm-page-link:hover {
  background: var(--mdm-mint);
  color: #ffffff;
  border-color: var(--mdm-mint-dark);
}

/* ---------- article (show page) ---------- */
.mdm-article {
  background: var(--mdm-surface);
  border: 1px solid var(--mdm-border);
  border-radius: var(--mdm-radius);
  padding: 28px 30px;
  margin-bottom: 20px;
}

.mdm-article-head {
  border-bottom: 1px dashed var(--mdm-border);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.mdm-article-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--mdm-text);
  line-height: 1.6;
}

.mdm-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--mdm-text-mute);
}

.mdm-article-source {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--mdm-blue-light);
  color: var(--mdm-blue-dark);
  font-weight: 600;
}

.mdm-article-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--mdm-text);
}

.mdm-article-body img {
  border-radius: 12px;
  margin: 14px 0;
}

.mdm-article-body p {
  margin: 0 0 16px;
}

/* ---------- prev/next article nav ---------- */
.mdm-article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.mdm-article-nav-prev,
.mdm-article-nav-next {
  min-width: 0;
  background: var(--mdm-surface);
  border: 1px solid var(--mdm-border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mdm-article-nav-prev:hover,
.mdm-article-nav-next:hover {
  border-color: var(--mdm-mint);
  background: var(--mdm-mint-light);
}

.mdm-article-nav-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: var(--mdm-mint);
  border-radius: 999px;
  padding: 3px 12px;
}

.mdm-article-nav-next .mdm-article-nav-label {
  background: var(--mdm-blue);
}

.mdm-article-nav-prev a,
.mdm-article-nav-next a {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--mdm-text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mdm-article-nav-prev a:hover,
.mdm-article-nav-next a:hover {
  color: var(--mdm-mint-dark);
}

/* ---------- footer ---------- */
.mdm-footer {
  background: linear-gradient(180deg, var(--mdm-surface) 0%, var(--mdm-mint-light) 100%);
  border-top: 1px solid var(--mdm-border);
  margin-top: 32px;
}

.mdm-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.mdm-footer-brand {
  min-width: 0;
}

.mdm-footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 12px;
}

.mdm-footer-desc {
  font-size: 13px;
  color: var(--mdm-text-mute);
  line-height: 1.8;
  margin: 0;
}

.mdm-footer-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mdm-text);
}

.mdm-footer-list li {
  padding: 5px 0;
}

.mdm-footer-list li a {
  font-size: 13px;
  color: var(--mdm-text-soft);
  transition: color 0.2s ease;
}

.mdm-footer-list li a:hover {
  color: var(--mdm-mint-dark);
  text-decoration: underline;
}

.mdm-copyright {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px dashed var(--mdm-border);
  font-size: 12.5px;
  color: var(--mdm-text-mute);
  text-align: center;
}

.mdm-copyright p {
  margin: 4px 0;
}

/* ---------- responsive breakpoints ---------- */
@media (max-width: 1024px) {
  .mdm-grid3 {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .mdm-shell {
    gap: 24px;
  }

  .mdm-aside {
    width: 260px;
  }

  .mdm-footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .mdm-footer-col:last-child {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .mdm-nav {
    display: none;
  }

  .mdm-burger {
    display: flex;
    margin-left: auto;
  }

  .mdm-nav-mobile.mdm-nav-open {
    display: block;
    padding: 0 20px 14px;
  }

  .mdm-nav-pills-mobile {
    flex-direction: column;
    align-items: stretch;
  }

  .mdm-nav-pills-mobile .mdm-pill {
    text-align: center;
  }

  .mdm-shell {
    flex-direction: column;
  }

  .mdm-aside {
    width: 100%;
  }

  .mdm-aside-inner {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .mdm-aside-inner .mdm-panel {
    flex: 1 1 260px;
    min-width: 0;
  }

  .mdm-grid3 {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .mdm-article-nav {
    grid-template-columns: 1fr;
  }

  .mdm-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .mdm-footer-col:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .mdm-header-inner {
    padding: 12px 16px;
  }

  .mdm-shell {
    padding: 20px 16px 32px;
  }

  .mdm-hero {
    padding: 26px 20px;
  }

  .mdm-grid3 {
    grid-template-columns: 1fr;
  }

  .mdm-aside-inner {
    flex-direction: column;
  }

  .mdm-record-row {
    flex-wrap: wrap;
  }

  .mdm-record-info {
    display: none;
  }

  .mdm-record-date,
  .mdm-record-hits {
    width: auto;
  }

  .mdm-footer-inner {
    grid-template-columns: 1fr;
  }

  .mdm-footer-col:last-child {
    grid-column: span 1;
  }
}
