/* ============================================================
   WINGS Project Site – Custom Styles
   Bootstrap 5 base. No inline styles allowed.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --wings-primary:   #1a3c6e;
  --wings-accent:    #2980b9;
  --wings-accent-lt: #3498db;
  --wings-bg:        #f4f6f9;
  --wings-surface:   #ffffff;
  --wings-border:    #dee2e6;
  --wings-text:      #333333;
  --wings-muted:     #6c757d;
  --wings-danger:    #e74c3c;
  --wings-success:   #27ae60;
  --wings-warning:   #f39c12;
  --header-height:   64px;
}

/* ---------- Base ---------- */
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Noto Sans JP", sans-serif;
  background-color: var(--wings-bg);
  color: var(--wings-text);
  font-size: 0.9375rem;
  line-height: 1.75;
}

a {
  color: var(--wings-accent);
  text-decoration: none;
}
a:hover {
  color: var(--wings-primary);
  text-decoration: underline;
}

/* ---------- Header ---------- */
.site-header {
  background-color: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26,60,110,.10);
  box-shadow: 0 2px 12px rgba(15, 37, 68, .08);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header .navbar {
  min-height: var(--header-height);
  padding-top: .25rem;
  padding-bottom: .25rem;
}

.site-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  color: var(--wings-primary);
  margin-right: .5rem;
  flex-shrink: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.site-header .navbar-brand:hover {
  color: var(--wings-accent);
  text-decoration: none;
}
.site-header .brand-logo {
  height: calc(var(--header-height) - 10px);
  max-height: 100%;
  width: auto;
  border-radius: 10px;
  filter: drop-shadow(0 1px 2px rgba(15,37,68,.12));
}
.site-header .brand-name {
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 140px;
}

.site-header .nav-link {
  color: rgba(26,60,110,.86);
  font-size: .875rem;
  font-weight: 600;
  padding: .4rem .65rem;
  white-space: nowrap;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--wings-primary);
  background-color: rgba(41,128,185,.10);
}

.site-header .navbar-toggler {
  border-color: rgba(26,60,110,.18);
}
.site-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826%2c60%2c110%2c.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.header-search-form .form-control {
  font-size: .875rem;
  border-radius: 20px 0 0 20px;
  border: 1px solid rgba(26,60,110,.14);
  padding-left: 1rem;
  width: 200px;
  background: #ffffff;
}
.header-search-form .btn-search {
  background-color: var(--wings-accent);
  color: #fff;
  border: none;
  border-radius: 0 20px 20px 0;
  padding: .375rem .875rem;
  font-size: .875rem;
}
.header-search-form .btn-search:hover {
  background-color: var(--wings-accent-lt);
}

.header-icon-link {
  color: rgba(26,60,110,.68);
  font-size: 1.1rem;
  transition: color .15s;
}
.header-icon-hatena {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-icon-hatena-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(26,60,110,.08);
  color: rgba(26,60,110,.68);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}
.header-icon-link:hover {
  color: var(--wings-accent);
  text-decoration: none;
}
.header-icon-hatena:hover .header-icon-hatena-mark {
  background: rgba(41,128,185,.12);
  color: var(--wings-accent);
}

/* Prevent overlap between brand and nav on medium-wide desktop */
@media (max-width: 1199.98px) and (min-width: 992px) {
  .site-header .brand-name {
    display: none;
  }
  .site-header .nav-link {
    padding: .35rem .4rem;
    font-size: .82rem;
  }
  .header-search-form .form-control {
    width: 130px;
  }
  .site-header .header-icon-link {
    font-size: 1rem;
  }
}

/* At narrow desktop widths, hide header search to avoid collision */
@media (max-width: 1099.98px) and (min-width: 992px) {
  .header-search-form {
    display: none !important;
  }
}

/* ---------- Flow Thumbnails (project page) ---------- */
.flow-thumb {
  max-width: 220px;
  cursor: pointer;
  transition: opacity .2s;
}
.flow-thumb:hover {
  opacity: .8;
}

