/* ================================================================
   PONE JOY 官网视觉系统
   ----------------------------------------------------------------
   1. 使用 CSS 变量统一色彩、间距、圆角与阴影，换主题时只改一处。
   2. 所有动效都有 prefers-reduced-motion 降级，照顾易晕动用户。
   3. 布局以 Grid/Flex 自适应，不依赖固定屏幕尺寸或第三方框架。
   ================================================================ */

/* ---------- 设计变量与基础重置 ---------- */
:root {
    --ink: #251d29;
    --ink-soft: #665f69;
    --paper: #fbf9f7;
    --paper-deep: #f3eef1;
    --white: #ffffff;
    --purple-950: #2f1b3d;
    --purple-900: #3c244d;
    --purple-800: #4b2d61;
    --purple-700: #5d397c;
    --purple-600: #735093;
    --purple-500: #8d6aaa;
    --purple-300: #c8b2d7;
    --purple-150: #e7ddee;
    --purple-100: #f0e9f4;
    --mint: #75d3c6;
    --mint-soft: #dff5f1;
    --sand: #e7d4b8;
    --line: rgba(47, 27, 61, 0.12);
    --line-light: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 10px 30px rgba(61, 36, 77, 0.08);
    --shadow-lg: 0 28px 80px rgba(61, 36, 77, 0.16);
    --radius-sm: 12px;
    --radius-md: 22px;
    --radius-lg: 34px;
    --radius-pill: 999px;
    --shell: 1240px;
    --header-height: 78px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

h1,
h2,
h3,
p,
figure {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.18;
    letter-spacing: -0.035em;
}

::selection {
    background: var(--purple-700);
    color: var(--white);
}

[hidden] {
    display: none !important;
}

.shell {
    width: min(calc(100% - 48px), var(--shell));
    margin-inline: auto;
}

.section {
    padding-block: clamp(84px, 10vw, 144px);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    z-index: 999;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    color: var(--purple-800);
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 4px;
}

/* ---------- 可复用排版与按钮 ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--purple-700);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 24px;
    height: 1px;
    background: currentColor;
    content: "";
}

.eyebrow--light {
    color: rgba(255, 255, 255, 0.72);
}

.eyebrow--compact {
    margin-bottom: 12px;
    font-size: 10px;
}

.eyebrow--compact::before {
    width: 16px;
}

.button {
    position: relative;
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 25px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.button::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.3) 50%, transparent 80%);
    content: "";
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease-out);
}

.button:hover::before {
    transform: translateX(120%);
}

.button:hover {
    transform: translateY(-2px);
}

.button--solid {
    background: var(--purple-800);
    box-shadow: 0 12px 28px rgba(75, 45, 97, 0.23);
    color: var(--white);
}

.button--solid:hover {
    background: var(--purple-700);
    box-shadow: 0 16px 34px rgba(75, 45, 97, 0.3);
}

.button--ghost {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.46);
    color: var(--purple-800);
}

.button--ghost:hover {
    border-color: var(--purple-300);
    background: var(--white);
}

.button--light {
    background: var(--white);
    color: var(--purple-900);
}

.button--small {
    min-height: 42px;
    padding: 10px 18px;
    font-size: 13px;
}

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--purple-700);
    font-size: 14px;
    font-weight: 750;
}

.inline-link span {
    transition: transform 0.3s var(--ease-out);
}

.inline-link:hover span {
    transform: translateX(5px);
}

.inline-link--large {
    font-size: 16px;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: end;
    gap: 72px;
    margin-bottom: 52px;
}

.section-heading h2 {
    max-width: 780px;
    margin-bottom: 0;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 520;
}

.section-heading > p {
    max-width: 510px;
    margin-bottom: 4px;
    color: var(--ink-soft);
    font-size: 16px;
}

.section-heading--center {
    display: block;
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.section-heading--center .eyebrow {
    justify-content: center;
}

.section-heading--center > p {
    margin: 18px auto 0;
}

/* ---------- 顶部导航 ---------- */
.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    background: rgba(251, 249, 247, 0.78);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    transition: height 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    height: 70px;
    border-color: var(--line);
    background: rgba(251, 249, 247, 0.94);
    box-shadow: 0 8px 30px rgba(47, 27, 61, 0.05);
}

