/* 案例展示 — 对齐内容页/版权声明卡片风，默认宽 1280px */
.scs-page {
  --scs-accent: var(--primary, #00bb61);
  --scs-mw: 1280px;
  --scs-surface: var(--card, #fff);
  --scs-border: var(--border, #dde5e1);
  --scs-title: var(--foreground, var(--text, #1a1f1c));
  --scs-muted: var(--muted, #5c6b64);
  --scs-body: var(--foreground, var(--text, #1a1f1c));
  --scs-item-note-bg: #f3f4f5;
  --scs-item-note-text: #2a3034;
  --scs-swatch-bar-max-w: 550px;
  box-sizing: border-box;
  max-width: var(--scs-mw);
  width: 100%;
  margin: 0 auto;
  padding: 28px 16px 56px;
  overflow-x: hidden;
  color: var(--scs-body);
  background: transparent;
}
.scs-page *,
.scs-page *::before,
.scs-page *::after { box-sizing: border-box; }

.scs-back {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--scs-muted);
  text-decoration: none;
}
.scs-back:hover { color: var(--scs-accent); }

.scs-hero {
  text-align: center;
  margin: 0 0 28px;
  padding: 0;
  background: transparent;
}
.scs-hero-inner { padding: 0; max-width: none; margin: 0; }
.scs-hero h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--scs-accent);
}
.scs-hero h1::after { display: none; }
.scs-h1-line {
  width: 36px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: var(--scs-accent);
}
.scs-hero-sub {
  margin: 12px auto 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--scs-muted);
  max-width: 52em;
}

.scs-main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scs-intro {
  margin: 0;
  padding: 20px 22px;
  background: var(--scs-surface);
  border-radius: 3px;
  border: 1px solid var(--scs-border);
  box-shadow: none;
  font-size: 15px;
  line-height: 1.85;
  color: var(--scs-body);
}
.scs-intro p { margin: 0 0 0.85em; }
.scs-intro p:last-child { margin-bottom: 0; }
.scs-intro h1,
.scs-intro h2,
.scs-intro h3,
.scs-intro h4,
.scs-item-body h1,
.scs-item-body h2,
.scs-item-body h3,
.scs-item-body h4,
.scs-footer-text h1,
.scs-footer-text h2,
.scs-footer-text h3,
.scs-footer-text h4 {
  margin: 1.1em 0 0.55em;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--scs-accent) !important;
}
.scs-intro h1:first-child,
.scs-intro h2:first-child,
.scs-intro h3:first-child,
.scs-intro h4:first-child,
.scs-item-body h1:first-child,
.scs-item-body h2:first-child,
.scs-item-body h3:first-child,
.scs-item-body h4:first-child,
.scs-footer-text h1:first-child,
.scs-footer-text h2:first-child,
.scs-footer-text h3:first-child,
.scs-footer-text h4:first-child {
  margin-top: 0;
}
.scs-intro h1 *,
.scs-intro h2 *,
.scs-intro h3 *,
.scs-intro h4 *,
.scs-item-body h1 *,
.scs-item-body h2 *,
.scs-item-body h3 *,
.scs-item-body h4 *,
.scs-footer-text h1 *,
.scs-footer-text h2 *,
.scs-footer-text h3 *,
.scs-footer-text h4 * {
  color: inherit !important;
  font-size: inherit !important;
}

.scs-zone {
  margin: 0 0 28px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.scs-zone-head {
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--scs-accent) 28%, var(--scs-border));
  background: #f3f4f5;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.35;
  color: var(--scs-title);
  letter-spacing: 0.01em;
}
.scs-zone-head::before { display: none; }
.scs-zone-head-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: var(--scs-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.scs-zone-head-title {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 18px;
  font-weight: 800;
  color: var(--scs-title);
  background: #f3f4f5;
  word-break: break-word;
}

.scs-zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.scs-item-card {
  background: var(--scs-surface);
  border: 1px solid var(--scs-border);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: border-color 0.15s ease;
}
.scs-item-card:hover {
  border-color: color-mix(in srgb, var(--scs-accent) 40%, var(--scs-border));
}
.scs-video-wrap {
  border-radius: 0;
  border-bottom: 1px solid var(--scs-border);
  overflow: hidden;
}
.scs-video-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.scs-video-inner video,
.scs-video-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.scs-info-section {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.scs-info-section.has-mini { padding-top: 14px; }
.scs-swatch { margin: 0; text-align: center; position: relative; }
.scs-swatch-bar {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  max-width: min(100%, var(--scs-swatch-bar-max-w, 550px));
  margin: 0 auto;
  padding: 12px 20px;
  border-radius: 4px;
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: none;
}
.scs-swatch-mini {
  position: absolute;
  top: -8px;
  left: -8px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1f1c;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.scs-swatch-name {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: 1.45;
  word-break: break-word;
}
.scs-item-body {
  padding: 12px 16px;
  background: var(--scs-item-note-bg);
  border-radius: 6px;
  border: 1px solid #e6e8ea;
  font-size: 14px;
  line-height: 1.75;
  color: var(--scs-item-note-text);
}
.scs-item-body:empty { display: none; }
/* Keep intro readable even if rich text used a light yellow */
.scs-item-body,
.scs-item-body p,
.scs-item-body li,
.scs-item-body span {
  color: var(--scs-item-note-text);
}
.scs-item-body a { color: var(--scs-accent); }

.scs-footer {
  margin: 8px 0 0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--scs-border);
}
.scs-footer-inner {
  padding: 22px 22px 24px;
  color: #fff;
}
.scs-footer-inner h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}
.scs-footer-text { margin: 0; font-size: 15px; line-height: 1.75; opacity: 0.95; }

.scs-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.scs-portal-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--scs-surface);
  border-radius: 3px;
  padding: 20px 22px;
  border: 1px solid var(--scs-border);
  box-shadow: none;
  transition: border-color 0.15s ease;
  min-height: 148px;
}
.scs-portal-card:hover {
  transform: none;
  box-shadow: none;
  border-color: color-mix(in srgb, var(--scs-accent) 40%, var(--scs-border));
}
.scs-portal-card:hover .scs-portal-go {
  filter: brightness(0.95);
}
.scs-portal-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--scs-accent);
}
.scs-portal-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--scs-muted);
  flex: 1 1 auto;
}
.scs-portal-go {
  align-self: flex-end;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: var(--scs-accent);
  pointer-events: none;
}

