:root {
  --bg: #f1f1f1;
  --surface: #ffffff;
  --surface-muted: #ececec;
  --text: #17191d;
  --text-soft: #606774;
  --line: #dddddd;
  --line-strong: #c8c8c8;
  --accent: #f45b12;
  --accent-dark: #d94a07;
  --accent-soft: #fff0e8;
  --free: #17795b;
  --free-soft: #e7f6f0;
  --radius: 2px;
  --shell: 1320px;
  --shadow: 0 8px 20px rgba(20, 20, 20, 0.09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-y: scroll; scroll-behavior: smooth; scrollbar-color: #aeb4bd #ffffff; scrollbar-width: thin; }
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: #ffffff; }
html::-webkit-scrollbar-thumb { border: 2px solid #ffffff; background: #aeb4bd; }
body {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.nav-shell,
.catalog-home,
.footer-shell,
.product-top-section > .shell,
.product-content-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--text); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.header-main { background: #fff; }
.nav-shell { height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 780; letter-spacing: .13em; white-space: nowrap; }
.brand img { width: 28px; height: 28px; }
.header-more-menu { margin-left: auto; }
.more-menu > button { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 100%; padding: 0; border: 0; background: transparent; color: #555; cursor: pointer; font-size: 14px; font-weight: 700; }
.more-menu > .icon-menu-button { width: 40px; justify-content: center; color: #080341; }
.more-menu > .icon-menu-button::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("../images/menu.svg") center / contain no-repeat; mask: url("../images/menu.svg") center / contain no-repeat; }
.more-menu > .icon-menu-button::after { display: none; }
.more-menu > .icon-menu-button:hover, .more-menu > .icon-menu-button:focus-visible, .more-menu > .icon-menu-button[aria-expanded="true"] { color: var(--accent); }
.icon-menu-button img { display: none; }
.more-menu > button::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .24s ease; }
.more-menu > button:hover::after, .more-menu > button:focus-visible::after { transform: scaleX(1); }
.more-menu > button:hover, .more-menu > button:focus-visible { color: var(--text); }
.more-menu { position: relative; height: 100%; }
.more-dropdown { position: absolute; top: calc(100% + 1px); right: 0; width: 168px; padding: 6px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.more-dropdown.is-open, .more-menu:hover .more-dropdown, .more-menu:focus-within .more-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.more-dropdown a { display: block; padding: 10px 12px; border-radius: 0; }
.more-dropdown a:hover, .more-dropdown a:focus-visible { background: var(--surface-muted); }

.compact-hero { min-height: 430px; padding-block: 52px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr); gap: 72px; align-items: center; }
.hero-copy { padding-left: clamp(0px, 2vw, 28px); }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.hero-copy h1 { max-width: 720px; margin: 0; font-size: clamp(42px, 3.8vw, 58px); line-height: 1.05; letter-spacing: -.055em; font-weight: 780; }
.hero-copy > p:not(.eyebrow) { max-width: 530px; margin: 24px 0 0; color: var(--text-soft); font-size: 17px; line-height: 1.75; }
.text-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 28px; color: var(--accent); font-weight: 760; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.hero-feature { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.hero-feature > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.hero-feature:hover > img { transform: scale(1.025); }
.hero-feature-copy { position: absolute; right: 16px; bottom: 16px; left: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.85); border-radius: 10px; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); }
.hero-feature-copy strong { font-size: 18px; }
.hero-feature-copy small { color: var(--text-soft); font-size: 13px; }

.catalog-home { min-height: 70vh; }
.catalog { padding-block: 46px 88px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.catalog-heading h1, .catalog-heading h2 { margin: 0; font-size: clamp(30px, 2.6vw, 42px); letter-spacing: -.04em; line-height: 1.1; }
.catalog-heading p { margin: 8px 0 0; color: var(--text-soft); }
.result-count { margin: 0 0 4px !important; font-size: 14px; }
.category-tabs { display: flex; gap: 28px; overflow-x: auto; margin-bottom: 24px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs button { min-height: 42px; padding: 0 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #555; cursor: pointer; font-size: 14px; font-weight: 700; white-space: nowrap; transition: border-color .2s ease, color .2s ease; }
.category-tabs button:hover { border-color: var(--accent); color: var(--accent); }
.category-tabs button:active { transform: scale(.98); }
.category-tabs button.is-active { border-color: var(--accent); background: transparent; color: var(--accent); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; min-width: 0; overflow: hidden; border: 0; border-radius: 0; background: #ffffff; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { z-index: 1; box-shadow: 0 12px 26px rgba(23, 25, 29, .11); transform: translateY(-3px); }
.product-image { position: relative; display: block; overflow: hidden; border: 0; background: #ffffff; }
.product-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.product-image.has-no-image, .product-main-image.has-no-image { display: grid; aspect-ratio: 4 / 3; place-items: center; background: #eeeeee; }
.product-image-placeholder { display: grid; width: 100%; min-height: 100%; place-items: center; padding: 24px; color: #7a818c; font-size: clamp(18px, 2vw, 28px); font-weight: 760; letter-spacing: -.02em; text-align: center; }
.product-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; min-height: 23px; align-items: center; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: white; font-size: 10px; font-weight: 800; line-height: 1; }
.product-badge.is-free { background: var(--free); }
.product-card-body { display: flex; min-height: 252px; flex-direction: column; padding: 18px; background: #ffffff; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #747b86; font-size: 12px; font-weight: 650; }
.platform-mark { display: inline-flex; align-items: center; gap: 7px; }
.product-meta img { width: 22px; height: 22px; object-fit: contain; }
.product-card h3 { margin: 14px 0 8px; font-size: 22px; line-height: 1.2; letter-spacing: -.025em; }
.product-card h3 a:hover { color: var(--accent); }
.product-card-body > p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.65; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 24px; }
.product-price-group { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.original-price { color: #777e89; font-size: 14px; font-weight: 500; text-decoration: line-through; }
.current-price { color: var(--accent); font-size: 20px; line-height: 1; }
.product-price-group.is-free .current-price { color: var(--free); font-size: 16px; }
.card-action { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 0; border-radius: 0; color: white; font: inherit; font-size: 13px; font-weight: 760; white-space: nowrap; cursor: pointer; transition: background-color .2s ease; }
.card-action:hover { transform: none; }
.card-action:active { transform: scale(.98); }
.card-action.is-paid { background: var(--accent); }
.card-action.is-paid:hover { background: var(--accent-dark); }
.card-action.is-free { background: #e1e1e1; color: #3f4349; }
.card-action.is-free:hover { background: #d6d6d6; color: var(--text); }
.card-action.is-disabled, .primary-action.is-disabled { cursor: not-allowed; opacity: .56; pointer-events: none; }
.empty-state { padding: 72px 24px; border: 1px dashed var(--line-strong); border-radius: 0; text-align: center; background: var(--surface); }
.empty-state h3 { margin: 0; font-size: 25px; }
.empty-state p { color: var(--text-soft); }
.empty-state button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 0; background: var(--text); color: white; cursor: pointer; }

.studio-note { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 48px; align-items: center; margin-bottom: 96px; padding: 42px 46px; border-radius: var(--radius); background: #eaf1ff; }
.studio-note h2 { margin: 0; font-size: clamp(28px, 2.5vw, 40px); line-height: 1.15; letter-spacing: -.04em; }
.studio-note p { margin: 0; color: #4e5c70; line-height: 1.7; }
.studio-note a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 9px; background: var(--accent); color: white; font-weight: 760; white-space: nowrap; }

.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: white; }
.footer-shell { min-height: 138px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-shell > div:first-child { display: grid; gap: 5px; }
.footer-shell strong { font-size: 14px; letter-spacing: .12em; }
.footer-shell span { color: var(--text-soft); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 24px; color: var(--text-soft); font-size: 13px; }
.footer-links a:hover { color: var(--accent); }

.product-page { background: #ffffff; color: #374151; }
.product-top-section { background: #ffffff; }
.product-content-section { border-top: 1px solid #e5e7eb; padding: 48px 0 80px; background: #ffffff; }
.product-content-shell { padding-inline: clamp(24px, 4vw, 64px); background: #fbfbfb; }
.product-breadcrumb { display: flex; gap: 10px; padding: 30px 0 26px; color: var(--text-soft); font-size: 13px; }
.product-breadcrumb a:hover { color: var(--accent); }
.product-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr); gap: 46px; align-items: start; padding-bottom: 58px; }
.product-gallery { display: block; }
.product-main-image { overflow: hidden; border: 0; border-radius: 0; background: #ffffff; }
.product-main-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.product-main-image > .product-image-placeholder { aspect-ratio: 4 / 3; }
.product-summary { padding: 16px 0 0; }
.product-platform { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--text-soft); font-size: 14px; font-weight: 700; }
.product-platform img { width: 24px; height: 24px; }
.product-summary h1 { margin: 0; color: #374151; font-size: clamp(38px, 3.25vw, 52px); line-height: 1.04; letter-spacing: -.045em; }
.product-lead { margin: 24px 0 22px; color: var(--text-soft); font-size: 16px; line-height: 1.75; }
.product-price { margin-bottom: 18px; font-weight: 800; }
.product-price .original-price { font-size: 17px; }
.product-price .current-price { font-size: 26px; }
.primary-action, .secondary-action { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border: 0; border-radius: 0; background: var(--accent); color: white; font: inherit; font-weight: 780; cursor: pointer; transition: background-color .2s ease; }
.primary-action:hover, .secondary-action:hover { background: var(--accent-dark); transform: translateY(-2px); }
.primary-action:active, .secondary-action:active { transform: scale(.99); }
.primary-action.is-free, .secondary-action.is-free { background: #e1e1e1; color: #3f4349; }
.primary-action.is-free:hover, .secondary-action.is-free:hover { background: #d6d6d6; color: var(--text); }
.external-note { margin: 10px 0 30px; color: #7a818c; font-size: 12px; text-align: center; }
.product-facts { margin: 0; padding: 22px 0 0; border-top: 1px solid #e5e7eb; background: transparent; }
.product-facts div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 8px 0; }
.product-facts dt { color: var(--text-soft); font-size: 13px; }
.product-facts dd { margin: 0; font-size: 13px; font-weight: 700; }
.detail-nav { border-bottom: 1px solid #e5e7eb; background: transparent; }
.detail-nav-inner { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.detail-nav a { padding: 20px 0; color: #6b7280; font-size: 14px; font-weight: 700; white-space: nowrap; }
.detail-nav a:hover { color: var(--accent); }
.detail-content { max-width: 960px; margin-inline: auto; padding-top: 66px; }
.detail-content section { scroll-margin-top: 100px; padding-bottom: 62px; }
.detail-content section:last-child { padding-bottom: 0; }
.detail-content h2 { margin: 0 0 20px; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.16; letter-spacing: -.035em; }
.detail-content > section > p { max-width: 740px; margin: 0; color: var(--text-soft); font-size: 17px; line-height: 1.9; }
.rich-content { max-width: 880px; color: var(--text-soft); font-size: 17px; line-height: 1.9; }
.rich-content > :first-child { margin-top: 0; }
.rich-content h2 { margin: 64px 0 18px; color: var(--text); }
.rich-content h3 { margin: 42px 0 14px; color: var(--text); font-size: 24px; line-height: 1.25; }
.rich-content h4 { margin: 30px 0 12px; color: var(--text); font-size: 19px; }
.rich-content p, .rich-content ul, .rich-content ol, .rich-content blockquote, .rich-content pre, .rich-content table, .rich-content figure { margin: 0 0 24px; }
.rich-content ul, .rich-content ol { padding-left: 24px; }
.rich-content li { margin-bottom: 8px; }
.rich-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rich-content img, .rich-content video { display: block; width: 100%; height: auto; margin: 34px 0; }
.rich-content figcaption { margin-top: -22px; color: #7a818c; font-size: 13px; text-align: center; }
.rich-content blockquote { padding-left: 20px; border-left: 3px solid var(--accent); }
.rich-content pre { overflow-x: auto; padding: 20px; background: #f0f0f0; color: #282c34; font-size: 14px; line-height: 1.65; }
.rich-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rich-content th, .rich-content td { padding: 12px 14px; border: 1px solid #dedede; text-align: left; }
.rich-content th { background: #f2f2f2; color: var(--text); }
.story-image { margin: 4px 0 66px; }
.story-image img { width: 100%; height: auto; }
.feature-list { display: block; max-width: 740px; }
.feature-list > div { margin-bottom: 26px; }
.feature-list > div:last-child { margin-bottom: 0; }
.feature-list h3, .faq-list h3 { margin: 0 0 7px; font-size: 19px; }
.feature-list p, .faq-list p { margin: 0; color: var(--text-soft); font-size: 16px; line-height: 1.8; }
.install-steps { max-width: 740px; margin: 0; padding-left: 22px; }
.install-steps li { margin-bottom: 14px; padding-left: 6px; color: var(--text-soft); font-size: 16px; line-height: 1.8; }
.install-steps li::marker { color: var(--accent); font-weight: 800; }
.faq-list { max-width: 740px; }
.faq-list > div { margin-bottom: 26px; }
.faq-list > div:last-child { margin-bottom: 0; }
.related-section { max-width: 960px; margin-inline: auto; padding: 86px 0 100px; }
.related-section > div:first-child { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.related-section h2 { margin: 0; font-size: 36px; letter-spacing: -.04em; }
.related-section > div:first-child a { color: var(--accent); font-weight: 760; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.related-grid .product-card { display: block; }
.related-grid .product-card-body { min-height: 252px; }
.product-not-found { padding-block: 130px; text-align: center; }
.product-not-found h1 { font-size: 48px; letter-spacing: -.05em; }
.product-not-found p { color: var(--text-soft); }
.product-not-found a { display: inline-flex; margin-top: 16px; padding: 12px 18px; border-radius: 9px; background: var(--accent); color: white; font-weight: 760; }

:focus-visible { outline: 3px solid rgba(28,102,229,.34); outline-offset: 3px; }

@media (max-width: 1120px) {
  .compact-hero { grid-template-columns: 1fr 1fr; gap: 40px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-hero { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr); gap: 36px; }
  .studio-note { grid-template-columns: 1fr 1fr; }
  .studio-note a { grid-column: 2; justify-self: start; }
}

@media (max-width: 820px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .nav-shell,
  .catalog-home,
  .footer-shell,
  .product-top-section > .shell,
  .product-content-shell {
    width: min(calc(100% - 32px), var(--shell));
  }
  .site-header { position: relative; }
  .nav-shell { height: 66px; }
  .more-menu > button { height: 66px; }
  .compact-hero { min-height: auto; grid-template-columns: 1fr; gap: 34px; padding-block: 42px 58px; }
  .hero-copy { padding-left: 0; }
  .hero-copy h1 { font-size: clamp(40px, 11vw, 58px); }
  .catalog { padding-block: 50px 76px; }
  .studio-note { grid-template-columns: 1fr; gap: 18px; margin-bottom: 64px; padding: 32px; }
  .studio-note a { grid-column: auto; justify-self: start; }
  .product-hero { grid-template-columns: 1fr; gap: 28px; padding-bottom: 46px; }
  .product-summary { padding-top: 0; }
  .detail-content { padding-top: 52px; }
  .related-grid .product-card { display: block; }
}

@media (max-width: 560px) {
  .product-grid, .related-grid { grid-template-columns: 1fr; }
  .catalog-heading { align-items: start; flex-direction: column; gap: 6px; }
  .product-card-body { min-height: 230px; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-shell { align-items: flex-start; flex-direction: column; justify-content: center; }
  .footer-links { justify-content: flex-start; }
  .hero-feature-copy { align-items: flex-start; flex-direction: column; gap: 2px; }
  .product-summary h1 { font-size: 46px; }
  .related-section > div:first-child { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .detail-nav, .hero-feature-copy { background: white; backdrop-filter: none; }
}
