/* ===== Peptide DB - 复刻样式 ===== */
:root {
  --p-background: #fbfaf7;
  --p-foreground: #1a1a19;
  --p-muted: #6b6b68;
  --p-muted-foreground: #5f5f5b;
  --p-card: #ffffff;
  --p-border: #e8e8e3;
  --p-primary: #0f766e;
  --p-primary-hover: #115e59;
  --p-primary-foreground: #ffffff;
  --p-secondary: #f1f0ed;
  --p-ring: #0f766e;
  --p-badge-fda: #16a34a;
  --p-badge-extensively: #2563eb;
  --p-badge-well: #0ea5e9;
  --p-badge-moderate: #6366f1;
  --p-badge-emerging: #f59e0b;
  --p-badge-limited: #ef4444;
  --p-badge-preclinical: #71717a;
  --p-radius: 16px;
  --p-radius-sm: 8px;
  --p-maxw: 1280px;
}

* { box-sizing: border-box; }

body.pdb {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--p-background);
  color: var(--p-foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Header ===== */
.pdb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--p-background);
  border-bottom: 1px solid var(--p-border);
  backdrop-filter: blur(8px);
}
.pdb-nav {
  max-width: var(--p-maxw);
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) { .pdb-nav { padding: 0 24px; } }
@media (min-width: 1024px) { .pdb-nav { padding: 0 32px; } }

.pdb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}
.pdb-logo img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--p-secondary);
  display: block;
}
.pdb-logo-tagline {
  display: none;
  font-size: 11px;
  font-weight: 400;
  color: var(--p-muted);
  margin-top: 1px;
}
.pdb-logo-text { display: flex; flex-direction: column; }
@media (min-width: 640px) { .pdb-logo-tagline { display: block; } }

.pdb-nav-links {
  display: none;
  align-items: center;
  gap: 6px;
}
@media (min-width: 768px) { .pdb-nav-links { display: flex; } }
.pdb-nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--p-muted-foreground);
  transition: background .15s, color .15s;
}
.pdb-nav-links a:hover,
.pdb-nav-links a.active {
  background: var(--p-secondary);
  color: var(--p-foreground);
}

/* ===== Hero / Page Title ===== */
.pdb-hero {
  max-width: var(--p-maxw);
  margin: 0 auto;
  padding: 48px 16px 24px;
}
@media (min-width: 640px) { .pdb-hero { padding: 48px 24px 24px; } }
@media (min-width: 1024px) { .pdb-hero { padding: 48px 32px 24px; } }

.pdb-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.pdb-hero p {
  margin: 0;
  color: var(--p-muted-foreground);
  font-size: 17px;
  max-width: 560px;
}

/* ===== Filters ===== */
.pdb-filters {
  max-width: var(--p-maxw);
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 640px) { .pdb-filters { padding: 16px 24px; } }
@media (min-width: 1024px) { .pdb-filters { padding: 16px 32px; } }

.pdb-search {
  position: relative;
}
.pdb-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--p-muted);
  pointer-events: none;
}
.pdb-search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  background: var(--p-card);
  font-size: 15px;
  font-family: inherit;
  color: var(--p-foreground);
  transition: border-color .15s, box-shadow .15s;
}
.pdb-search input::placeholder { color: var(--p-muted); }
.pdb-search input:focus {
  outline: none;
  border-color: var(--p-ring);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.pdb-select-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) { .pdb-select-row { grid-template-columns: 1fr 1fr; } }

