@import url('https://fonts.loli.net/css2?family=Noto+Serif+SC:wght@300..900&display=swap');
.page-id-1693 .site-footer { 
    display: none; 
}

/* 商品页标题与价格字号（黄金比例 1 : 1.618） */
.single-product {
    --ichiyou-price-size: clamp(16px, 4.2vw, 18px);
}
.single-product h1.wp-block-post-title {
    font-size: calc(var(--ichiyou-price-size) * 1.618) !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}
.single-product .wp-block-woocommerce-product-price,
.single-product .wp-block-woocommerce-product-price .amount,
.single-product .summary .price {
    font-size: var(--ichiyou-price-size) !important;
    line-height: 1.618 !important;
}

/* taylor with respect 页面：相册最后一行图片不拉伸，保持同样大小 */
.page-id-280 .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
    flex-grow: 0;
}

/* 镜片价格指南 Brizy 页中文字体 */
body.page-id-2232 .brz :is(h1,h2,h3,h4,h5,h6,p,span,a,li,div,strong,em,b,small,label,button){font-family:"Noto Serif SC","Songti SC",STSong,serif!important}

/* 全站中文字体：Georgia 字体栈加入思源宋体 */
:root{--font-base:Georgia, "Noto Serif SC", Times, "Times New Roman", serif;--font-headings:Georgia, "Noto Serif SC", Times, "Times New Roman", serif}
html body, html #content, html .entry-content, html .post-content, html .page-content, html .post-excerpt, html .entry-summary, html .entry-excerpt, html .widget-area, html .widget, html .sidebar, html #sidebar, html footer, html .footer, html #footer, html .site-footer{font-family:Georgia, "Noto Serif SC", Times, "Times New Roman", serif}
html #site-title, html .site-title, html #site-title a, html .site-title a, html .entry-title, html .entry-title a, html h1, html h2, html h3, html h4, html h5, html h6, html .widget-title, html .elementor-heading-title{font-family:Georgia, "Noto Serif SC", Times, "Times New Roman", serif}
html .entry-content, html .entry-content p, html .post-content, html .page-content, html .post-excerpt, html .entry-summary, html .entry-excerpt, html .excerpt, html .excerpt p, html .type-post p, html .type-page p, html .wp-block-post-content, html .wp-block-post-excerpt, html .elementor, html .elementor p{font-family:Georgia, "Noto Serif SC", Times, "Times New Roman", serif}
html footer h1, html footer h2, html footer h3, html footer h4, html footer h5, html footer h6, html .footer h1, html .footer h2, html .footer h3, html .footer h4, html .footer h5, html .footer h6, html #footer h1, html #footer h2, html #footer h3, html #footer h4, html #footer h5, html #footer h6{font-family:Georgia, "Noto Serif SC", Times, "Times New Roman", serif}
/* end cjk-georgia */

/* 镜片价格指南：删除最上方滚动大图 */
body.page-id-2232 #mVkf7G06tUVw_mVkf7G06tUVw{display:none!important}

/* 镜片价格指南：品牌卡加官方标识 */
body.page-id-2232 picture:has(> img[src$="/iy-lens-zeiss.svg"]){background:url("https://ichiyou.shop/wp-content/uploads/2026/11/iy-lens-zeiss-logo.svg") center/100% 100% no-repeat}
body.page-id-2232 img[src$="/iy-lens-zeiss.svg"]{opacity:0!important}
body.page-id-2232 picture:has(> img[src$="/iy-lens-hoya.svg"]){background:url("https://ichiyou.shop/wp-content/uploads/2026/11/iy-lens-hoya-logo.svg") center/100% 100% no-repeat}
body.page-id-2232 img[src$="/iy-lens-hoya.svg"]{opacity:0!important}
body.page-id-2232 picture:has(> img[src$="/iy-lens-nikon-2.svg"]){background:url("https://ichiyou.shop/wp-content/uploads/2026/11/iy-lens-nikon-logo.svg") center/100% 100% no-repeat}
body.page-id-2232 img[src$="/iy-lens-nikon-2.svg"]{opacity:0!important}
body.page-id-2232 picture:has(> img[src$="/iy-lens-tokai.svg"]){background:url("https://ichiyou.shop/wp-content/uploads/2026/11/iy-lens-tokai-logo.svg") center/100% 100% no-repeat}
body.page-id-2232 img[src$="/iy-lens-tokai.svg"]{opacity:0!important}
body.page-id-2232 picture:has(> img[src$="/iy-lens-itok.svg"]){background:url("https://ichiyou.shop/wp-content/uploads/2026/11/iy-lens-itok-logo.svg") center/100% 100% no-repeat}
body.page-id-2232 img[src$="/iy-lens-itok.svg"]{opacity:0!important}
body.page-id-2232 picture:has(> img[src$="/iy-lens-essilor.svg"]){background:url("https://ichiyou.shop/wp-content/uploads/2026/11/iy-lens-essilor-logo-w.svg") center/100% 100% no-repeat}
body.page-id-2232 img[src$="/iy-lens-essilor.svg"]{opacity:0!important}
/* end brand-logo-cards */

