/* 常用颜色、字号和圆角。下方各区块可单独调整布局。 */
:root {
  --page-text: #2c3e50;
  --page-background: #f7f8fa;
  --home-background: linear-gradient(180deg, #5b5b5b, #767676);
  --footer-background: #767676;
  --panel-background: #fff;
  --panel-border: #fff;
  --section-heading: linear-gradient(175deg, #232323 10%, #dcd9d9 99%);
  --section-heading-text: #fff;
  --panel-radius: 20px;
  --section-heading-size: 1.4em;
  --card-text-size: .8em;
  --card-picture-size: 80px;
  --card-picture-radius: 40px;
  --footer-text: #ebebeb;
  --panel-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

html {
  background: var(--page-background);
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica,
    "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--page-text);
}

[hidden] {
  display: none !important;
}

a:focus-visible {
  outline: 2px solid #327eea;
  outline-offset: 2px;
}

.full-width-image {
  display: block;
  width: 100%;
}

/* 首页卡片 */
.catalog {
  padding-bottom: 5px;
  background: var(--home-background);
}

.section-panel {
  width: 90vw;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 3px solid var(--panel-border);
  border-radius: var(--panel-radius);
  box-shadow: var(--panel-shadow);
}

.section-title {
  display: grid;
  min-height: 55px;
  margin: 0;
  place-items: center;
  text-align: center;
  background: var(--section-heading);
  color: var(--section-heading-text);
  font-size: var(--section-heading-size);
  text-shadow: 2px 2px 2px #ccc;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  padding-bottom: 10px;
  background: var(--panel-background);
}

.card {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  width: 23vw;
  height: 28vw;
  min-height: 106px;
  margin-top: 15px;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
}

a.card {
  color: inherit;
  text-decoration: none;
}

a.card:hover .card-name {
  text-decoration: underline;
}

.card-picture {
  display: block;
  width: min(var(--card-picture-size), 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--card-picture-radius);
  box-shadow: var(--panel-shadow);
}

.card-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-name {
  padding-top: 10px;
  font-size: var(--card-text-size);
  font-weight: 700;
}

/* 页脚 */
.home-footer {
  background: var(--footer-background);
  color: var(--footer-text);
  text-align: center;
}

.footer-line {
  margin: 0;
  font-size: .9em;
  font-weight: 700;
}

.footer-line + .footer-line {
  margin-top: 15px;
}

.footer-divider {
  margin: 20px 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
}

.footer-copy {
  margin: 0;
  padding: 0 12px 24px;
  text-align: center;
  color: var(--footer-text);
  font-size: .8em;
}

.site-bar {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 4vw;
  background: #1a1420;
  color: #eac9ff;
  font-size: .85rem;
}

.site-bar a { color: inherit; text-decoration: none; }
.site-bar a:hover { text-decoration: underline; }