.header-inner {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

/* 使用正式品牌图片，不再以 CSS 形状近似绘制 Logo。 */
.brand-logo {
    display: block;
    width: auto;
    object-fit: contain;
}

.brand-logo--header {
    height: 62px;
}

.header-panel,
.primary-nav,
.account-nav {
    display: flex;
    align-items: center;
}

.header-panel {
    flex: 1;
    justify-content: flex-end;
    gap: clamp(28px, 5vw, 72px);
}

.primary-nav {
    gap: clamp(22px, 3vw, 42px);
}

.primary-nav a {
    position: relative;
    padding-block: 9px;
    color: #504754;
    font-size: 14px;
    font-weight: 600;
}

.primary-nav a::after {
    position: absolute;
    right: 50%;
    bottom: 2px;
    left: 50%;
    height: 2px;
    border-radius: 2px;
    background: var(--purple-600);
    content: "";
    transition: right 0.3s var(--ease-out), left 0.3s var(--ease-out);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
    right: 0;
    left: 0;
}

.primary-nav a[aria-current="page"] {
    color: var(--purple-800);
}

.account-nav {
    gap: 13px;
    font-size: 13px;
}

.text-link,
.text-button {
    padding: 8px 4px;
    background: none;
    cursor: pointer;
    color: var(--purple-700);
    font-weight: 700;
}

.text-link:hover,
.text-button:hover {
    color: var(--purple-500);
}

.member-chip {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--purple-100);
    color: var(--purple-700);
    font-weight: 800;
}

.member-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
}

/* ---------- 消息提示与返回顶部 ---------- */
.toast-stack {
    position: fixed;
    z-index: 200;
    top: 94px;
    right: 24px;
    display: grid;
    width: min(380px, calc(100vw - 48px));
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    font-size: 14px;
    animation: toast-in 0.5s var(--ease-out) both;
}

.toast::before {
    width: 7px;
    align-self: stretch;
    border-radius: 8px;
    background: var(--mint);
    content: "";
}

.toast--error::before {
    background: #c95b68;
}

.toast button {
    padding: 2px 5px;
    background: transparent;
    cursor: pointer;
    color: var(--ink-soft);
    font-size: 20px;
}

.toast.is-leaving {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top {
    position: fixed;
    z-index: 80;
    right: 24px;
    bottom: 24px;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--line-light);
    border-radius: 50%;
    background: var(--purple-900);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    color: var(--white);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--purple-700);
}

/* ---------- 首页首屏 ---------- */
.home-hero {
    position: relative;
    min-height: calc(100svh - var(--header-height));
    padding-block: clamp(52px, 7vw, 94px) 90px;
    overflow: hidden;
    background:
        radial-gradient(circle at var(--glow-x, 12%) var(--glow-y, 24%), rgba(117, 211, 198, 0.22), transparent 24%),
        linear-gradient(135deg, #f9f6f4 0%, #f7f0f5 56%, #eee4f1 100%);
}

.home-hero::before {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(93, 57, 124, 0.08) 0.6px, transparent 0.6px);
    background-size: 17px 17px;
    content: "";
    mask-image: linear-gradient(to right, black, transparent 54%);
    pointer-events: none;
}

.home-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1.14fr);
    align-items: center;
    gap: clamp(42px, 6vw, 92px);
}

.home-hero__content {
    padding-block: 28px;
}

.home-hero h1 {
    max-width: 670px;
    margin-bottom: 26px;
    color: var(--purple-950);
    font-size: clamp(47px, 5.8vw, 82px);
    font-weight: 470;
}

.home-hero h1 em,
.page-hero h1 em {
    color: var(--purple-600);
    font-style: normal;
}

.hero-lead {
    max-width: 590px;
    margin-bottom: 34px;
    color: var(--ink-soft);
    font-size: clamp(16px, 1.45vw, 19px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: clamp(44px, 6vh, 72px);
}

.hero-note__mark {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(93, 57, 124, 0.2);
    border-radius: 50%;
    color: var(--purple-700);
    font-size: 13px;
}

.hero-note span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.45;
}

.hero-note strong {
    font-size: 13px;
}

.hero-note small {
    color: var(--ink-soft);
    font-size: 11px;
}

.home-hero__visual {
    position: relative;
    width: min(100%, 690px);
    justify-self: end;
    perspective: 1200px;
}

.visual-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.72);
    border-radius: 44% 44% 26px 26px;
    box-shadow: var(--shadow-lg);
    transform: rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg));
    transform-style: preserve-3d;
    transition: transform 0.7s var(--ease-out);
}

.visual-frame::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(47, 27, 61, 0.48), transparent 38%);
    content: "";
    pointer-events: none;
}

.visual-frame > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% center;
    transition: transform 1.2s var(--ease-out);
}

.home-hero__visual:hover .visual-frame > img {
    transform: scale(1.035);
}

.visual-caption {
    position: absolute;
    z-index: 2;
    right: 28px;
    bottom: 25px;
    left: 28px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    color: var(--white);
}

.visual-caption span {
    font-size: 11px;
    letter-spacing: 0.16em;
}

.visual-caption strong {
    font-size: 18px;
    font-weight: 600;
}

