/*
Theme Name: 嗨罗平
Theme URI: https://www.hilp.cn
Author: 罗平县海螺号网路服务中心
Description: 嗨罗平品牌主题。米白纸感 + 墨黑 + 一点金，杂志式排版，纯块主题，不依赖任何插件。
Version: 0.5.7
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: hilp
Tags: block-theme, editorial, one-column, custom-colors
*/

/* =========================================================
   1. tokens
   ========================================================= */
:root{
  --cream:#F3EEE3;
  --cream-2:#EAE3D3;
  --gold:#E2A82E;
  --ink:#16130F;
  --ink-soft:#4C463C;
  --line:rgba(22,19,15,.16);
  --line-inv:rgba(243,238,227,.18);
  --sans:-apple-system,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;
  --ease:cubic-bezier(.22,.61,.36,1);
  --wrap:1240px;
  --pad:40px;
}
@media(max-width:700px){:root{--pad:24px}}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  background:var(--cream);color:var(--ink);
  font-family:var(--sans);font-size:16px;line-height:1.7;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}

/* 块默认间距交还给组件 CSS。
   注意必须用 :where() 把优先级压到 0——否则会盖掉下面 .hilp-* 组件类的 padding/margin。 */
:where(.wp-block-group){padding:0;margin:0}
:where(.wp-block-heading),:where(p),:where(ul),:where(ol),:where(figure),:where(h1):where(.wp-block-heading){margin:0}
:where(.wp-block-buttons){margin:0}

/* =========================================================
   2. 容器
   ========================================================= */
.hilp-wrap{max-width:var(--wrap);margin:0 auto;padding-left:var(--pad);padding-right:var(--pad);width:100%}

/* =========================================================
   3. 页头
   ========================================================= */