/* Nikon 页面：隐藏页面标题 */
body.page-id-2407,body.page-id-2407 .wp-site-blocks{background:#fff!important}
body.page-id-2407 .wp-block-post-title{display:none!important}
body.page-id-2407 .wp-block-group:has(> .wp-block-post-title){padding-top:8px!important}
body.page-id-2407 .wp-block-group:has(> .wp-block-post-title) > .entry-content{margin-top:0!important}

/* 首页 Logo：L 转折修正 */
.wp-block-site-title .iy-l{margin-right:1.3em!important}
@media (max-width:780px){.wp-block-site-title .iy-l{margin-right:1.15em!important}}
.wp-block-site-title .iy-l::after{left:.08em!important;bottom:.08em!important;width:1.45em!important;height:.26em!important;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20155%2030%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M3.2%200%20C0%2010%2C0%2030%2C28%2030%20C75%2030%2C125%2019%2C155%204%20C122%2015%2C75%2022%2C34%2022%20C20%2022%2C11.5%2012%2C13.5%200%20Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E") 0 0/100% 100% no-repeat !important;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20155%2030%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M3.2%200%20C0%2010%2C0%2030%2C28%2030%20C75%2030%2C125%2019%2C155%204%20C122%2015%2C75%2022%2C34%2022%20C20%2022%2C11.5%2012%2C13.5%200%20Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E") 0 0/100% 100% no-repeat !important}

