/*
Theme Name: 柚子皮
Theme URI: https://xianyang.xadslt.cn/
Author: 柚子皮（兼容优化版）
Tags: Orange, 简约, 响应式
Description: 柚子皮 5.7 无投稿优化版；5.7.9 移除微博设置、评论与文章点赞功能，并将书签统一为友情链接；5.7.10 优化首页首篇文章标题与摘要间距；5.7.11 修复正文页标题区域；5.7.12 新增自动初始浏览量、虚拟人气范围设置和单篇浏览量手动调整；5.7.13 将头部文字 Logo 改为绿白菜推荐；5.7.14 优化文章列表摘要长度；5.7.15 完整兼容 WordPress 原生链接小工具；5.7.16 新增右侧本站介绍/站长介绍卡片及后台编辑设置；5.7.17 在本站介绍下方新增 3 张热门推荐自动轮播图；5.7.18 新增绿白菜默认文章封面、统一绿色品牌视觉、美化文章列表卡片并优化正文阅读排版；5.7.19 新增后台探店信息卡、绿白菜评分、相关文章卡片化与三栏品牌页脚；5.7.20 新增艺术 Logo、移除头部网站地图、手机汉堡菜单、首页快捷分类入口与文章自动目录；5.7.21 修复桌面头部导航挤压换行，并新增首页大横幅精选与文章页热门文章排行榜；5.7.22 完善 PC/平板/手机响应式体验，平板启用汉堡菜单、移动菜单搜索、手机目录折叠、热门榜下沉与移动页脚优化；5.7.23 升级分类栏目首页、搜索筛选排序与手机底部快捷导航；5.7.24 重构普通单页面并修复联系我们页面的旧头部、空侧栏与排版问题；5.7.25 新增分类专属默认封面、手机精简 Logo、PC 热门榜 Sticky、扩展探店实用字段、绿白菜提示、正文图片灯箱，并优化 WebP、CSS 请求与 SEO 结构化数据；5.7.26 新增文章分享、真实点赞、点赞量后台手动设置，并将阅读量与点赞量统一展示。
Version: 5.7.26
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: yzipi
*/

html {
-webkit-text-size-adjust: none;
}
*{
	margin: 0;
	padding: 0;
}
ol, ul {
	list-style: none;
}
img {
	border: 0;
	height: auto;
	width: auto;
}

body {
	font-family: "Microsoft Yahei", "冬青黑体简体中文 w3";
	font-size: 13px;
	background: #f5f5f5;
	color: #656565;
	letter-spacing: 0.5px;
}
a {
	color: #666;
	font-size: 13px;
	text-decoration: none;
	transition: color 0.1s;
}
a:hover {
	color: #d6623d;
}
::selection{background:#d6623d;color:#fff;}

.clear {
	clear: both;
}

/* Modern compatibility and accessibility additions. */
img { max-width: 100%; }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.search-highlight { color: #d6623d; }
.yzipi-new {
    display: inline-block;
    margin-left: 4px;
    padding: 0 4px;
    border-radius: 2px;
    font-size: 10px;
    line-height: 16px;
    vertical-align: 1px;
    background: #d6623d;
    color: #fff;
}
#menu .current-menu-item {
    background: #d6623d;
    color: #fff;
}
#menu .current-menu-item > a { color: #fff; }
button.scroll { border: 0; cursor: pointer; font: inherit; }
.category-description {
    margin-bottom: 24px;
    padding: 18px 20px;
    background: #fff;
    line-height: 1.8;
}

/* sitemap top link */
.header-sitemap-link{margin-left:12px;font-size:14px;}
.header-sitemap-link a{display:block;padding:6px 12px;border-radius:18px;background:#f7f7f7;color:#555;}
.header-sitemap-link a:hover{color:#f60;}
@media(max-width:768px){.header-sitemap-link{display:none;}}

/* 5.7.7 Sidebar cleanup and beautiful tag cloud */
#sitebar .widget_search {
    display:none;
}

.wp-tag-cloud {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    width:94%;
    margin:25px auto;
    padding:0;
}
.wp-tag-cloud li {
    float:none;
    margin:0;
}
.wp-tag-cloud li a {
    display:inline-flex;
    align-items:center;
    height:34px;
    padding:0 18px;
    border:1px solid #eee;
    border-radius:18px;
    background:#fff;
    color:#666;
    font-size:14px;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
    transition:all .25s ease;
}
.wp-tag-cloud li a:hover {
    background:#d6623d;
    border-color:#d6623d;
    color:#fff;
    transform:translateY(-2px);
    box-shadow:0 5px 12px rgba(214,98,61,.2);
}

/* sidebar cards */
#sitebar .widget {
    box-sizing:border-box;
    background:#fff;
    border-radius:10px;
    padding:18px;
    margin-bottom:20px;
    box-shadow:0 2px 12px rgba(0,0,0,.04);
}
#sitebar .widget-title {
    font-size:16px;
    font-weight:700;
    border-left:3px solid #d6623d;
    padding-left:10px;
    margin-bottom:15px;
}