.pdb-select {
  position: relative;
}
.pdb-select svg.pdb-sel-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--p-muted);
  pointer-events: none;
}
.pdb-select select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 42px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  background: var(--p-card);
  font-size: 15px;
  font-family: inherit;
  color: var(--p-foreground);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.pdb-select select:focus {
  outline: none;
  border-color: var(--p-ring);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.pdb-select::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--p-muted);
  border-bottom: 2px solid var(--p-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.pdb-count {
  max-width: var(--p-maxw);
  margin: 0 auto;
  padding: 8px 16px 16px;
  font-size: 14px;
  color: var(--p-muted-foreground);
}
@media (min-width: 640px) { .pdb-count { padding: 8px 24px 16px; } }
@media (min-width: 1024px) { .pdb-count { padding: 8px 32px 16px; } }

/* ===== Grid ===== */
.pdb-grid-wrap {
  max-width: var(--p-maxw);
  margin: 0 auto;
  padding: 0 16px 64px;
}
@media (min-width: 640px) { .pdb-grid-wrap { padding: 0 24px 64px; } }
@media (min-width: 1024px) { .pdb-grid-wrap { padding: 0 32px 64px; } }

.pdb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .pdb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pdb-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Card ===== */
.pdb-card {
  position: relative;
  display: block;
  border-radius: var(--p-radius);
  border: 1px solid var(--p-border);
  background: var(--p-card);
  padding: 24px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.pdb-card:hover {
  border-color: var(--p-primary);
  box-shadow: 0 8px 30px -10px rgba(15, 118, 110, .18);
}

.pdb-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.pdb-card-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--p-foreground);
  transition: color .15s;
}
.pdb-card:hover .pdb-card-head h3 { color: var(--p-primary); }
.pdb-card-brand {
  color: var(--p-muted-foreground);
  font-weight: 400;
}

.pdb-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--p-border);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.pdb-badge-fda-approved { color: #fff; background: var(--p-badge-fda); border-color: var(--p-badge-fda); }
.pdb-badge-extensively-studied { color: #fff; background: var(--p-badge-extensively); border-color: var(--p-badge-extensively); }
.pdb-badge-well-studied { color: #fff; background: var(--p-badge-well); border-color: var(--p-badge-well); }
.pdb-badge-moderate-research { color: #fff; background: var(--p-badge-moderate); border-color: var(--p-badge-moderate); }
.pdb-badge-emerging { color: #fff; background: var(--p-badge-emerging); border-color: var(--p-badge-emerging); }
.pdb-badge-limited-research,
.pdb-badge-limited { color: #fff; background: var(--p-badge-limited); border-color: var(--p-badge-limited); }
.pdb-badge-preclinical { color: #fff; background: var(--p-badge-preclinical); border-color: var(--p-badge-preclinical); }

.pdb-card-sub {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--p-muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.pdb-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pdb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pdb-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--p-secondary);
  color: var(--p-muted-foreground);
  font-size: 12px;
  font-weight: 500;
}
.pdb-view {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--p-primary);
  opacity: 0;
  transition: opacity .15s;
  flex-shrink: 0;
}
.pdb-view svg { width: 16px; height: 16px; }
.pdb-card:hover .pdb-view { opacity: 1; }

.pdb-empty {
  grid-column: 1 / -1;
  padding: 48px 16px;
  text-align: center;
  color: var(--p-muted-foreground);
  background: var(--p-card);
  border: 1px dashed var(--p-border);
  border-radius: var(--p-radius);
}

/* ===== Detail page ===== */
.pdb-detail {
  max-width: var(--p-maxw);
  margin: 0 auto;
  padding: 28px 20px 64px;
}
@media (min-width: 640px) { .pdb-detail { padding: 40px 24px 64px; } }
@media (min-width: 1024px) { .pdb-detail { padding: 48px 32px 64px; } }

.pdb-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin-bottom: 24px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--p-muted-foreground);
  transition: background .15s, color .15s;
}
.pdb-back:hover { background: var(--p-secondary); color: var(--p-foreground); }
.pdb-back svg { width: 16px; height: 16px; }

.pdb-detail-head {
  margin-bottom: 24px;
}
.pdb-detail-head h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.pdb-detail-head .pdb-detail-brand {
  color: var(--p-muted-foreground);
  font-weight: 400;
}
.pdb-detail-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pdb-detail-section {
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  padding: 28px;
  margin-bottom: 20px;
}
.pdb-detail-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 14px;
}
.pdb-detail-section p {
  color: var(--p-muted-foreground);
  margin: 0;
  line-height: 1.7;
}
.pdb-detail-section dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
}
@media (min-width: 640px) { .pdb-detail-section dl { grid-template-columns: 1fr 1fr; } }
.pdb-detail-section dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--p-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.pdb-detail-section dd {
  margin: 0;
  font-size: 15px;
  color: var(--p-foreground);
}

/* ===== Breadcrumb ===== */
.pdb-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--p-muted);
  margin-bottom: 20px;
}
.pdb-breadcrumb a { color: var(--p-muted-foreground); transition: color .15s; }
.pdb-breadcrumb a:hover { color: var(--p-primary); }
.pdb-bc-sep { opacity: .5; }

