/* Homepage-only visual refresh. No route, form, or API behavior is changed. */
:root {
  --acg-primary: #2563eb;
  --acg-secondary: #2563eb;
  --acg-danger: #dc4c55;
  --acg-text-muted: #64748b;
}

html { font-size: 14px; }

body {
  background: #f7f9fc !important;
  background-image: none !important;
  color: #172033;
}

.navbar-acg {
  background: #fff;
  border-bottom: 1px solid #e9edf3;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar-acg .nav-link { color: #475569; }
.navbar-acg .nav-link.active { color: #2563eb; }
.navbar-acg .navbar-brand { font-size: 1.3rem; }

#pjax-container > main.container { max-width: 1200px; }

#pjax-container > main > .panel {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(22, 35, 60, .04);
}

#pjax-container > main > .panel::before { display: none; }
#pjax-container > main > .panel + .panel { margin-top: 20px; }

#pjax-container > main > .panel > .panel-header {
  margin: 0;
  padding: 20px 22px 14px;
  box-shadow: none;
  border-bottom: 1px solid #f0f2f6;
}

#pjax-container > main > .panel > .panel-body { padding: 18px 22px 22px; }
#pjax-container > main:has(.chip-list) > .panel:first-child > .panel-body {
  color: #475569;
  line-height: 1.65;
}

.notice-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.notice-highlights p {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
}
.notice-highlights strong { display: block; margin-bottom: 4px; color: #172033; }
.notice-full { margin-top: 12px; }
.notice-full summary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid #b7d4ff;
  border-radius: 11px;
  background: #edf5ff;
  color: #174da0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.notice-full summary::-webkit-details-marker { display: none; }
.notice-full summary::after { content: '⌄'; font-size: 20px; line-height: 1; transition: transform .2s; }
.notice-full[open] summary::after { transform: rotate(180deg); }
.notice-full summary:hover { background: #e1efff; border-color: #8db8f3; }
.notice-full summary:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.notice-full-content { padding: 12px 0 0; border-top: 1px solid #e8edf4; }
.notice-full-content p { margin-bottom: 0; }
.notice-shortcuts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f7fbff;
}
.notice-shortcuts strong { display: block; color: #183b62; font-size: 15px; }
.notice-shortcuts small { color: #64748b; font-size: 12px; }
.notice-shortcut-links { display: flex; flex-wrap: wrap; gap: 8px; }
.notice-shortcut-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #c7ddf5;
  border-radius: 9px;
  background: #fff;
  color: #1d5ba3;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.notice-shortcut-links a:hover { background: #eaf4ff; }
.notice-external-note { grid-column: 1 / -1; }
.notice-organized { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.notice-organized[hidden], .notice-original[hidden] { display: none !important; }
.notice-card { min-width: 0; padding: 15px 17px; border: 1px solid #e5eaf0; border-radius: 13px; background: #fff; }
.notice-card h3 { margin: 0 0 9px; color: #203551; font-size: 14px; font-weight: 700; }
.notice-card--order { border-color: #f3d9d5; background: #fffaf9; }
.notice-line { margin: 7px 0; color: #475569; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.notice-line:first-of-type { margin-top: 0; }
.notice-line:last-child { margin-bottom: 0; }
.notice-card .notice-line [style] { color: inherit !important; font-size: inherit !important; text-decoration: none !important; }
.notice-card .notice-line a { color: #1d5ba3 !important; font-weight: 600; text-decoration: underline !important; }
.notice-original { padding: 12px 14px; color: #475569; line-height: 1.7; overflow-wrap: anywhere; }
.notice-original [style] { color: inherit !important; font-size: inherit !important; }
.notice-original a { color: #1d5ba3 !important; }

.panel-title { font-size: 1.1rem; font-weight: 700; color: #172033; }
.panel-header .icon { color: #2563eb; }
.site-motto {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  height: 26px;
  margin-left: 18px;
  overflow: hidden;
  color: #355f86;
  font: 600 16px/26px "STKaiti", "KaiTi", "Kaiti SC", "Noto Serif SC", serif;
  letter-spacing: .12em;
}
.site-motto-text {
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  white-space: nowrap;
  animation: motto-pingpong 14s ease-in-out infinite alternate;
}
.site-motto-dot { color: #bd9254; padding: 0 .35em; }
@keyframes motto-pingpong {
  from { left: 0; transform: translateX(0); }
  to { left: 100%; transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .site-motto-text { animation: none; }
}

.chip-list { gap: 9px; padding: 2px 0 8px; }
.chip {
  padding: 8px 13px;
  font-size: 13px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e5eaf0;
  box-shadow: none;
  transition: background-color .15s, border-color .15s;
}
.chip:hover { transform: none; color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; box-shadow: none; }
.chip.is-primary { color: #1d4ed8; background: #eff6ff; border-color: #93c5fd; box-shadow: none; }
.chip .chip-icon { width: 17px; height: 17px; }

.acg-card {
  border: 1px solid #e8edf4;
  border-radius: 14px;
  box-shadow: 0 3px 15px rgba(22, 35, 60, .04);
}
.acg-card:hover { box-shadow: 0 8px 24px rgba(22, 35, 60, .09); }
.soldout-toggle-wrap { margin: 2px 0 18px; text-align: center; }
.soldout-toggle {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.soldout-toggle:hover { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.soldout-toggle:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.soldout-empty { margin: 4px 0 12px; color: #64748b; font-size: 13px; }
.goods-title { color: #1e293b; }
.price { color: #dc4c55; }

@media (max-width: 767.98px) {
  .site-motto { height: 21px; margin-left: 8px; font-size: 11px; line-height: 21px; letter-spacing: .03em; }
  .site-motto-dot { padding: 0 .1em; }
  #pjax-container > main.container { padding-top: 16px !important; }
  #pjax-container > main > .panel > .panel-header { padding: 16px 16px 12px; }
  #pjax-container > main > .panel > .panel-body { padding: 14px 16px 18px; }
  .mobile-item-search .form-control,
  .mobile-item-search .btn { min-height: 44px; }
  .notice-highlights { grid-template-columns: 1fr; gap: 6px; }
  .notice-highlights p { padding: 8px 10px; font-size: 12px; line-height: 1.35; }
  .notice-highlights strong { display: inline; margin-right: 6px; }
  .notice-full summary { width: 100%; }
  .notice-shortcuts { grid-template-columns: 1fr; padding: 13px; }
  .notice-shortcut-links a { flex: 1 1 auto; justify-content: center; }
  .notice-organized { grid-template-columns: 1fr; gap: 8px; }
  .notice-card { padding: 12px 13px; }
  .chip-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 8px;
  }
  .chip {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    white-space: normal;
    line-height: 1.25;
    font-size: 12px;
  }
  .chip .chip-icon { flex: 0 0 17px; }
  .item-list .acg-thumb {
    background-size: contain !important;
    background-color: #f8fafc !important;
  }
  #pjax-container .acg-cover {
    aspect-ratio: 4 / 3;
    height: auto !important;
    min-height: 0;
    background: #f8fafc;
  }
  #pjax-container .acg-cover .item-cover { object-fit: contain; }
}

@media (max-width: 479.98px) {
  .navbar-acg .navbar-brand { flex: 0 0 auto; }
  .navbar-acg .navbar-brand > span { max-width: none; }
}