.visual-index {
    position: absolute;
    z-index: 2;
    top: 25px;
    right: 27px;
    color: rgba(47, 27, 61, 0.66);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.visual-badge {
    position: absolute;
    z-index: 3;
    top: 12%;
    left: -35px;
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 50%;
    background: rgba(93, 57, 124, 0.88);
    box-shadow: 0 14px 34px rgba(47, 27, 61, 0.2);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1.45;
    text-align: center;
    transform: rotate(-8deg);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.hero-orb--one {
    top: 12%;
    right: -80px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(93, 57, 124, 0.12);
}

.hero-orb--two {
    right: 44%;
    bottom: -110px;
    width: 230px;
    height: 230px;
    background: rgba(117, 211, 198, 0.14);
}

.scroll-cue {
    position: absolute;
    z-index: 4;
    bottom: 23px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--purple-600);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
    transform: translateX(-50%) rotate(90deg);
    transform-origin: center;
}

.scroll-cue i {
    position: relative;
    width: 42px;
    height: 1px;
    overflow: hidden;
    background: rgba(93, 57, 124, 0.24);
}

.scroll-cue i::after {
    position: absolute;
    inset: 0;
    background: var(--purple-600);
    content: "";
    animation: scroll-line 1.8s ease-in-out infinite;
}

/* 首屏进入动效在脚本加载前也能稳定展示；JS 只负责增强后续滚动动效。 */
.hero-enter {
    animation: hero-enter 0.9s var(--ease-out) both;
}

.hero-enter:nth-child(2) { animation-delay: 0.08s; }
.hero-enter:nth-child(3) { animation-delay: 0.16s; }
.hero-enter:nth-child(4) { animation-delay: 0.24s; }
.hero-enter:nth-child(5) { animation-delay: 0.32s; }
.home-hero__visual.hero-enter { animation-delay: 0.16s; }

/* ---------- 品牌数据条 ---------- */
.proof-strip {
    position: relative;
    z-index: 3;
    background: var(--purple-950);
    color: var(--white);
}

.proof-grid {
    display: grid;
    grid-template-columns: 1.55fr repeat(4, 1fr);
    min-height: 174px;
}

.proof-intro,
.proof-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px clamp(18px, 2.3vw, 34px);
    border-right: 1px solid var(--line-light);
}

.proof-intro {
    padding-left: 0;
}

.proof-intro p {
    max-width: 260px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.proof-item:last-child {
    border-right: 0;
}

.proof-item strong {
    margin-bottom: 5px;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 520;
    letter-spacing: -0.045em;
    line-height: 1;
}

.proof-item sup {
    margin-left: 2px;
    color: var(--mint);
    font-size: 13px;
    letter-spacing: 0;
}

.proof-item > span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

/* ---------- 产品卡片 ---------- */
.product-showcase {
    background: var(--paper);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.3vw, 30px);
}

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

.product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(47, 27, 61, 0.08);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 10px 40px rgba(47, 27, 61, 0.04);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease, border-color 0.5s ease;
}