/* ===== Quick Stats ===== */
.pdb-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.pdb-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-radius: 12px;
  min-width: 120px;
}
.pdb-stat-label { font-size: 11px; color: var(--p-muted); text-transform: uppercase; letter-spacing: .05em; }
.pdb-stat-val { font-size: 15px; font-weight: 600; }

/* ===== Dosing quick info ===== */
.pdb-quick-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
}
@media (min-width: 640px) { .pdb-quick-info { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pdb-quick-info { grid-template-columns: repeat(4, 1fr); } }
.pdb-qi-label { display: block; font-size: 11px; color: var(--p-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.pdb-qi-val { font-size: 14px; font-weight: 500; }

/* ===== Study count ===== */
.pdb-study-count { font-size: 13px; color: var(--p-muted-foreground); }

/* ===== Detail subtitle ===== */
.pdb-detail-sub { font-size: 17px; color: var(--p-muted-foreground); margin: 8px 0 0; }

/* ===== Key Benefits ===== */
.pdb-benefits { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .pdb-benefits { grid-template-columns: 1fr 1fr; } }
.pdb-benefit { display: flex; align-items: flex-start; gap: 10px; }
.pdb-benefit-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--p-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.pdb-benefit > span:last-child { padding-top: 4px; font-size: 15px; }

/* ===== Molecular Data ===== */
.pdb-mol-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 640px) { .pdb-mol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pdb-mol-grid { grid-template-columns: repeat(4, 1fr); } }
.pdb-mol-card {
  padding: 16px;
  background: var(--p-secondary);
  border-radius: 12px;
}
.pdb-mol-label { font-size: 12px; color: var(--p-muted); margin-bottom: 4px; }
.pdb-mol-val { font-size: 16px; font-weight: 600; }

.pdb-seq-box {
  margin-top: 16px;
  padding: 16px;
  background: var(--p-secondary);
  border-radius: 12px;
}
.pdb-seq-display { display: flex; align-items: center; gap: 8px; }
.pdb-seq-label { font-size: 12px; color: var(--p-muted); flex-shrink: 0; }
.pdb-seq-code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 12px;
  background: var(--p-card);
  border-radius: 8px;
  border: 1px solid var(--p-border);
  word-break: break-all;
}

/* ===== Research Indications ===== */
.pdb-ind-cat { margin-bottom: 20px; }
.pdb-ind-cat:last-child { margin-bottom: 0; }
.pdb-ind-title { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.pdb-ind-item { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--p-border); }
.pdb-ind-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.pdb-ind-name { font-size: 15px; font-weight: 500; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pdb-ind-desc { margin: 0; font-size: 14px; color: var(--p-muted-foreground); line-height: 1.6; }
.pdb-eff { font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 500; }
.pdb-eff-best { background: #dcfce7; color: #16a34a; }
.pdb-eff-good { background: #dbeafe; color: #2563eb; }
.pdb-eff-mid { background: #fef3c7; color: #d97706; }
.pdb-eff-low { background: #fee2e2; color: #dc2626; }

/* ===== Dosing Table ===== */
.pdb-dm-block { margin-bottom: 20px; }
.pdb-dm-block:last-child { margin-bottom: 0; }
.pdb-dm-title { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.pdb-dm-desc { font-size: 14px; color: var(--p-muted-foreground); margin: 0 0 12px; }
.pdb-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 16px; }
.pdb-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--p-border); font-weight: 600; font-size: 13px; color: var(--p-muted); }
.pdb-table td { padding: 10px 12px; border-bottom: 1px solid var(--p-border); }
.pdb-table tr:last-child td { border-bottom: none; }
.pdb-h4 { font-size: 14px; font-weight: 600; margin: 16px 0 8px; }
.pdb-list { margin: 0; padding-left: 20px; font-size: 14px; color: var(--p-muted-foreground); line-height: 1.8; }
.pdb-list li { margin-bottom: 4px; }
.pdb-list-warn li { list-style-type: '⚠ '; }
.pdb-list-danger li { list-style-type: '✕ '; color: #dc2626; }
.pdb-olist { margin: 0; padding-left: 20px; font-size: 14px; color: var(--p-muted-foreground); line-height: 1.8; }

/* ===== Interactions ===== */
.pdb-int-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .pdb-int-grid { grid-template-columns: 1fr 1fr; } }
.pdb-int-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-radius: 12px;
  transition: border-color .15s;
}
.pdb-int-card:hover { border-color: var(--p-primary); }
.pdb-int-sym {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.pdb-syn-syn .pdb-int-sym, .pdb-syn-syn.pdb-int-sym { background: #dcfce7; color: #16a34a; }
.pdb-syn-comp .pdb-int-sym, .pdb-syn-comp.pdb-int-sym { background: #dbeafe; color: #2563eb; }
.pdb-int-body { flex: 1; min-width: 0; }
.pdb-int-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.pdb-int-desc { font-size: 13px; color: var(--p-muted-foreground); line-height: 1.5; }
.pdb-int-type { display: inline-block; margin-top: 4px; font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--p-secondary); color: var(--p-muted); text-transform: capitalize; }

/* ===== Timeline ===== */
.pdb-timeline { display: flex; flex-direction: column; gap: 16px; }
.pdb-tl-item { display: flex; gap: 16px; align-items: flex-start; }
.pdb-tl-when {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--p-primary);
  min-width: 100px;
}
.pdb-tl-what { font-size: 14px; color: var(--p-muted-foreground); }

/* ===== Quality Checklist ===== */
.pdb-qc-block { margin-bottom: 16px; }
.pdb-qc-block:last-child { margin-bottom: 0; }
.pdb-qc-good { color: #16a34a; }
.pdb-qc-warn { color: #d97706; }
.pdb-qc-bad { color: #dc2626; }

/* ===== FAQ ===== */
.pdb-faq {
  border: 1px solid var(--p-border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.pdb-faq summary {
  padding: 14px 16px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}
.pdb-faq summary::-webkit-details-marker { display: none; }
.pdb-faq summary::after { content: '+'; float: right; font-size: 18px; color: var(--p-muted); transition: transform .15s; }
.pdb-faq[open] summary::after { transform: rotate(45deg); }
.pdb-faq p { margin: 0; padding: 0 16px 14px; font-size: 14px; color: var(--p-muted-foreground); line-height: 1.6; }

/* ===== References ===== */
.pdb-ref { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--p-border); }
.pdb-ref:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.pdb-ref-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.pdb-ref-authors { font-size: 13px; color: var(--p-muted); margin-bottom: 4px; }
.pdb-ref-summary { font-size: 14px; color: var(--p-muted-foreground); line-height: 1.6; margin: 0; }

/* ===== Related Peptides ===== */
.pdb-rel-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .pdb-rel-grid { grid-template-columns: 1fr 1fr; } }
.pdb-rel-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-radius: 12px;
  transition: border-color .15s;
}
.pdb-rel-card:hover { border-color: var(--p-primary); }
.pdb-rel-name { font-weight: 600; font-size: 15px; }
.pdb-rel-sym {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
.pdb-rel-syn-syn { background: #dcfce7; color: #16a34a; }
.pdb-rel-syn-comp { background: #dbeafe; color: #2563eb; }
.pdb-rel-desc { font-size: 13px; color: var(--p-muted-foreground); flex: 1; }

/* ===== Dosing info wrap + Accumulation Plotter button ===== */
.pdb-quick-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .pdb-quick-info-wrap { flex-direction: row; align-items: stretch; }
  .pdb-quick-info { flex: 1; margin-bottom: 0; }
  .pdb-calc-link { flex-shrink: 0; width: 200px; }
}
.pdb-calc-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  color: var(--p-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.pdb-calc-link:hover {
  border-color: var(--p-primary);
  box-shadow: 0 4px 16px -6px rgba(15, 118, 110, .2);
}
.pdb-calc-link.is-open {
  border-color: var(--p-primary);
  background: #f0fdfa;
  box-shadow: 0 0 0 1px var(--p-primary);
}
.pdb-calc-link svg { width: 24px; height: 24px; }

.pdb-acc-embed {
  margin: -8px 0 24px;
}
.pdb-acc-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.pdb-acc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--p-muted);
}
.pdb-acc-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--p-border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--p-foreground);
}
.pdb-acc-field input:focus {
  outline: none;
  border-color: var(--p-primary);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}
.pdb-acc-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--p-muted);
  line-height: 1.4;
}

/* ===== Community Research ===== */
.pdb-community {
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
  border-color: #99f6e4;
}
.pdb-community p { margin-bottom: 14px; }
.pdb-comm-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px;
  background: var(--p-primary);
  color: var(--p-primary-foreground);
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: background .15s;
}
.pdb-comm-btn:hover { background: var(--p-primary-hover); }
.pdb-comm-sub { font-size: 12px; font-weight: 400; opacity: .85; }

/* ===== Accumulation Curve ===== */
.pdb-acc-curve {
  background: var(--p-secondary);
  border-radius: 12px;
  padding: 16px;
}
.pdb-acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pdb-acc-title { font-weight: 600; font-size: 15px; }
.pdb-acc-params { font-size: 13px; color: var(--p-muted); font-family: 'Courier New', monospace; }
.pdb-acc-canvas {
  width: 100%;
  height: 240px;
  display: block;
}
@media (min-width: 640px) { .pdb-acc-canvas { height: 280px; } }
.pdb-acc-stats {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}
.pdb-acc-stat-label {
  display: block;
  font-size: 11px;
  color: var(--p-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 2px;
}
.pdb-acc-stat-val { font-size: 15px; font-weight: 600; }

/* ===== Molecular Modifications ===== */
.pdb-mol-mods { margin-top: 16px; padding: 16px; background: var(--p-secondary); border-radius: 12px; }

/* ===== Delivery method not available ===== */
.pdb-dm-na { font-size: 12px; color: var(--p-muted); font-weight: 400; }

/* ===== Latest Research ===== */
.pdb-lr-item {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--p-border);
}
.pdb-lr-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.pdb-lr-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.pdb-lr-title a { color: var(--p-primary); }
.pdb-lr-title a:hover { text-decoration: underline; }
.pdb-lr-meta { font-size: 13px; color: var(--p-muted); margin-bottom: 4px; }
.pdb-lr-summary { font-size: 14px; color: var(--p-muted-foreground); line-height: 1.6; margin: 0; }

/* ===== Pharmacology ===== */
.pdb-pharm-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--p-border);
}
.pdb-pharm-row:last-child { border-bottom: none; }
.pdb-pharm-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--p-muted);
  min-width: 120px;
  flex-shrink: 0;
}
.pdb-pharm-val { font-size: 14px; color: var(--p-foreground); }

