:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #151515;
  --muted: #727272;
  --line: #ececec;
  --line-strong: #d9d9d9;
  --panel: #f7f7f7;
  --shadow: 0 18px 44px rgba(17, 17, 17, 0.06);
  --font-brand: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-display: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.pc-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;
}

.pc-shell {
  min-height: 100vh;
  position: relative;
}

.pc-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 94px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.pc-brand {
  font-family: var(--font-brand);
  font-size: 2.42rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-top:20px;
}

.pc-ai-latin {
  display: inline-block;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  transform: translateY(0.08em);
  margin-right: 0.08em;
}

.pc-sidebar-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 252px;
  z-index: 16;
  width: 64px;
  display: block;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
  cursor: ew-resize;
  transition: left 0.24s ease, transform 0.24s ease;
}

.pc-sidebar-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  border-radius: 0;
  background: linear-gradient(
    180deg,
    rgba(205, 205, 205, 0.08) 0%,
    rgba(178, 178, 178, 0.42) 10%,
    rgba(178, 178, 178, 0.42) 90%,
    rgba(205, 205, 205, 0.08) 100%
  );
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 0.14s ease, width 0.14s ease, background 0.14s ease;
}

.pc-sidebar-toggle:focus-visible {
  outline: none;
}

.pc-sidebar-toggle:hover::before,
.pc-sidebar-toggle:focus-visible::before {
  width: 3px;
  background: linear-gradient(
    180deg,
    rgba(205, 205, 205, 0.16) 0%,
    rgba(150, 150, 150, 0.86) 10%,
    rgba(150, 150, 150, 0.86) 90%,
    rgba(205, 205, 205, 0.16) 100%
  );
}

.pc-layout {
  position: relative;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: calc(100vh - 94px);
  transition: grid-template-columns 0.26s ease;
}

.pc-shell.pc-sidebar-hidden .pc-layout {
  grid-template-columns: 0 minmax(0, 1fr);
}

.pc-shell.pc-sidebar-hidden .pc-sidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-22px);
}

.pc-shell.pc-sidebar-hidden .pc-sidebar-toggle {
  left: 0;
  transform: none;
}

.pc-sidebar {
  border-right: 1px solid var(--line);
  position: relative;
  padding: 16px 10px 88px;
  overflow: hidden;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.pc-sidebar::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 18px;
  height: 1px;
  background: var(--line);
}

.pc-sidebar-inner {
  display: block;
}

.pc-sidebar-top {
  display: grid;
  gap: 18px;
}

.pc-nav-item,
.pc-history-head {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  display: grid;
  align-items: center;
  gap: 14px;
  color: #1d1d1d;
  text-align: left;
}

.pc-nav-item {
  grid-template-columns: 38px minmax(0, 1fr);
  border-radius: 0;
}

