/* ===== 宝可梦水银百科 主题样式 (52poke 风格) ===== */

/* -- 主题色变量 -- */
:root {
  --azoth-accent: #2a9d8f;          /* 水银青 */
  --azoth-accent-dark: #1d7a6f;
  --azoth-card-bg: rgba(42, 157, 143, .06);
  --azoth-card-border: rgba(42, 157, 143, .25);
}
[data-md-color-scheme="slate"] {
  --azoth-card-bg: rgba(42, 157, 143, .12);
  --azoth-card-border: rgba(42, 157, 143, .4);
}

/* -- 图鉴页头部卡片 -- */
.pk-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: .6rem 0 1.2rem;
  padding: .8rem 1.2rem;
  background: var(--azoth-card-bg);
  border: 1px solid var(--azoth-card-border);
  border-radius: .8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.pk-sprite {
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25));
}

.pk-head-types {
  display: flex;
  gap: .4rem;
}

.pk-type {
  display: inline-block;
  padding: .2rem .9rem;
  border-radius: 1rem;
  color: #fff;
  font-size: .8rem;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2);
}

/* -- 种族值条形图 (官方配色) -- */
.pk-stats {
  max-width: 34rem;
  padding: .8rem 1rem;
  background: var(--azoth-card-bg);
  border: 1px solid var(--azoth-card-border);
  border-radius: .8rem;
}

.pk-stat {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .3rem 0;
}

.pk-stat-name {
  width: 3rem;
  text-align: right;
  font-size: .75rem;
  font-weight: bold;
  opacity: .8;
}

.pk-stat-val {
  width: 2.2rem;
  text-align: right;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}

.pk-bar {
  flex: 1;
  height: .6rem;
  background: rgba(128, 128, 128, .18);
  border-radius: .3rem;
  overflow: hidden;
}