/* ===== Disclaimer ===== */
.pdb-disclaimer {
  margin-top: 32px;
  padding: 16px;
  background: var(--p-secondary);
  border-radius: 12px;
  font-size: 13px;
  color: var(--p-muted);
  text-align: center;
}

/* ===== Mobile Optimization (< 640px) ===== */
@media (max-width: 639px) {
  /* --- Global spacing --- */
  .pdb-detail { padding: 20px 14px 48px; }
  .pdb-hero { padding: 32px 14px 16px; }
  .pdb-hero h1 { font-size: 28px; }
  .pdb-hero p { font-size: 15px; }
  .pdb-filters { padding: 12px 14px; gap: 10px; }
  .pdb-grid-wrap { padding: 0 14px 48px; }
  .pdb-grid { gap: 16px; }
  .pdb-count { padding: 4px 14px 12px; }

  /* --- Header / Nav --- */
  .pdb-nav { height: 56px; padding: 0 14px; }
  .pdb-logo { font-size: 15px; gap: 8px; }
  .pdb-logo img { width: 32px; height: 32px; border-radius: 10px; }

  /* --- Cards (list page) --- */
  .pdb-card { padding: 18px; border-radius: 14px; }
  .pdb-card-head h3 { font-size: 17px; }
  .pdb-card-sub { font-size: 13px; min-height: 40px; }
  .pdb-badge { font-size: 11px; padding: 3px 8px; }
  .pdb-tag { font-size: 11px; padding: 2px 7px; }
  .pdb-view { opacity: 1; } /* 始终显示，移动端无 hover */

  /* --- Detail: Breadcrumb --- */
  .pdb-breadcrumb { font-size: 12px; margin-bottom: 16px; flex-wrap: wrap; gap: 4px; }

  /* --- Detail: Head --- */
  .pdb-detail-head { margin-bottom: 20px; }
  .pdb-detail-head h1 { font-size: 26px; margin: 0 0 8px; }
  .pdb-detail-sub { font-size: 15px; }
  .pdb-detail-head-row { gap: 8px; margin-bottom: 10px; }

  /* --- Detail: Section --- */
  .pdb-detail-section { padding: 18px 18px; border-radius: 14px; margin-bottom: 14px; }
  .pdb-detail-section h2 { font-size: 18px; margin: 0 0 12px; }
  .pdb-detail-section p { font-size: 14px; line-height: 1.65; }

  /* --- Quick Stats --- */
  .pdb-stats { gap: 8px; margin-bottom: 16px; }
  .pdb-stat { padding: 10px 14px; border-radius: 10px; min-width: 0; flex: 1 1 calc(33.333% - 8px); }
  .pdb-stat-label { font-size: 10px; }
  .pdb-stat-val { font-size: 14px; }

  /* --- Dosing quick info + Calculator --- */
  .pdb-quick-info-wrap { gap: 10px; margin-bottom: 16px; }
  .pdb-quick-info { padding: 16px; gap: 14px; margin-bottom: 0; border-radius: 14px; }
  .pdb-qi-label { font-size: 10px; }
  .pdb-qi-val { font-size: 13px; }
  .pdb-calc-link {
    flex-direction: row;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    width: 100%;
  }
  .pdb-calc-link svg { width: 20px; height: 20px; }
  .pdb-calc-link span { font-size: 14px; }
  .pdb-acc-embed { margin: -4px 0 16px; }
  .pdb-acc-controls { grid-template-columns: 1fr; gap: 8px; }
  .pdb-acc-canvas { height: 220px; }

  /* --- Community Research --- */
  .pdb-community p { font-size: 14px; margin-bottom: 12px; }
  .pdb-comm-btn { width: 100%; align-items: center; padding: 14px; }

  /* --- Key Benefits --- */
  .pdb-benefits { gap: 10px; }
  .pdb-benefit { gap: 8px; }
  .pdb-benefit-num { width: 24px; height: 24px; font-size: 11px; border-radius: 7px; }
  .pdb-benefit > span:last-child { font-size: 14px; padding-top: 2px; line-height: 1.5; }

  /* --- Molecular Data --- */
  .pdb-mol-grid { gap: 8px; margin-bottom: 12px; }
  .pdb-mol-card { padding: 12px 14px; border-radius: 10px; }
  .pdb-mol-label { font-size: 11px; }
  .pdb-mol-val { font-size: 14px; }
  .pdb-seq-box { padding: 12px 14px; border-radius: 10px; margin-top: 12px; }
  .pdb-seq-code { font-size: 13px; letter-spacing: 1px; padding: 5px 10px; word-break: break-all; }
  .pdb-seq-label { font-size: 11px; }
  .pdb-mol-mods { padding: 12px 14px; border-radius: 10px; margin-top: 12px; }

  /* --- Accumulation Curve --- */
  .pdb-acc-curve { padding: 12px 14px; border-radius: 10px; }
  .pdb-acc-header { margin-bottom: 8px; flex-wrap: wrap; gap: 4px; }
  .pdb-acc-title { font-size: 14px; }
  .pdb-acc-params { font-size: 12px; }
  .pdb-acc-canvas { height: 180px; }
  .pdb-acc-stats { gap: 16px; margin-top: 8px; }
  .pdb-acc-stat-label { font-size: 10px; }
  .pdb-acc-stat-val { font-size: 14px; }

  /* --- Research Indications --- */
  .pdb-ind-cat { margin-bottom: 16px; }
  .pdb-ind-title { font-size: 15px; margin: 0 0 8px; }
  .pdb-ind-item { margin-bottom: 10px; padding-bottom: 10px; }
  .pdb-ind-name { font-size: 14px; gap: 6px; }
  .pdb-ind-desc { font-size: 13px; line-height: 1.55; }
  .pdb-eff { font-size: 10px; padding: 2px 6px; }

  /* --- Dosing Table → Card layout on mobile --- */
  .pdb-dm-block { margin-bottom: 16px; }
  .pdb-dm-title { font-size: 15px; }
  .pdb-dm-desc { font-size: 13px; line-height: 1.55; }
  .pdb-table {
    display: block;
    border: none;
    margin-bottom: 12px;
  }
  .pdb-table thead { display: none; }
  .pdb-table tbody, .pdb-table tr, .pdb-table td { display: block; width: 100%; }
  .pdb-table tr {
    background: var(--p-secondary);
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 8px 0;
    border: 1px solid var(--p-border);
  }
  .pdb-table td {
    padding: 6px 14px;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
  }
  .pdb-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--p-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    flex-shrink: 0;
    min-width: 60px;
  }
  .pdb-table td:not(:first-child)::before { display: inline; }
  .pdb-table td:first-child {
    font-weight: 600;
    font-size: 14px;
    color: var(--p-foreground);
    padding-bottom: 4px;
  }
  .pdb-table td:first-child::before { display: none; }
  .pdb-h4 { font-size: 13px; margin: 14px 0 6px; }
  .pdb-list { font-size: 13px; padding-left: 18px; line-height: 1.7; }
  .pdb-olist { font-size: 13px; padding-left: 18px; line-height: 1.7; }

  /* --- Interactions --- */
  .pdb-int-grid { gap: 8px; }
  .pdb-int-card { padding: 12px 14px; gap: 10px; border-radius: 10px; }
  .pdb-int-sym { width: 28px; height: 28px; font-size: 13px; border-radius: 7px; }
  .pdb-int-name { font-size: 14px; }
  .pdb-int-desc { font-size: 12px; line-height: 1.45; }
  .pdb-int-type { font-size: 10px; padding: 2px 6px; }

  /* --- Timeline → vertical on mobile --- */
  .pdb-timeline { gap: 12px; }
  .pdb-tl-item { flex-direction: column; gap: 4px; }
  .pdb-tl-when { min-width: 0; font-size: 13px; }
  .pdb-tl-what { font-size: 13px; line-height: 1.55; }

  /* --- Quality Checklist --- */
  .pdb-qc-block { margin-bottom: 12px; }
  .pdb-qc-block .pdb-list { font-size: 13px; }

  /* --- FAQ --- */
  .pdb-faq { border-radius: 10px; margin-bottom: 6px; }
  .pdb-faq summary { padding: 12px 14px; font-size: 14px; line-height: 1.4; }
  .pdb-faq summary::after { font-size: 16px; }
  .pdb-faq p { padding: 0 14px 12px; font-size: 13px; line-height: 1.55; }

  /* --- Latest Research --- */
  .pdb-lr-item { margin-bottom: 12px; padding-bottom: 12px; }
  .pdb-lr-title { font-size: 14px; }
  .pdb-lr-meta { font-size: 12px; }
  .pdb-lr-summary { font-size: 13px; line-height: 1.55; }

  /* --- Pharmacology → stacked on mobile --- */
  .pdb-pharm-row { flex-direction: column; gap: 4px; padding: 8px 0; }
  .pdb-pharm-label { min-width: 0; font-size: 11px; }
  .pdb-pharm-val { font-size: 13px; line-height: 1.5; }

  /* --- References --- */
  .pdb-ref { margin-bottom: 12px; padding-bottom: 12px; }
  .pdb-ref-title { font-size: 14px; }
  .pdb-ref-authors { font-size: 12px; }
  .pdb-ref-summary { font-size: 13px; line-height: 1.55; }

  /* --- Related Peptides --- */
  .pdb-rel-grid { gap: 8px; }
  .pdb-rel-card { padding: 12px 14px; gap: 8px; border-radius: 10px; flex-wrap: wrap; }
  .pdb-rel-name { font-size: 14px; }
  .pdb-rel-sym { width: 24px; height: 24px; font-size: 12px; border-radius: 7px; }
  .pdb-rel-desc { font-size: 12px; line-height: 1.45; flex-basis: 100%; }

  /* --- Back link --- */
  .pdb-back { padding: 6px 10px; margin-bottom: 16px; font-size: 13px; }

  /* --- Disclaimer --- */
  .pdb-disclaimer { margin-top: 24px; padding: 14px; font-size: 12px; border-radius: 10px; }

  /* --- Search / Select --- */
  .pdb-search input { height: 44px; font-size: 15px; }
  .pdb-select select { height: 44px; font-size: 15px; }
}

/* ===== Extra small phones (< 380px) ===== */
@media (max-width: 379px) {
  .pdb-detail-head h1 { font-size: 22px; }
  .pdb-hero h1 { font-size: 24px; }
  .pdb-stat { flex: 1 1 100%; }
  .pdb-quick-info { grid-template-columns: 1fr; }
}
