

:root {
  
  --art-pad-x: 11px;
  --art-gap-x: 12px;
  --art-gap-y: 16px;
  
  --art-radius: 6px;
  --art-card-min: 150px;
}

@media (min-width: 700px) {
  :root {
    --art-pad-x: 18px;
    --art-gap-x: 14px;
  }
}

.art {
  max-width: 1400px;      
  margin: 0 auto;
  padding: 0 var(--art-pad-x);
}

.art__hero {
  position: relative;
  
  min-height: 200px;
  margin: 4px 0 0;
  background: var(--xiang);      
  border-radius: var(--art-radius);
  overflow: hidden;
}

.art__hero.is-plain { background: var(--dai-deep); }

.art__heroimg {
  display: block;
  width: 100%;
  height: clamp(230px, 42vh, 470px);
  
  object-fit: contain;
}

.art__heroveil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(to top, rgba(20, 24, 22, .55), rgba(20, 24, 22, 0));
  pointer-events: none;
}

.art__herotxt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px 18px;
  color: #fff;
}

.art__crumb {
  margin: 0 0 7px;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .88);
}
.art__crumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .42);
}
.art__crumb a:hover { border-bottom-color: rgba(255, 255, 255, .92); }

.art__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  
  font-size: clamp(28px, 9vw, 54px);
  letter-spacing: .06em;
  line-height: 1.05;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

.art__meta {
  margin: 8px 0 0;
  font-size: clamp(12px, 3.4vw, 14px);
  letter-spacing: .06em;
  line-height: 1.6;
  color: rgba(255, 255, 255, .93);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

.art__bio { margin: 30px 0 0; }
.art__bio[hidden] { display: none; }

.art__h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  color: var(--ink);
}

.art__lede {
  margin: 13px 0 0;
  font-family: var(--serif);
  font-size: clamp(14px, 3.9vw, 16px);
  line-height: 1.95;
  letter-spacing: .02em;
  color: var(--ink-2);
  
  text-align: justify;
}

.art__facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px 18px;
  margin: 18px 0 0;
  padding: 15px 16px;
  background: var(--paper-2);
  border-radius: var(--art-radius);
}

.art__fact dt {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-3);
}
.art__fact dd {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .03em;
  color: var(--ink);
  word-break: break-word;
}

.art__works { margin: 34px 0 0; }
.art__works[hidden] { display: none; }

.art__worksbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.art__count {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-3);
}

.art__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0 0;
}

.acat {
  appearance: none;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: .06em;
  line-height: 1;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s var(--ease), background .15s var(--ease),
              border-color .15s var(--ease);
}
.acat:hover { border-color: var(--gold); color: var(--gold-deep); }
.acat:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.acat.is-on {
  background: var(--dai);
  border-color: var(--dai);
  color: var(--gold-light);
}

.art__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--art-gap-y) var(--art-gap-x);
  margin: 18px 0 0;
}

@media (min-width: 700px) {
  .art__grid { grid-template-columns: repeat(auto-fill, minmax(var(--art-card-min), 1fr)); }
}

.acard {
  display: block;
  text-decoration: none;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

.acard__box {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;          
  background: var(--xiang);
  border: 0;                    
  border-radius: var(--art-radius);
  overflow: hidden;
  box-shadow: var(--shade-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.acard:hover .acard__box { transform: translateY(-2px); box-shadow: var(--shade-2); }
.acard:active .acard__box { transform: scale(.985); }
.acard:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--art-radius); }

.acard__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.acard.is-empty .acard__box::after {
  content: '暂 无 图 版';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ink-3);
}

.acard__cap { display: block; margin-top: 8px; }

.acard__title {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.35;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.acard__meta {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: .05em;
  line-height: 1.4;
  color: var(--ink-3);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.art__more {
  display: block;
  width: 100%;
  margin: 24px 0 0;
  appearance: none;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 13.5px;
  letter-spacing: .08em;
  padding: 12px;
  border-radius: var(--art-radius);
  cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.art__more:hover { border-color: var(--gold); color: var(--gold-deep); }
.art__more:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.art__more[hidden] { display: none; }

.art__empty {
  margin: 0;
  padding: 30px 0 70px;
  font-size: 14px;
  letter-spacing: .05em;
  line-height: 2.1;
  color: var(--ink-2);
}
.art__empty a { color: var(--gold-deep); }
.art__empty[hidden] { display: none; }
