/* Shared detail-page template extracted from stories/2023_10_18_large_breast_tumor_resection/index.html. */
:root {
  --font-sans: "Avenir Next", "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --brand: #0f3b66;
  --accent: #eef6ff;
  --shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  --maxw: 1320px;
  --radius: 20px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
  color: var(--text);
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid var(--line);
}
.container { width: min(var(--maxw), calc(100% - 28px)); margin: 0 auto; }
.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-title {
  font-weight: 760;
  font-size: .98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.back-link {
  font-size: .9rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
}
.hero { padding: 30px 0 16px; }
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}
h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.5vw, 38px);
  line-height: 1.16;
  letter-spacing: -.02em;
}
.meta {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 12px;
}
.summary {
  margin: 0;
  color: #334155;
  font-size: 1.03rem;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 14px 16px;
}
.hero-banner {
  width: 100%;
  margin: 12px 0 0;
  border-radius: 16px;
  border: 1px solid #dbe7f5;
  object-fit: contain;
  background: #f1f5f9;
  height: auto;
  max-height: 560px;
}
.article-wrap { padding: 14px 0 44px; }
.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  padding: clamp(12px, 2vw, 20px);
}
.article-body { padding: 4px; }
.article-body p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.9;
  color: #1e293b;
  text-align: justify;
}
.article-section {
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}
.article-section:last-child { border-bottom: 0; }
.article-image {
  width: 100%;
  display: block;
  margin: 10px 0 14px;
  border-radius: 10px;
  border: 1px solid #dbeafe;
  object-fit: contain;
  background: #fff;
}
@media (max-width: 720px) {
  .brand-title { display: none; }
  .header-inner { height: 62px; }
  .summary { font-size: .97rem; }
  .article-body p { font-size: .97rem; }
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 40px;
  white-space: nowrap;
}

.lang-btn.active {
  background: #0f172a;
  color: #fff;
}


