@import url("pricing-roles.css");
/* 首页套餐与原地会员弹窗；所有选择器限定本模块，不覆盖产品页。 */
#pricing{padding:36px 0 100px;scroll-margin-top:100px}
.hp-shell{width:min(1296px,calc(100% - 112px));margin-inline:auto;border-top:2px solid var(--ink,#111b2c);padding-top:32px}
.hp-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;margin-bottom:36px}
.hp-label{font-size:12px;letter-spacing:.06em;color:var(--blue,#2454ed);margin:0 0 16px}
.hp-heading h2{font-size:40px;line-height:1.3;letter-spacing:-.05em;margin:0 0 16px;font-weight:600}
.hp-heading>div:first-child>p:last-child{max-width:690px;color:#657080;font-size:16px;line-height:1.65;margin:0}
.hp-period{display:flex;flex:none;gap:3px;padding:4px;background:#fff;border:1px solid #cbd2dc;border-radius:30px}
.hp-period button{font:inherit;font-size:13px;min-height:44px;padding:10px 20px;border:0;border-radius:25px;background:transparent;cursor:pointer}
.hp-period button[aria-pressed=true]{background:#111b2c;color:white}
.hp-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid #cbd2df;border-radius:8px;overflow:hidden;background:white}
.hp-global-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.hp-card{min-width:0;padding:32px 24px;display:flex;flex-direction:column;border-right:1px solid #d9e0eb}
.hp-card:last-child{border-right:0}.hp-card.hp-featured{background:#e9efff}
.hp-card h3{font-size:28px;line-height:1.3;font-weight:600;margin:0;letter-spacing:-.04em}
.hp-caption{font-size:13px;line-height:1.6;color:#657080;min-height:48px;margin:14px 0 0}
.hp-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px;margin-top:22px;min-height:61px;font-variant-numeric:tabular-nums}
.hp-price strong{font-family:Arial,sans-serif;font-size:40px;line-height:1.3;letter-spacing:-.055em;font-weight:500}
.hp-price .hp-currency{font-size:24px}.hp-price>span:last-child:not(.hp-currency){font-size:12px;color:#657080}
.hp-price .hp-unavailable{font-size:20px!important;line-height:1.5}
.hp-billing{min-height:54px;font-size:12px;line-height:1.6;color:#657080;margin:7px 0 0;overflow-wrap:anywhere}
.hp-card ul{list-style:none;margin:20px 0 0;padding:22px 0 0;border-top:1px solid #d6deeb;display:grid;gap:14px}
.hp-card li{font-size:13px;line-height:1.8;color:#52647d;position:relative;padding-left:21px}
.hp-card li:before{content:'✓';position:absolute;left:0;color:#2454ed}.hp-card li strong{font-size:16px;color:#111b2c;font-weight:600}
.hp-benefit{font-size:12px;line-height:1.85;color:#657080;margin:18px 0 26px;flex:1}
.hp-buy{display:flex;justify-content:space-between;align-items:center;gap:14px;min-height:48px;padding:12px 18px;background:white;border:1px solid #c3cddd;border-radius:30px;font:inherit;font-size:13px;cursor:pointer;text-align:left;line-height:1.6}
.hp-buy:hover{border-color:#2454ed;color:#2454ed}.hp-featured .hp-buy{background:var(--dv-primary);border-color:var(--dv-primary);color:#fff}
.hp-featured .hp-buy:hover{background:var(--dv-primary-hover)}.hp-buy:focus-visible,.hp-period button:focus-visible{outline:3px solid #2454ed;outline-offset:3px}
.hp-explain{display:grid;grid-template-columns:1fr 1fr;gap:36px;margin-top:24px}.hp-explain p{margin:0;font-size:13px;line-height:1.65;color:#52647d}
.hp-footnote{font-size:12px;line-height:1.6;color:#657080;margin:14px 0 0}
html:has(.hp-dialog[open],.hp-membership[open]){overflow:hidden;scrollbar-gutter:stable}
.hp-dialog,.hp-membership{color:#111b2c;width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #c6d2e9;border-radius:12px;background:#fff;box-shadow:0 30px 100px #07163445;overscroll-behavior:contain;overflow:auto}
.hp-dialog::backdrop,.hp-membership::backdrop{background:#10213c75;backdrop-filter:blur(5px)}
.hp-dialog header,.hp-membership .dl-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 24px;border-bottom:1px solid #dce3ee;position:sticky;top:0;background:#fff;z-index:2}
.hp-dialog h2,.hp-membership .dl-head h2{font-size:20px;font-weight:600;line-height:1.5;margin:0;letter-spacing:-.035em}
.hp-dialog [data-hp-close],.hp-membership .dl-close{border:1px solid #cbd2dc;border-radius:50%;width:44px;height:44px;flex:none;font-size:24px;background:#fff;cursor:pointer}
.hp-dialog .hp-dialog-body,.hp-membership .dl-body{padding:24px}
.hp-dialog p,.hp-membership p{font-size:14px;line-height:1.9;margin:12px 0;color:#52647d;overflow-wrap:anywhere}
.hp-dialog .hp-dialog-actions,.hp-membership .dl-actions{display:flex;flex-wrap:wrap;gap:10px;padding:18px 24px;border-top:1px solid #dce3ee}
.hp-dialog .hp-dialog-actions button,.hp-membership .dl-button{font:inherit;font-size:14px;line-height:1.6;min-height:46px;padding:11px 20px;border:1px solid #2454ed;border-radius:24px;background:#2454ed;color:#fff;cursor:pointer}
.hp-membership .dl-button.secondary{border-color:#cbd2dc;background:#fff;color:#111b2c}
.hp-dialog button:disabled,.hp-membership button:disabled{opacity:.5;cursor:not-allowed}
.hp-dialog button:focus-visible,.hp-membership button:focus-visible{outline:3px solid #2454ed;outline-offset:3px}
.hp-summary,.hp-membership .dl-summary{margin:0;display:grid;gap:0}
.hp-summary>div,.hp-membership .dl-summary>div{display:flex;justify-content:space-between;gap:24px;padding:14px 0;border-bottom:1px solid #e4e8ef}
.hp-summary dt,.hp-membership dt{font-size:13px;color:#657080}.hp-summary dd,.hp-membership dd{margin:0;font-size:16px;text-align:right;overflow-wrap:anywhere}
.hp-membership .dl-plan-tabs,.hp-membership .dl-cycle{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:18px}
.hp-membership .dl-plan-tabs button,.hp-membership .dl-cycle button{font:inherit;font-size:13px;min-height:44px;padding:10px 17px;border:1px solid #cbd2dc;border-radius:24px;background:#fff;cursor:pointer}
.hp-membership [aria-pressed=true]{background:#e9efff!important;border-color:#2454ed!important;color:#2454ed}
.hp-membership .dl-total{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:22px;font-size:14px}.hp-membership .dl-total strong{font-size:28px;overflow-wrap:anywhere}
.hp-membership .dl-error,.hp-dialog [role=alert]{color:#93332f}.hp-membership .dl-note{font-size:12px;color:#657080}
.hp-signin{width:min(860px,calc(100vw - 32px))}.hp-signin iframe{display:block;width:100%;height:clamp(300px,58dvh,580px);border:1px solid #dce3ee;border-radius:5px;background:#f6f6f2}.hp-signin .hp-dialog-body{padding:18px}
@media(max-width:1190px){.hp-shell{width:calc(100% - 64px)}.hp-card{padding:24px 20px}.hp-price strong{font-size:40px}.hp-price{min-height:57px}}
@media(max-width:1000px){.hp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hp-card:nth-child(2){border-right:0}.hp-card:nth-child(-n+2){border-bottom:1px solid #d9e0eb}.hp-heading{align-items:flex-start;flex-direction:column}.hp-card{padding:28px}.hp-price strong{font-size:40px}}
@media(max-width:760px){.hp-shell{width:calc(100% - 40px)}}
@media(max-width:600px){#pricing{padding-bottom:68px}.hp-heading{gap:22px}.hp-heading h2{font-size:28px}.hp-heading>div:first-child>p:last-child{font-size:14px}.hp-grid{grid-template-columns:1fr}.hp-card{padding:26px;border-right:0;border-bottom:1px solid #d9e0eb}.hp-card:last-child{border-bottom:0}.hp-caption{min-height:0}.hp-billing{min-height:0}.hp-price{margin-top:18px;min-height:0}.hp-card ul{margin-top:17px}.hp-benefit{margin:15px 0 23px}.hp-explain{grid-template-columns:1fr;gap:12px}.hp-dialog,.hp-membership{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.hp-dialog header,.hp-membership .dl-head{padding:16px 18px}.hp-dialog .hp-dialog-body,.hp-membership .dl-body{padding:20px}.hp-dialog .hp-dialog-actions,.hp-membership .dl-actions{padding:16px 18px}.hp-membership .dl-total{align-items:flex-start}.hp-membership .dl-total strong{font-size:24px}.hp-summary>div,.hp-membership .dl-summary>div{gap:16px}.hp-signin .hp-dialog-body{padding:12px}}
.hp-price .hp-price-context{font-size:12px;color:var(--muted,#657080)}
.hp-company-cost{font-size:12px;line-height:1.6;font-weight:600;color:var(--blue,#2454ed);min-height:20px;margin:0;text-align:left}
.hp-cost-short,.hp-context-short{display:none}
.hp-billing{font-size:12px;min-height:70px;margin-top:5px}
.hp-card .hp-buy{margin-top:auto}
.hp-footnote{font-size:12px}
@media(max-width:600px){.hp-billing{min-height:70px}.hp-card .hp-buy{margin-top:24px}}
/* 首页手机保留四档完整价格，在可视高度内并排比较。 */
@media(max-width:767px){
  #pricing{padding:24px 0 28px}
  .hp-shell{padding-top:8px}
  .hp-heading{display:block;gap:0;margin-bottom:10px}
  .hp-label{font-size:12px;margin-bottom:5px}
  .hp-heading h2{font-size:24px;line-height:1.3;margin-bottom:5px}
  .hp-heading>div:first-child>p:last-child{font-size:13px;line-height:1.55}
  .hp-period{margin-top:8px;padding:2px}
  .hp-period button{min-height:44px;padding:5px 16px;font-size:12px}
  .hp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
  .hp-card{padding:8px;border-right:1px solid #d9e0eb;border-bottom:1px solid #d9e0eb}
  .hp-card:nth-child(2){border-right:0}.hp-card:nth-child(3){border-bottom:0}.hp-card:last-child{border:0}
  .hp-card h3{font-size:18px;line-height:1.25}
  .hp-caption{display:none}
  .hp-price{margin-top:4px;min-height:0;gap:2px}
  .hp-price strong{font-size:28px;line-height:1.2}
  .hp-price .hp-currency{font-size:16px}
  .hp-price-context{font-size:12px!important}
  .hp-company-cost{font-size:12px;line-height:1.45;min-height:16px;margin:2px 0}
  .hp-billing{min-height:48px;margin:2px 0;font-size:12px;line-height:1.45}
  .hp-card ul{margin:3px 0 6px;padding:3px 0 0;gap:1px}
  .hp-card li{font-size:12px;line-height:1.35;padding-left:12px}
  .hp-card li strong{font-size:12px}
  .hp-buy,.hp-card .hp-buy{width:100%;min-height:44px;margin-top:auto;padding:5px 8px;font-size:12px}
  .hp-explain{display:none}
  .hp-footnote{font-size:12px;line-height:1.45;margin-top:6px}
}
/* 价格比较的各行在四档中共用高度。 */
.hp-mobile-break{display:none}.hp-keep{white-space:nowrap}
@media(max-width:767px){
  #pricing{padding-bottom:34px}
  .hp-mobile-break{display:block}
  .hp-heading h2{font-size:24px;line-height:1.3}
  .hp-period{margin-top:10px}
  .hp-grid{overflow:visible}
  .hp-card{display:grid;grid-template-rows:24px 42px 20px 58px 54px 44px;align-content:start;min-height:258px;overflow:hidden}
  .hp-card h3{grid-row:1}
  .hp-price{grid-row:2;align-self:center;margin:0;min-height:0}
  .hp-company-cost{grid-row:3;align-self:stretch;min-height:0;margin:0;font-size:12px;line-height:1.4}
  .hp-billing{grid-row:4;min-height:0;margin:0;font-size:12px;line-height:1.4;align-self:start}
  .hp-card ul{grid-row:5;align-self:stretch;margin:0;padding:4px 0 0;gap:0;grid-template-rows:1fr 1fr}
  .hp-card li{font-size:12px;line-height:1.25;align-self:center}
  .hp-card .hp-buy{grid-row:6;align-self:end;margin:0}
  .hp-footnote{position:relative;clear:both;margin-top:12px;line-height:1.5}
}
@media(max-width:767px){
  html[lang=en] .hp-heading{margin-bottom:4px}
  html[lang=en] .hp-period{margin-top:4px}
  html[lang=en] .hp-card{grid-template-rows:24px 42px minmax(36px,auto) 58px minmax(54px,auto) 44px;min-height:0;overflow:visible}
  html[lang=en] .hp-footnote{margin-top:8px}
}
/* 四档价盘按内容紧排，按钮靠卡底对齐。 */
@media(max-width:767px){
  #pricing .hp-shell{width:calc(100% - 16px)}
  #pricing .hp-card{display:flex;flex-direction:column;min-height:0;padding:12px;overflow:visible}
  #pricing .hp-card h3{font-size:16px;line-height:1.25}
  #pricing .hp-price{margin:1px 0 0;min-height:0;align-self:auto}
  #pricing .hp-price strong{font-size:28px;line-height:1.1}
  #pricing .hp-company-cost{min-height:0;margin:1px 0 0;font-size:12px;line-height:1.4;white-space:nowrap;letter-spacing:-.025em}
  #pricing .hp-cost-long{display:none}
  #pricing .hp-cost-short{display:inline}
  #pricing .hp-context-long{display:none}
  #pricing .hp-context-short{display:inline}
  #pricing .hp-billing{min-height:0;margin:2px 0 0;font-size:12px;line-height:1.4}
  #pricing .hp-billing:empty{display:none}
  #pricing .hp-card ul{margin:5px 0 5px;padding:5px 0 0;gap:2px;grid-template-rows:none}
  #pricing .hp-card li{font-size:12px;line-height:1.3;padding-left:11px}
  #pricing .hp-card li strong{font-size:13px}
  #pricing .hp-card .hp-buy{height:40px;min-height:40px;margin-top:auto;padding:4px 8px;position:relative}
  #pricing .hp-card .hp-buy:before{content:"";position:absolute;inset:-2px 0}
  #pricing .hp-card ul+.hp-buy{margin-top:auto}
  #pricing .hp-footnote{margin-top:6px;line-height:1.4}
}