.product-card:hover {
    border-color: rgba(93, 57, 124, 0.18);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1.12 / 1;
    overflow: hidden;
    background: linear-gradient(145deg, #eff2f9, #e7deed);
}

.product-card:nth-child(2) .product-card__media {
    background: linear-gradient(145deg, #f5eef3, #e8ddee);
}

.product-card:nth-child(3) .product-card__media {
    background: linear-gradient(145deg, #edf5f3, #e4ebf2);
}

.product-card__media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.8s var(--ease-out), filter 0.5s ease;
}

.product-card:hover .product-card__media img {
    filter: saturate(1.06);
    transform: scale(1.045);
}

.product-card__halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.product-card__halo::after {
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: inherit;
    content: "";
}

.product-card__arrow {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(93, 57, 124, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: var(--purple-800);
    font-size: 16px;
    transform: rotate(0deg);
    transition: color 0.3s ease, background 0.3s ease, transform 0.4s var(--ease-out);
}

.product-card:hover .product-card__arrow {
    background: var(--purple-800);
    color: var(--white);
    transform: rotate(45deg);
}

.product-card__body {
    padding: 27px 28px 30px;
}

.product-card__body h3 {
    margin-bottom: 12px;
    font-size: clamp(21px, 2vw, 26px);
    font-weight: 580;
}

.product-card__body h3 a:hover {
    color: var(--purple-700);
}

.product-card__body p {
    min-height: 54px;
    margin-bottom: 20px;
    color: var(--ink-soft);
    font-size: 13px;
}

.section-action {
    margin-top: 42px;
    text-align: center;
}

/* ---------- 品牌理念 Bento 区 ---------- */
.philosophy {
    background: var(--purple-950);
    color: var(--white);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.95fr 0.95fr;
    grid-template-rows: repeat(2, minmax(245px, auto));
    gap: 16px;
}

.philosophy-lead {
    display: flex;
    grid-row: span 2;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(34px, 5vw, 64px);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(117, 80, 147, 0.32), rgba(255, 255, 255, 0.02));
}

.philosophy-lead h2 {
    margin-bottom: 24px;
    font-size: clamp(38px, 4.2vw, 62px);
    font-weight: 480;
}

.philosophy-lead p {
    max-width: 420px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
}

.principle-card {
    position: relative;
    display: flex;
    min-height: 245px;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 30px;
    overflow: hidden;
    border: 1px solid var(--line-light);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.4s ease, transform 0.4s var(--ease-out);
}

.principle-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.principle-card--wide {
    grid-column: span 2;
}

.principle-card--accent {
    border-color: transparent;
    background: var(--mint);
    color: var(--purple-950);
}

.principle-card--accent:hover {
    background: #8adecf;
}

.principle-card__number {
    color: rgba(255, 255, 255, 0.44);
    font-size: 11px;
    letter-spacing: 0.18em;
}

.principle-card--accent .principle-card__number {
    color: rgba(47, 27, 61, 0.5);
}

.principle-card h3 {
    margin-bottom: 9px;
    font-size: 24px;
    font-weight: 540;
}

.principle-card p {
    max-width: 460px;
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
}

.principle-card--accent p {
    color: rgba(47, 27, 61, 0.67);
}

.soft-rings {
    position: absolute;
    top: -90px;
    right: -55px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(117, 211, 198, 0.24);
    border-radius: 50%;
}

.soft-rings::before,
.soft-rings::after {
    position: absolute;
    border: inherit;
    border-radius: inherit;
    content: "";
}

.soft-rings::before { inset: 18%; }
.soft-rings::after { inset: 36%; }

/* ---------- 品牌故事 ---------- */
.story {
    background: #f5f0f1;
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
    gap: clamp(52px, 8vw, 112px);
}

.story-media {
    position: relative;
    margin: 0;
}

.story-media::before {
    position: absolute;
    z-index: 0;
    top: -24px;
    left: -24px;
    width: 54%;
    height: 65%;
    border: 1px solid var(--purple-300);
    border-radius: var(--radius-lg) 0 var(--radius-lg) 0;
    content: "";
}

.story-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 3.35;
    object-fit: cover;
    object-position: left center;
    border-radius: 44% 44% var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.story-stamp {
    position: absolute;
    z-index: 2;
    right: -32px;
    bottom: 45px;
    display: grid;
    width: 110px;
    height: 110px;
    place-content: center;
    border: 5px solid #f5f0f1;
    border-radius: 50%;
    background: var(--purple-800);
    color: rgba(255, 255, 255, 0.68);
    font-size: 9px;
    letter-spacing: 0.16em;
    line-height: 1.5;
    text-align: center;
}

.story-stamp strong {
    color: var(--white);
    font-size: 19px;
    letter-spacing: 0;
}

.story-copy h2 {
    margin-bottom: 26px;
    font-size: clamp(38px, 4.5vw, 62px);
    font-weight: 480;
}

.story-lead {
    margin-bottom: 35px;
    color: var(--ink-soft);
    font-size: 16px;
}

.story-points {
    border-top: 1px solid var(--line);
}

.story-points > div {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    padding-block: 17px;
    border-bottom: 1px solid var(--line);
}

.story-points span {
    color: var(--purple-500);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.story-points p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.story-points strong {
    display: block;
    margin-bottom: 3px;
    color: var(--ink);
    font-size: 14px;
}

/* ---------- 日常护理步骤与 CTA ---------- */
.care-guide {
    background: var(--paper);
}

.care-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.care-step {
    position: relative;
    min-height: 230px;
    padding: 36px clamp(24px, 3vw, 42px);
    border-right: 1px solid var(--line);
}

.care-step:last-child {
    border-right: 0;
}

.care-step > span {
    display: block;
    margin-bottom: 44px;
    color: var(--purple-500);
    font-size: 11px;
    letter-spacing: 0.12em;
}

.care-step h3 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 560;
}

.care-step p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.cta {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    margin-bottom: clamp(84px, 10vw, 136px);
    padding: clamp(48px, 6vw, 78px);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--purple-800);
    color: var(--white);
}

.cta h2 {
    margin: 0;
    font-size: clamp(38px, 4.8vw, 66px);
    font-weight: 470;
}

.cta__actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

.cta__actions p {
    max-width: 420px;
    margin-bottom: 27px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 14px;
}

.cta__glow {
    position: absolute;
    right: -10%;
    bottom: -90%;
    width: 560px;
    height: 560px;
    border: 80px solid rgba(117, 211, 198, 0.09);
    border-radius: 50%;
}

/* ---------- 产品中心页 ---------- */
.page-hero {
    position: relative;
    padding-block: clamp(70px, 8vw, 116px);
    overflow: hidden;
    background: linear-gradient(135deg, #f5eef4, #ece4f0);
}

.page-hero::before {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(93, 57, 124, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(93, 57, 124, 0.055) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    mask-image: linear-gradient(to right, black, transparent 75%);
}

.page-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(430px, 1.14fr);
    align-items: center;
    gap: 60px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
    color: var(--ink-soft);
    font-size: 11px;
}

.breadcrumb a:hover {
    color: var(--purple-700);
}

.breadcrumb span:not([aria-current="page"]) {
    color: var(--purple-300);
}

.page-hero h1 {
    margin-bottom: 24px;
    color: var(--purple-950);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 470;
}

.page-hero__copy > p {
    max-width: 530px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 17px;
}

.page-hero__orb {
    position: absolute;
    right: -6%;
    bottom: -60%;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(93, 57, 124, 0.12);
    border-radius: 50%;
}

.catalog-hero-art {
    position: relative;
    height: 390px;
}

.catalog-product {
    position: absolute;
    width: 53%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.74);
    border-radius: 50% 50% 22px 22px;
    box-shadow: var(--shadow-lg);
}

.catalog-product img {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
    transform: scale(1);
}

.catalog-product--one { z-index: 1; bottom: 2%; left: 0; transform: rotate(-7deg) scale(0.83); }
.catalog-product--two { z-index: 3; top: 0; left: 24%; }
.catalog-product--three { z-index: 2; right: 0; bottom: 0; transform: rotate(7deg) scale(0.86); }

.catalog-hero-art > span {
    position: absolute;
    z-index: 4;
    right: -5px;
    top: -30px;
    color: rgba(93, 57, 124, 0.16);
    font-family: Georgia, serif;
    font-size: 150px;
    line-height: 1;
}

.catalog-hero-art > small {
    position: absolute;
    z-index: 4;
    right: 20px;
    bottom: 12px;
    color: var(--purple-700);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.45;
}

.catalog {
    background: var(--paper);
}

.catalog-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    padding-bottom: 29px;
    border-bottom: 1px solid var(--line);
}

