/* Homepage foundations measured against Notionly, 2026-11-10.
   All component dimensions live in ../tokens.css. Chinese typography is retained. */
.home-page main{display:flex;flex-direction:column;gap:var(--home-section-gap);isolation:isolate;background:none}
.home-page main>.container{width:100%;padding-block:var(--space-5)}
.home-page footer{margin-top:var(--home-footer-offset)}
.home-page .hero{position:relative;isolation:isolate;text-align:center;padding:var(--hero-padding-top) 0 var(--hero-padding-bottom)}
.home-page .hero::before,.home-page .hero::after{content:"";position:absolute;top:0;left:0;right:0;height:100vh;min-height:var(--home-background-min);max-height:var(--home-background-max);pointer-events:none;z-index:-1}
.home-page .hero::before{background:var(--bg-subtle);mask-image:var(--home-background-color-mask)}
.home-page .hero::after{background-image:var(--site-hero-image,url('../assets/notionly-background.avif'));background-size:cover;background-position:center;mask-image:var(--home-background-image-mask)}
.home-page .hero h1{max-width:var(--content-narrow);margin:0 auto}
.home-page #heroTitle.hero-title-two-line{max-width:100%;font-size:var(--home-hero-two-line-size);white-space:nowrap}
:lang(en) .home-page .hero h1.hero-title-single-line{max-width:100%;font-size:min(var(--font-size-72),5vw);white-space:nowrap}
.home-page .hero p{max-width:var(--content-narrow);margin:0 auto;text-wrap:balance}
.home-page .hero p.t-lead{margin-top:var(--home-hero-description-gap);font-size:var(--home-hero-description-size);line-height:var(--hero-description-lh);font-weight:var(--hero-description-weight);white-space:pre-line}
.home-page .hero-cta{display:flex;justify-content:center;gap:var(--home-action-row-gap) var(--space-5);margin-top:var(--home-action-gap);flex-wrap:wrap}
.home-page .promise{display:flex;justify-content:center;gap:var(--space-3) var(--space-5);flex-wrap:wrap;margin-top:var(--home-proof-gap)}
.home-page .promise>span{display:inline-flex;align-items:center;gap:var(--space-2)}
.home-page #purchaseGuide:empty{display:none}
.home-page #purchaseGuide:not(:empty){margin-top:var(--space-5)}
.home-page .filters{display:flex;justify-content:center;flex-wrap:wrap;gap:var(--filter-gap);margin-bottom:var(--space-7)}
.home-page .filter[aria-pressed="true"]{background:var(--bg-inverse);color:var(--text-inverse);box-shadow:var(--shadow-button-dark)}
.home-page details,.home-page .invite,.home-page .benefit{position:relative;border:0}
.home-page details::after,.home-page .invite::after,.home-page .benefit::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none}
.home-page details::after,.home-page .invite::after{border:var(--border-card)}
.home-page .filter[aria-pressed="true"]::after{border:var(--border-button-dark)}
.home-page .benefits-head{max-width:var(--content-narrow);margin:0 auto var(--home-benefits-content-gap);text-align:center;display:grid;gap:var(--home-subtitle-gap)}
.home-page #faqTitle{font-size:var(--home-faq-title-size);line-height:var(--home-faq-title-lh);font-weight:var(--home-faq-title-weight);letter-spacing:normal;text-align:center}
.home-page .benefits-head h2{font-size:var(--home-benefits-title-size);line-height:var(--home-benefits-title-lh);font-weight:var(--home-benefits-title-weight);letter-spacing:normal}
.home-page .benefits-head p{font-size:var(--home-benefits-subtitle-size);line-height:var(--home-benefits-subtitle-lh);font-weight:var(--home-feature-body-weight);color:var(--home-benefits-subtitle-color);text-wrap:balance}
.home-page .benefits{display:grid;grid-template-columns:var(--home-benefits-columns);gap:var(--space-5)}
.home-page .benefit{min-width:0;background:var(--bg-surface);border-radius:var(--radius-xl);padding:var(--home-feature-padding);display:flex;flex-direction:column;gap:var(--space-3)}
.home-page .benefit::after{border:var(--home-feature-border)}
.home-page .benefit-cashback{background:var(--cashback-surface);color:var(--benefit-cashback-text-color)}
.home-page .benefit-cashback::after{border:var(--border-width) solid var(--invite-nav-ring)}
.home-page .benefit-cashback .benefit-icon{background:var(--benefit-icon-bg-color);color:var(--invite-nav-accent)}
.home-page .benefit-cashback p{color:var(--benefit-cashback-p-text-color)}
.home-page .benefit h3{font-size:var(--home-feature-title-size);line-height:var(--home-feature-title-lh);font-weight:var(--home-feature-title-weight);letter-spacing:normal}
.home-page .benefit p{font-size:var(--home-feature-body-size);line-height:var(--home-feature-body-lh);font-weight:var(--home-feature-body-weight);color:var(--home-feature-body-color);letter-spacing:normal}
.home-page .benefit-icon{width:var(--avatar-lg);height:var(--avatar-lg);background:var(--bg-surface);border-radius:var(--radius-md);display:grid;place-items:center;flex:none;margin-bottom:var(--home-feature-icon-gap)}
.home-page .invite{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--home-bundle-gap);padding:var(--home-bundle-padding);align-items:center;background:var(--bg-surface);border-radius:var(--radius-lg)}
.home-page .invite-art{min-width:0;min-height:var(--media-height);display:grid;place-items:center}
.home-page .coupon{width:var(--ticket-width);max-width:90%;padding:var(--space-5);background:var(--bg-inverse);color:var(--text-inverse);border-radius:var(--radius-lg);transform:rotate(var(--ticket-tilt));box-shadow:var(--shadow-button-dark)}
.home-page .coupon .amt{font-size:var(--text-h2-size);line-height:var(--text-display-lh);letter-spacing:var(--text-h2-ls);margin:var(--space-3) 0}
.home-page .coupon hr{border:0;border-top:var(--border-width) dashed var(--border-inverse);margin:var(--space-4) calc(var(--space-5) * -1)}
.home-page .invite-text{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-4)}
.home-page .invite-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-4);max-width:100%}
.home-page .invite h2,.home-page .cta h2{font-size:var(--home-bundle-title-size);line-height:var(--text-h2-lh);letter-spacing:var(--text-h2-ls)}
.home-page .invite-text p{font-size:var(--home-answer-size);line-height:var(--text-body-lh)}
.home-page .invite-copy{margin:0;padding-inline-start:var(--list-indent-compact);max-width:100%;box-sizing:border-box;display:grid;gap:var(--space-2);font-size:var(--home-answer-size);line-height:var(--text-body-lh);list-style:disc}
.home-page #invite{--invite-accent:var(--price-accent);--invite-accent-hover:var(--price-accent-hover)}
.home-page .invite .coupon{background:var(--invite-accent);color:var(--text-inverse);box-shadow:var(--shadow-raised)}
.home-page .invite .coupon hr{border-color:var(--invite-ticket-divider)}
.home-page .invite .coupon .on-dark-muted{color:var(--on-dark-muted-text-color)}
.home-page .invite .badge{color:var(--text-primary)}
.home-page #homeInviteReward{min-width:0}
@media (1024px <= width < 1280px){
  .home-page .invite-text{margin-inline-start:calc(var(--home-invite-copy-offset-compact) * -1)}
}
@media (width >= 1280px){
  :lang(zh) .home-page .invite-text{width:max-content;justify-self:end}
  :lang(zh) .home-page #homeInviteReward{white-space:nowrap}
}
.home-page .faq{display:grid;grid-template-columns:var(--home-faq-columns);gap:var(--home-faq-content-gap);max-width:var(--home-faq-width);margin-inline:auto}
.home-page .faq-list{display:grid;align-content:start;gap:var(--space-4)}
.home-page details{background:var(--bg-surface);border-radius:var(--radius-md);padding:var(--faq-item-padding)}
.home-page details:not([open]){padding-bottom:calc(var(--faq-item-padding) + var(--border-width))}
.home-page summary{list-style:none;cursor:pointer;display:flex;gap:var(--space-5);align-items:center;font-size:var(--home-faq-question-size);line-height:var(--text-lead-lh);font-weight:var(--text-title-weight);letter-spacing:normal}
.home-page summary::-webkit-details-marker{display:none}
.home-page summary svg{transition:transform var(--duration-base) var(--ease-standard)}
.home-page details[open] summary svg{transform:rotate(45deg)}
.home-page details p{padding:var(--faq-item-padding) 0 0;font-size:var(--home-answer-size);line-height:var(--text-body-lh);letter-spacing:var(--text-body-ls)}
.home-page .cta-frame{padding:var(--space-3);background:var(--border-subtle);border-radius:var(--radius-2xl)}
.home-page .cta{padding:var(--home-cta-padding);background:var(--bg-cta);color:var(--text-cta);border-radius:var(--home-cta-radius);box-shadow:var(--home-cta-shadow);display:flex;flex-direction:column;align-items:stretch;gap:var(--home-cta-content-gap)}
.home-page .cta>div:first-child{position:relative;display:grid;gap:var(--home-cta-text-gap)}
.home-page .cta .badge{justify-self:start;background:var(--bg-cta-badge);color:var(--text-cta-secondary);position:relative;border:0;box-shadow:none;font-size:var(--home-cta-badge-size)}
.home-page .cta .badge::after{content:"";position:absolute;inset:0;border:var(--border-cta-badge);border-radius:inherit;pointer-events:none}
.home-page .cta h2{max-width:var(--home-cta-title-width);margin:0}
.home-page .cta p{margin:0;max-width:none;color:var(--text-cta-secondary);font-size:var(--home-answer-size);line-height:var(--text-body-lh)}
.home-page .cta-contents{display:flex;align-items:flex-end;justify-content:space-between}
.home-page .cta-contents>p{width:50%}
.home-page .cta-actions{width:50%;display:flex;justify-content:flex-end;gap:var(--space-3);flex-wrap:wrap}
.home-page .cta-actions .btn{white-space:normal;text-align:center;height:auto;min-height:var(--button-height);overflow-wrap:anywhere;max-width:100%}
@media (width < 1440px){
  .home-page .cta-contents{align-items:flex-start;flex-direction:column;gap:var(--space-5)}
  .home-page .cta-contents>p,.home-page .cta-actions{width:100%}
  .home-page .cta-actions{justify-content:flex-start;gap:var(--space-4)}
}
@media (width < 810px){
  .home-page .acct-label{display:block}
  .home-page .invite{grid-template-columns:minmax(0,1fr)}
  .home-page .invite .btn{max-width:100%;padding-inline:var(--space-4);white-space:normal;text-align:center;min-height:var(--button-height);height:auto}
}