/* ---------- Back to Top ---------- */
.btn-back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--wings-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
  z-index: 1030;
  cursor: pointer;
}
.btn-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.btn-back-to-top:hover {
  background-color: var(--wings-accent);
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--wings-primary);
  color: rgba(255,255,255,.75);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer .footer-heading {
  color: #ffffff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.site-footer a {
  color: rgba(255,255,255,.7);
  font-size: .875rem;
}
.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.site-footer .footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .footer-nav-list li {
  margin-bottom: .35rem;
}
.site-footer .footer-divider {
  border-color: rgba(255,255,255,.15);
  margin: 1.5rem 0 1rem;
}
.site-footer .footer-meta-links a {
  margin-right: 1rem;
}
.site-footer .copyright {
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
}

/* ---------- Page Hero / Breadcrumb ---------- */
.page-hero {
  position: relative;
  background-color: #0f2544;
  background-image: url('../img/hero.png');
  background-size: cover;
  background-position: center 62%;
  color: #fff;
  padding: 2rem 0 1.5rem;
  margin-bottom: 2rem;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 54, .72);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.page-hero .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: .8125rem;
}
.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,.5);
}
.page-hero .breadcrumb-item a {
  color: rgba(255,255,255,.75);
}
.page-hero .breadcrumb-item.active {
  color: rgba(255,255,255,.9);
}

/* ---------- Section Headings ---------- */
.section-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wings-primary);
  padding-bottom: .5rem;
  border-bottom: 3px solid var(--wings-accent);
  margin-bottom: 1.25rem;
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--wings-border);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

/* Book Cards */
.book-card .book-cover-wrap {
  background: #e9ecef;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}
.book-card .book-cover-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.book-card .book-cover-wrap.contain img {
  object-fit: contain;
  background: #ffffff;
}
.book-card .card-title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .35rem;
}
.book-card .card-text {
  font-size: .8125rem;
  color: var(--wings-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-card .badge-publisher {
  background-color: #e8f0fe;
  color: var(--wings-primary);
  font-size: .7rem;
  padding: .2em .5em;
  border-radius: 4px;
  position: relative;
  z-index: 2;
  text-decoration: none;
}
.book-card .badge-publisher:hover {
  background-color: #d0e0fd;
  color: var(--wings-primary);
}
.book-card .badge-level-link {
  position: relative;
  z-index: 2;
  font-size: .7rem;
  text-decoration: none;
}
.book-card .book-series-meta {
  margin-bottom: .35rem;
}
.book-series-link {
  display: inline-block;
  position: relative;
  z-index: 2;
  font-size: .72rem;
  font-weight: 700;
  color: #1e3a8a;
  background: #eef2ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: .15rem .45rem;
  text-decoration: none;
}
.book-series-link:hover {
  color: #1d4ed8;
  background: #dbeafe;
}
.book-card .book-series-empty {
  display: block;
  min-height: 1.5rem;
  line-height: 1.5rem;
}

/* Article Cards */
.article-card .card-meta {
  font-size: .8rem;
  color: var(--wings-muted);
}
.article-card .card-title {
  font-size: .9375rem;
  font-weight: 600;
}

/* ---------- Whats New ---------- */
.whats-new-list .wn-item {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--wings-border);
  font-size: .875rem;
}
.whats-new-list .wn-item:last-child {
  border-bottom: none;
}
.wn-date {
  color: var(--wings-muted);
  white-space: nowrap;
  font-size: .8rem;
  min-width: 5rem;
}
.wn-badge {
  font-size: .7rem;
  padding: .15em .5em;
  border-radius: 3px;
  white-space: nowrap;
}
.wn-badge-book   { background: #dbeafe; color: #1e40af; }
.wn-badge-article{ background: #d1fae5; color: #065f46; }
.wn-badge-info   { background: #fef3c7; color: #92400e; }

/* ---------- 新着記事 (Home) ---------- */
.article-recent-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "badge date"
    "text  text";
  gap: .25rem .5rem;
}
.article-recent-item .article-recent-badge { grid-area: badge; align-self: center; }
.article-recent-item .article-recent-date  { grid-area: date; text-align: right; align-self: center; }
.article-recent-item .article-recent-text  { grid-area: text; }
@media (min-width: 576px) {
  .article-recent-item {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "badge text date";
    gap: 0 .75rem;
    align-items: start;
  }
  .article-recent-item .article-recent-badge { align-self: start; }
  .article-recent-item .article-recent-date { text-align: left; align-self: start; }
}

/* ---------- Hero Slider (Top Page) ---------- */
.top-hero {
  position: relative;
  background-color: #0f2544;
  background-image: url('../img/hero.png'); /* fallback: image-set非対応ブラウザ */
  background-image: image-set(
    url('../img/hero-640.webp') type('image/webp'),
    url('../img/hero.png')      type('image/png')
  );
  background-size: cover;
  background-position: center 40%;
  color: #fff;
  padding: 4.5rem 0;
  overflow: hidden;
}
@media (min-width: 768px) {
  .top-hero {
    background-image: url('../img/hero.png');
    background-image: image-set(
      url('../img/hero-960.webp') type('image/webp'),
      url('../img/hero.png')      type('image/png')
    );
  }
}
/* dark gradient overlay to keep text legible */
.top-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,26,54,.92) 0%,
    rgba(10,26,54,.80) 40%,
    rgba(10,26,54,.40) 70%,
    rgba(10,26,54,.10) 100%
  );
  pointer-events: none;
}
.top-hero .container {
  position: relative;
  z-index: 1;
}
.top-hero .hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.4;
}
.top-hero .hero-sub {
  font-size: 1rem;
  opacity: .85;
  margin-top: .5rem;
}
.top-hero .hero-cta {
  margin-top: 1.5rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.top-hero .btn-hero-primary {
  background-color: var(--wings-accent-lt);
  color: #fff;
  border: none;
  padding: .6rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
}
.top-hero .btn-hero-primary:hover {
  background-color: #1a6fa8;
  color: #fff;
}
.top-hero .btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
  padding: .6rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
}
.top-hero .btn-hero-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  color: #fff;
}