.catalog-toolbar h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 500;
}

.catalog-toolbar h2 small {
    margin-left: 10px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
}

.search-field {
    position: relative;
    display: flex;
    width: min(100%, 380px);
    height: 52px;
    align-items: center;
}

.search-field input {
    width: 100%;
    height: 100%;
    padding: 0 76px 0 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    outline: 0;
    background: var(--white);
    font-size: 13px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-field input:focus {
    border-color: var(--purple-500);
    box-shadow: 0 0 0 4px rgba(141, 106, 170, 0.12);
}

.search-field__icon {
    position: absolute;
    z-index: 2;
    left: 19px;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--purple-600);
    border-radius: 50%;
    pointer-events: none;
}

.search-field__icon::after {
    position: absolute;
    right: -4px;
    bottom: -3px;
    width: 6px;
    height: 1.5px;
    background: var(--purple-600);
    content: "";
    transform: rotate(45deg);
}

.search-field kbd {
    position: absolute;
    right: 15px;
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 9px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-block: 27px 42px;
}

.filter-chip {
    min-height: 40px;
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: transparent;
    cursor: pointer;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 650;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    border-color: var(--purple-800);
    background: var(--purple-800);
    color: var(--white);
}

.filter-result {
    margin-left: auto;
    color: var(--ink-soft);
    font-size: 11px;
}

.product-card.is-filtering-in {
    animation: filter-in 0.45s var(--ease-out) both;
}

.empty-state {
    padding: 90px 24px;
    border: 1px dashed var(--purple-300);
    border-radius: var(--radius-md);
    text-align: center;
}

.empty-state > span {
    display: block;
    color: var(--purple-500);
    font-size: 44px;
}

.empty-state h3 {
    margin: 10px 0;
    font-size: 24px;
}

.empty-state p {
    margin-bottom: 24px;
    color: var(--ink-soft);
    font-size: 13px;
}

.selection-guide {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    margin-bottom: clamp(84px, 10vw, 136px);
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--purple-950);
    color: var(--white);
}

.selection-guide__intro,
.selection-guide > a {
    min-height: 230px;
    padding: 31px;
    border-right: 1px solid var(--line-light);
}

.selection-guide__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.selection-guide__intro h2 {
    margin-bottom: 8px;
    font-size: 30px;
    font-weight: 520;
}

.selection-guide__intro p {
    margin: 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
}

.selection-guide > a {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.35s ease;
}

.selection-guide > a:last-child {
    border-right: 0;
}

.selection-guide > a:hover {
    background: var(--purple-700);
}

.selection-guide > a > span {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
}

.selection-guide > a strong {
    font-size: 17px;
}

.selection-guide > a i {
    position: absolute;
    top: 27px;
    right: 28px;
    font-style: normal;
    transition: transform 0.3s var(--ease-out);
}

.selection-guide > a:hover i {
    transform: translateX(5px);
}

/* ---------- 产品详情页 ---------- */
.product-page {
    --product-accent: var(--purple-700);
    --product-soft: #eee4f2;
}

.product-page--lilac {
    --product-accent: #7d5795;
    --product-soft: #f1e9f0;
}

.product-page--mint {
    --product-accent: #508e85;
    --product-soft: #e8f2ee;
}

.product-hero {
    padding-block: 30px clamp(72px, 9vw, 122px);
    background: linear-gradient(135deg, var(--paper), var(--product-soft));
}

.breadcrumb--product {
    margin-bottom: 30px;
}

.product-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(480px, 1.22fr);
    align-items: center;
    gap: clamp(50px, 7vw, 100px);
}

.product-hero__copy h1 {
    margin-bottom: 23px;
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 470;
}

.product-hero__copy > p {
    max-width: 500px;
    margin-bottom: 34px;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.9;
}