.hilp-nav{border-bottom:1px solid var(--line);background:var(--cream);position:relative;z-index:20}
.hilp-nav .hilp-nav-in{
  height:82px;display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.hilp-logo{display:flex;align-items:center;gap:12px}
/* 页头标志：站点 logo 区块，图来自媒体库（后台可换） */
.hilp-logo .wp-block-site-logo{margin:0;line-height:0;flex:0 0 auto}
.hilp-logo .wp-block-site-logo img,
.hilp-logo .custom-logo{width:auto;height:42px;max-height:42px;display:block}
/* 字标与 slogan 竖排成一块，左边缘对齐「嗨罗平」 */
.hilp-logo-text{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.wp-block-site-title.hilp-logo-b{font-size:17px;font-weight:500;letter-spacing:.18em;line-height:1;margin:0}
.wp-block-site-title.hilp-logo-b a{color:var(--ink)}
.hilp-logo-sub{
  font-size:9px;letter-spacing:.16em;line-height:1.2;
  color:var(--ink-soft);opacity:.72;margin:0;
}

/* 导航：压掉核心 navigation 的默认皮 */
.hilp-nav-links{font-size:13px;letter-spacing:.1em;color:var(--ink-soft)}
.hilp-nav-links .wp-block-navigation__container{gap:40px}
.hilp-nav-links .wp-block-navigation-item__content{
  padding:0;color:var(--ink-soft);transition:color .2s;font-size:13px;letter-spacing:.1em;
}
.hilp-nav-links .wp-block-navigation-item__content:hover{color:var(--ink)}
.hilp-nav-links .wp-block-navigation-item__content.wp-block-navigation-item__content--active{color:var(--ink)}
.hilp-nav-links .wp-block-navigation__responsive-container-open,
.hilp-nav-links .wp-block-navigation__responsive-container-close{
  color:var(--ink);padding:0;
}
@media(max-width:820px){
  .hilp-nav-links .wp-block-navigation__container{gap:26px}
  /* 移动端：汉堡按钮必须可见可点 */
  .hilp-nav-links .wp-block-navigation__responsive-container-open{
    display:flex;align-items:center;justify-content:center;
    width:32px;height:32px;color:var(--ink);padding:0;margin:0;
  }
  .hilp-nav-links .wp-block-navigation__responsive-container-close{color:var(--ink)}
  .hilp-nav-links .wp-block-navigation__responsive-container.is-menu-open{
    background:var(--cream);padding:24px var(--pad);
  }
  .hilp-nav-links .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{gap:20px}
  .hilp-nav-links .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{font-size:16px}
}

/* =========================================================
   4. 首屏
   ========================================================= */
.hilp-hero{background:var(--cream)}
.hilp-hero-grid{
  display:grid;grid-template-columns:1fr 440px;
  min-height:min(80vh,740px);
  padding-left:max(var(--pad),calc((100vw - var(--wrap))/2 + var(--pad)));
}
.hilp-hero-text{display:flex;flex-direction:column;justify-content:center;padding:72px 56px 72px 0}
.hilp-kicker{font-size:11px;letter-spacing:.3em;color:var(--ink-soft);margin-bottom:26px}
.hilp-h1{
  font-size:clamp(50px,8.4vw,112px);
  line-height:.92;font-weight:400;letter-spacing:-.055em;
  white-space:nowrap;margin:0;
}
.hilp-lead{margin-top:38px;font-size:clamp(16px,1.7vw,19px);line-height:1.85;max-width:25em}
.hilp-sub{margin-top:14px;font-size:14px;line-height:1.9;color:var(--ink-soft);max-width:23em}
.hilp-cta-row{margin-top:42px;display:flex;align-items:center;gap:30px;flex-wrap:wrap}
.hilp-btn{
  display:inline-block;background:var(--ink);color:var(--cream);
  padding:17px 34px;font-size:12.5px;letter-spacing:.18em;
  transition:opacity .25s var(--ease);border:0;line-height:1;
}
.hilp-btn:hover{opacity:.82;color:var(--cream)}
.hilp-btn a{color:inherit;border:0}
.hilp-cta-link{
  display:inline-block;
  font-size:12.5px;letter-spacing:.16em;color:var(--ink-soft);
  border-bottom:1px solid var(--ink-soft);padding-bottom:3px;
}
.hilp-cta-link:hover{color:var(--ink);border-bottom-color:var(--ink)}

.hilp-hero-block{
  background:var(--gold);position:relative;
  display:flex;align-items:center;justify-content:center;padding:44px;
}
.hilp-hero-block .hilp-vlabel{
  position:absolute;top:26px;left:26px;
  writing-mode:vertical-rl;font-size:10px;letter-spacing:.34em;color:rgba(22,19,15,.5);
}

/* 占位图：还没上传真图时显示主题内置的 SVG（assets/），一旦槽位里有 <img> 就自动让位。
   用伪元素而不是 image 区块，好处是不动内容、不写死媒体库 URL、两端各自一套比例。 */
.hilp-hero-block::before{
  content:"";position:absolute;inset:44px;pointer-events:none;
  background:url(assets/hero-desktop.svg) center / contain no-repeat;
}
.hilp-hero-block:has(img)::before{content:none}

/* 主视觉：桌面竖图 / 手机横图两个槽位。
   object-fit:contain —— 去底 PNG 必须整张放进去，不能裁，也不能铺成白/金底块。
   阴影用 drop-shadow 跟随透明轮廓生成：图层里不用带影，换尺寸也不会错位。 */
.hilp-hero-block .wp-block-image{margin:0;width:100%;height:100%;display:flex}
.hilp-hero-block figure{margin:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.hilp-hero-block img{
  width:100%;height:100%;object-fit:contain;object-position:center;
  filter:drop-shadow(0 14px 22px rgba(22,19,15,.16));
}
.hilp-hero-img-m{display:none}

.hilp-img-note{
  font-size:11px;letter-spacing:.16em;color:rgba(22,19,15,.55);
  text-align:center;line-height:2;
}
@media(max-width:900px){
  .hilp-hero-grid{grid-template-columns:1fr;padding-left:0;min-height:auto}
  .hilp-hero-text{padding:56px var(--pad) 60px}
  .hilp-h1{white-space:normal}
  .hilp-hero-block{height:320px}
  .hilp-hero-block::before{background-image:url(assets/hero-mobile.svg)}
  .hilp-hero-img-d{display:none}
  .hilp-hero-img-m{display:block}
}

/* =========================================================
   5. 宣言
   ========================================================= */
.hilp-manifesto{padding:126px 0 0}
@media(max-width:700px){.hilp-manifesto{padding:72px 0 0}}
.hilp-mtext{
  font-size:clamp(32px,4.9vw,62px);
  line-height:1.28;font-weight:400;letter-spacing:-.035em;max-width:16em;
}
.hilp-creed{
  display:grid;grid-template-columns:repeat(3,1fr);gap:56px;
  margin-top:92px;padding-top:44px;border-top:1px solid var(--line);
}
@media(max-width:880px){.hilp-creed{grid-template-columns:1fr;gap:34px;margin-top:56px}}
.hilp-creed > div{display:block}
.hilp-creed-b{display:block;font-size:12px;font-weight:500;letter-spacing:.22em;margin-bottom:14px}
.hilp-creed-p{font-size:13.5px;line-height:1.95;color:var(--ink-soft);max-width:19em}

/* =========================================================
   6. 罗平（深色段）
   ========================================================= */
.hilp-luoping{background:var(--ink);color:var(--cream);margin-top:118px;padding:118px 0}
@media(max-width:700px){.hilp-luoping{margin-top:64px;padding:68px 0}}
.hilp-luoping .hilp-kicker{color:rgba(243,238,227,.55)}
.hilp-luoping .hilp-h2{color:var(--cream)}
.hilp-h2{font-size:clamp(40px,5.6vw,80px);font-weight:400;line-height:.98;letter-spacing:-.05em;margin:0}
.hilp-facts-list{
  list-style:none;margin-top:70px;padding:0;
  display:grid;grid-template-columns:repeat(2,1fr);gap:0 84px;
}
@media(max-width:880px){.hilp-facts-list{grid-template-columns:1fr;gap:0;margin-top:44px}}
.hilp-facts-list li{
  display:grid;grid-template-columns:140px 1fr;gap:24px;align-items:baseline;
  padding:26px 0;border-top:1px solid var(--line-inv);
}
.hilp-facts-list b{color:var(--gold);font-size:21px;font-weight:400;letter-spacing:-.01em;line-height:1.4}
.hilp-facts-list span{font-size:13.5px;line-height:1.85;color:rgba(243,238,227,.72)}
.hilp-facts-note{
  margin-top:60px;padding-top:26px;border-top:1px solid var(--line-inv);
  font-size:clamp(16px,1.8vw,20px);line-height:1.85;color:rgba(243,238,227,.9);max-width:24em;
}

/* =========================================================
   7. 东西（产品列表）
   ========================================================= */
.hilp-works{padding:112px 0 0}
@media(max-width:700px){.hilp-works{padding:64px 0 0}}
.hilp-works-head{display:flex;align-items:baseline;justify-content:space-between;gap:24px;margin-bottom:20px;flex-wrap:wrap}
.hilp-works-head .hilp-h3{font-size:clamp(24px,3vw,36px);font-weight:400;letter-spacing:-.03em;margin:0}
.hilp-works-head > p{font-size:11.5px;letter-spacing:.2em;color:var(--ink-soft);opacity:.7}

.hilp-wlist{list-style:none;padding:0;margin:0}
.hilp-witem{
  display:grid;grid-template-columns:96px 1fr 1.15fr 56px;
  gap:32px;align-items:center;
  padding:38px 0;border-top:1px solid var(--line);
  transition:padding-left .35s var(--ease);
}
.hilp-witem:last-child{border-bottom:1px solid var(--line)}
.hilp-witem:hover{padding-left:12px}
.hilp-witem:hover .wname a{opacity:.7}
.hilp-wno{font-size:34px;font-weight:400;letter-spacing:-.02em;opacity:.28;font-variant-numeric:tabular-nums;line-height:1}
.hilp-wname{font-size:clamp(19px,2vw,23px);font-weight:500;letter-spacing:-.01em;line-height:1.3}
.hilp-wname a{color:var(--ink);transition:opacity .2s}
.hilp-wmeta{display:block;margin-top:6px;font-size:11.5px;letter-spacing:.14em;color:var(--ink-soft);opacity:.7;font-weight:400}
.hilp-wdesc{font-size:13.5px;line-height:1.85;color:var(--ink-soft)}
.hilp-wdot{width:44px;height:44px;justify-self:end;display:block}
.hilp-dot-gold{background:var(--gold)}
.hilp-dot-ink{background:var(--ink)}
.hilp-dot-cream{background:transparent;border:1px solid var(--line)}
@media(max-width:820px){
  .hilp-witem{grid-template-columns:56px 1fr;gap:14px 20px;padding:28px 0}
  .hilp-wno{font-size:26px}
  .hilp-wdesc{grid-column:2}
  .hilp-wdot{display:none}
}

/* =========================================================
   8. 从田里到盒子里
   ========================================================= */
.hilp-flow{padding:84px 0 96px}
@media(max-width:700px){.hilp-flow{padding:52px 0 64px}}
.hilp-flow-head{font-size:11px;letter-spacing:.24em;color:var(--ink-soft);margin-bottom:30px}
.hilp-flow-row{display:grid;grid-template-columns:repeat(3,1fr);gap:44px;padding-top:34px;border-top:1px solid var(--line)}
@media(max-width:880px){.hilp-flow-row{grid-template-columns:1fr;gap:26px}}
.hilp-flow-row > div{font-size:13.5px;line-height:1.9;color:var(--ink-soft)}
.hilp-flow-row b{display:block;color:var(--ink);font-weight:500;font-size:12px;letter-spacing:.18em;margin-bottom:10px}

/* =========================================================
   9. 页脚
   ========================================================= */
.hilp-foot{padding:0 0 60px}
.hilp-foot-in{
  display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:40px;
  padding:44px 0;border-top:1px solid var(--line);
}
@media(max-width:760px){.hilp-foot-in{grid-template-columns:1fr;gap:28px}}
.hilp-foot b{display:block;font-size:15px;font-weight:500;letter-spacing:.16em;margin-bottom:14px}
.hilp-foot p,.hilp-foot a{font-size:12.5px;line-height:2.1;color:var(--ink-soft)}
.hilp-foot a:hover{color:var(--ink)}
.hilp-foot-bottom{
  display:flex;justify-content:space-between;gap:20px;
  padding-top:22px;border-top:1px solid var(--line);
  font-size:11px;letter-spacing:.12em;color:var(--ink-soft);opacity:.7;flex-wrap:wrap;
}
.hilp-foot-bottom a{border-bottom:1px solid var(--line);padding-bottom:1px}
.hilp-foot-bottom a:hover{color:var(--ink);opacity:1}
/* 页脚「站点」列用的是核心 page-list 区块，把它的默认列表皮去掉 */
.hilp-foot .wp-block-page-list{list-style:none;margin:0;padding:0}
.hilp-foot .wp-block-page-list li{margin:0}
.hilp-foot .wp-block-page-list a{font-size:12.5px;line-height:2.1;color:var(--ink-soft)}
.hilp-foot .wp-block-page-list a:hover{color:var(--ink)}

/* =========================================================
   10. 单品页
   ========================================================= */
.hilp-single{padding:0 0 110px}
.hilp-crumb{
  padding:34px 0 0;font-size:11px;letter-spacing:.22em;color:var(--ink-soft);opacity:.8;
}
.hilp-crumb a{border-bottom:1px solid transparent}
.hilp-crumb a:hover{border-bottom-color:var(--ink-soft)}
.hilp-prod{
  display:grid;grid-template-columns:.92fr 1.08fr;gap:76px;align-items:start;
  padding-top:56px;
}
@media(max-width:900px){.hilp-prod{grid-template-columns:1fr;gap:36px;padding-top:36px}}
/* 产品图统一 1:1 方图：3:2 / 4:5 / 方图 都能裁得下主体，宽容度最高 */
.hilp-prod-figure{background-color:var(--cream-2);border:1px solid var(--line);aspect-ratio:1/1;position:relative;overflow:hidden}
.hilp-prod-figure img{width:100%;height:100%;object-fit:cover}
.hilp-prod-figure .hilp-img-note{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;
}
/* 还没有产品图时，给一个品牌纹样占位（有图就自动消失） */
.hilp-prod-figure,
.hilp-card-fig{
  background-image:url(assets/placeholder.svg);
  background-repeat:no-repeat;background-position:center;background-size:32% auto;
}
.hilp-prod-figure:has(img),
.hilp-card-fig:has(img){background-image:none}
.hilp-prod-body .hilp-kicker{margin-bottom:20px}
.hilp-prod-title{
  font-size:clamp(34px,4.6vw,64px);line-height:1.02;font-weight:400;letter-spacing:-.045em;margin:0;
}
.hilp-prod-spec{
  margin-top:20px;font-size:12px;letter-spacing:.18em;color:var(--ink-soft);opacity:.8;
}
.hilp-prod-content{margin-top:34px;font-size:15px;line-height:1.95;color:var(--ink-soft)}
.hilp-prod-content p{margin-bottom:16px}
.hilp-prod-content p:last-child{margin-bottom:0}
.hilp-prod-content h2{
  font-size:clamp(19px,2.1vw,24px);font-weight:400;letter-spacing:-.01em;
  line-height:1.35;margin:36px 0 14px;color:var(--ink);
}
.hilp-prod-content h3{font-size:17px;font-weight:500;line-height:1.4;margin:28px 0 10px;color:var(--ink)}
.hilp-prod-content ul,.hilp-prod-content ol{margin:0 0 20px 1.1em;padding:0;list-style:disc}
.hilp-prod-content li{margin-bottom:7px;font-size:14px;line-height:1.9}

/* 购买区：本主题刻意不做购物车，只做「告诉你怎么买」 */
.hilp-buy{
  margin-top:44px;padding-top:30px;border-top:1px solid var(--line);
  display:flex;align-items:center;gap:34px;flex-wrap:wrap;
}
.hilp-buy-note{font-size:12px;letter-spacing:.14em;color:var(--ink-soft);line-height:2}

/* 同段：相关产品 */
.hilp-more{padding:64px 0 0}
@media(max-width:700px){.hilp-more{padding:48px 0 0}}

/* =========================================================
   11. 归档 / 列表页
   ========================================================= */
.hilp-archive{padding:0 0 110px}
.hilp-archive-head{padding:96px 0 0}
@media(max-width:700px){.hilp-archive-head{padding:60px 0 0}}
.hilp-archive-head .hilp-h1-soft{
  font-size:clamp(44px,6.4vw,84px);line-height:.96;font-weight:400;letter-spacing:-.05em;margin:0;
}
.hilp-archive-desc{margin-top:26px;font-size:14px;line-height:1.9;color:var(--ink-soft);max-width:30em}

.hilp-grid-list,
.wp-block-post-template.hilp-grid-list{
  list-style:none;padding:0;margin:0;
  display:grid;grid-template-columns:repeat(3,1fr);gap:56px 40px;
}
/* 核心给 post-template 设了 margin-top，这里必须用同等以上优先级压回来 */
.wp-block-post-template.hilp-grid-list{margin-top:72px}
@media(max-width:980px){.wp-block-post-template.hilp-grid-list{grid-template-columns:repeat(2,1fr);gap:44px 28px}}
@media(max-width:620px){.wp-block-post-template.hilp-grid-list{grid-template-columns:1fr;gap:44px}}
.hilp-card{display:block}
.hilp-card-fig{background-color:var(--cream-2);border:1px solid var(--line);aspect-ratio:1/1;overflow:hidden;margin-bottom:20px}
.hilp-card-fig img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
.hilp-card:hover .hilp-card-fig img{transform:scale(1.02)}
.hilp-card-no{font-size:11px;letter-spacing:.2em;color:var(--ink-soft);opacity:.6;display:block;margin-bottom:8px}
.hilp-card-t{font-size:19px;font-weight:500;letter-spacing:-.01em;line-height:1.35}
.hilp-card-d{margin-top:8px;font-size:13px;line-height:1.85;color:var(--ink-soft)}

/* =========================================================
   12. 普通页面 / 文章
   ========================================================= */
.hilp-page{padding:96px 0 120px}
@media(max-width:700px){.hilp-page{padding:64px 0 80px}}
.hilp-page-title{
  font-size:clamp(40px,5.4vw,76px);line-height:1;font-weight:400;letter-spacing:-.05em;margin:0;
}
.hilp-page-body{margin-top:54px;max-width:38em;font-size:15.5px;line-height:2;color:var(--ink-soft)}
.hilp-page-body h2{font-size:clamp(24px,3vw,34px);line-height:1.3;margin:56px 0 18px;color:var(--ink);font-weight:400;letter-spacing:-.02em}
.hilp-page-body h3{font-size:20px;line-height:1.4;margin:38px 0 14px;color:var(--ink);font-weight:500}
.hilp-page-body p{margin-bottom:20px}
.hilp-page-body ul,.hilp-page-body ol{margin:0 0 24px 1.2em;padding:0}
.hilp-page-body li{margin-bottom:10px}
.hilp-page-body a{border-bottom:1px solid var(--line);padding-bottom:1px}
.hilp-page-body a:hover{border-bottom-color:var(--ink-soft)}
.hilp-page-body img{margin:32px 0}
.hilp-page-body blockquote{
  margin:34px 0;padding-left:20px;border-left:2px solid var(--gold);
  font-size:17px;line-height:1.9;color:var(--ink);
}

/* =========================================================
   13. 404
   ========================================================= */
.hilp-404{padding:150px 0 170px;text-align:center}
.hilp-404 .hilp-h1{white-space:normal;font-size:clamp(40px,7vw,88px)}
.hilp-404 p{margin-top:24px;font-size:14px;color:var(--ink-soft);letter-spacing:.06em}
.hilp-404 .hilp-btn{margin-top:40px}

/* =========================================================
   14. 通用：屏幕上不显示的东西
   ========================================================= */
.screen-reader-text{
  border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;
  padding:0;position:absolute;width:1px;word-wrap:normal!important;
}

/* =========================================================
   15. 互动：一年十二格
   ========================================================= */
.hilp-season{padding:96px 0 84px;border-top:1px solid var(--line)}
@media(max-width:700px){.hilp-season{padding:60px 0 52px}}

.hilp-season-hint{font-size:13px;color:var(--ink-soft);margin:22px 0 0}
.hilp-season:has(.hilp-m:checked) .hilp-season-hint{display:none}

/* 十二格横轴 */
.hilp-season-axis{
  position:relative;
  display:grid;grid-template-columns:repeat(12,1fr);
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  margin-top:34px;
}
@media(max-width:700px){.hilp-season-axis{grid-template-columns:repeat(6,1fr)}}

/* 悬停跟随块：JS 只改 transform/width，动效全在 GPU 合成层 */
.hilp-axis-cursor{
  position:absolute;left:0;top:0;width:0;height:28px;z-index:0;
  background:var(--gold);
  opacity:0;pointer-events:none;
  transform:translate3d(0,0,0);
  transition:transform .27s var(--ease),width .27s var(--ease),height .27s var(--ease),opacity .16s var(--ease);
  will-change:transform,opacity;
}
.hilp-axis-cursor.is-on{opacity:1}

.hilp-m{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.hilp-ml{
  position:relative;z-index:1;display:flex;align-items:center;justify-content:center;
  padding:24px 0 22px;cursor:pointer;
  font-size:17px;letter-spacing:.04em;color:var(--ink-soft);
  transition:color .22s var(--ease);
}
.hilp-ml b{font-weight:400;font-variant-numeric:tabular-nums;transition:color .22s var(--ease)}
.hilp-ml:hover{color:var(--ink)}
/* 色块过来时数字转白 */
.hilp-ml.is-hot,.hilp-ml.is-hot:hover,.hilp-ml.is-hot b{color:#fff}
.hilp-ml.is-hot b{font-weight:500}
.hilp-ml.is-hot .hilp-dot{background:#fff}
/* 已选中且悬停：金点会被金块半遮，直接收掉，避免白点落在米白底上看不见 */
.hilp-m:checked + .hilp-ml.is-hot::after{opacity:0}
.hilp-ml::after{
  content:"";position:absolute;left:50%;bottom:9px;width:5px;height:5px;
  margin-left:-2.5px;background:var(--gold);opacity:0;transition:opacity .2s
}
.hilp-m:checked + .hilp-ml{color:var(--ink)}
.hilp-m:checked + .hilp-ml b{font-weight:600}
/* 已选中的月份被悬停时，同样转白（优先级要压过 :checked） */
.hilp-m:checked + .hilp-ml.is-hot,
.hilp-m:checked + .hilp-ml.is-hot b{color:#fff}
.hilp-m:checked + .hilp-ml::after{opacity:1}
/* 悬停块压在金点上时，金点转墨，避免同色看不见 */
.hilp-m:checked + .hilp-ml:hover::after{background:var(--ink)}
.hilp-m:focus-visible + .hilp-ml{outline:2px solid var(--ink);outline-offset:-6px}
/* 本月：右上角一个小金点，不动布局 */
.hilp-ml-now::before{
  content:"";position:absolute;top:13px;left:50%;transform:translateX(-50%);
  width:4px;height:4px;background:var(--gold);border-radius:50%
}
/* 当前月被选中时，只留下面那个金点，避免同一格两个点 */
.hilp-m:checked + .hilp-ml-now::before{opacity:0}

/* 展开区：12 个面板叠在同一格，只展开选中的那个 */
.hilp-season-stage{display:grid;margin-top:0}
.hilp-sp{
  grid-area:1/1;display:grid;grid-template-rows:0fr;opacity:0;overflow:hidden;
  transition:grid-template-rows .45s var(--ease),opacity .3s var(--ease);
}
.hilp-sp-in{overflow:hidden;min-height:0}
.hilp-sp-num{
  font-size:clamp(34px,4.4vw,54px);font-weight:400;letter-spacing:-.03em;line-height:1;
  padding:38px 0 0;
}
.hilp-sp-line{margin-top:16px;font-size:clamp(15px,1.6vw,18px);color:var(--ink-soft);max-width:34em;line-height:1.9}
.hilp-sp-take{display:flex;align-items:center;gap:9px;margin-top:14px;font-size:14px;color:var(--ink)}
.hilp-dot{width:6px;height:6px;background:var(--gold);flex:0 0 auto}
.hilp-sp-in{padding-bottom:38px}

.hilp-season:has(#hilp-m1:checked) [data-m="1"],
.hilp-season:has(#hilp-m2:checked) [data-m="2"],
.hilp-season:has(#hilp-m3:checked) [data-m="3"],
.hilp-season:has(#hilp-m4:checked) [data-m="4"],
.hilp-season:has(#hilp-m5:checked) [data-m="5"],
.hilp-season:has(#hilp-m6:checked) [data-m="6"],
.hilp-season:has(#hilp-m7:checked) [data-m="7"],
.hilp-season:has(#hilp-m8:checked) [data-m="8"],
.hilp-season:has(#hilp-m9:checked) [data-m="9"],
.hilp-season:has(#hilp-m10:checked) [data-m="10"],
.hilp-season:has(#hilp-m11:checked) [data-m="11"],
.hilp-season:has(#hilp-m12:checked) [data-m="12"]{
  grid-template-rows:1fr;opacity:1;
}

/* =========================================================
   16. 互动：带走一张
   ========================================================= */
.hilp-pc{padding:84px 0 96px;border-top:1px solid var(--line)}
@media(max-width:700px){.hilp-pc{padding:52px 0 64px}}

.hilp-pc-lead{margin-top:26px;font-size:clamp(15px,1.6vw,17px);color:var(--ink-soft);max-width:30em;line-height:1.9}
.hilp-gen{margin-top:38px;max-width:760px}
html:not(.js) .hilp-gen{display:none}

.hilp-gen-label{font-size:11px;letter-spacing:.26em;color:var(--ink-soft);margin-bottom:14px}
.hilp-chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:780px}
@media(max-width:700px){.hilp-chips{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.hilp-chips{grid-template-columns:repeat(2,minmax(0,1fr))}}
.hilp-chip{display:block}
.hilp-chip input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.hilp-chip span{
  display:flex;flex-direction:column;gap:5px;
  padding:12px 14px;border:1px solid var(--line);cursor:pointer;
  transition:border-color .2s,color .2s;
}
.hilp-chip span b{font-size:14px;font-weight:400;color:var(--ink-soft);letter-spacing:.06em;transition:color .2s}
.hilp-chip span i{font-style:normal;font-size:11px;letter-spacing:.04em;color:var(--ink-soft);opacity:.6;font-variant-numeric:tabular-nums}
.hilp-chip span:hover{border-color:var(--ink)}
.hilp-chip span:hover b{color:var(--ink)}
.hilp-chip input:checked + span{border-color:var(--ink);box-shadow:inset 0 -2px 0 var(--gold)}
.hilp-chip input:checked + span b{color:var(--ink);font-weight:500}
.hilp-chip input:focus-visible + span{outline:2px solid var(--ink);outline-offset:3px}

.hilp-gen-fields{display:flex;flex-wrap:wrap;gap:22px;margin-top:26px}
.hilp-field{display:flex;flex-direction:column;gap:9px;font-size:11px;letter-spacing:.26em;color:var(--ink-soft)}
.hilp-field-wide{flex:1 1 300px}
.hilp-field select,.hilp-field input{
  font-family:inherit;font-size:15px;letter-spacing:.02em;color:var(--ink);
  background:transparent;border:0;border-bottom:1px solid var(--line);
  padding:9px 0;border-radius:0;appearance:none;-webkit-appearance:none;
}
.hilp-field select{
  min-width:130px;cursor:pointer;padding-right:24px;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%2316130F' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 2px center;
}
.hilp-field input::placeholder{color:var(--ink-soft);opacity:.55}
.hilp-field select:focus,.hilp-field input:focus{outline:none;border-bottom-color:var(--ink)}

.hilp-gen-note{margin-top:16px;font-size:12px;color:var(--ink-soft);opacity:.75}
.hilp-gen-go{margin-top:26px}
.hilp-gen-go[disabled]{opacity:.5;cursor:default}

.hilp-gen-out{margin-top:40px}
.hilp-gen-img{
  width:100%;max-width:420px;border:1px solid var(--line);display:block;
}
.hilp-gen-tip{margin-top:14px;font-size:13px;color:var(--ink-soft)}
.hilp-gen-tip a{border-bottom:1px solid var(--line);padding-bottom:2px}

/* =========================================================
   17. 降级与兜底
   ========================================================= */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hilp-sp,.hilp-ml,.hilp-chip span,.hilp-axis-cursor{transition:none}
}
@media print{
  .hilp-season,.hilp-pc{display:none}
}
/* 编辑器画布里没有 :checked，面板会全部收起——平铺出来，否则以为内容丢了 */
.editor-styles-wrapper .hilp-sp{
  grid-area:auto;grid-template-rows:1fr;opacity:1;border-top:1px solid var(--line)
}
