:root {
  --theme-primary: #ffb347;
  --theme-primary-light: #ffe5b4;
  --theme-primary-dark: #e99a2e;
  --theme-accent: #ff6b35;
  --theme-warm-bg: #fff7ed;
  --theme-warm-border: #ffe5b4;
  --theme-warm-text: #d97706;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
  background: #f5f6f8;
  line-height: 1.7;
}

a {
  color: var(--theme-primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--theme-primary) 0%, var(--theme-primary-light) 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(233, 154, 46, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.brand-text h1 {
  font-size: 20px;
  color: #1a1a1a;
}

.brand-text p {
  font-size: 12px;
  color: #888;
}

.hotline {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

.hotline strong {
  color: var(--theme-accent);
  font-size: 16px;
}

.hotline a {
  color: var(--theme-accent);
  text-decoration: none;
}

.hotline a:hover {
  text-decoration: underline;
}

.site-nav {
  background: linear-gradient(90deg, var(--theme-primary) 0%, #ffc870 100%);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.site-nav a {
  display: block;
  padding: 14px 22px;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 107, 53, 0.22);
  text-decoration: none;
}

.hero {
  background: linear-gradient(180deg, var(--theme-primary-light) 0%, #fff 55%);
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--theme-warm-border);
}

.hero h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.hero p {
  color: #666;
  max-width: 760px;
}

.notice-bar {
  background: var(--theme-warm-bg);
  border: 1px solid var(--theme-warm-border);
  color: var(--theme-warm-text);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 20px 0 0;
  font-size: 14px;
}

.section {
  padding: 36px 0;
}

.section-title {
  font-size: 22px;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--theme-primary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-2px);
}

.card-img {
  height: 150px;
  background: linear-gradient(135deg, var(--theme-warm-bg), var(--theme-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-warm-text);
  font-size: 14px;
}

.card-img.card-icon {
  background: linear-gradient(180deg, var(--theme-primary-light) 0%, var(--theme-warm-bg) 100%);
  color: var(--theme-primary);
}

.card-img.card-icon svg {
  width: 56px;
  height: 56px;
  opacity: 0.85;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 13px;
  color: #777;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--theme-warm-bg);
  border: 1px solid var(--theme-warm-border);
  color: var(--theme-warm-text);
  margin-right: 6px;
}

.article-list .article-item {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.article-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.article-item .meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.article-item p {
  font-size: 14px;
  color: #555;
}

.content-page {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.content-page h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.content-page h3 {
  font-size: 18px;
  margin: 24px 0 10px;
  color: #333;
}

.content-page p,
.content-page li {
  font-size: 15px;
  color: #555;
  margin-bottom: 10px;
}

.content-page ul {
  padding-left: 22px;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.product-table th,
.product-table td {
  border: 1px solid #eee;
  padding: 12px 14px;
  text-align: left;
}

.product-table th {
  background: #fafafa;
}

/* 药械展示页 */
.product-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
  padding: 14px 16px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #eee;
}

.product-nav a {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--theme-warm-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--theme-warm-text);
  text-decoration: none;
}

.product-nav a:hover {
  background: var(--theme-warm-bg);
  border-color: var(--theme-primary);
  color: var(--theme-primary-dark);
  text-decoration: none;
}

.product-block {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid #f0f0f0;
  scroll-margin-top: 100px;
}

.product-block:first-of-type {
  margin-top: 28px;
}

.product-block h2 {
  font-size: 22px;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.product-block .sub {
  font-size: 13px;
  color: #999;
  margin-bottom: 18px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 20px;
}

.info-table th,
.info-table td {
  border: 1px solid #eee;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 160px;
  background: #fafafa;
  color: #555;
  font-weight: 600;
}

.product-media,
.cert-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 8px;
}

.product-media figure,
.cert-gallery figure {
  flex: 1 1 280px;
  max-width: 100%;
  margin: 0;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.product-media img,
.cert-gallery img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: #fff;
}

.product-media figcaption,
.cert-gallery figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: #888;
  text-align: center;
  border-top: 1px solid #eee;
}

.card-img.has-img {
  padding: 0;
  height: 150px;
  background: #f5f5f5;
  overflow: hidden;
}

.card-img.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  background: #2b2b2b;
  color: #bbb;
  padding: 32px 0 24px;
  margin-top: 40px;
  font-size: 13px;
}

.site-footer a {
  color: #ddd;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.footer-copy {
  color: #888;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .site-nav a {
    padding: 12px 14px;
    font-size: 14px;
  }

  .content-page {
    padding: 20px 16px;
  }

  .info-table th {
    width: 110px;
    font-size: 13px;
  }

  .product-nav a {
    font-size: 12px;
    padding: 5px 10px;
  }
}
