/*
Theme Name: XU5 Design Software Library
Theme URI: https://xu5.cc
Author: XU5
Author URI: https://xu5.cc
Description: A WordPress theme for design software library
Version: 2.0.20261005164447
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xu5-design
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ============================================
   基础样式
   ============================================ */

.xu5-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

a,body,div,h1,h2,h3,h4,h5,h6,input,p,span{
    font-family:-apple-system,HarmonyOS_Regular,HarmonyOS_Medium,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji!important;
    box-sizing:border-box;
    text-decoration:none;
    margin:0;
    padding:0
}
a,a:hover{
    text-decoration:none
}
img{
    border:0;
    display:block
}
input{
    outline:0;
    border:0
}
html{
    background:#000;
    color:#333;
    overflow-y:scroll;
    --xu5-sb-track:#000;
    --xu5-sb-thumb:#2a2f3a;
    --xu5-sb-thumb-hover:#3a4150;
    scrollbar-color:var(--xu5-sb-thumb) var(--xu5-sb-track);
    scrollbar-width:thin
}
html::-webkit-scrollbar{
    width:12px;
    height:12px
}
html::-webkit-scrollbar-track{
    background:var(--xu5-sb-track)
}
html::-webkit-scrollbar-thumb{
    background:var(--xu5-sb-thumb);
    border-radius:8px;
    border:3px solid var(--xu5-sb-track)
}
html::-webkit-scrollbar-thumb:hover{
    background:var(--xu5-sb-thumb-hover)
}
body,html{
    height:100%
}
.button{
    display:inline-block;
    line-height:1;
    white-space:nowrap;
    cursor:pointer;
    background:#fff;
    border:1px solid #dcdfe6;
    color:#606266;
    -webkit-appearance:none;
    text-align:center;
    box-sizing:border-box;
    outline:0;
    margin:0;
    transition:.1s;
    font-weight:500;
    font-size:12px;
    border-radius:3px;
    padding:7px 15px
}
.button:focus,.button:hover{
    color:#409eff;
    border-color:#c6e2ff;
    background-color:#ecf5ff
}
.flex1{
    flex:1
}

/* ============================================
   布局容器
   ============================================ */

.container{
    width:1100px;
    margin:0 auto;
    position:relative;
    display:flex;
    flex-direction:column
}
/* 语义化 <main>：作为 .container 的弹性子项承接主内容，保持原 flex 列布局不变 */
.container>.xu5-main{
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    min-width:0
}
.header{
    background:#f2f2f2;
    margin-bottom:20px
}
.header .container{
    padding:15px 0;
    justify-content:space-between;
    width:1100px;
    display:flex;
    align-items:baseline
}
.header .container,.left{
    display:flex;
    align-items:baseline
}
.left .logo{
    color:#111;
    font-size:24px;
    font-weight:700;
    margin-right:20px
}
.left .logo:active{
    color:#333
}
.right{
    display:flex;
    cursor:pointer
}
.right a{
    margin-right:30px
}

/* ============================================
   可关闭提示横幅
   ============================================ */

.xu5-tip-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    padding: 6px 16px;
    font-size: 12px;
}
.xu5-tip-text { line-height: 1.4; }

/* ============================================
   顶部导航栏（滚动后吸顶）
   ============================================ */