.home-page .home-more{display:flex;justify-content:center;margin-top:var(--space-6)}
.catalog-page #products{padding-top:calc(var(--nav-top) + var(--nav-height) + var(--space-7))}
.catalog-page main{padding-bottom:var(--space-8)}

.catalog-page .catalog-support{margin-top:var(--space-8)}
/* 标题与说明保持左对齐，按钮在宽屏右侧垂直居中。 */
.catalog-page .cta{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--space-6)}
.catalog-page .cta>div:first-child{grid-column:1;gap:var(--space-5)}
.catalog-page .cta-contents{display:contents}
.catalog-page .cta-contents>p{grid-column:1;grid-row:2;width:auto;max-width:var(--offer-description-width)}
.catalog-page .catalog-support-line{display:block}
.catalog-page .cta-actions{grid-column:2;grid-row:1 / 3;align-self:center;width:auto;justify-content:flex-end}
@media (width < 810px){
  .catalog-page .cta{display:flex}
  .catalog-page .cta-contents{display:flex;align-items:flex-start}
  .catalog-page .cta-contents>p,.catalog-page .cta-actions{width:100%}
  .catalog-page .cta-actions{justify-content:flex-start}
}

/* 商品列表与首页、商品详情沿用一致的玻璃背景。 */
.catalog-page main{position:relative;isolation:isolate}
.catalog-page main::before{content:"";position:absolute;z-index:-1;pointer-events:none;top:0;left:50%;transform:translateX(-50%);width:100vw;height:100vh;min-height:var(--page-backdrop-min-height);max-height:var(--page-backdrop-max-height);background-image:var(--site-hero-image,url('../assets/notionly-background.avif'));background-size:cover;background-position:center;mask-image:var(--page-backdrop-mask);-webkit-mask-image:var(--page-backdrop-mask)}


.home-page .coupon .amt{font-weight:var(--text-emphasis-weight)}