/* ---------- Sidebar ---------- */
.sidebar-widget {
  background: var(--wings-surface);
  border: 1px solid var(--wings-border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget .widget-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--wings-primary);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--wings-accent);
}
.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-widget ul li {
  padding: .3rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: .875rem;
}
.sidebar-widget ul li:last-child {
  border-bottom: none;
}
.blog-review-site {
  display: block;
  font-size: .8125rem;
  color: var(--wings-muted, #6c757d);
  margin-bottom: .1rem;
}
.blog-review-date {
  display: block;
  font-size: .75rem;
  color: var(--wings-muted, #6c757d);
  margin-top: .1rem;
}

/* ---------- Survey ---------- */
.survey-legend {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--wings-primary);
  border-bottom: 2px solid var(--wings-accent);
  padding-bottom: .4rem;
  margin-bottom: 1rem;
  width: 100%;
}
.survey-label {
  font-weight: 600;
  font-size: .875rem;
}
.survey-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
}

/* ---------- Filters ---------- */
.filter-bar {
  background: var(--wings-surface);
  border: 1px solid var(--wings-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.filter-bar label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--wings-muted);
  margin-bottom: .25rem;
}
.filter-bar select,
.filter-bar input {
  font-size: .875rem;
}

/* ---------- Tag Buttons ---------- */
.tag-btn {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 20px;
  border: 1px solid var(--wings-accent);
  color: var(--wings-accent);
  font-size: .78rem;
  cursor: pointer;
  transition: background .15s, color .15s;
  background: transparent;
}
.tag-btn:hover,
.tag-btn.active {
  background-color: var(--wings-accent);
  color: #fff;
  text-decoration: none;
}

