:root {
  --dc-ink: #1e293b;
  --dc-muted: #64748b;
  --dc-paper: #f5f8fc;
  --dc-panel: rgba(255, 255, 255, 0.78);
  --dc-line: rgba(226, 232, 240, 0.9);
  --dc-accent: #3b82f6;
  --dc-accent-soft: rgba(59, 130, 246, 0.1);
  --dc-accent-2: #06b6d4;
  --dc-accent-deep: #2563eb;
  --dc-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 4px 16px rgba(59, 130, 246, 0.04);
  --dc-shadow-hover: 0 6px 20px rgba(59, 130, 246, 0.1);
  --dc-radius: 14px;
  --dc-radius-sm: 10px;
  --font-body: "PingFang SC", "HarmonyOS Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.dc-body {
  font-family: var(--font-body);
  color: var(--dc-ink);
  background: var(--dc-paper);
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.dc-atmosphere {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(59, 130, 246, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(6, 182, 212, 0.08), transparent 45%),
    radial-gradient(ellipse 50% 35% at 80% 100%, rgba(56, 189, 248, 0.06), transparent 50%),
    linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
}

.dc-container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.dc-main { padding-bottom: 4rem; }
.dc-muted { color: var(--dc-muted); }
.dc-code { font-size: .82rem; color: var(--dc-muted); letter-spacing: .02em; }

.dc-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px) saturate(1.15);
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(226, 232, 240, 0.65);
}
.dc-header-inner {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) auto minmax(220px, 1fr);
  gap: 1rem 1.25rem;
  align-items: center;
  padding: .85rem 0;
}
.dc-brand {
  text-decoration: none; color: inherit;
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.dc-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
  flex-shrink: 0;
}
.dc-brand-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
  line-height: 1.15;
}
.dc-brand-mark {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: #0f172a;
}
.dc-brand-sub {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}
.dc-nav { display: flex; flex-wrap: wrap; gap: .35rem .85rem; justify-content: center; }
.dc-nav a {
  text-decoration: none; color: var(--dc-muted); font-weight: 560; font-size: .92rem;
  position: relative; padding: .35rem .45rem; border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.dc-nav a::after {
  content: ""; position: absolute; left: .45rem; right: .45rem; bottom: 2px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  transform: scaleX(0);
  transform-origin: left; transition: transform .22s ease;
}
.dc-nav a.is-active, .dc-nav a:hover {
  color: var(--dc-accent-deep);
  background: rgba(59, 130, 246, 0.06);
}
.dc-nav a.is-active::after, .dc-nav a:hover::after { transform: scaleX(1); }
.dc-nav-admin { color: var(--dc-accent-2) !important; }
.dc-nav-admin::after { background: var(--dc-accent-2); }

.dc-header-tools {
  display: flex; align-items: center; justify-content: flex-end; gap: .75rem; flex-wrap: wrap;
}
.dc-lang {
  display: inline-flex; align-items: center; gap: .15rem;
  padding: .2rem; border: 1px solid var(--dc-line); border-radius: var(--dc-radius-sm);
  background: rgba(255, 255, 255, 0.75);
}
.dc-lang a {
  text-decoration: none; color: var(--dc-muted); font-weight: 600; font-size: .78rem;
  letter-spacing: .04em; padding: .28rem .55rem; border-radius: 8px;
  transition: background .18s ease, color .18s ease;
}
.dc-lang a.is-active, .dc-lang a:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: #fff;
}

