/*
Theme Name: 雅虎拍卖网
Theme URI: https://yahoopaimai.com/
Description: 雅虎拍卖网（日本雅虎二手拍卖网 · 海外代拍代购平台）主题：首页、博客列表 /blog/、文章页；引流链接电脑 / 手机分流。
Version: 1.0.4
Requires PHP: 7.4
Text Domain: yhp-paimai
*/

:root{
  --pink:#f8447d;
  --pink-d:#ef3a74;
  --pink-pale:#fde9f4;
  --ink:#2c2737;
  --sub:#3a3646;
  --body:#4a4852;
  --muted:#7b7986;
  --line:#f4e6ef;
  --wrap:960px;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#fff;color:var(--body);font:16px/1.75 -apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Source Han Sans SC",sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
h1,h2,h3,p{margin:0}
.yhp-wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}

/* ---------- 顶栏 ---------- */
.yhp-header{position:relative;z-index:5;background:linear-gradient(180deg,#fef6fc,#fff8fc)}
.home .yhp-header{position:absolute;left:0;right:0;top:0;background:transparent}
/* 登录时 WP 管理条：电脑 32px、≤782px 宽 46px，首页绝对定位的顶栏同步下移，不被挡 */
.admin-bar.home .yhp-header{top:32px}
@media screen and (max-width:782px){.admin-bar.home .yhp-header{top:46px}}
.yhp-header__in{display:flex;align-items:center;justify-content:space-between;height:auto;padding-top:30px;padding-bottom:14px} /* 1.0.2 顶部留白 30px */
.yhp-brand{display:inline-flex;align-items:center;gap:12px;color:var(--ink);font-size:27px;font-weight:800;letter-spacing:1px;line-height:1;-webkit-text-stroke:.5px currentColor}
.yhp-logo-ico{flex:none;display:block}
.yhp-nav a{font-size:21px;color:var(--ink);font-weight:500;letter-spacing:1px}
.yhp-nav a:hover,.yhp-nav a[aria-current]{color:var(--pink)}

/* ---------- 主视觉 ---------- */
.yhp-hero{position:relative;overflow:hidden;padding:132px 0 100px;text-align:center;
  background:linear-gradient(180deg,#fef5fb 0%,#feeff8 40%,#fef3fa 72%,#fff 100%)}
.yhp-hero__bg{position:absolute;inset:0;pointer-events:none}
.yhp-hero__wave{position:absolute;left:0;bottom:0;width:100%;height:58%}
.yhp-hero__bg::after{content:"";position:absolute;left:0;right:0;bottom:0;height:90px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff)}
.yhp-petal{position:absolute;display:block;width:30px;height:22px;border-radius:70% 10% 70% 10%;background:linear-gradient(135deg,#fbc2d6,#f9a9c4);opacity:.85}
.yhp-petal--1{left:calc(50% - 428px);top:212px;transform:rotate(-18deg)}
.yhp-petal--2{left:calc(50% + 380px);top:294px;width:36px;height:28px;transform:rotate(-40deg)}
.yhp-petal--3{left:calc(50% - 360px);top:406px;width:32px;height:22px;transform:rotate(-12deg)}
.yhp-hero__in{position:relative}
.yhp-hero__title{font-size:68px;line-height:1.15;font-weight:800;color:var(--ink);letter-spacing:2px;word-break:keep-all;line-break:strict;-webkit-text-stroke:1.6px currentColor}
.yhp-hero__title em{font-style:normal;color:var(--pink)}
.yhp-hero__sub{margin-top:12px;font-size:31px;line-height:1.3;color:var(--sub);font-weight:500;letter-spacing:1.5px}
.yhp-hero__text{margin-top:20px;font-size:19.5px;line-height:1.66;color:var(--body);letter-spacing:.3px}
.yhp-hl{color:var(--pink);font-weight:700}
.yhp-nw{white-space:nowrap}
.yhp-hl:hover{text-decoration:underline}
.yhp-btn{display:inline-flex;align-items:center;justify-content:center;margin-top:34px;width:306px;height:62px;border-radius:31px;
  background:linear-gradient(90deg,#f4407a,#fb5689);color:#fff;font-size:27px;font-weight:700;letter-spacing:2px;
  box-shadow:0 8px 20px rgba(248,68,125,.28);-webkit-text-stroke:.4px currentColor;transition:transform .15s,box-shadow .15s}
.yhp-btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(248,68,125,.36)}

/* ---------- 首页文字区 ---------- */
.yhp-sec{position:relative;padding:38px 0 36px;border-bottom:1px solid var(--line)}
.yhp-home .yhp-sec:first-child{padding-top:30px}
.yhp-sec--steps{padding-bottom:46px}
.yhp-sec--ship{padding-bottom:46px}
.yhp-sec--blog{padding-top:32px}
.yhp-h2{position:relative;padding-left:30px;font-size:34px;line-height:1.3;font-weight:800;color:var(--ink);letter-spacing:1px;-webkit-text-stroke:.9px currentColor}
.yhp-h2::before{content:"";position:absolute;left:7px;top:50%;width:6px;height:30px;margin-top:-15px;border-radius:1px;background:var(--pink)}
.yhp-sec__text{margin-top:14px;padding-left:33px;font-size:17.5px;line-height:1.6;color:var(--body);letter-spacing:.3px}
.yhp-sec--ship{overflow:hidden}
.yhp-sec__wave{position:absolute;right:-32px;bottom:0;width:400px;height:150px;pointer-events:none}
.yhp-sec--ship .yhp-h2,.yhp-sec--ship .yhp-sec__text{position:relative}

/* 三步 */
.yhp-steps{display:grid;grid-template-columns:289fr 37fr 278fr 37fr 243fr;align-items:start;margin-top:36px;padding-left:28px}
.yhp-step{display:flex;gap:20px;min-width:0}
.yhp-step__n{flex:none;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--pink-pale);color:var(--pink);font-size:22px;font-weight:700;margin-top:-2px}
.yhp-step__body{min-width:0}
.yhp-step h3{font-size:20.5px;line-height:1.3;color:var(--ink);font-weight:700;letter-spacing:.5px;-webkit-text-stroke:.35px currentColor}
.yhp-step p{margin-top:8px;font-size:14.5px;line-height:1.66;color:var(--muted)}
.yhp-step__arrow{height:40px;position:relative;margin-top:4px}
.yhp-step__arrow::before{content:"";position:absolute;left:-5px;top:12px;width:11px;height:11px;border-top:1.8px solid #f2588a;border-right:1.8px solid #f2588a;transform:rotate(45deg)}

/* 文章列表（首页博客 / 博客页 / 分类页） */
.yhp-list{list-style:none;margin:11px 0 0;padding:0 12px 0 24px}
.yhp-list li{display:flex;align-items:baseline;justify-content:space-between;gap:24px;padding:10px 10px 9px;border-bottom:1px solid var(--line)}
.yhp-list a{min-width:0;font-size:16.5px;line-height:1.5;color:#3d3840}
.yhp-list a:hover{color:var(--pink)}
.yhp-list time{flex:none;font-size:14.5px;color:#7f7f88;font-variant-numeric:tabular-nums}
.yhp-sec--blog{border-bottom:0;padding-bottom:43px}
.yhp-empty{margin-top:18px;padding-left:33px;color:var(--muted)}
.yhp-empty a{color:var(--pink)}

/* ---------- 页脚 ---------- */
.yhp-footer{margin-top:0}
.yhp-footer__in{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 24px 25px;border-top:1px solid var(--line);max-width:calc(var(--wrap) - 48px);padding-left:0;padding-right:0}
.yhp-footer__brand{display:flex;align-items:center;flex-wrap:wrap;gap:0}
.yhp-brand--sm{font-size:21px;gap:10px;padding-left:4px;-webkit-text-stroke:.4px currentColor}
.yhp-footer__sep{margin:0 22px 0 26px;color:#c9c5cc;font-size:13px}
.yhp-footer__tag{font-size:13px;color:#8c8b90;letter-spacing:.5px}
.yhp-footer__copy{font-size:13px;color:#7f7f88}
/* 站点地图入口（1.0.4）：和版权同一行，在版权前面 */
.yhp-footer__copy{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px 18px;line-height:20px}
.yhp-footer__map,.yhp-footer__cr{white-space:nowrap}
.yhp-footer__map a{color:#7f7f88}
.yhp-footer__map a:hover{color:var(--pink)}
.yhp-footer__map i{font-style:normal;margin:0 7px;color:#c9c5cc}
.yhp-sitemap__note{margin-top:14px;padding-left:33px;font-size:14.5px;color:var(--muted)}
.yhp-sitemap__note a{color:var(--pink)}
.yhp-sitemap__h{margin-top:28px;padding-left:33px;font-size:18px;color:var(--ink);font-weight:700}
/* 备案号（1.0.3）：版权下方一行，右对齐；手机上随页脚左对齐，两项各自不拆行 */
.yhp-footer__right{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.yhp-beian{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px 18px;font-size:12.5px;line-height:20px;color:#8c8b90}
.yhp-beian a{color:#8c8b90;white-space:nowrap}
.yhp-beian a:hover{color:var(--pink)}
.yhp-beian__ps{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.yhp-beian__ps img{display:block;width:auto;height:20px}

/* ---------- 列表页 / 文章页 ---------- */
.yhp-listpage,.yhp-single,.yhp-page{padding-top:34px;padding-bottom:56px}
.yhp-h1{font-size:30px}
.yhp-h1 small{font-size:16px;font-weight:500;color:var(--muted);margin-left:6px}
.yhp-crumbs{font-size:13.5px;color:var(--muted);margin-bottom:18px}
.yhp-crumbs a:hover{color:var(--pink)}
.yhp-crumbs span{margin:0 8px;color:#cfc8d0}
.yhp-crumbs b{font-weight:500;color:var(--body)}
.yhp-termdesc{margin-top:14px;padding-left:33px;color:var(--body)}
.yhp-pager{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:30px}
.yhp-pager a,.yhp-pager span{min-width:38px;height:38px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:19px;font-size:14px;color:var(--body)}
.yhp-pager a:hover{border-color:var(--pink);color:var(--pink)}
.yhp-pager .cur{background:var(--pink);border-color:var(--pink);color:#fff}
.yhp-pager .gap{border:0}
.yhp-pager-wp .nav-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:30px}
.yhp-pager-wp .page-numbers{min-width:38px;height:38px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:19px;font-size:14px}
.yhp-pager-wp .current{background:var(--pink);border-color:var(--pink);color:#fff}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}

.yhp-single__grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:44px;align-items:start}
.yhp-article__title{font-size:30px;line-height:1.4;font-weight:800;color:var(--ink);letter-spacing:.5px}
.yhp-article__meta{margin-top:10px;font-size:14px;color:var(--muted)}
.yhp-article__meta span{margin:0 8px}
.yhp-article__meta a{color:var(--pink)}
.yhp-article__thumb{margin:22px 0 0}
.yhp-article__thumb img{display:block;width:100%;border-radius:10px}
.yhp-article__body{margin-top:24px;font-size:16.5px;line-height:1.9;color:#3d3840;overflow-wrap:break-word}
.yhp-article__body>*+*{margin-top:1em}
.yhp-article__body h2{font-size:23px;line-height:1.45;color:var(--ink);margin-top:1.6em;padding-left:14px;border-left:5px solid var(--pink)}
.yhp-article__body h3{font-size:19px;color:var(--ink);margin-top:1.4em}
.yhp-article__body a{color:var(--pink);text-decoration:underline;text-underline-offset:2px}
.yhp-article__body img{border-radius:8px}
.yhp-article__body figure{margin-left:0;margin-right:0}
.yhp-article__body figcaption{font-size:13.5px;color:var(--muted);text-align:center;margin-top:6px}
.yhp-article__body ul,.yhp-article__body ol{padding-left:1.4em}
.yhp-article__body blockquote{margin:1em 0;padding:12px 18px;background:#fef6fa;border-left:4px solid #f9b3cb;color:var(--body)}
.yhp-article__body table{display:block;overflow-x:auto;border-collapse:collapse;max-width:100%}
.yhp-article__body th,.yhp-article__body td{border:1px solid var(--line);padding:6px 10px}
.yhp-prevnext{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:40px;padding-top:20px;border-top:1px solid var(--line)}
.yhp-prevnext__item{min-width:0}
.yhp-prevnext__item--next{text-align:right}
.yhp-prevnext__item span{display:block;font-size:13px;color:var(--muted)}
.yhp-prevnext__item a{display:block;margin-top:4px;font-size:15.5px;line-height:1.55;color:var(--ink)}
.yhp-prevnext__item a:hover{color:var(--pink)}
.yhp-prevnext__item em{display:block;margin-top:4px;font-style:normal;font-size:15px;color:#b9b4bd}

.yhp-side{display:flex;flex-direction:column;gap:22px}
.yhp-side__box{padding:18px 18px 20px;border:1px solid var(--line);border-radius:12px;background:#fff}
.yhp-side__h{position:relative;padding-left:14px;font-size:17px;line-height:1.3;color:var(--ink);font-weight:800}
.yhp-side__h::before{content:"";position:absolute;left:0;top:50%;width:4px;height:17px;margin-top:-8.5px;background:var(--pink)}
.yhp-side__list{list-style:none;margin:12px 0 0;padding:0}
.yhp-side__list li{padding:9px 0;border-bottom:1px dashed var(--line)}
.yhp-side__list a{display:block;font-size:14.5px;line-height:1.55;color:#3d3840}
.yhp-side__list a:hover{color:var(--pink)}
.yhp-side__list time{display:block;margin-top:2px;font-size:12.5px;color:#9a97a3}
.yhp-side__more{display:inline-block;margin-top:12px;font-size:13.5px;color:var(--pink)}
.yhp-side__cta{background:linear-gradient(180deg,#fef4f9,#fff)}
.yhp-side__cta p{margin-top:10px;font-size:14px;line-height:1.7;color:var(--body)}
.yhp-btn--sm{margin-top:14px;width:100%;height:44px;font-size:17px;letter-spacing:1px;border-radius:22px;box-shadow:0 6px 14px rgba(248,68,125,.22)}

/* ---------- 手机 ---------- */
@media (max-width:960px) and (min-width:761px){
  .yhp-step p br{display:none}
}
@media (max-width:860px){
  .yhp-single__grid{grid-template-columns:minmax(0,1fr)}
  .yhp-petal--1{left:4%}.yhp-petal--2{left:auto;right:4%}.yhp-petal--3{left:9%}
}
@media (max-width:760px){
  .yhp-wrap{padding:0 18px}
  .yhp-br{display:none}
  .yhp-header__in{padding-top:24px;padding-bottom:12px}
  .yhp-brand{font-size:22px;gap:9px}
  .yhp-brand .yhp-logo-ico{width:32px;height:32px}
  .yhp-nav a{font-size:17px}
  .yhp-hero{padding:104px 0 70px}
  .yhp-hero__title{font-size:36px;letter-spacing:1px;text-wrap:balance;-webkit-text-stroke:.9px currentColor}
  .yhp-hero__sub{margin-top:12px;font-size:17.5px;letter-spacing:.5px}
  .yhp-hero__text{margin-top:16px;font-size:15.5px;line-height:1.8}
  .yhp-btn{margin-top:28px;width:240px;height:52px;font-size:21px}
  .yhp-petal{transform:scale(.75) rotate(-20deg)}
  .yhp-petal--1{top:66px}.yhp-petal--2{top:112px;right:3%}.yhp-petal--3{top:auto;bottom:40px}
  .yhp-sec,.yhp-sec--steps,.yhp-sec--ship,.yhp-sec--blog{padding:30px 0 28px}
  .yhp-home .yhp-sec:first-child{padding-top:14px}
  .yhp-h2{font-size:24px;padding-left:20px;-webkit-text-stroke:.6px currentColor}
  .yhp-h2::before{left:2px;width:5px;height:22px;margin-top:-11px}
  .yhp-sec__text{margin-top:14px;padding-left:0;font-size:15.5px;line-height:1.8}
  .yhp-steps{display:flex;flex-direction:column;gap:20px;margin-top:22px;padding-left:0}
  .yhp-step{gap:14px}
  .yhp-step__n{width:36px;height:36px;font-size:19px}
  .yhp-step h3{font-size:17.5px}
  .yhp-step p{margin-top:6px;font-size:14px}
  .yhp-step p br{display:none}
  .yhp-step__arrow{display:none}
  .yhp-sec__wave{width:220px;height:90px;right:-18px}
  .yhp-list{padding:0;margin-top:10px}
  .yhp-list li{flex-direction:column;align-items:flex-start;gap:2px;padding:11px 0}
  .yhp-list a{font-size:15.5px}
  .yhp-list time{font-size:12.5px}
  .yhp-empty,.yhp-termdesc{padding-left:0}
  .yhp-footer__in{flex-direction:column;align-items:flex-start;gap:8px;margin:0 18px;padding:16px 0 24px}
  .yhp-footer__sep{display:none}
  .yhp-footer__tag{flex-basis:100%;margin-top:6px}
  .yhp-footer__right{align-items:flex-start;gap:8px;margin-top:4px}
  .yhp-beian{justify-content:flex-start;gap:6px 16px}
  .yhp-footer__copy{justify-content:flex-start;gap:6px 16px}
  .yhp-sitemap__note,.yhp-sitemap__h{padding-left:0}
  .yhp-brand--sm{padding-left:0}
  .yhp-listpage,.yhp-single,.yhp-page{padding-top:22px;padding-bottom:40px}
  .yhp-h1,.yhp-article__title{font-size:24px}
  .yhp-article__body{font-size:16px}
  .yhp-prevnext{grid-template-columns:minmax(0,1fr)}
  .yhp-prevnext__item--next{text-align:left}
  .yhp-btn--sm{width:100%;height:44px;font-size:17px;margin-top:14px}
}
