/* 药联众医药资讯 - 首页样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1e293b;
  background: #f1f5f9;
  line-height: 1.6;
}
a {
  color: #1d4ed8;
  text-decoration: none;
}
a:hover {
  color: #1e40af;
}
img {
  max-width: 100%;
  display: block;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}
.topbar .inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #1e3a8a;
}
.logo .mini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  font-size: 18px;
}
.nav {
  flex: 1;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.nav-item {
  color: #334155;
  font-size: 15px;
  font-weight: 500;
}
.nav-item.active,
.nav-item:hover {
  color: #1d4ed8;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.search-box input {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  width: 200px;
  font-size: 14px;
  outline: none;
}
.search-box button {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
  font-size: 14px;
}
.login-btn {
  border: 1px solid #1d4ed8;
  color: #1d4ed8;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
}
#page {
  z-index: 1;
  position: relative;
}
.main-wrap {
  padding: 24px 0 0;
}
.hero {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.hero-main {
  position: relative;
  flex: 0 0 70%;
  border-radius: 8px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.15));
}
.hero-text {
  position: relative;
  z-index: 2;
  padding: 28px;
  color: #fff;
  width: 100%;
}
.hero-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-title a {
  color: #fff;
}
.hero-summary {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}
.hero-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.hero-empty {
  color: #94a3b8;
  align-items: center;
  justify-content: center;
}
.hero-side {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  flex: 1;
}
.side-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 6px;
}
.side-title a {
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-title a:hover {
  color: #1d4ed8;
}
.side-date {
  font-size: 12px;
  color: #94a3b8;
}
.section {
  margin-bottom: 32px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-left: 4px solid #1d4ed8;
  padding-left: 12px;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}
.section-more {
  font-size: 13px;
  color: #64748b;
}
.hot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hot-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.hot-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
}
.hot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hot-title {
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-title a {
  color: #1e293b;
  line-height: 1.5;
}
.hot-title a:hover {
  color: #1d4ed8;
}
.columns {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.main-col {
  flex: 0 0 75%;
}
.article-list {
  background: #fff;
  border-radius: 8px;
  padding: 0 20px;
}
.article-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #f1f5f9;
}
.article-item:last-child {
  border-bottom: none;
}
.article-thumb {
  flex: 0 0 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
}
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-body {
  flex: 1;
}
.article-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.article-title a {
  color: #0f172a;
}
.article-title a:hover {
  color: #1d4ed8;
}
.article-excerpt {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  gap: 12px;
}
.meta-cat {
  color: #1d4ed8;
}
.sidebar {
  flex: 0 0 25%;
}
.panel {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 20px;
}
.panel-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid #1d4ed8;
  color: #0f172a;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
}
.rank-num {
  font-weight: 700;
  font-family: monospace;
  font-size: 13px;
}
.rank-hot {
  color: #ef4444;
}
.rank-normal {
  color: #94a3b8;
}
.rank-item a {
  color: #334155;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank-item a:hover {
  color: #1d4ed8;
}
.rank-empty {
  font-size: 14px;
  color: #94a3b8;
  padding: 8px 0;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  background: #eef2ff;
  color: #4338ca;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
}
footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: 20px;
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.footer-col h4 {
  color: #e2e8f0;
  font-size: 15px;
  margin-bottom: 10px;
}
.footer-col p {
  font-size: 13px;
  margin-bottom: 4px;
}
.copyright {
  text-align: center;
  font-size: 13px;
  border-top: 1px solid #1e293b;
  padding-top: 16px;
}
.copyright a {
  color: #94a3b8;
}
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .search-box input {
    width: 120px;
  }
  .container {
    padding: 0 16px;
  }
  .hero {
    flex-direction: column;
  }
  .hero-main {
    min-height: 220px;
  }
  .hero-side {
    flex-direction: row;
  }
  .hot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .columns {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}