/* ---------- Book Detail Page ---------- */
.book-detail-cover {
  max-width: 220px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.book-intro-logo {
  max-width: 140px;
  height: auto;
  display: inline-block;
}
.book-support-status {
  margin: .15rem 0 .8rem;
}
.book-support-badge {
  display: none;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .32rem .68rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.book-support-badge-ended {
  color: #a8382f;
  background: linear-gradient(135deg, rgba(255,243,242,.98), rgba(255,233,231,.98));
  border-color: #f2b8b3;
  box-shadow: 0 6px 14px rgba(168,56,47,.12);
}
.book-support-note {
  display: none;
  margin: .55rem 0 0;
  padding: .6rem .75rem;
  background: #fff6f5;
  border: 1px solid #f5cdca;
  border-radius: 10px;
  color: #8c3029;
  font-size: .82rem;
  line-height: 1.5;
}
.book-support-status[data-support-status="ended"] .book-support-badge-ended,
.book-support-status[data-support-status="ended"] .book-support-note {
  display: inline-flex;
}
.book-support-status[data-support-status="ended"] .book-support-note {
  display: block;
}
.book-detail-info table th {
  width: 8rem;
  color: var(--wings-muted);
  font-weight: 600;
  white-space: nowrap;
  vertical-align: top;
}
.book-toc-list {
  list-style: none;
  padding: 0;
}
.book-toc-list li {
  padding: .4rem 0;
  border-bottom: 1px dashed var(--wings-border);
  font-size: .875rem;
}
.book-toc-list li:last-child {
  border-bottom: none;
}
.book-toc-list.book-toc-dense {
  max-height: 62vh;
  overflow: auto;
  padding-right: .5rem;
}
.book-toc-list .toc-chapter {
  padding: .65rem .75rem;
  background: #f7fbff;
  border: 1px solid #dfe8f5;
  border-radius: 6px;
  margin-bottom: .75rem;
}
.book-toc-list .toc-chapter-title {
  display: block;
  font-size: .9rem;
  color: var(--wings-primary);
  margin-bottom: .35rem;
}
.book-toc-list .toc-sublist {
  list-style: disc;
  margin: 0;
  padding-left: 1.15rem;
}
.book-toc-list .toc-sublist li {
  border: none;
  padding: .12rem 0;
  font-size: .82rem;
  line-height: 1.45;
}
.book-toc-list .toc-line {
  border: none;
  padding: .12rem 0;
  font-size: .84rem;
  line-height: 1.45;
}
.book-toc-list .toc-line-chapter {
  margin-top: .8rem;
  padding-top: .45rem;
  border-top: 1px solid #dfe8f5;
  font-weight: 700;
  color: var(--wings-primary);
}
.book-toc-list .toc-line-section {
  margin-left: 1rem;
  font-weight: 600;
}
.book-toc-list .toc-line-subsection {
  margin-left: 2rem;
}
.book-toc-list .toc-line-item {
  margin-left: 3rem;
}
.book-toc-list .toc-line-note {
  margin-left: 2.7rem;
  color: #4f5b66;
}
.errata-table th {
  background-color: #f0f5ff;
  font-size: .8125rem;
  white-space: nowrap;
}
.errata-table td {
  font-size: .875rem;
  vertical-align: top;
}
.faq-item .faq-q {
  background: #f0f5ff;
  padding: .75rem 1rem;
  border-left: 4px solid var(--wings-accent);
  border-radius: 0 4px 4px 0;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .5rem;
}
.faq-item .faq-a {
  padding: .75rem 1rem;
  background: #fafafa;
  border-radius: 4px;
  font-size: .875rem;
}
.accordion-body {
  overflow-wrap: break-word;
}
.faq-item .faq-updated,
.accordion-body .faq-updated {
  margin-top: .5rem;
  margin-bottom: 0;
  color: var(--wings-muted);
  font-size: .78rem;
}
.book-info-notice {
  margin-top: .9rem;
  margin-bottom: 0;
  padding: .65rem .8rem;
  border: 1px solid #f1c7c3;
  border-left: 4px solid #d3544a;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff5f4 0%, #fff 100%);
  color: #a9372d;
  font-weight: 600;
  font-size: .875rem;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.book-info-notice a {
  color: inherit;
  text-decoration: none;
}
.book-info-notice a:hover {
  color: #8a2b23;
  text-decoration: underline;
}
.amazon-buy-link {
  display: inline-flex;
  align-items: center;
}
.amazon-buy-link img {
  height: 28px;
  width: auto;
  display: block;
}
.book-share-btn {
  min-width: 2.35rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .55rem;
  line-height: 1;
}
.book-share-btn i {
  line-height: 1;
}
.btn-hatena-share {
  background: #00a4de;
  border-color: #00a4de;
  color: #fff;
}
.btn-hatena-share .fw-bold {
  line-height: 1;
}
.btn-hatena-share:hover,
.btn-hatena-share:focus {
  background: #008fbe;
  border-color: #008fbe;
  color: #fff;
}

/* ---------- Article Series ---------- */
.series-header-card {
  background: linear-gradient(135deg, var(--wings-primary), #2c5282);
  color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.series-header-card .series-logo {
  height: 60px;
  object-fit: contain;
  background-color: white;
  padding: 4px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.series-header-card .series-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.series-header-card .series-status {
  display: inline-block;
  padding: .2em .6em;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 600;
}
.series-status-active  { background: #27ae60; color: #fff; }
.series-status-ended   { background: rgba(255,255,255,.2); color: rgba(255,255,255,.9); }

.series-filter-bar {
  background: var(--wings-surface);
  border: 1px solid var(--wings-border);
  border-radius: 8px;
  padding: .75rem;
  margin-bottom: 1.5rem;
}
.series-filter-btn {
  border: 1px solid var(--wings-accent);
  color: var(--wings-accent);
  background: transparent;
  font-size: .85rem;
  line-height: 1.2;
  padding: .45rem .8rem;
}
.series-filter-btn:hover,
.series-filter-btn.active {
  color: #fff;
  background: var(--wings-accent);
  border-color: var(--wings-accent);
}

.article-list-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--wings-border);
}
.article-list-item:last-child {
  border-bottom: none;
}
.article-list-num {
  position: relative;
  min-width: 1.8rem;
  height: 1.5rem;
  padding: 0 .35rem;
  border-radius: .24rem;
  background: linear-gradient(145deg, #5aa9df 0%, #2a6da8 100%);
  border: 1px solid rgba(18, 67, 110, .36);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.5rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .35rem;
  box-shadow: 0 0 0 2px rgba(41, 128, 185, .12), 0 1px 2px rgba(12, 35, 64, .24);
}
.article-list-num::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: .14rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .08) 100%);
}

.article-list-content .article-title {
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: .2rem;
}
.article-list-content .article-meta {
  font-size: .8rem;
  color: var(--wings-muted);
}
.article-list-content .article-excerpt {
  font-size: .8rem;
  color: #555;
  margin-top: .2rem;
}

/* ---------- Member Cards ---------- */
.member-card .card-body {
  padding: 1.25rem;
}
.member-card .member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #c8d8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--wings-primary);
}
.member-card .member-name {
  font-weight: 700;
  font-size: .9375rem;
}
.member-card .member-name a {
  color: var(--wings-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(26,60,110,.25);
}
.member-card .member-name a:hover {
  color: var(--wings-accent);
  border-bottom-color: rgba(41,128,185,.55);
  text-decoration: none;
}
.member-card .member-desc {
  font-size: .8125rem;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#memberDetailModal .modal-body {
  line-height: 1.7;
}
#memberDetailModal .member-detail-frame-wrap {
  border: 1px solid var(--wings-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
#memberDetailModal .member-detail-frame {
  display: block;
  width: 100%;
  height: min(68vh, 640px);
  border: 0;
}

.member-detail-page {
  background: var(--wings-bg);
}
.member-detail-content .member-detail-qa-list dt {
  font-size: .82rem;
  font-weight: 700;
  color: var(--wings-primary);
  margin-bottom: .2rem;
}
.member-detail-content .member-detail-qa-list dd {
  margin: 0 0 .95rem;
  font-size: .875rem;
  color: #3f4c57;
  line-height: 1.75;
}

/* ---------- Contact Form ---------- */
.contact-notice {
  background: #fff8e1;
  border-left: 4px solid var(--wings-warning);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  font-size: .875rem;
  margin-bottom: 1.5rem;
}
.contact-notice ul {
  margin: .5rem 0 0;
  padding-left: 1.25rem;
}

/* ---------- Server Env Page ---------- */
.env-category-card {
  border-left: 4px solid var(--wings-accent);
}
.env-category-card .card-header {
  background: #f0f5ff;
  font-weight: 700;
  font-size: .9375rem;
}
.env-item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.env-item-list li {
  padding: .5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: .875rem;
}
.env-item-list li:last-child {
  border-bottom: none;
}
.env-item-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.env-lang-badge {
  font-size: .7rem;
  padding: .15em .5em;
  border-radius: 3px;
}

/* ---------- Pagination ---------- */
.pagination .page-link {
  color: var(--wings-accent);
  font-size: .875rem;
}
.pagination .page-item.active .page-link {
  background-color: var(--wings-accent);
  border-color: var(--wings-accent);
}

/* ---------- Year Tab / Select ---------- */
.year-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.year-nav .nav-link {
  white-space: nowrap;
  color: var(--wings-muted);
  border-radius: 4px 4px 0 0;
  font-size: .875rem;
}
.year-nav .nav-link.active {
  color: var(--wings-primary);
  font-weight: 700;
  border-color: var(--wings-border) var(--wings-border) #fff;
}

/* ---------- Site Search ---------- */
.search-summary {
  font-size: .9rem;
  color: var(--wings-muted);
}
.search-count {
  font-size: .85rem;
  color: var(--wings-muted);
  font-weight: 500;
}
.search-result-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.search-result-link {
  font-size: .95rem;
  font-weight: 600;
}
.search-result-excerpt {
  font-size: .85rem;
  color: #555;
}
.search-result-meta {
  font-size: .78rem;
  color: var(--wings-muted);
}

/* ---------- Utilities ---------- */
.text-primary-wings { color: var(--wings-primary); }
.bg-primary-wings   { background-color: var(--wings-primary); }
.content-area {
  background: var(--wings-surface);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    background: rgba(255,255,255,.98);
    padding: .75rem;
    border-radius: 0 0 8px 8px;
    margin-top: .25rem;
    box-shadow: 0 8px 24px rgba(15,37,68,.10);
    border: 1px solid rgba(26,60,110,.08);
  }
  .header-search-form {
    margin-top: .5rem;
  }
  .header-search-form .form-control {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .top-hero .hero-title { font-size: 1.35rem; }
  .book-detail-cover    { max-width: 160px; }
}

/* ---------- Terminal Block ---------- */
.terminal-block {
  background: #1a1a1a;
  color: #4af626;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: .875rem;
  line-height: 1.6;
  padding: .875rem 1.25rem;
  border-radius: 6px;
  white-space: pre;
  overflow-x: auto;
  margin: .75rem 0 0;
  border-left: 3px solid #4af626;
}
.code-block {
  background: #f5f5f5;
  color: #24292e;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: .875rem;
  line-height: 1.6;
  padding: .875rem 1.25rem;
  border-radius: 6px;
  white-space: pre;
  overflow-x: auto;
  margin: .75rem 0 0;
  border-left: 3px solid #6c757d;
}
.terminal-inline {
  background: #1a1a1a;
  color: #4af626;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: .875rem;
  padding: .1rem .4rem;
  border-radius: 3px;
}
