/**
Theme Name: 在线工具
Text Domain: 8080
Domain Path: /languages
*/
:root {
    /* 模拟 Win11 云母质感配色 */
    --win-bg: rgba(255, 255, 255, 0.7);
    --win-border: rgba(255, 255, 255, 0.4);
    --accent: #0078d4;
    --text-dark: #1b1b1b;
    --max-width: 1200px;
    /* 锁定 1200px 大气布局 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI Variable Display", "Segoe UI", "Microsoft YaHei", sans-serif;
}

body {
    /* Win11 经典的抽象渐变背景 */
    background: linear-gradient(145deg, #c4d3df 0%, #dbe4eb 50%, #e2ebf0 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
}

/* 顶部搜索：模仿 Win11 任务栏搜索风格 */
.search-section {
    width: 100%;
    max-width: 600px;
    margin-bottom: 40px;
    position: relative;
}

.search-section input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--win-bg);
    backdrop-filter: blur(25px);
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid transparent;
    /* 未激活时的底部边框 */
    transition: all 0.2s;
}

.search-section input:focus {
    outline: none;
    background: #fff;
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.7;
    z-index: 1;
}

/* 主面板：Win11 开始菜单的核心 */
.win-panel {
    width: 100%;
    max-width: var(--max-width);
    background: var(--win-bg);
    backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid var(--win-border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

/* --- 新增：分页组件样式 --- */
.posts-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-previous,
.nav-next {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #1b1b1b;
}

.nav-previous:hover,
.nav-next:hover {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-links a {
    text-decoration: none;
    color: unset;
}

.nav-links a:visited {
    color: #1b1b1b;
}

/* 分类标签栏 */
.category-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.cat-tag {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
}

.cat-tag:hover,
.cat-tag.active {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--accent);
}

/* 标题样式 */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px;
}

.panel-header h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

/* 磁贴网格布局：PC端1200px下显得非常宽敞 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* PC端每行6个 */
    gap: 15px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
    border: 1px solid transparent;
}

.app-item:hover {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.03);
}

.app-icon {
    width: 52px;
    /* 适当加大图标 */
    height: 52px;
    margin-bottom: 12px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.app-name {
    font-size: 12px;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.4;
    max-width: 120px;
    /* 保持文字整洁 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部语录/说明 */
.panel-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .app-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .win-panel {
        padding: 25px 15px;
    }

    .search-section {
        padding: 0px;
    }
}

footer {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: #666;
    line-height: 2;
}

.pll-switcher-select {
    border: none;
    background: transparent;
    font-size: 12px;
    cursor: pointer;
}