.product-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.product-hero__copy > small {
    display: block;
    margin-top: 22px;
    color: var(--ink-soft);
    font-size: 10px;
}

.product-hero__media {
    position: relative;
    margin: 0;
    perspective: 1200px;
}

.product-hero__media img {
    width: 100%;
    aspect-ratio: 4 / 3.2;
    object-fit: cover;
    border-radius: 46% 46% var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    transform: rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg));
    transition: transform 0.7s var(--ease-out);
}

.product-hero__media figcaption {
    position: absolute;
    right: 20px;
    bottom: -29px;
    color: var(--ink-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.product-hero__media figcaption span {
    color: var(--product-accent);
}

.feature-bar {
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.feature-item {
    display: flex;
    min-height: 150px;
    align-items: center;
    gap: 17px;
    padding: 28px clamp(18px, 2.2vw, 31px);
    border-right: 1px solid var(--line);
}

.feature-item:first-child {
    border-left: 1px solid var(--line);
}

.feature-item > span {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--product-accent);
    font-size: 9px;
    font-weight: 750;
}

.feature-item h2 {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 620;
    letter-spacing: -0.015em;
}

.feature-item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 10px;
    line-height: 1.45;
}

.product-story {
    background: var(--paper);
}

.product-story__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
    align-items: center;
    gap: clamp(60px, 9vw, 130px);
}

.product-story__media {
    position: relative;
    margin: 0;
}

.product-story__media::before {
    position: absolute;
    inset: -18px 28px 28px -18px;
    border: 1px solid var(--purple-300);
    border-radius: var(--radius-lg);
    content: "";
}

.product-story__media img {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.product-story__media figcaption {
    position: absolute;
    right: -42px;
    bottom: 54px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--product-accent);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    transform: rotate(-90deg);
}

.product-story__copy h2 {
    margin-bottom: 25px;
    font-size: clamp(38px, 4.7vw, 62px);
    font-weight: 480;
}

.product-story__lead {
    margin-bottom: 37px;
    color: var(--ink-soft);
    font-size: 16px;
}

.method-list {
    border-top: 1px solid var(--line);
}

.method-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 15px;
    padding-block: 20px;
    border-bottom: 1px solid var(--line);
}

.method-item > span {
    color: var(--product-accent);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.method-item h3 {
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 650;
}

.method-item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.ingredient-note {
    padding-block: 0;
    background: var(--paper);
}

.ingredient-note__inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 70px;
    padding: clamp(40px, 5vw, 64px);
    border-radius: var(--radius-md);
    background: var(--product-accent);
    color: var(--white);
}

.ingredient-note h2 {
    margin: 0;
    font-size: clamp(32px, 3.8vw, 48px);
    font-weight: 500;
}

.ingredient-note__inner > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.73);
    font-size: 14px;
}

.related-products {
    background: var(--paper);
}

/* ---------- 登录与注册 ---------- */
.auth-page {
    background: #f2edf1;
}

.auth-page .site-footer {
    margin-top: 0;
}

.auth-shell {
    display: grid;
    width: min(calc(100% - 48px), 1120px);
    min-height: 690px;
    grid-template-columns: 0.94fr 1.06fr;
    margin: 60px auto 90px;
    overflow: hidden;
    border: 1px solid rgba(47, 27, 61, 0.08);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(42px, 5vw, 70px);
    overflow: hidden;
    background: linear-gradient(145deg, var(--purple-950), var(--purple-700));
    color: var(--white);
}

.auth-aside::after {
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 320px;
    height: 320px;
    border: 52px solid rgba(117, 211, 198, 0.12);
    border-radius: 50%;
    content: "";
}

.auth-aside__texture {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 0.6px, transparent 0.6px);
    background-size: 18px 18px;
    mask-image: linear-gradient(to bottom right, black, transparent 72%);
}

.auth-aside > *:not(.auth-aside__texture) {
    position: relative;
    z-index: 2;
}

.auth-aside h1 {
    margin-bottom: 22px;
    font-size: clamp(40px, 4.6vw, 58px);
    font-weight: 470;
}

.auth-aside > p {
    color: rgba(255, 255, 255, 0.64);
    font-size: 14px;
}

.auth-quote {
    max-width: 330px;
    margin-top: auto;
    padding-top: 40px;
}

.auth-quote > span {
    display: block;
    height: 34px;
    color: var(--mint);
    font-family: Georgia, serif;
    font-size: 56px;
    line-height: 1;
}

.auth-quote p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
}

.auth-benefits {
    display: grid;
    gap: 14px;
    margin-top: 45px;
}

.auth-benefits span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.auth-benefits i {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 1px solid rgba(117, 211, 198, 0.45);
    border-radius: 50%;
    color: var(--mint);
    font-size: 9px;
    font-style: normal;
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(44px, 6vw, 78px);
}

.auth-back {
    align-self: flex-start;
    margin-bottom: 45px;
    color: var(--ink-soft);
    font-size: 12px;
}

