.sample-page,.sample-page *{--foreground:var(--text,#1a1f1c);--card:var(--card,#fff);--border:var(--border,#dde5e1);--muted:var(--muted,#64748b)}
/* ========== 样片下载 ========== */
.sample-page {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  color: var(--foreground);
}

.sample-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  margin: 8px 0 40px;
  padding: 28px 16px 8px;
}

.sample-hero-eq {
  color: var(--primary);
  margin-bottom: 16px;
}

.sample-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 16px;
  border: 1px solid var(--primary);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1.2;
  background: transparent;
}

.sample-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.sample-hero-title {
  margin: 0 0 16px;
  max-width: 16em;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.sample-hero-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.sample-hero-intro p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.sample-hero-intro p:last-child {
  margin-bottom: 0;
}

.sample-zone-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 24px;
  box-sizing: border-box;
}

.sample-zone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  padding: 20px 24px;
  border: 1px solid #d0d7d3;
  border-radius: 8px;
  background: var(--card, #fff);
  box-shadow: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
  width: 100%;
}

.sample-zone-row:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, #d0d7d3);
  box-shadow: none;
}

.sample-zone-row-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.sample-zone-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, #fff);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
}

.sample-zone-row-icon svg {
  width: 24px;
  height: 24px;
}

.sample-zone-row-text {
  min-width: 0;
}

.sample-zone-row-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--foreground);
}

.sample-zone-row-desc {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.sample-zone-bar {
  flex-shrink: 0;
  width: 3px;
  height: 1.05em;
  margin-top: 0.2em;
  border-radius: 3px;
  background: var(--primary);
}

.sample-zone-enter {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.sample-zone-enter:hover {
  background: var(--primary-dark, var(--primary));
  border-color: var(--primary-dark, var(--primary));
  color: #fff;
  text-decoration: none;
  filter: brightness(0.96);
  box-shadow: none;
}

.sample-zone-enter:active {
  filter: brightness(0.92);
  box-shadow: none;
}

/* 后台：分区图标选择器 */
.sample-zone-icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  max-width: 560px;
}

.sample-zone-icon-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 64px;
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--card, #fff);
  color: var(--foreground);
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.sample-zone-icon-option:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  color: var(--primary);
}

.sample-zone-icon-option.is-selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--card, #fff));
  color: var(--primary);
  font-weight: 600;
}

.sample-zone-icon-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}

.sample-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin: 0 0 18px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--card);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sample-back-link-icon {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.15s ease;
}

.sample-back-link:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background: color-mix(in srgb, var(--primary) 8%, var(--card));
  color: var(--primary-dark);
  text-decoration: none;
}

.sample-back-link:hover .sample-back-link-icon {
  transform: translateX(-2px);
}

.sample-zone-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-radius: 3px;
  background: color-mix(in srgb, var(--primary) 6%, var(--card));
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
}

.sample-zone-section-title .sample-zone-bar {
  width: 3px;
  height: 1em;
  margin-top: 0;
  border-radius: 3px;
  background: var(--primary);
}

.sample-list-block {
  margin-top: 4px;
}

.sample-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sample-list-head {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) 92px 110px minmax(180px, 1.2fr) 132px;
  gap: 12px;
  padding: 0 16px 8px;
  font-size: 12px;
  color: var(--muted);
}

.sample-clip-card {
  border-radius: 6px;
  background: var(--card, #fff);
  border: 1px solid #d0d7d3;
  overflow: hidden;
  box-sizing: border-box;
}

.sample-list-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) 92px 110px minmax(180px, 1.2fr) 132px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.sample-col-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sample-clip-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--primary) 55%, transparent);
  border-radius: 3px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.sample-clip-titles {
  min-width: 0;
}

.sample-clip-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.35;
}

.sample-clip-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.sample-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.sample-badge-outline {
  border: 1px solid var(--border);
  color: var(--foreground);
  background: transparent;
}

.sample-badge-green {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.sample-clip-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--foreground);
}

.sample-col-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sample-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.sample-download-btn-primary,
.sample-download-btn-alt {
  background: var(--primary);
  color: #fff;
}

.sample-download-btn-primary:hover,
.sample-download-btn-alt:hover {
  filter: brightness(1.06);
  color: #fff;
}

.sample-download-btn-disabled {
  background: color-mix(in srgb, var(--muted) 22%, transparent);
  color: var(--muted);
  cursor: not-allowed;
}

.sample-empty {
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

@media (max-width: 960px) {
.cs-card-grid--2,
  .cs-card-grid--3 {
  grid-template-columns: 1fr;
}

.sample-zone-row {
  flex-direction: column;
  align-items: stretch;
}

.sample-zone-enter {
  align-self: flex-end;
  width: auto;
  min-width: 120px;
}

.sample-list-head {
  display: none;
}

.sample-list-row {
  grid-template-columns: 1fr;
  gap: 10px;
}

.sample-col-actions {
  flex-direction: row;
  flex-wrap: wrap;
}

.sample-download-btn {
  flex: 1 1 auto;
}
}

html.dark .sample-page,
html.dark .sample-zone-card,
html.dark .sample-card,
html.dark .sample-zone-section {
  background: transparent !important;
  color: #e8eeeb;
  border-color: #2a3330 !important;
}
html.dark .sample-clip-card {
  background: #141918 !important;
  border: 1px solid #3d4843;
  box-shadow: none;
}
html.dark .sample-zone-row {
  background: #141918;
  border: 1px solid #3d4843;
  box-shadow: none;
}
html.dark .sample-zone-row-icon {
  background: color-mix(in srgb, var(--primary) 18%, #141918);
  border-color: color-mix(in srgb, var(--primary) 28%, #3d4843);
}