.pc-nav-item.pc-is-active {
  min-height: 82px;
  border: 1px solid #ececec;
  border-radius: 4px;
  background: #fafafa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.pc-nav-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.pc-nav-icon svg,
.pc-history-arrow svg {
  width: 24px;
  height: 24px;
}

.pc-nav-item span:last-child,
.pc-history-head span:nth-child(2) {
  font-size: 1.04rem;
  font-weight: 400;
  letter-spacing: 0;
}

.pc-sidebar-bottom {
  margin-top: 22px;
  padding-top: 0;
}

.pc-login-button {
  width: 100%;
  min-height: 52px;
  margin: 44px 0 0;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #fafafa;
  color: #1d1d1d;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-align: left;
}

.pc-login-button::before {
  content: "";
  width: 24px;
  height: 24px;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12.4c2.43 0 4.4-1.97 4.4-4.4S14.43 3.6 12 3.6 7.6 5.57 7.6 8s1.97 4.4 4.4 4.4Zm0 1.8c-3.57 0-6.7 1.86-8.48 4.66-.42.66.06 1.54.84 1.54h15.28c.78 0 1.26-.88.84-1.54C18.7 16.06 15.57 14.2 12 14.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12.4c2.43 0 4.4-1.97 4.4-4.4S14.43 3.6 12 3.6 7.6 5.57 7.6 8s1.97 4.4 4.4 4.4Zm0 1.8c-3.57 0-6.7 1.86-8.48 4.66-.42.66.06 1.54.84 1.54h15.28c.78 0 1.26-.88.84-1.54C18.7 16.06 15.57 14.2 12 14.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pc-login-button:hover {
  border-color: #ececec;
  background: #f5f5f5;
}

.pc-history-head {
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  padding: 0 8px 0 18px;
}

.pc-nav-icon.pc-nav-icon-plain svg {
  width: 24px;
  height: 24px;
}

.pc-history-head[aria-expanded="false"] .pc-history-arrow svg {
  transform: rotate(-90deg);
}

.pc-history-list {
  display: grid;
  gap: 14px;
  padding: 16px 26px 0 70px;
}

.pc-history-list[hidden] {
  display: none;
}

.pc-history-chip {
  display: block;
  padding: 0;
  color: #7d7d7d;
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.pc-feedback {
  width: min(864px, 100%);
  margin: 16px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafafa;
  color: #696969;
  font-size: 0.94rem;
  line-height: 1.7;
}

.pc-feedback[hidden] {
  display: none;
}

.pc-main {
  padding: 28px 42px 72px;
}

.pc-hero {
  display: grid;
  justify-items: center;
  padding-top: 18px;
}

.pc-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.14;

  letter-spacing: 0.02em;
}

.pc-hero h1 .pc-ai-latin {
  font-size: 0.92em;
  font-weight: 700;
  transform: translateY(0.06em);
}

.pc-hero > p {
  margin: 16px 0 0;
  color: #66615a;
  font-size: 1.04rem;
  line-height: 1.82;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.pc-search-box {
  position: relative;
  width: min(864px, 100%);
  min-height: 232px;
  margin-top: 58px;
  padding: 24px 26px 74px;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.045);
}

.pc-search-input {
  width: 100%;
  min-height: 72px;
  padding: 0;
  border: 0;
  resize: none;
  color: #54504a;
  font-size: 1.04rem;
  line-height: 1.76;
  outline: none;
}

.pc-search-input::placeholder {
  color: #7c7871;
}

.pc-search-preview {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  margin-top: 14px;
  padding: 0;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fcfcfc;
  overflow: visible;
}

.pc-search-preview[hidden] {
  display: none;
}

.pc-search-preview img {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  object-fit: cover;
}

.pc-search-preview-copy {
  display: none;
}

.pc-search-preview-copy strong {
  display: block;
  font-size: 0.94rem;
}

.pc-search-preview-copy p {
  margin: 2px 0 0;
  color: #858585;
  font-size: 0.84rem;
}

.pc-search-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border: 1px solid #dddddd;
  border-radius: 50%;
  background: #fff;
  color: #3f3b36;
  font-size: 0;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(17, 17, 17, 0.12);
}

.pc-search-remove::before {
  content: "×";
  font-size: 16px;
}

.pc-search-toolbar {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pc-upload-button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #dddddd;
  background: #fff;
  color: #111;
  border-radius: 14px;
  box-shadow: 0 3px 8px rgba(17, 17, 17, 0.03);
}

.pc-upload-button input {
  display: none;
}

.pc-upload-button svg {
  width: 18px;
  height: 18px;
}

.pc-submit-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #111;
  color: #fff;
  box-shadow: 0 6px 12px rgba(17, 17, 17, 0.075);
}

.pc-submit-button svg {
  width: 18px;
  height: 18px;
}

.pc-catalog {
  margin-top: 68px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.pc-catalog-shell {
  padding: 18px 10px 6px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 100% 0, rgba(242, 244, 246, 0.3), transparent 34%),
    radial-gradient(circle at 0 0, rgba(244, 246, 248, 0.34), transparent 34%),
    linear-gradient(180deg, #fcfcfc 0%, #ffffff 18%, #ffffff 100%);
}

.pc-tabs {
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 0 14px;
  overflow-x: auto;
}

.pc-tabs[hidden] {
  display: none !important;
}

.pc-tabs::-webkit-scrollbar {
  display: none;
}

.pc-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 0 0 18px;
  color: #7f7f7f;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pc-tab.pc-is-active {
  color: #1e1e1e;
  font-weight: 700;
}

.pc-tab.pc-is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: #222;
}

.pc-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.pc-card[hidden] {
  display: none;
}

.pc-card-button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 392px;
  padding: 28px 22px 22px;
  border: 1px solid #e7eaed;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.025);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.pc-card-button:hover {
  border-color: #dcdfe3;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.04);
}

.pc-card-flag {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 78px;
  height: 42px;
  padding: 0 14px;
  display: grid;
  place-items: center;
  border-radius: 0 30px 0 22px;
  background: #eef5ef;
  color: #5a7e60;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pc-card-button h3 {
  max-width: 92%;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pc-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: #8c8c8f;
  font-size: 0.94rem;
  font-weight: 400;
}

.pc-card-meta-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.pc-card-meta-icon svg {
  width: 18px;
  height: 18px;
}