.xu5-topbar {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 16px;
    border-bottom: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, box-shadow 0.3s;
    z-index: 1000;
    box-sizing: border-box;
}
.xu5-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.xu5-topbar-logo {
    font-size: clamp(18px, 4vw, 26px);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.xu5-topbar-logo-img {
    height: 32px;
    width: auto;
    display: block;
    transition: height 0.3s, opacity 0.2s;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 40%, rgba(0,0,0,.5) 50%, #000 60%, #000 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 40%, rgba(0,0,0,.5) 50%, #000 60%, #000 100%);
    -webkit-mask-size: 200% 100%;
    mask-size: 200% 100%;
    animation: xu5-shine-mask 8s ease-in-out infinite;
}
@keyframes xu5-shine-mask {
    0%, 100% { -webkit-mask-position: 200% center; mask-position: 200% center; }
    50% { -webkit-mask-position: -200% center; mask-position: -200% center; }
}
.xu5-topbar-logo-img:hover {
    opacity: 0.85;
}
.xu5-topbar-desc {
    font-size: 13px;
    color: rgba(200, 180, 140, 0.75);
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.xu5-topbar-desc::before {
    content: '|';
    margin-right: 10px;
    color: rgba(200, 180, 140, 0.35);
    font-weight: 300;
}
.xu5-topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
}
.xu5-header-search {
    position: relative;
    flex: 0 0 auto;
    margin-left: -6px;
}
.xu5-topbar-nav:has(+ .xu5-header-search) .nav-btn:last-child::after {
    content: '/';
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
    pointer-events: none;
}
.xu5-header-search-btn {
    background: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
    gap: 5px;
}
.xu5-header-search-btn::after {
    content: none !important;
    display: none !important;
}
.xu5-header-search-btn-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    display: block;
}
.xu5-topbar .xu5-header-search-btn,
.xu5-topbar .xu5-header-search-btn span {
    color: #ffc107;
}
.xu5-topbar .xu5-header-search-btn:hover,
.xu5-topbar .xu5-header-search-btn:hover span {
    color: #ffe082;
}
.xu5-topbar .xu5-header-search.is-open .xu5-header-search-btn,
.xu5-topbar .xu5-header-search.is-open .xu5-header-search-btn span {
    color: #ffc107;
    font-weight: 700;
}
.xu5-header-search-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0,0,0,.22);
    z-index: 1200;
    overflow: hidden;
}
.xu5-header-search-panel[hidden] {
    display: none;
}
.xu5-header-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 6px 2px 12px;
    border-bottom: 1px solid #f0f0f0;
}
.xu5-header-search-field-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #999;
}
.xu5-header-search-input {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #222;
    font-size: 14px;
    line-height: 20px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.xu5-header-search-input::-webkit-search-decoration,
.xu5-header-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}
.xu5-header-search-input::placeholder {
    color: #aaa;
}
.xu5-header-search-close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #999;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.xu5-header-search-close:hover {
    color: #333;
}
.xu5-header-search-drop {
    max-height: min(70vh, 420px);
    overflow: auto;
    padding: 4px 0;
}
.xu5-header-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    text-decoration: none;
    color: #222;
}
.xu5-header-search-item:hover {
    background: #f5f7fa;
}
.xu5-header-search-item img,
.xu5-header-search-item .xu5-header-search-ph {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
}
.xu5-header-search-item .xu5-header-search-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #999;
}
.xu5-header-search-item span {
    font-size: 13px;
    line-height: 1.35;
}
.xu5-header-search-item mark {
    background: #fff3bf;
    color: inherit;
    padding: 0;
}
.xu5-header-search-empty,
.xu5-header-search-hint {
    padding: 12px 14px;
    font-size: 13px;
    color: #888;
}
.xu5-topbar-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,.85);
    font-size: 22px;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
}
.xu5-topbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    padding: 6px max(16px, calc(50% - 550px));
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.xu5-topbar.sticky .xu5-topbar-desc {
    display: none;
}
.xu5-topbar.sticky .xu5-topbar-logo {
    font-size: 18px;
}
.xu5-topbar.sticky .xu5-topbar-logo-img {
    height: 24px;
}
/* 吸顶后保留完整导航，整体缩小一档 */
@media screen and (min-width: 769px) {
    .xu5-topbar.sticky {
        gap: 10px;
        padding: 4px max(16px, calc(50% - 550px));
    }
    .xu5-topbar.sticky .xu5-topbar-nav {
        gap: 6px;
    }
    .xu5-topbar.sticky .nav-btn:not(:last-child)::after,
    .xu5-topbar.sticky .xu5-topbar-nav:has(+ .xu5-header-search) .nav-btn:last-child::after {
        margin-left: 6px;
    }
    .xu5-topbar.sticky .xu5-header-search {
        margin-left: -4px;
    }
    .xu5-topbar.sticky .xu5-header-search-btn-icon {
        width: 11px;
        height: 11px;
    }
}
.xu5-topbar-placeholder {
    display: none;
}
.xu5-topbar-placeholder.active {
    display: block;
}

/* ============================================
   容器子元素
   ============================================ */
.container .item-tabs{
    flex:1;
    background:#fff;
    border-radius:6px
}
.container .item-tabs .tab-content{
    padding:0 1px
}
.container .item-tabs .tab-content .item .item-name{
    font-size:15px
}
.container .item-tabs .tab-content .item .img{
    width:100%;
    height:100%;
    margin-right:0;
    background:transparent;
    border-radius:3px
}
.container .footer{
    margin:15px auto 15px
}
.container .footer .time{
    display:block;
    font-size:13px;
    text-align:center;
    color:#b3b3b3
}
/* ============================================
   响应式设计 - 平板
   ============================================ */

@media (max-width:768px){
    .container{
        width:100%
    }
    .tab-content{
        padding:0 10px
    }
    .tab-content .item .item-name{
        font-size:14px;
        font-weight:400;
        display:-webkit-box;
        -webkit-box-orient:vertical;
        -webkit-line-clamp:1;
        overflow:hidden
    }
}

/* ============================================
   布局组件
   ============================================ */

.version{
    font-size:14px;
    color:#607D8B;
    margin-left:4px
}
.header{
    padding:10px
}
.header .logo{
    font-size:24px;
    font-weight:700
}
.item-tabs{
    margin-top:5px
}
.nav{
    cursor:pointer;
    margin:2px 0
}

/* ============================================
   底部和特效
   ============================================ */

.footer{
    text-align:center;
    padding:0px 0
}
/* .btn 旧样式已移除，各模块使用自己的按钮样式 */

/* .modal 样式已移至落地页模板，默认主题不使用 */

/* ============================================
   导航文字链接
   ============================================ */

.nav-btn{
    display:inline-flex;
    align-items:center;
    cursor:pointer;
    text-decoration:none;
    white-space:nowrap;
    flex-shrink:0
}