.auth-back:hover {
    color: var(--purple-700);
}

.auth-card h2 {
    margin-bottom: 8px;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 520;
}

.auth-card__intro {
    margin-bottom: 31px;
    color: var(--ink-soft);
    font-size: 13px;
}

.auth-form {
    display: grid;
    gap: 19px;
}

.field-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
}

.field-group > input,
.password-field input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: 0;
    background: #fcfbfb;
    font-size: 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.field-group > input:focus,
.password-field input:focus {
    border-color: var(--purple-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(141, 106, 170, 0.12);
}

.has-error > input,
.has-error .password-field input {
    border-color: #bd5664;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 60px;
}

.password-field button {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 5px;
    background: transparent;
    cursor: pointer;
    color: var(--purple-700);
    font-size: 11px;
    font-weight: 700;
    transform: translateY(-50%);
}

.field-help,
.field-error {
    margin: 6px 0 0;
    font-size: 10px;
    line-height: 1.5;
}

.field-help {
    color: var(--ink-soft);
}

.field-error {
    color: #a94352;
}

.form-alert {
    padding: 11px 13px;
    border: 1px solid rgba(189, 86, 100, 0.25);
    border-radius: 9px;
    background: #fff1f3;
    color: #943846;
    font-size: 12px;
}

.auth-submit {
    width: 100%;
    margin-top: 5px;
}

.auth-submit i {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.auth-submit.is-loading i {
    display: block;
}

.auth-submit.is-loading {
    cursor: wait;
    opacity: 0.82;
}

.auth-switch {
    margin: 25px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
    text-align: center;
}

.auth-switch a {
    margin-left: 4px;
    color: var(--purple-700);
    font-weight: 750;
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: #211728;
    color: var(--white);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding-block: 72px 58px;
}

.brand--light {
    width: fit-content;
    padding: 12px 16px;
    border-radius: 18px;
    background: var(--white);
}

.brand-logo--footer {
    height: 104px;
}

.footer-brand > p {
    max-width: 360px;
    margin: 23px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.footer-links > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-links h2 {
    margin-bottom: 11px;
    color: rgba(255, 255, 255, 0.44);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.footer-links a,
.footer-links span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--mint);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 21px;
    border-top: 1px solid var(--line-light);
    color: rgba(255, 255, 255, 0.38);
    font-size: 10px;
}

.footer-record {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.footer-record:hover,
.footer-record:focus-visible {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: underline;
}

/* ---------- 由 JavaScript 增强的滚动动效 ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 动画关键帧 ---------- */
@keyframes hero-enter {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-line {
    0% { transform: translateX(-100%); }
    55%, 100% { transform: translateX(100%); }
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(28px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes filter-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- 中等屏幕 ---------- */
@media (max-width: 1080px) {
    .home-hero__grid,
    .page-hero__grid,
    .product-hero__grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
        gap: 45px;
    }

    .proof-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .proof-intro {
        display: none;
    }

    .proof-item:first-of-type {
        padding-left: 0;
    }

    .philosophy-grid {
        grid-template-columns: 1fr 1fr;
    }

    .philosophy-lead {
        grid-column: span 2;
        grid-row: auto;
        min-height: 450px;
    }

    .principle-card--wide {
        grid-column: span 2;
    }

    .selection-guide {
        grid-template-columns: 1.1fr repeat(3, 1fr);
    }

    .selection-guide__intro,
    .selection-guide > a {
        padding: 23px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item:nth-child(2) {
        border-right: 1px solid var(--line);
    }

    .feature-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .feature-item:nth-child(3) {
        border-left: 1px solid var(--line);
    }
}

/* ---------- 平板与移动端导航 ---------- */
@media (max-width: 860px) {
    :root {
        --header-height: 70px;
    }

    .shell {
        width: min(calc(100% - 36px), var(--shell));
    }

    .menu-toggle {
        position: relative;
        z-index: 102;
        display: grid;
        width: 42px;
        height: 42px;
        place-content: center;
        gap: 6px;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.6);
        cursor: pointer;
    }

    .menu-toggle > span:not(.sr-only) {
        width: 17px;
        height: 1.5px;
        background: var(--purple-800);
        transition: transform 0.3s ease;
    }

    .menu-toggle[aria-expanded="true"] > span:nth-last-child(2) {
        transform: translateY(3.75px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] > span:last-child {
        transform: translateY(-3.75px) rotate(-45deg);
    }

    .header-panel {
        position: fixed;
        z-index: 101;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 38px;
        padding: 100px 34px 48px;
        background: rgba(247, 242, 246, 0.98);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
    }

    .header-panel.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .primary-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .primary-nav a {
        font-size: clamp(27px, 7vw, 40px);
        font-weight: 520;
    }

    .primary-nav a::after {
        display: none;
    }

    .account-nav {
        padding-top: 26px;
        border-top: 1px solid var(--line);
    }

    .home-hero {
        min-height: auto;
        padding-bottom: 76px;
    }

    .home-hero__grid,
    .page-hero__grid,
    .product-hero__grid,
    .story-grid,
    .product-story__grid {
        grid-template-columns: 1fr;
    }

    .home-hero__content {
        padding-top: 12px;
    }

    .home-hero__visual {
        width: min(84vw, 590px);
        justify-self: center;
    }

    .visual-badge {
        left: -20px;
    }

    .scroll-cue {
        display: none;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

    .product-grid .product-card:last-child:nth-child(odd) {
        grid-column: span 2;
        width: calc(50% - 10px);
        justify-self: center;
    }

    .story-media {
        width: min(86vw, 670px);
    }

    .care-steps {
        grid-template-columns: 1fr;
    }

    .care-step {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .care-step:last-child {
        border-bottom: 0;
    }

    .care-step > span {
        margin-bottom: 24px;
    }

    .cta {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .catalog-hero-art {
        width: min(100%, 650px);
        justify-self: center;
    }

    .catalog-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-field {
        width: 100%;
    }

    .selection-guide {
        grid-template-columns: 1fr;
    }

    .selection-guide__intro,
    .selection-guide > a {
        min-height: 150px;
        border-right: 0;
        border-bottom: 1px solid var(--line-light);
    }

    .selection-guide > a:last-child {
        border-bottom: 0;
    }

    .product-hero__media {
        width: min(90vw, 700px);
        justify-self: center;
    }

    .product-story__media {
        width: min(86vw, 630px);
    }

    .ingredient-note__inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        min-height: 390px;
    }

    .auth-quote {
        margin-top: 35px;
    }
}

/* ---------- 小屏手机 ---------- */
@media (max-width: 620px) {
    .shell {
        width: min(calc(100% - 28px), var(--shell));
    }

    .section {
        padding-block: 76px;
    }

    .brand-logo--header {
        height: 54px;
    }

    .home-hero {
        padding-top: 42px;
    }

    .home-hero h1 {
        font-size: clamp(43px, 13vw, 60px);
    }

    .hero-actions,
    .product-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button,
    .product-hero__actions .button {
        width: 100%;
    }

    .home-hero__visual {
        width: calc(100% - 22px);
    }

    .visual-frame {
        border-width: 5px;
        border-radius: 42% 42% 20px 20px;
    }

    .visual-badge {
        width: 74px;
        height: 74px;
        left: -15px;
        font-size: 10px;
    }

    .proof-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proof-item {
        min-height: 130px;
        border-bottom: 1px solid var(--line-light);
    }

    .proof-item:nth-child(2n) {
        border-right: 0;
    }

    .product-grid,
    .product-grid--two {
        grid-template-columns: 1fr;
    }

    .product-grid .product-card:last-child:nth-child(odd) {
        grid-column: auto;
        width: auto;
    }

    .product-card__media {
        aspect-ratio: 1.25 / 1;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .philosophy-lead,
    .principle-card--wide {
        grid-column: auto;
    }

    .philosophy-lead {
        min-height: 480px;
    }

    .principle-card {
        min-height: 225px;
    }

    .story-media::before {
        top: -12px;
        left: -10px;
    }

    .story-stamp {
        right: -4px;
        bottom: 18px;
        width: 88px;
        height: 88px;
    }

    .cta {
        width: calc(100% - 28px);
        padding: 38px 26px;
        border-radius: var(--radius-md);
    }

    .page-hero {
        padding-top: 42px;
    }

    .breadcrumb {
        margin-bottom: 34px;
    }

    .page-hero h1,
    .product-hero__copy h1 {
        font-size: clamp(43px, 13vw, 60px);
    }

    .catalog-hero-art {
        height: 285px;
    }

    .catalog-product {
        border-width: 3px;
    }

    .catalog-hero-art > span {
        font-size: 100px;
    }

    .filter-row {
        flex-wrap: wrap;
    }

    .filter-result {
        width: 100%;
        margin: 8px 0 0;
    }

    .search-field kbd {
        display: none;
    }

    .search-field input {
        padding-right: 18px;
    }

    .product-hero__grid {
        gap: 46px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-item,
    .feature-item:nth-child(3) {
        min-height: 115px;
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        border-left: 1px solid var(--line);
    }

    .feature-item:last-child {
        border-bottom: 0;
    }

    .product-story__media::before {
        inset: -10px 16px 18px -10px;
    }

    .product-story__media figcaption {
        display: none;
    }

    .ingredient-note__inner {
        width: 100%;
        border-radius: var(--radius-md);
    }

    .auth-shell {
        width: calc(100% - 24px);
        margin-block: 24px 60px;
        border-radius: var(--radius-md);
    }

    .auth-aside {
        min-height: 330px;
        padding: 36px 28px;
    }

    .auth-aside h1 {
        font-size: 40px;
    }

    .auth-quote {
        display: none;
    }

    .auth-card {
        padding: 42px 27px;
    }

    .auth-back {
        margin-bottom: 34px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-links {
        gap: 25px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }
}

/* ---------- 系统减少动效设置 ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