/* 5.7.8 Sidebar friend links */
#sitebar .yzipi-friend-links {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px 10px;
    margin-top:12px;
}
#sitebar .yzipi-friend-links li {
    border:0;
    min-width:0;
}
#sitebar .yzipi-friend-links a {
    display:block;
    width:100%;
    height:auto;
    box-sizing:border-box;
    padding:8px 10px;
    border:1px solid #eee;
    border-radius:6px;
    background:#fafafa;
    color:#666;
    font-size:14px;
    line-height:1.4;
    text-align:center;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
#sitebar .yzipi-friend-links a:hover {
    border-color:#d6623d;
    background:#fff7f4;
    color:#d6623d;
}


/* 5.7.16 Sidebar site / webmaster introduction */
#sitebar .yzipi-about-card {
    position:relative;
    overflow:hidden;
}
#sitebar .yzipi-about-card:after {
    content:"";
    position:absolute;
    right:-26px;
    bottom:-34px;
    width:92px;
    height:92px;
    border:18px solid rgba(214,98,61,.055);
    border-radius:50%;
    pointer-events:none;
}
#sitebar .yzipi-about-text {
    position:relative;
    z-index:1;
    margin:0;
    color:#666;
    font-size:14px;
    line-height:1.9;
    word-break:break-word;
}
#sitebar .yzipi-webmaster {
    position:relative;
    z-index:1;
    margin:14px 0 0;
    padding-top:12px;
    border-top:1px dashed #eee;
    color:#777;
    font-size:13px;
    line-height:1.6;
}
#sitebar .yzipi-webmaster span {
    display:inline-block;
    margin-right:8px;
    padding:2px 7px;
    border-radius:3px;
    background:#fff2ed;
    color:#d6623d;
    font-size:12px;
}


/* 5.7.17 Sidebar promotional carousel */
#sitebar .yzipi-promo-slider {
    position:relative;
    width:100%;
    margin:0 0 20px;
    overflow:hidden;
    border-radius:10px;
    background:#fff;
    box-shadow:0 2px 12px rgba(0,0,0,.04);
}
#sitebar .yzipi-promo-viewport {
    position:relative;
    width:100%;
    aspect-ratio:24 / 11;
    overflow:hidden;
    background:#f4f6f3;
}
#sitebar .yzipi-promo-slide {
    position:absolute;
    inset:0;
    opacity:0;
    visibility:hidden;
    transition:opacity .45s ease, visibility .45s ease;
}
#sitebar .yzipi-promo-slide.is-active {
    opacity:1;
    visibility:visible;
    z-index:1;
}
#sitebar .yzipi-promo-slide img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
#sitebar .yzipi-promo-dots {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:34px;
    padding:4px 12px 5px;
    box-sizing:border-box;
}
#sitebar .yzipi-promo-dot {
    appearance:none;
    -webkit-appearance:none;
    width:9px;
    height:9px;
    min-width:9px;
    padding:0;
    border:0;
    border-radius:50%;
    background:#c9cec9;
    cursor:pointer;
    transition:transform .2s ease, background-color .2s ease;
}
#sitebar .yzipi-promo-dot:hover,
#sitebar .yzipi-promo-dot:focus-visible {
    transform:scale(1.22);
    outline:2px solid rgba(38,137,74,.18);
    outline-offset:3px;
}
#sitebar .yzipi-promo-dot.is-active {
    background:#26894a;
    transform:scale(1.15);
}
@media (prefers-reduced-motion: reduce) {
    #sitebar .yzipi-promo-slide,
    #sitebar .yzipi-promo-dot {
        transition:none;
    }
}
