:root {
  color-scheme: dark;
  --background: #101015;
  --panel: #17171f;
  --ink: #f6f3fb;
  --muted: #b2aebe;
  --lavender: #c9b5f4;
  --coral: #ff786f;
  --line: #302d39;
  --max-width: 1264px;
  --gutter: clamp(20px, 5.5vw, 84px);
  font-family: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-block-start: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font-size: 15px; line-height: 1.6; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .48; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 4px; }
::selection { color: #19121d; background: var(--lavender); }
#home, #main, #catalog, #recommend { scroll-margin-block-start: 16px; }

.shell { width: min(calc(100% - var(--gutter) * 2), var(--max-width)); margin-inline: auto; }
.icon-library, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; transform: translateY(-160%); background: var(--lavender); color: #1a1222; padding: 9px 14px; border-radius: 7px; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 5; background: #101015; border-bottom: 1px solid #292630; }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; column-gap: 25px; }
.brand { display: inline-flex; gap: 11px; align-items: center; justify-self: start; }
.brand-icon { color: var(--coral); width: 34px; height: 34px; flex: none; }
.brand-text { display: grid; line-height: 1.2; gap: 5px; }
.brand-text strong { font-size: 19px; letter-spacing: .09em; }
.brand-text span { color: var(--muted); font-size: 10px; letter-spacing: .055em; white-space: nowrap; }
.main-nav { display: flex; align-items: stretch; gap: clamp(26px, 3.35vw, 54px); align-self: stretch; }
.main-nav a { display: grid; position: relative; align-items: center; color: #bdb7c8; font-size: 14px; font-weight: 600; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); }
.main-nav a[aria-current]::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--coral); border-radius: 3px 3px 0 0; }
.header-tools { display: flex; gap: 10px; align-items: center; justify-self: end; }
.icon-button, .bag-button { display: inline-flex; justify-content: center; align-items: center; min-height: 43px; border: 1px solid var(--line); background: #18171e; border-radius: 9px; }
.icon-button { width: 43px; padding: 0; }
.search-button { background: transparent; border-color: transparent; }
.bag-button { gap: 8px; padding: 0 10px; white-space: nowrap; font-size: 13px; }
.bag-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 3px; border-radius: 30px; background: var(--coral); color: #231419; font: 700 11px/1 Arial, sans-serif; }

.hero { overflow: hidden; position: relative; background: radial-gradient(ellipse at 71% 56%, #251b36 0%, #15121d 42%, #101015 73%); border-bottom: 1px solid var(--line); }
.hero::before { position: absolute; inset: 0; content: ""; background: radial-gradient(circle, #a190bb 1px, transparent 1.25px) 0 0 / 21px 21px; opacity: .19; mask-image: linear-gradient(105deg, transparent 2%, #000 24%, #000 88%, transparent 100%); pointer-events: none; }
.hero-inner { min-height: clamp(454px, 32vw, 514px); position: relative; display: grid; align-items: center; isolation: isolate; }
.hero-copy { max-width: 570px; position: relative; z-index: 1; padding-block: 49px 55px; animation: rise-in .56s ease-out both; }
.hero-tag { display: inline-flex; align-items: center; gap: 9px; border: 1px solid #494051; border-radius: 30px; padding: 5px 12px; background: #1d1925; color: #ded4ed; font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.hero-tag span { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 11px #ff786f86; }
.hero h1 { font-size: clamp(54px, 6.05vw, 93px); font-weight: 850; line-height: 1.075; letter-spacing: -.065em; margin: 20px 0 21px; }
.hero h1 em { color: var(--lavender); font-style: normal; }
.hero-comma { letter-spacing: -.2em; }
.hero-description { max-width: 34ch; color: #c8c2d3; line-height: 1.85; font-size: clamp(15px, 1.2vw, 17px); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 48px; display: inline-flex; gap: 10px; align-items: center; justify-content: center; padding: 9px 17px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; line-height: 1.35; transition: background-color .18s, border-color .18s, color .18s; }
.button-primary { background: var(--coral); color: #211218; }
.button-primary:hover { background: #ff9890; }
.button-outline { border-color: #565060; background: #1a1821; color: var(--ink); }
.button-outline:hover { background: #292334; border-color: #a08caf; }
.hero-actions .button { padding-inline: 19px; }
.hero-actions .button-outline .icon { color: var(--lavender); }
.hero-visual { position: absolute; inset: 0 -26px 0 auto; width: min(72%, 870px); z-index: 0; animation: rise-in .68s .05s ease-out both; }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; object-position: center right; }
.hero-visual figcaption { position: absolute; bottom: 30px; right: 30px; display: grid; gap: 3px; border-left: 1px solid var(--coral); padding-left: 11px; line-height: 1.4; }
.hero-visual figcaption span { color: #bdb2cf; font-size: 11px; letter-spacing: .13em; }
.hero-visual figcaption strong { color: #f1eafa; font-size: 13px; letter-spacing: .055em; }

.benefits { background: #15141b; border-bottom: 1px solid var(--line); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 83px; align-items: center; }
.benefit { display: flex; align-items: center; gap: 13px; padding-block: 4px; }
.benefit + .benefit { border-left: 1px solid #34303d; padding-left: clamp(18px, 4vw, 58px); }
.benefit-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: var(--lavender); border: 1px solid #3b324a; background: #231e2f; border-radius: 10px; }
.benefit h2 { font-size: 14px; font-weight: 750; }
.benefit p { margin-top: 2px; color: var(--muted); font-size: 12px; }

.catalog { padding-block: 43px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.section-heading h2, .recommendation h2 { font-size: clamp(34px, 4vw, 50px); letter-spacing: -.065em; line-height: 1.1; font-weight: 850; }
.heading-dot { color: var(--coral); margin-left: .1em; font-family: Arial, sans-serif; }
.section-heading p { margin-top: 8px; color: var(--muted); }
.section-heading .catalog-summary { margin-bottom: 2px; white-space: nowrap; font-size: 13px; }
.catalog-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px 18px; padding-block: 10px; margin-bottom: 10px; border-top: 1px solid var(--line); }
.filters, .catalog-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters button { padding: 0 14px; min-height: 40px; border-radius: 7px; border: 1px solid #36313f; white-space: nowrap; background: #18171f; color: #d1cbdc; font-size: 13px; }
.filters button[aria-pressed="true"] { color: #21192d; border-color: var(--lavender); background: var(--lavender); font-weight: 750; }
.icon-button:hover, .bag-button:hover, .filters button[aria-pressed="false"]:hover { background: #282232; border-color: #62536f; }
.search-field, .sort-field, .select-wrap { position: relative; display: flex; align-items: center; }
.search-field .icon { position: absolute; left: 10px; color: #b5abc4; width: 17px; height: 17px; pointer-events: none; }
.sort-field .icon, .select-wrap .icon { pointer-events: none; position: absolute; right: 10px; width: 17px; height: 17px; color: var(--lavender); }
.search-field input, .sort-field select, .select-wrap select { min-height: 40px; width: 100%; border: 1px solid #41394c; border-radius: 7px; background: #15141b; color: var(--ink); font-size: 13px; }
.search-field input { padding: 0 9px 0 34px; width: 142px; }
.search-field input::placeholder { color: #b6afc2; opacity: 1; }
.sort-field select, .select-wrap select { appearance: none; padding: 0 32px 0 10px; cursor: pointer; }

.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product { overflow: hidden; display: flex; min-width: 0; flex-direction: column; border: 1px solid #312c3a; border-radius: 13px; background: var(--panel); transition: border-color .18s; }
.product:hover, .product:focus-within { border-color: #736187; }
.product-visual { position: relative; isolation: isolate; overflow: hidden; background: #211b2e; border-bottom: 1px solid #39303f; }
.visual-violet { background: #27213a; }
.visual-rose { background: #32212f; }
.visual-blue { background: #1e2536; }
.product-visual img { width: 100%; height: auto; aspect-ratio: 14 / 9; object-fit: cover; transition: transform .35s ease; }
.product:hover .product-visual img { transform: scale(1.035); }
.product-category { position: absolute; top: 13px; left: 13px; padding: 3px 9px; background: #18141ffe; color: #eee5f7; border: 1px solid #65536f; border-radius: 5px; font-size: 11px; }
.product-info { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.product-info h3 { font-size: clamp(17px, 2vw, 22px); font-weight: 780; line-height: 1.3; letter-spacing: -.035em; }
.product-description { margin: 7px 0 15px; color: var(--muted); font-size: 13px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 13px; margin-top: auto; border-top: 1px solid #332e3c; }
.price { color: #ff9189; font: 750 23px/1.2 Arial, "Microsoft YaHei", sans-serif; font-variant-numeric: tabular-nums; }
.product-button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: -4px -6px -4px 0; padding: 4px 6px; border: 0; border-radius: 5px; background: transparent; color: var(--lavender); font-size: 13px; font-weight: 700; }
.product-button:hover { background: #292234; color: #eddefd; }
.product-button .icon { width: 17px; height: 17px; }
.empty-state { text-align: center; padding: 42px 12px; border: 1px solid var(--line); border-radius: 12px; }
.empty-state p { margin: 6px 0 16px; color: var(--muted); }

.recommendation { padding-block: 58px 32px; }
.recommend-panel { position: relative; isolation: isolate; background: linear-gradient(115deg, #201b2b, #18161f 72%); border: 1px solid #42384f; border-radius: 16px; padding: clamp(24px, 4vw, 50px); display: grid; grid-template-columns: 1fr minmax(0, 1.05fr); align-items: start; gap: 28px 44px; }
.recommend-panel::before { content: ""; z-index: -1; position: absolute; inset: 0; border-radius: inherit; opacity: .18; background: radial-gradient(#ae97ce 1px, transparent 1.25px) 0 0 / 17px 17px; mask-image: linear-gradient(100deg, #000, transparent 62%); pointer-events: none; }
.recommend-icon { margin-bottom: 15px; }
.recommend-copy p { margin-top: 12px; color: #c9bfd6; max-width: 31ch; }
.recommend-tool { width: 100%; min-width: 0; padding: 16px; border: 1px solid #40354e; background: #15131cc9; border-radius: 10px; }
.recommend-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.recommend-fields label { display: grid; gap: 7px; color: #e0d7ea; font-size: 13px; font-weight: 650; }
.select-wrap select { min-height: 44px; background: #211b2b; }
.recommend-submit { margin-top: 14px; width: 100%; justify-content: space-between; }
.recommend-results { display: grid; gap: 7px; margin-top: 14px; animation: rise-in .25s ease-out both; }
.recommend-results p { font-size: 13px; color: #d3c9df; }
.recommend-result { display: flex; align-items: center; justify-content: space-between; gap: 9px; text-align: left; border: 1px solid #4c4059; border-radius: 7px; background: #201a2a; padding: 9px 10px; font-size: 13px; }
.recommend-result:hover { border-color: #a18ab4; }
.recommend-result small { display: block; color: var(--muted); font-size: 12px; }
.recommend-result > span:last-child { color: var(--lavender); white-space: nowrap; }
.catalog-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; }

.dialog { max-width: min(500px, calc(100% - 28px)); width: 100%; max-height: calc(100% - 28px); overflow: auto; padding: 0; color: var(--ink); background: #191720; border: 1px solid #58496a; border-radius: 15px; }
.dialog::backdrop { background: #08060cba; backdrop-filter: blur(4px); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.dialog-top h2 { font-size: 20px; }
.dialog-label { color: var(--lavender); font-size: 13px; }
.dialog .icon-button { width: 40px; min-height: 40px; }
.detail-visual img { max-height: 235px; object-fit: contain; }
.dialog-body { padding: 20px; }
.dialog-body h2 { font-size: 27px; line-height: 1.2; margin: 4px 0 10px; }
.detail-category { color: var(--lavender); font-size: 12px; }
.detail-description, .list-intro, .list-empty { color: #d1c7dc; }
.detail-scenes { font-size: 13px; margin-top: 8px; color: var(--muted); }
.detail-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.detail-feedback { color: var(--lavender); font-size: 13px; }
.detail-feedback:not(:empty) { margin-top: 9px; }
.list-intro { margin-bottom: 14px; }
.list-empty { border: 1px dashed #4e435a; border-radius: 8px; padding: 19px 12px; text-align: center; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 10px; border-top: 1px solid var(--line); }
.list-item h3 { font-size: 14px; }
.list-item .price { font-size: 15px; }
.quantity { display: flex; align-items: center; gap: 6px; }
.quantity span { min-width: 19px; text-align: center; font-variant-numeric: tabular-nums; }
.quantity .icon-button { width: 35px; min-height: 35px; }
.quantity .icon { width: 16px; height: 16px; }
.list-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 13px; }
.list-return { margin-top: 15px; }

@keyframes rise-in { from { opacity: .45; transform: translateY(11px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1020px) {
  .hero-inner { min-height: 440px; }
  .hero-visual { width: 68%; inset-inline-end: -22px; }
  .hero-visual figcaption { right: 18px; }
  .products { gap: 14px; }
  .product-info { padding: 15px; }
}

@media (max-width: 790px) {
  :root { scroll-padding-block-start: 68px; }
  .header-row { column-gap: 12px; min-height: 66px; }
  .main-nav { gap: 22px; }
  .bag-label { display: none; }
  .header-tools { gap: 0; }
  .hero-inner { min-height: 410px; }
  .hero h1 { font-size: clamp(49px, 8vw, 65px); }
  .hero-description { max-width: 19em; }
  .hero-visual { width: 68%; }
  .hero-visual figcaption { bottom: 21px; }
  .benefit + .benefit { padding-left: 14px; }
  .benefit { gap: 9px; }
  .benefit-icon { width: 38px; height: 38px; }
  .catalog { padding-top: 42px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recommend-panel { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { scroll-padding-block-start: 101px; }
  .header-row { grid-template-columns: 1fr auto; padding-top: 8px; min-height: 99px; }
  .brand-icon { width: 30px; height: 30px; }
  .brand-text strong { font-size: 17px; }
  .header-tools { grid-column: 2; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 10px; min-height: 43px; }
  .main-nav a { padding-inline: 6px; }
  .hero-inner { display: block; min-height: 0; }
  .hero-copy { padding-block: 28px 0; }
  .hero h1 { font-size: clamp(47px, 11.4vw, 68px); margin: 15px 0 13px; }
  .hero-description { max-width: 24em; }
  .hero-actions { margin-top: 19px; gap: 8px; }
  .hero-actions .button { min-height: 44px; padding-inline: 13px; }
  .hero-visual { position: relative; inset: auto; width: calc(100% + 28px); margin: -7px -14px 0; }
  .hero-visual img { height: auto; aspect-ratio: 8 / 5; object-fit: contain; object-position: center; }
  .hero-visual figcaption { right: 12px; bottom: 15px; }
  .hero { background: radial-gradient(ellipse at 57% 72%, #261c39, #171320 55%, #101015 86%); }
  .hero::before { mask-image: linear-gradient(#000, #000 86%, transparent); }
  .benefits-grid { min-height: 0; padding-block: 10px; align-items: stretch; }
  .benefit, .benefit + .benefit { flex-direction: column; gap: 5px; padding: 4px 5px; text-align: center; }
  .benefit p { font-size: 11px; line-height: 1.45; }
  .benefit h2 { font-size: 13px; }
  .benefit-icon { width: 34px; height: 34px; }
  .benefit-icon .icon { width: 18px; height: 18px; }
  .section-heading { gap: 5px; margin-bottom: 17px; }
  .section-heading p { font-size: 13px; margin-top: 8px; }
  .section-heading .catalog-summary { font-size: 11px; }
  .catalog-controls { gap: 10px; }
  .filters { gap: 5px; }
  .filters button { padding-inline: 9px; min-height: 42px; }
  .catalog-tools { width: 100%; flex-wrap: nowrap; }
  .search-field { flex: 1; min-width: 0; }
  .search-field input { width: 100%; min-width: 0; }
  .search-field input, .sort-field select, .select-wrap select { font-size: 16px; }
  .sort-field select { font-size: 14px; }
  .recommendation { padding-top: 36px; }
  .recommend-panel { padding: 17px; gap: 18px; }
  .recommend-tool { padding: 12px; }
}

@media (max-width: 430px) {
  .products { grid-template-columns: minmax(0, 1fr); }
  .hero-visual img { aspect-ratio: 8 / 5.35; }
  .hero-visual figcaption { bottom: 11px; }
  .product-visual img { aspect-ratio: 14 / 8; }
  .benefit p { max-width: 9em; }
}

@media (max-width: 370px) {
  .filters button { padding-inline: 6px; font-size: 12px; }
  .recommend-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .product:hover .product-visual img { transform: none; }
}