.dc-search { display: flex; gap: .4rem; min-width: 0; flex: 1; max-width: 280px; }
.dc-search input {
  flex: 1; min-width: 0;
  border: 1px solid #e2e8f0; border-radius: var(--dc-radius-sm);
  padding: .45rem .9rem; background: rgba(255, 255, 255, 0.85); font: inherit;
  color: var(--dc-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dc-search input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.dc-search button, .dc-btn {
  border: 0; border-radius: var(--dc-radius-sm); padding: .5rem 1rem; font: inherit; font-weight: 560;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.dc-btn-primary, .dc-search button {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}
.dc-btn-primary:hover, .dc-search button:hover {
  background: linear-gradient(135deg, #73b1fb 0%, #4f8ff7 100%);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}
.dc-btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--dc-ink);
  border: 1px solid var(--dc-line);
  backdrop-filter: blur(8px);
}
.dc-btn-ghost:hover {
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--dc-accent-deep);
  background: rgba(59, 130, 246, 0.04);
}

.dc-hero {
  padding: 4.75rem 0 2.75rem;
  max-width: 720px;
  animation: dcFade .55s ease both;
}
.dc-eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  color: var(--dc-accent); font-weight: 650; margin: 0 0 .85rem;
  padding: .28rem .7rem; border-radius: 8px; background: var(--dc-accent-soft);
}
.dc-hero h1 {
  font-size: clamp(2.25rem, 4.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08; margin: 0 0 1rem; letter-spacing: -.03em;
  color: #0f172a;
}
.dc-lead { font-size: 1.12rem; color: var(--dc-muted); margin: 0 0 1.65rem; max-width: 36rem; line-height: 1.55; }
.dc-hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.dc-section { margin-top: 2.75rem; }
.dc-section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1.1rem; gap: 1rem;
}
.dc-section-head h2, .dc-page h1, .dc-page h2 {
  letter-spacing: -.02em; margin: 0;
  font-weight: 650;
  color: #0f172a;
}
.dc-section-head h2 { font-size: 1.35rem; }
.dc-page h1 { font-size: 1.75rem; }
.dc-section-head a {
  color: var(--dc-accent); font-weight: 600; text-decoration: none;
  transition: color .15s ease;
}
.dc-section-head a:hover { color: var(--dc-accent-deep); text-decoration: underline; text-underline-offset: 3px; }

.dc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.dc-grid-brand { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dc-card {
  background: var(--dc-panel);
  border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius);
  box-shadow: var(--dc-shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--dc-shadow-hover);
  border-color: rgba(59, 130, 246, 0.18);
}
.dc-product-link { color: inherit; text-decoration: none; display: block; }
.dc-thumb {
  aspect-ratio: 1;
  background: linear-gradient(160deg, #eef5ff 0%, #f0f7fb 100%);
  display: grid; place-items: center; overflow: hidden;
}
.dc-thumb img, .dc-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-thumb-placeholder { color: var(--dc-muted); font-weight: 560; }
.dc-thumb-placeholder.large {
  min-height: 320px; display: grid; place-items: center;
  background: linear-gradient(160deg, #eef5ff 0%, #f0f7fb 100%);
  border-radius: var(--dc-radius);
}
.dc-product-body { padding: .9rem 1rem 1.1rem; }
.dc-product-body h3 { font-size: 1rem; margin: 0 0 .35rem; line-height: 1.35; font-weight: 560; color: #0f172a; }
.dc-price { color: var(--dc-accent-deep); font-weight: 650; margin: 0; }
.dc-price.large { font-size: 1.4rem; margin: .5rem 0 1rem; }

.dc-chip-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.dc-chip {
  text-decoration: none; color: var(--dc-ink);
  background: var(--dc-panel);
  border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius-sm);
  padding: .45rem .9rem; font-weight: 560;
  backdrop-filter: blur(8px);
  box-shadow: var(--dc-shadow);
  transition: border-color .2s ease, color .2s ease, transform .2s ease, background .2s ease;
}
.dc-chip:hover {
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--dc-accent-deep);
  background: rgba(59, 130, 246, 0.04);
  transform: translateY(-1px);
}

/* —— 产品分类（参考站风格图文网格） —— */
.dc-cat-showcase { margin-top: 3rem; }
.dc-cat-showcase-head {
  text-align: center;
  margin-bottom: 1.75rem;
}
.dc-cat-showcase-head h1,
.dc-cat-showcase-head h2 {
  margin: 0 0 .55rem;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #2563eb;
}
.dc-cat-stats {
  margin: 0;
  color: var(--dc-muted);
  font-size: .95rem;
  letter-spacing: .02em;
}
.dc-cat-showcase-head .dc-muted { margin-top: .55rem; }
.dc-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.15rem 1rem;
}
.dc-cat-card {
  min-width: 0;
  animation: dcFade .5s ease both;
}
.dc-cat-card:nth-child(1) { animation-delay: .02s; }
.dc-cat-card:nth-child(2) { animation-delay: .05s; }
.dc-cat-card:nth-child(3) { animation-delay: .08s; }
.dc-cat-card:nth-child(4) { animation-delay: .11s; }
.dc-cat-card:nth-child(5) { animation-delay: .14s; }
.dc-cat-card:nth-child(6) { animation-delay: .17s; }
.dc-cat-card:nth-child(n+7) { animation-delay: .2s; }
.dc-cat-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.dc-cat-media {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: transform .28s ease, box-shadow .28s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dc-cat-card-link:hover .dc-cat-media {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}
.dc-cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dc-cat-placeholder {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.28);
  user-select: none;
}
.dc-cat-tone-0 .dc-cat-media { background: #f8d7e2; }
.dc-cat-tone-1 .dc-cat-media { background: #d7ebf8; }
.dc-cat-tone-2 .dc-cat-media { background: #d9f0e3; }
.dc-cat-tone-3 .dc-cat-media { background: #e8e9ed; }
.dc-cat-tone-4 .dc-cat-media { background: #f3e0d8; }
.dc-cat-tone-5 .dc-cat-media { background: #dde5ef; }
.dc-cat-caption {
  margin-top: .7rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.dc-cat-caption strong {
  font-size: .95rem;
  font-weight: 650;
  color: #0f172a;
  line-height: 1.3;
}
.dc-cat-caption span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.25;
}
.dc-cat-more {
  margin-top: 1.35rem;
  text-align: center;
}
.dc-cat-more a {
  color: var(--dc-accent);
  font-weight: 600;
  text-decoration: none;
}
.dc-cat-more a:hover {
  color: var(--dc-accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dc-page { padding-top: 2rem; }
.dc-page > h1 { margin-bottom: .75rem; }
.dc-brand-card, .dc-cat-list a {
  display: flex; gap: .9rem; align-items: center; text-decoration: none; color: inherit; padding: 1rem;
}
.dc-brand-card img {
  width: 56px; height: 56px; object-fit: contain;
  border-radius: 12px; background: #fff;
  border: 1px solid var(--dc-line);
}
.dc-cat-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.dc-cat-list li {
  background: var(--dc-panel);
  border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius);
  box-shadow: var(--dc-shadow);
  backdrop-filter: blur(10px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dc-cat-list li:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: var(--dc-shadow-hover);
}
.dc-cat-list a { justify-content: space-between; }
.dc-detail-head { display: flex; gap: 1.2rem; align-items: center; margin: 1rem 0 2rem; }
.dc-logo {
  width: 88px; height: 88px; object-fit: contain;
  background: #fff; border-radius: 16px; border: 1px solid var(--dc-line);
  box-shadow: var(--dc-shadow);
}
.dc-back {
  display: inline-block; margin-bottom: 1rem;
  color: var(--dc-accent); font-weight: 600; text-decoration: none;
}
.dc-back:hover { color: var(--dc-accent-deep); }
.dc-filter { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.5rem; }
.dc-filter input, .dc-filter select {
  border: 1px solid #e2e8f0; border-radius: var(--dc-radius-sm);
  padding: .55rem .8rem; background: rgba(255, 255, 255, 0.85); font: inherit;
  color: var(--dc-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dc-filter input:focus, .dc-filter select:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.dc-pager { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.dc-pager a { color: var(--dc-accent); font-weight: 600; text-decoration: none; }
.dc-pager a:hover { color: var(--dc-accent-deep); }
.dc-empty { color: var(--dc-muted); padding: 2rem 0; }
.dc-detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; margin-top: 1rem; }
.dc-detail-media {
  border-radius: var(--dc-radius); overflow: hidden;
  border: 1px solid var(--dc-line); background: #fff; min-height: 320px;
  box-shadow: var(--dc-shadow);
}
.dc-rich { line-height: 1.7; }
.dc-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.75);
  padding: 2rem 0 3rem; margin-top: 2rem; color: var(--dc-muted);
}
.dc-footer p { margin: 0 0 .45rem; }

@media (max-width: 960px) {
  .dc-header-inner { grid-template-columns: 1fr; }
  .dc-nav { justify-content: flex-start; }
  .dc-header-tools { justify-content: flex-start; }
  .dc-search { max-width: none; width: 100%; }
  .dc-brand-sub { max-width: 100%; white-space: normal; }
  .dc-grid, .dc-grid-brand, .dc-detail-grid { grid-template-columns: 1fr 1fr; }
  .dc-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .dc-grid, .dc-grid-brand, .dc-detail-grid { grid-template-columns: 1fr; }
  .dc-hero { padding-top: 2.75rem; }
  .dc-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .75rem; }
}

.dc-fade-in {
  animation: dcFade .45s ease both;
}
@keyframes dcFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}
::-webkit-scrollbar-track {
  background: transparent;
}