@media (max-width: 900px) {
  .scs-zone-grid,
  .scs-portal-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  .scs-page { padding: 20px 12px 40px; }
  .scs-hero h1 { font-size: 24px; }
  .scs-info-section { padding: 14px; }
}

/* 暗色：对齐内容页卡片 */
html.dark .scs-page {
  --scs-surface: #141918;
  --scs-border: #3d4843;
  --scs-title: #e8efea;
  --scs-muted: #9aaba2;
  --scs-body: #e8efea;
  --scs-item-note-bg: #101412;
  --scs-item-note-text: #c5d0ca;
}
html.dark .scs-item-card,
html.dark .scs-intro,
html.dark .scs-portal-card {
  background: var(--scs-surface);
  border-color: var(--scs-border);
}
html.dark .scs-zone-head {
  border-color: color-mix(in srgb, var(--scs-accent) 35%, var(--scs-border));
  background: #1a1f1c;
}
html.dark .scs-zone-head-label {
  background: var(--scs-accent);
  color: #fff;
}
html.dark .scs-zone-head-title {
  color: var(--scs-title);
  background: #1a1f1c;
}
html.dark .scs-item-body {
  background-color: var(--scs-item-note-bg);
  color: var(--scs-item-note-text);
  border-color: var(--scs-border);
}
html.dark .scs-item-body,
html.dark .scs-item-body p,
html.dark .scs-item-body li,
html.dark .scs-item-body span {
  color: var(--scs-item-note-text);
}
html.dark .scs-footer {
  border-color: var(--scs-border);
}
html.dark .scs-footer-inner {
  background: var(--scs-surface) !important;
  color: var(--scs-body);
}
html.dark .scs-footer-inner h2 {
  color: var(--scs-accent);
  text-shadow: none;
}
html.dark .scs-footer-text {
  color: var(--scs-muted);
  opacity: 1;
}
