/* 换站主题入口：优先修改这些变量，下面的布局比例沿用当前已验证模板。 */
:root {
  --site-max-width: 500px;
  --design-units: 7.5;
  --outer-background: #fff;
  --page-background: #d2c3ea;
  --header-background: #8b67c7;
  --notice-background: #fcdefa;
  --notice-text: #8d66c7;
  --card-background: #f1ebfa;
  --product-text: #40187b;
  --section-text: #70529f;
  --footer-text: #846caa;
  /* 以 750 设计稿缩放：桌面最大 500px，小屏按相同比例收缩图标与间距。 */
  font-size: calc(min(100vw, var(--site-max-width)) / var(--design-units));
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "Microsoft YaHei", Arial, sans-serif;
  background: var(--outer-background);
  color: var(--product-text);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}
body {
  width: 100%;
  max-width: var(--site-max-width);
  min-width: 280px;
  margin: 0 auto;
  font-size: 16px;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #6936ac;
  outline-offset: 3px;
}
.page {
  min-height: 100vh;
  background: var(--page-background);
  padding-bottom: 20px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 8px;
  background: var(--header-background);
  border-radius: 0 0 0.2rem 0.2rem;
}
.notice-wrap {
  padding: 0.08rem 0;
  width: 100%;
}
.notice {
  display: flex;
  align-items: center;
  height: 0.72rem;
  min-height: 32px;
  padding: 0.1rem 0.1rem 0.1rem 0.24rem;
  background: var(--notice-background);
  border-radius: 0.35rem;
  color: var(--notice-text);
  font-weight: 600;
}
.notice-icon {
  width: 0.32rem;
  height: 0.32rem;
  flex-shrink: 0;
  object-fit: contain;
}
.notice-window {
  flex: 1;
  margin: 0 0.15rem;
  overflow: hidden;
  min-width: 0;
}
.notice p {
  display: inline-block;
  white-space: nowrap;
  font-size: max(14px, 0.28rem);
  line-height: 1.4;
  animation: marquee 16s linear 2s infinite;
}
@keyframes marquee {
  0%,
  12% {
    transform: translateX(0);
  }
  90%,
  100% {
    transform: translateX(-70%);
  }
}
.content {
  margin-top: 0.24rem;
  padding: 0 0.16rem;
}
.section-heading {
  display: flex;
  align-items: center;
  height: calc(0.36rem + 4px);
  min-height: 19px;
  margin-bottom: 0.08rem;
}
.recommend-title {
  height: 0.36rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
h2 {
  color: var(--section-text);
  font-size: max(16px, 0.28rem);
  font-weight: 700;
  line-height: 1.3;
}
.products-panel {
  padding: 0.16rem;
  background: var(--card-background);
  border-radius: 0.2rem;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.16rem;
  list-style: none;
}
.product-item {
  min-width: 0;
}
.product-link {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: var(--product-text);
}
.product-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.24rem;
  height: 1.24rem;
  max-width: 100%;
  margin-bottom: 0.08rem;
  overflow: hidden;
  border-radius: 0.2rem;
  background: var(--icon-background, #e8dff5);
  color: var(--icon-color, #7e53af);
}
.product-initial {
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1;
}
.product-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--outer-background);
  opacity: 0;
}
.product-logo.loaded {
  opacity: 1;
}
.product-name {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 0.24rem;
  line-height: normal;
}
.feedback {
  text-align: center;
  padding: 0.48rem 0.12rem;
  color: var(--section-text);
  font-size: 14px;
  line-height: 1.7;
}
.feedback h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.feedback p {
  overflow-wrap: anywhere;
}
.action-button {
  margin-top: 14px;
  padding: 8px 16px;
  border: 1px solid #bda4d9;
  border-radius: 8px;
  background: #e8dcf6;
  color: #69459b;
  font-size: 14px;
}
.load-placeholder {
  width: 1.24rem;
  height: 1.24rem;
  max-width: 100%;
  margin: 0 auto 0.08rem;
  border-radius: 0.2rem;
  background: linear-gradient(90deg, #e8dff5 25%, #d8cfe5 50%, #e8dff5 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
}
.load-line {
  width: 80%;
  height: 0.24rem;
  margin: 0 auto;
  background: #e8dff5;
  border-radius: 3px;
}
@keyframes skeleton {
  to {
    background-position: -200% 0;
  }
}
footer {
  padding: 0.48rem 0.25rem 0.16rem;
  text-align: center;
  color: var(--footer-text);
  font-size: 14px;
  line-height: 1.8;
}
footer strong {
  font-weight: 500;
}
footer p {
  margin-top: 6px;
}
#site-contact {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 不依赖旧浏览器不支持的 min()，保持手机比例与桌面 500px 上限。 */
:root{font-size:13.333333vw}@media(min-width:500px){:root{font-size:66.666667px}}