/* ===== 购物车（侧边抽屉 + 购物车页）：与主页统一 ===== */
.wc-block-mini-cart__drawer,body.woocommerce-cart{--iy-bg:#fefdfa;--iy-ink:#24211d;--iy-head:#131313;--iy-mute:#5e584f;--iy-line:#e6e2db;--iy-soft:#f6f3ee;--iy-font:"Songti SC",STSong,"Noto Serif SC","Source Han Serif SC","Shippori Mincho","Hiragino Mincho ProN",serif}
.wc-block-mini-cart__drawer .wc-block-components-drawer,.wc-block-mini-cart__drawer .wc-block-components-drawer__content{background:var(--iy-bg)!important}
.wc-block-mini-cart__drawer,.wc-block-mini-cart__drawer *,body.woocommerce-cart main,body.woocommerce-cart main *{font-family:var(--iy-font)!important}
.wc-block-mini-cart__drawer,body.woocommerce-cart main{color:var(--iy-ink)}

/* 标题 */
.wc-block-mini-cart__drawer .wc-block-mini-cart__title,.wc-block-mini-cart__drawer .wc-block-mini-cart__title *{font-size:19px!important;font-weight:400!important;letter-spacing:.12em;color:var(--iy-head)!important}
.wc-block-mini-cart__drawer .wc-block-mini-cart__title{padding-bottom:16px!important;border-bottom:1px solid var(--iy-line);mask-image:none!important}
body.woocommerce-cart main h1{font-weight:400!important;font-size:34px!important;letter-spacing:.12em;color:var(--iy-head)}
body.woocommerce-cart .wc-block-cart-items__header,body.woocommerce-cart .wc-block-cart__totals-title{font-size:12px!important;font-weight:400!important;letter-spacing:.15em;color:var(--iy-mute)!important;text-transform:none}

/* 商品 */
.wc-block-mini-cart__drawer .wc-block-cart-items__row,body.woocommerce-cart .wc-block-cart-items__row{border-color:var(--iy-line)!important}
.wc-block-mini-cart__drawer .wc-block-cart-item__image img,body.woocommerce-cart .wc-block-cart-item__image img{background:#fff;border:1px solid var(--iy-line);padding:6px;box-sizing:border-box}
.wc-block-mini-cart__drawer .wc-block-components-product-name,body.woocommerce-cart .wc-block-components-product-name{font-size:15px!important;font-weight:400!important;letter-spacing:.06em;line-height:1.6;color:var(--iy-head)!important;text-decoration:none!important}
.wc-block-mini-cart__drawer .wc-block-components-product-name:hover,body.woocommerce-cart .wc-block-components-product-name:hover{text-decoration:underline!important;text-underline-offset:3px}
.wc-block-mini-cart__drawer .wc-block-cart-item__prices,.wc-block-mini-cart__drawer .wc-block-cart-item__total,body.woocommerce-cart .wc-block-cart-item__prices,body.woocommerce-cart .wc-block-cart-item__total{font-size:14px!important;letter-spacing:.04em;color:var(--iy-mute)}
.wc-block-mini-cart__drawer .wc-block-components-product-metadata,body.woocommerce-cart .wc-block-components-product-metadata{display:none!important}

/* 数量 */
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector,body.woocommerce-cart .wc-block-components-quantity-selector{border-radius:0!important;border-color:var(--iy-line)!important}
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector::after,body.woocommerce-cart .wc-block-components-quantity-selector::after{border-radius:0!important;border-color:var(--iy-line)!important}
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector *,body.woocommerce-cart .wc-block-components-quantity-selector *{font-size:14px!important;color:var(--iy-ink)!important}
.wc-block-mini-cart__drawer .wc-block-cart-item__remove-link,body.woocommerce-cart .wc-block-cart-item__remove-link{color:var(--iy-mute)!important}

/* 合计 */
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer{border-top:1px solid var(--iy-line);background:var(--iy-bg)}
.wc-block-mini-cart__drawer .wc-block-components-totals-item__label,body.woocommerce-cart .wc-block-components-totals-item__label{font-weight:400!important;font-size:15px!important;letter-spacing:.1em}
.wc-block-mini-cart__drawer .wc-block-components-totals-item__value,body.woocommerce-cart .wc-block-components-totals-item__value{font-weight:400!important;font-size:16px!important;color:var(--iy-head)}
.wc-block-mini-cart__drawer .wc-block-components-totals-item__description,.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal ~ *{font-size:12px;letter-spacing:.06em;color:var(--iy-mute)}
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{font-size:17px!important;color:var(--iy-head)}
body.woocommerce-cart .wc-block-components-totals-wrapper,body.woocommerce-cart .wc-block-components-panel{border-color:var(--iy-line)!important}
body.woocommerce-cart .wc-block-components-panel__button{font-size:14px!important;letter-spacing:.08em;color:var(--iy-mute)!important}

/* 按钮：主页墨色风格 */
.wc-block-mini-cart__drawer .wc-block-components-button,body.woocommerce-cart .wc-block-cart__submit-button{border-radius:0!important;font-size:14px!important;font-weight:400!important;letter-spacing:.25em;min-height:48px;transition:background .2s,color .2s}
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-checkout,body.woocommerce-cart .wc-block-cart__submit-button{background:var(--iy-ink)!important;color:var(--iy-bg)!important;border:1px solid var(--iy-ink)!important}
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-checkout:hover,body.woocommerce-cart .wc-block-cart__submit-button:hover{background:transparent!important;color:var(--iy-ink)!important}
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-cart{background:transparent!important;color:var(--iy-ink)!important;border:1px solid var(--iy-ink)!important}
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-cart:hover{background:var(--iy-ink)!important;color:var(--iy-bg)!important}
.wc-block-mini-cart__drawer .wc-block-cart-item__image img{width:100%!important;max-width:100%!important;height:auto}
body.woocommerce-cart,body.woocommerce-cart .wp-site-blocks{background:var(--iy-bg)!important}
body.woocommerce-cart main strong,body.woocommerce-cart .wc-block-components-totals-item__value *{font-weight:400!important}
/* end cart-style */

/* ===== 购物车图标：可爱版 ===== */
.wc-block-mini-cart__button{padding:2px!important;overflow:visible!important}
.wc-block-mini-cart__button .wc-block-mini-cart__icon{opacity:0!important}
.wc-block-mini-cart__quantity-badge{position:relative}
.wc-block-mini-cart__quantity-badge::before{content:"";position:absolute;inset:-1px;background:#24211d;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 11h17l-1.3 13.6a3 3 0 0 1-3 2.7h-8.4a3 3 0 0 1-3-2.7z'/%3E%3Cpath d='M12 11V9a4 4 0 0 1 8 0v2'/%3E%3Ccircle cx='13' cy='17' r='1.2' fill='black' stroke='none'/%3E%3Ccircle cx='19' cy='17' r='1.2' fill='black' stroke='none'/%3E%3Cpath d='M13.3 20.4q2.7 2.4 5.4 0'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 11h17l-1.3 13.6a3 3 0 0 1-3 2.7h-8.4a3 3 0 0 1-3-2.7z'/%3E%3Cpath d='M12 11V9a4 4 0 0 1 8 0v2'/%3E%3Ccircle cx='13' cy='17' r='1.2' fill='black' stroke='none'/%3E%3Ccircle cx='19' cy='17' r='1.2' fill='black' stroke='none'/%3E%3Cpath d='M13.3 20.4q2.7 2.4 5.4 0'/%3E%3C/svg%3E") center/contain no-repeat;transform-origin:50% 20%}
.wc-block-mini-cart__button:hover .wc-block-mini-cart__quantity-badge::before{animation:iy-cart-wiggle .6s ease}
@keyframes iy-cart-wiggle{0%,100%{transform:rotate(0)}25%{transform:rotate(-10deg)}50%{transform:rotate(8deg)}75%{transform:rotate(-4deg)}}
.wc-block-mini-cart__badge{background:#e93f48!important;color:#fff!important;min-width:12px!important;height:12px!important;font-size:9px!important;font-weight:600!important;line-height:12px!important;border-radius:999px!important;border:1.5px solid #fefdfa!important;box-sizing:content-box!important;padding:0 2px!important;top:-7px!important;right:-9px!important;left:auto!important;transform:none!important;font-family:Helvetica,Arial,sans-serif!important}
/* end cart-icon */

/* FACTORY900 品牌页：AI 无官方图，缩小到与其他官方图一致 */
body.page-id-1386 .wp-block-gallery img[src*="AI-723"]{transform:scale(.58)}

/* 全站页头：去掉手机朱砂红背景；ICHIYOU Optical 标志文字改朱红 #BE1E2D、去掉投影 */
html body .wp-site-blocks.wp-site-blocks.iy-top-red{background-image:none!important}
html body .wp-site-blocks .wp-block-site-title.wp-block-site-title a,html body .wp-site-blocks .wp-block-site-title.wp-block-site-title a *{color:#BE1E2D!important}
html body .wp-site-blocks .wp-block-site-title.wp-block-site-title a{filter:none!important}

/* 首页 no.7 W 区块：手机版也显示第二段（赛璐珞材料介绍） */
@media (max-width:780px){html body .iy-n7-body p:first-of-type + p{display:block}}
/* 首页 no.7 W 区块手机版排版：两端对齐、避头尾、段距 */
@media (max-width:780px){html body .iy-n7-body p{text-align:justify;text-justify:inter-character;line-break:strict;text-spacing-trim:trim-start;hanging-punctuation:allow-end;letter-spacing:.02em;line-height:1.95}html body .iy-n7-body p + p{margin-top:.9em}}
/* 全站强制浅色：不论设备是否开启深色/夜间模式，都按正常浅色显示 */
html:root{color-scheme:only light!important}
/* TOKAI 页面：编号改用中文数字（一二三四五），编号后的“.”改为“、” */
html body:has(.itok-x.tk) .itok-x.tk .no::after{content:"、"!important}
/* 页头「ICHIYOU JAPAN 東京」与「BRANDS」：原精简字体缺 B/R/D/S/東京 会混用备用字体、且只有常规粗细被假加粗，造成虚实不一；统一改用完整字体 Noto Serif SC 的真实粗体 */
html body .iy-badge svg text:nth-of-type(2){font-family:"Noto Serif SC","Songti SC",serif!important;font-weight:600!important;font-synthesis:none}
html body .iy-brandnav,html body .iy-brandnav *{font-family:"Noto Serif SC","Songti SC",Georgia,serif!important;font-weight:600!important;font-synthesis:none}