.pk-bar i {
  display: block;
  height: 100%;
  border-radius: .3rem;
  transition: width .3s ease;
}
.pk-bar-hp i  { background: linear-gradient(90deg, #ff5959, #ff8a80); }
.pk-bar-atk i { background: linear-gradient(90deg, #f5ac78, #ffc093); }
.pk-bar-def i { background: linear-gradient(90deg, #fae078, #ffe89b); }
.pk-bar-spa i { background: linear-gradient(90deg, #9db7f5, #b4c9f8); }
.pk-bar-spd i { background: linear-gradient(90deg, #a7db8d, #bde5a7); }
.pk-bar-spe i { background: linear-gradient(90deg, #fa92b2, #ffb0c8); }

.pk-stat-total {
  margin-top: .45rem;
  padding-top: .45rem;
  border-top: 1px dashed var(--azoth-card-border);
}
.pk-stat-total .pk-stat-val {
  color: var(--azoth-accent);
  font-size: .95rem;
}

/* -- 表格美化 -- */
.md-typeset table:not([class]) {
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  border: 1px solid var(--md-default-fg-color--lightest);
}
.md-typeset table:not([class]) th {
  background: var(--azoth-accent);
  color: #fff;
  font-weight: bold;
  border: none;
}
.md-typeset table:not([class]) tbody tr {
  transition: background-color .1s ease;
}
.md-typeset table:not([class]) tbody tr:hover {
  background: var(--azoth-card-bg);
}

/* -- 链接列表 (学习者/持有者) -- */
.pk-learners {
  padding: .8rem 1rem;
  background: var(--azoth-card-bg);
  border: 1px solid var(--azoth-card-border);
  border-radius: .8rem;
  line-height: 2;
}
.pk-learners a {
  display: inline-block;
  padding: 0 .5rem;
  border-radius: .4rem;
  transition: background-color .1s ease;
}
.pk-learners a:hover {
  background: var(--azoth-card-border);
}

/* -- 图标 -- */
.pk-icon {
  vertical-align: middle;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2));
}

/* -- 首页卡片 -- */
.azoth-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .8rem;
  margin: 1rem 0;
}
.azoth-card {
  display: block;
  padding: 1rem 1.2rem;
  background: var(--azoth-card-bg);
  border: 1px solid var(--azoth-card-border);
  border-radius: .8rem;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.azoth-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.azoth-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: .3rem;
  color: var(--azoth-accent);
}
.azoth-card span {
  font-size: .8rem;
  opacity: .8;
}

/* -- HOME 页 -- */
.home-open-mobile {
  display: none;
}

/* -- 配信卡片 -- */
.dist-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  background: var(--azoth-card-bg);
  border: 1px solid var(--azoth-card-border);
  border-radius: .8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.dist-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  flex-shrink: 0;
}
.dist-sprite {
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
}
.dist-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}
.dist-body {
  flex: 1;
}
.dist-body strong {
  font-size: 1.05rem;
}
.dist-meta {
  font-size: .85rem;
  margin: .3rem 0;
  opacity: .9;
}
.dist-moves {
  font-size: .85rem;
  color: var(--azoth-accent);
  margin-bottom: .4rem;
}
.dist-note {
  font-size: .8rem;
  opacity: .7;
  margin-bottom: .5rem;
}
.dist-claim {
  display: inline-block;
  padding: .45rem 2.2rem;
  border-radius: 999px;
  background: #e63946;
  color: #fff !important;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(230, 57, 70, .35);
  transition: transform .12s ease;
}
.dist-claim:hover {
  transform: scale(1.05);
}
.dist-key {
  margin-top: .5rem;
  font-size: .75rem;
}
.dist-key code {
  word-break: break-all;
}
@media (max-width: 720px) {
  .dist-card {
    flex-direction: column;
    text-align: center;
  }
}

/* -- 公告 -- */
.news-meta {
  font-size: .8rem;
  opacity: .7;
  margin: -.4rem 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px dashed var(--azoth-card-border);
}
.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .8rem;
  margin: 1rem 0;
}
.news-gallery figure {
  margin: 0;
  background: var(--azoth-card-bg);
  border: 1px solid var(--azoth-card-border);
  border-radius: .6rem;
  overflow: hidden;
  text-align: center;
}
.news-gallery img {
  display: inline-block;
  max-width: 100%;
  width: auto;
  height: auto;
  image-rendering: pixelated;
}
.news-gallery figcaption {
  font-size: .8rem;
  padding: .4rem;
  opacity: .8;
}
.md-typeset img {
  border-radius: .4rem;
}

/* -- 进化链 (神百风格, 主题色) -- */
.pk-evo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
  padding: 1rem;
  margin: .6rem 0;
  background: var(--azoth-card-bg);
  border: 1px solid var(--azoth-card-border);
  border-radius: .8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.evo-stage-col {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.evo-arrow {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--azoth-accent);
  flex-shrink: 0;
  opacity: .7;
}
.evo-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 112px;
  padding: .55rem .6rem .6rem;
  border-radius: .7rem;
  background: rgba(128, 128, 128, .1);
  border: 1px solid transparent;
}
.evo-member.evo-cur {
  background: var(--azoth-card-bg);
  border-color: var(--azoth-accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.evo-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .3rem;
}
[data-md-color-scheme="slate"] .evo-circle {
  background: rgba(255, 255, 255, .15);
}
.evo-sprite {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}
.evo-cond {
  font-size: .72rem;
  font-weight: bold;
  color: var(--azoth-accent-dark);
  background: var(--azoth-card-bg);
  border: 1px solid var(--azoth-card-border);
  border-radius: .5rem;
  padding: .1rem .5rem;
  margin-bottom: .3rem;
  text-align: center;
  max-width: 19rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.evo-or {
  margin: .3rem 0;
  font-weight: normal;
  opacity: .8;
  border-top: 1px solid var(--azoth-card-border);
}
.evo-form-routes {
  flex-basis: 100%;
  min-width: 0;
  font-size: .75rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.evo-form-routes p {
  margin: .4rem 0;
}
[data-md-color-scheme="slate"] .evo-cond {
  color: #7fd8cb;
}
.evo-stage {
  font-size: .72rem;
  opacity: .65;
}
.evo-name {
  font-weight: bold;
  font-size: .9rem;
  color: var(--azoth-accent) !important;
  background: var(--azoth-card-bg);
  border: 1px solid var(--azoth-card-border);
  border-radius: .5rem;
  padding: 0 .6rem;
  margin: .15rem 0;
}
.evo-types {
  display: flex;
  gap: .25rem;
  margin-top: .15rem;
}
.evo-types .pk-type {
  font-size: .68rem;
  padding: .1rem .55rem;
}
@media (max-width: 720px) {
  .evo-arrow {
    transform: rotate(90deg);
  }
}

/* -- 章节标题 -- */
.md-typeset h2 {
  border-left: .25rem solid var(--azoth-accent);
  padding-left: .6rem;
}