.pc-card-reason {
  margin: 12px 0 0;
  color: #6f6f6f;
  font-size: 0.94rem;
  line-height: 1.62;
}

.pc-card-media {
  margin-top: 22px;
  height: 208px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f2f2f2;
  background: linear-gradient(180deg, #f8f7f5 0%, #f3f2ef 100%);
}

.pc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.pc-card.pc-result-card .pc-card-button {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.pc-card.pc-result-card .pc-card-button:hover {
  border-color: transparent;
  box-shadow: none;
}

.pc-card.pc-home-product .pc-card-button {
  padding: 18px;
  border: 1px solid #ececec;
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.025);
}

.pc-card.pc-home-product .pc-card-button:hover {
  border-color: #dcdcdc;
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.04);
}

.pc-card.pc-result-card .pc-card-media {
  height: 286px;
  margin: 0;
  border: 1px solid #ededed;
  border-radius: 0;
  background: #fafafa;
}

.pc-card.pc-home-product .pc-card-media {
  height: 238px;
  border-radius: 22px;
}

.pc-card.pc-result-card .pc-card-media img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  transition: transform 0.24s ease;
}

.pc-card.pc-result-card .pc-card-button:hover .pc-card-media img {
  transform: scale(1.025);
}

.pc-result-copy {
  padding: 18px 0 2px;
}

.pc-result-brand {
  margin: 0 0 8px;
  color: #777;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pc-result-brand:empty {
  display: none;
}

.pc-card.pc-result-card .pc-card-button h3 {
  max-width: 100%;
  margin: 0;
  color: #111;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.pc-card.pc-result-card .pc-card-meta {
  margin: 9px 0 0;
  color: #9a9a9a;
  font-size: 0.82rem;
  line-height: 1.4;
}

.pc-result-price {
  margin: 10px 0 0;
  color: #111;
  font-size: 0.94rem;
  line-height: 1.3;
  font-weight: 500;
}

.pc-empty {
  padding: 36px 14px 12px;
  color: #7a7a7a;
  font-size: 0.96rem;
}

.pc-empty[hidden] {
  display: none;
}

.pc-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.pc-dialog-backdrop[hidden] {
  display: none;
}

.pc-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  background: #f8f8f8;
  color: #111;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.pc-dialog-kicker {
  margin: 0 0 14px;
  color: #8a8a8a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pc-dialog-note {
  margin: 12px 0 26px;
  color: #777;
  font-size: 0.92rem;
  line-height: 1.7;
}

.pc-login-dialog,
.pc-product-dialog {
  position: relative;
  width: min(92vw, 980px);
  border: 1px solid #ebebeb;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

.pc-login-dialog {
  max-width: 460px;
  padding: 46px 42px 40px;
}

.pc-login-dialog h2,
.pc-product-dialog h2 {
  margin: 0;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.pc-login-form {
  display: grid;
  gap: 16px;
}

.pc-login-form label {
  display: grid;
  gap: 8px;
  color: #555;
  font-size: 0.9rem;
}

.pc-login-form input {
  width: 100%;
  border: 1px solid #dedede;
  border-radius: 16px;
  padding: 15px 16px;
  background: #fbfbfb;
  color: #111;
  font: inherit;
  outline: none;
}

.pc-login-form input:focus {
  border-color: #111;
  background: #fff;
}

.pc-login-form button,
.pc-product-actions button {
  border: 0;
  border-radius: 18px;
  padding: 15px 22px;
  background: #111;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.pc-login-button.pc-is-logged-in {
  color: #111;
  background: #f4f4f4;
}

.pc-product-dialog {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  padding: 54px;
}

.pc-product-image-wrap {
  display: flex;
  min-height: 420px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  background: #f8f8f8;
}

.pc-product-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
}

.pc-product-info {
  align-self: center;
  padding-right: 26px;
}

.pc-product-category {
  margin: 28px 0 0;
  color: #555;
  font-size: 1.04rem;
  letter-spacing: 0.04em;
}

.pc-product-price {
  margin: 32px 0 0;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1;
}

.pc-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.pc-product-actions button + button {
  background: #f2f2f2;
  color: #111;
}

@media (max-width: 1400px) {
  .pc-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .pc-layout {
    grid-template-columns: 0 minmax(0, 1fr);
  }

  .pc-sidebar {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-22px);
  }

  .pc-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-product-dialog {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 34px;
  }

  .pc-product-image-wrap {
    min-height: 280px;
  }

  .pc-product-info {
    padding-right: 0;
  }
}