/* ============================================
   响应式设计 - 导航栏
   ============================================ */

@media screen and (max-width:768px){
    .xu5-topbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 8px 12px;
        gap: 0;
    }
    .xu5-topbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        order: 1;
    }
    .xu5-topbar-desc {
        display: none;
    }
    .xu5-topbar-logo {
        font-size: 18px;
    }
    .xu5-topbar-logo-img {
        height: 26px;
    }
    .xu5-topbar-toggle {
        display: block;
        order: 3;
        flex: 0 0 auto;
        margin-left: 2px;
    }
    .xu5-header-search {
        order: 2;
        margin: 0 10px 0 auto;
    }
    .xu5-header-search-btn,
    .xu5-header-search-btn span {
        font-size: 14px;
        padding: 4px 0;
    }
    .xu5-header-search-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        width: auto;
        top: 52px;
    }
    .xu5-header-search-input {
        font-size: 16px;
    }
    .xu5-topbar-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 8px 0 4px;
        flex: none;
        order: 4;
    }
    .xu5-topbar-nav.open {
        display: flex;
    }
    .xu5-topbar-nav .nav-btn {
        padding: 8px 0;
        font-size: 14px;
    }
    .xu5-topbar-nav .nav-btn::after {
        display: none;
    }
    .nav-btn, .nav-btn span {
        font-size: 14px;
    }
    .xu5-topbar.sticky {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 5px 12px;
    }
    .xu5-topbar.sticky .xu5-topbar-brand {
        display: flex;
        flex: 1;
    }
    .xu5-topbar.sticky .xu5-topbar-nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    .xu5-topbar.sticky .xu5-topbar-nav.open {
        display: flex;
    }
    .xu5-tip-banner {
        font-size: 11px;
        padding: 4px 10px;
    }
}
@media screen and (max-width:480px){
    .nav-btn, .nav-btn span {
        font-size: 12px;
    }
}

/* ==========================================================
   导航文字链接样式
   ========================================================== */

.nav-btn, .nav-btn span {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 15px;
    padding: 4px 0;
    transition: color 0.2s;
    letter-spacing: 0.5px;
}
.nav-btn:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
    pointer-events: none;
}
.nav-btn:hover, .nav-btn:hover span {
    color: #fff;
}
.nav-btn.active, .nav-btn.active span {
    color: #ffc107;
    font-weight: 700;
}
.xu5-topbar.sticky .nav-btn,
.xu5-topbar.sticky .nav-btn span {
    font-size: 13px;
    padding: 2px 0;
    letter-spacing: 0.2px;
}

.icon-container {
  position: relative;
  width: 30px;
  height: 30px;
  margin-right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* 软件名称 Flex 布局 */
.name.name-flex {
    display: inline-flex;
    align-items: center;
}

/* 版本标签样式 */
.version-tag {
    display: inline-block;
    font-size: 15px;
    color: #fff;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

/* .version-item / .add-version 后台样式见 assets/css/admin/software-meta.css */

/* 普通文章（single.php） */
.xu5-article {
    max-width: 720px;
    margin: 24px auto 56px;
    padding: 0 16px 48px;
    line-height: 1.75;
    word-break: break-word;
}
.xu5-article-title {
    font-size: 26px;
    line-height: 1.35;
    margin: 0 0 18px;
}
.xu5-article img { max-width: 100%; height: auto; }
.xu5-article table { width: 100%; }
.xu5-article a { color: inherit; }


/* .pinned-badge / .pinned-item 样式已移至 archive-tutorial.css */

/* ==========================================================================
   网站标题 - 简洁Logo
   ========================================================================== */

.sitename-metal-shine {
    display: inline-block;
    color: #fff;
    font-weight: 800 !important;
    letter-spacing: 2px;
    transition: opacity 0.2s;
    background: linear-gradient(90deg, #fff 0%, #fff 40%, rgba(255,255,255,.5) 50%, #fff 60%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: xu5-shine 8s ease-in-out infinite;
}

@keyframes xu5-shine {
    0%, 100% { background-position: 200% center; }
    50% { background-position: -200% center; }
}

.sitename-metal-shine:hover {
    opacity: 0.8;
}



@media (max-width: 768px) {
    .sitename-metal-shine {
        letter-spacing: 1.5px;
    }
}

/* ============ 站标：45游戏网 ============ */
/* 原站 logo 是图片（uploads/2026/08/logo.png，源站「极游网」U 形图标）。
   本站改用文字站标，沿用 .xu5-topbar-logo 原有的 26px/700/白色样式，
   不引入额外图片资源，也不依赖源站 CDN。 */
.xu5-topbar-logo .xu5-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 7px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5c542 0%, #e8a317 100%);
    color: #2b2110;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
    flex-shrink: 0;
    user-select: none;
}
.xu5-topbar-logo .xu5-logo-text {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    letter-spacing: .5px;
}
.xu5-topbar-logo:hover .xu5-logo-mark {
    filter: brightness(1.08);
}
