/* 速查在线工具箱 - 样站风格 (参考 uutool.cn) */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === Header - 白色简洁风格 === */
.header {
    background: #fff;
    /* border-bottom: 1px solid #e8e8e8; */
    padding: 0;
    height: 60px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: none;
}
.header .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap !important;
    gap: 0 !important;
}
.logo { margin: 0; font-size: 18px; font-weight: 600; }
.logo a { color: #333; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo a:hover { color: #1890ff; }

.search-box {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}
.search-box form {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    padding: 0 12px;
    transition: border-color 0.2s;
}
.search-box form:focus-within {
    border-color: #1890ff;
    background: #fff;
}
.search-box input {
    flex: 1;
    padding: 9px 10px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: #333;
}
.search-box input::placeholder { color: #bbb; }
.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #999;
    padding: 4px;
}
.search-box button:hover { color: #1890ff; }

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
}
.header-right a {
    color: #666;
    font-size: 14px;
    transition: color 0.2s;
}
.header-right a:hover { color: #1890ff; }

/* === 顶部横向导航 === */
.cat-nav-bar {
    background: #fff;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 60px;
    z-index: 99;
}
.nav-inner, .cat-nav-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.nav-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    background: #f0f0f0;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    border: 1px solid transparent;
    flex-shrink: 0;
}
.nav-cat i { font-size: 15px; }
.nav-cat:hover { color: #1890ff; background: #e6f7ff; border-color: #bae7ff; }
.nav-cat.active { color: #fff; background: #1890ff; border-color: #1890ff; }
.nav-cat.active i { color: #fff; }

/* 各分类图标彩色 */
.nav-cat[data-cat="all"] i     { color: #1890ff; }
.nav-cat[data-cat="text"] i    { color: #4a90e2; }
.nav-cat[data-cat="image"] i   { color: #e040fb; }
.nav-cat[data-cat="code"] i    { color: #00bcd4; }
.nav-cat[data-cat="life"] i    { color: #4caf50; }
.nav-cat[data-cat="query"] i  { color: #ff9800; }
.nav-cat[data-cat="office"] i  { color: #795548; }
.nav-cat[data-cat="webmaster"] i { color: #9c27b0; }
.nav-cat[data-cat="marketing"] i { color: #f44336; }

/* === 左侧栏 - 样站风格 === */
.left-sidebar {
    width: 186px;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    background: #fff;
    z-index: 90;
    overflow-y: auto;
    border-right: 1px solid #eaeaea;
    transition: transform 0.3s ease;
    scrollbar-width: thin;
}
.left-sidebar::-webkit-scrollbar { width: 4px; }
.left-sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

/* 分类标题 */
.sidebar-title {
    font-size: 11px;
    color: #bbb;
    padding: 10px 24px 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* 分类列表 */
.sidebar-categories { padding: 0 12px; }
.sidebar-categories li { margin-bottom: 1px; padding: 0; }
.sidebar-categories li a,
.sidebar-categories li button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    text-align: left;
}
.sidebar-categories li a:hover,
.sidebar-categories li button:hover {
    background: #f5f5f5;
    color: #333;
}
.sidebar-categories li a.active,
.sidebar-categories li button.active {
    background: #e6f7ff;
    color: #1890ff;
    font-weight: 500;
    box-shadow: none;
}
.sidebar-categories li a i,
.sidebar-categories li button i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    font-size: 14px;
    opacity: 0.7;
}
.sidebar-categories li a.active i,
.sidebar-categories li button.active i { opacity: 1; }

/* 折叠按钮 */
.sidebar-collapse {
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    width: 24px;
    height: 48px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-left: none;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 2px 0 6px rgba(0,0,0,0.03);
    z-index: 10;
}
.sidebar-collapse:hover { color: #1890ff; }

/* 展开按钮 */
.sidebar-open {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 24px;
    height: 48px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-right: none;
    border-radius: 8px 0 0 8px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
    box-shadow: -2px 0 6px rgba(0,0,0,0.03);
    z-index: 91;
}
.sidebar-open:hover { color: #1890ff; }

/* 折叠状态 */
.left-sidebar.collapsed { transform: translateX(-100%); }
.left-sidebar.collapsed .sidebar-collapse { display: none; }
.left-sidebar.collapsed .sidebar-open { display: flex; }

/* === 主内容区 === */
.main {
    flex: 1;
    margin-left: 186px;
    padding: 24px 0;
    min-height: 200px;
}
.main.expanded { margin-left: 0; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === 搜索页分类标签行 === */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}
.filter-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
}
.filter-tag:hover {
    color: #1890ff;
    border-color: #bae7ff;
    background: #e6f7ff;
}
.filter-tag.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

/* === 工具卡片 - 样站风格（方形图标左上角）=== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.tool-card {
    display: block;
    position: relative;
    padding: 18px 18px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
}
.tool-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.05);
    transform: translateY(-3px);
}

/* 方形圆角图标 */
.tool-item__icon {
    width: 42px;
    height: 42px;
    line-height: 40px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.tool-item__icon i { vertical-align: middle; }

/* badge */
.tool-item__badge {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    user-select: none;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.badge-new {
  display: inline-block;
  background: #ff4d4f;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* 标题 */
.tool-item__title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}

/* 描述 */
.tool-item__desc {
    line-height: 1.55;
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.75;
}

/* 隐藏 */
.tool-card.hidden { display: none; }

/* === 卡片配色（柔和版）=== */

/* style1: 粉红 */
.tool-card.style1 { background: linear-gradient(135deg, #fef1f3, #fff); border-color: #fce4ec; }
.tool-card.style1 .tool-item__title { color: #c62828; }
.tool-card.style1 .tool-item__badge { background: #ffcdd2; color: #c62828; }
.tool-card.style1 .tool-item__icon { color: #e57373; background: linear-gradient(135deg, #ffebee, #fce4ec); }
.tool-card.style1 .tool-item__desc { color: #b71c1c; }
.tool-card.style1:hover { border-color: #ef9a9a; }

/* style2: 蓝色 */
.tool-card.style2 { background: linear-gradient(135deg, #e3f2fd, #fff); border-color: #bbdefb; }
.tool-card.style2 .tool-item__title { color: #1565c0; }
.tool-card.style2 .tool-item__badge { background: #bbdefb; color: #1565c0; }
.tool-card.style2 .tool-item__icon { color: #42a5f5; background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.tool-card.style2 .tool-item__desc { color: #0d47a1; }
.tool-card.style2:hover { border-color: #90caf9; }

/* style3: 绿色 */
.tool-card.style3 { background: linear-gradient(135deg, #e8f5e9, #fff); border-color: #c8e6c9; }
.tool-card.style3 .tool-item__title { color: #2e7d32; }
.tool-card.style3 .tool-item__badge { background: #c8e6c9; color: #2e7d32; }
.tool-card.style3 .tool-item__icon { color: #66bb6a; background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.tool-card.style3 .tool-item__desc { color: #1b5e20; }
.tool-card.style3:hover { border-color: #a5d6a7; }

/* style4: 橙色 */
.tool-card.style4 { background: linear-gradient(135deg, #fff3e0, #fff); border-color: #ffe0b2; }
.tool-card.style4 .tool-item__title { color: #ef6c00; }
.tool-card.style4 .tool-item__badge { background: #ffe0b2; color: #ef6c00; }
.tool-card.style4 .tool-item__icon { color: #ffa726; background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.tool-card.style4 .tool-item__desc { color: #e65100; }
.tool-card.style4:hover { border-color: #ffcc80; }

/* style5: 紫色 */
.tool-card.style5 { background: linear-gradient(135deg, #f3e5f5, #fff); border-color: #e1bee7; }
.tool-card.style5 .tool-item__title { color: #6a1b9a; }
.tool-card.style5 .tool-item__badge { background: #e1bee7; color: #6a1b9a; }
.tool-card.style5 .tool-item__icon { color: #ab47bc; background: linear-gradient(135deg, #f3e5f5, #e1bee7); }
.tool-card.style5 .tool-item__desc { color: #4a148c; }
.tool-card.style5:hover { border-color: #ce93d8; }



/* style9: 靛蓝 */
.tool-card.style9 { background: linear-gradient(135deg, #e8eaf6, #fff); border-color: #c5cae9; }
.tool-card.style9 .tool-item__title { color: #283593; }
.tool-card.style9 .tool-item__badge { background: #c5cae9; color: #283593; }
.tool-card.style9 .tool-item__icon { color: #3f51b5; background: linear-gradient(135deg, #e8eaf6, #c5cae9); }
.tool-card.style9 .tool-item__desc { color: #1a237e; }
.tool-card.style9:hover { border-color: #9fa8da; }

/* style10: 紫色（AI工具） */
.tool-card.style10 { background: linear-gradient(135deg, #f3e5f5, #fff); border-color: #e1bee7; }
.tool-card.style10 .tool-item__title { color: #6a1b9a; }
.tool-card.style10 .tool-item__badge { background: #e1bee7; color: #6a1b9a; }
.tool-card.style10 .tool-item__icon { color: #7b1fa2; background: linear-gradient(135deg, #f3e5f5, #e1bee7); }
.tool-card.style10 .tool-item__desc { color: #4a148c; }
.tool-card.style10:hover { border-color: #9c27b0; }

/* style6: 粉紫 */
.tool-card.style6 { background: linear-gradient(135deg, #fce4ec, #fff); border-color: #f8bbd9; }
.tool-card.style6 .tool-item__title { color: #c2185b; }
.tool-card.style6 .tool-item__badge { background: #f8bbd9; color: #c2185b; }
.tool-card.style6 .tool-item__icon { color: #e91e63; background: linear-gradient(135deg, #fce4ec, #f8bbd9); }
.tool-card.style6 .tool-item__desc { color: #880e4f; }
.tool-card.style6:hover { border-color: #ec407a; }

/* style7: 青绿 */
.tool-card.style7 { background: linear-gradient(135deg, #e0f2f1, #fff); border-color: #b2dfdb; }
.tool-card.style7 .tool-item__title { color: #00695c; }
.tool-card.style7 .tool-item__badge { background: #b2dfdb; color: #00695c; }
.tool-card.style7 .tool-item__icon { color: #26a69a; background: linear-gradient(135deg, #e0f2f1, #b2dfdb); }
.tool-card.style7 .tool-item__desc { color: #004d40; }
.tool-card.style7:hover { border-color: #80cbc4; }

/* style8: 黄色 */
.tool-card.style8 { background: linear-gradient(135deg, #fffde7, #fff); border-color: #fff9c4; }
.tool-card.style8 .tool-item__title { color: #f9a825; }
.tool-card.style8 .tool-item__badge { background: #fff59d; color: #f57f17; }
.tool-card.style8 .tool-item__icon { color: #fdd835; background: linear-gradient(135deg, #fffde7, #fff9c4); }
.tool-card.style8 .tool-item__desc { color: #f57f17; }
.tool-card.style8:hover { border-color: #fff176; }

/* === 工具详情页操作栏 === */
.tool-meta {
    background: #fff;
    padding: 12px 20px;
    border: 1px solid #eaeaea;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tool-meta h1 {
    font-size: 17px;
    color: #333;
    margin: 0;
    font-weight: 600;
}
.tool-meta ul {
    text-align: right;
    flex-grow: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}
.tool-meta li {
    display: inline-block;
    margin-left: 16px;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    color: #888;
    transition: color 0.2s;
}
.tool-meta li:hover { color: #1890ff; }
.tool-meta li i { margin-right: 4px; font-size: 15px; vertical-align: middle; }
.tool-meta li span { vertical-align: middle; }

/* 打赏心形 */
.tool-meta .js-reward {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7875, #ff4d4f);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    margin-right: 10px;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(255,77,79,0.25);
}
.tool-meta .js-reward:hover { transform: scale(1.15); box-shadow: 0 4px 12px rgba(255,77,79,0.35); }
.tool-meta .js-reward i { animation: heartbeat 1.5s ease infinite; }
@keyframes heartbeat {
    0%,100%{transform:scale(1)} 15%{transform:scale(1.25)} 30%{transform:scale(1)} 45%{transform:scale(1.15)} 60%{transform:scale(1)}
}

@media (max-width: 768px) {
    .tool-meta { display: block; text-align: center; }
    .tool-meta ul { text-align: center; margin-top: 10px; }
    .tool-meta ul li span { display: none; }
    .tool-meta ul li { margin-left: 12px; font-size: 18px; }
}

/* === 弹窗 === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.2s ease;
}
@keyframes modalFadeIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.modal-close { cursor: pointer; font-size: 18px; color: #999; transition: color 0.2s; }
.modal-close:hover { color: #333; }
.modal-body { padding: 20px; }

/* Toast */
.toast {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #333;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === 工具介绍 === */
.tool-intro {
    border: 1px solid #eaeaea;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    margin-top: 24px;
    margin-bottom: 8px;
}
.tool-intro h2 {
    font-size: 18px;
    border-left: 3px solid #1890ff;
    padding-left: 12px;
    color: #333;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}
.tool-intro h2:first-child { margin-top: 0; }
.tool-intro h3 { font-size: 15px; color: #555; margin-top: 14px; margin-bottom: 8px; font-weight: 600; }
.tool-intro p { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 8px; }

/* === Header内搜索框 === */
.header-search {
    margin-left: auto;
    max-width: 400px;
}
.header-search form {
    display: flex;
    gap: 0;
}
.header-search input {
    flex: 1;
    padding: 7px 14px;
    border: 2px solid #e8e8e8;
    border-right: none;
    border-radius: 20px 0 0 20px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}
.header-search input:focus {
    border-color: #1890ff;
}
.header-search button {
    padding: 7px 16px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}
.header-search button:hover {
    background: #40a9ff;
}

/* === 首页搜索区（旧，main内部） === */
.home-search {
    padding: 20px 0;
}
.home-search form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.home-search input {
    flex: 1;
    padding: 13px 18px;
    font-size: 15px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    outline: none;
    background: #f9f9f9;
    transition: border-color 0.2s, background 0.2s;
    color: #333;
}
.home-search input::placeholder { color: #bbb; }
.home-search input:focus { border-color: #1890ff; background: #fff; }
.home-search button {
    padding: 13px 28px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}
.home-search button:hover { background: #40a9ff; }

/* === 导航栏搜索框 === */
.cat-nav-search {
    width: 100%;
    padding: 10px 0 4px;
    /* border-top: 1px solid #f0f0f0; */
    margin-top: 8px;
}
.cat-nav-search form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.cat-nav-search input {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    outline: none;
    background: #f9f9f9;
    transition: border-color 0.2s, background 0.2s;
    color: #333;
    min-width: 0;
}
.cat-nav-search input::placeholder { color: #bbb; }
.cat-nav-search input:focus { border-color: #1890ff; background: #fff; }
.cat-nav-search button {
    padding: 10px 20px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}
.cat-nav-search button:hover { background: #40a9ff; }

/* === 广告位 === */
.ad-slot {
    margin: 0 0 20px 0;
    padding: 0;
    text-align: center;
    min-height: 90px;
    background: #fff;
    border-radius: 8px;
    border: 1px dashed #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.ad-slot-label {
    color: #ccc;
    font-size: 12px;
    user-select: none;
}
.ad-slot img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.ad-slot a {
    display: block;
    width: 100%;
    height: 100%;
}
@media (max-width: 768px) {
    .ad-slot { min-height: 60px; margin: 0 16px 16px; }
}


@media (max-width: 768px) {
    .home-search { padding: 20px 16px; }
    .home-search input { padding: 10px 14px; font-size: 14px; }
    .home-search button { padding: 10px 18px; font-size: 14px; }
}

/* === 首页分区 === */
.section-block {
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
}
#hotSection, #allSection {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.section-title { font-size: 18px; font-weight: 600; color: #333; display: flex; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 16px; }
.section-more { font-size: 13px; color: #999; cursor: pointer; transition: color 0.2s; }
.section-more:hover { color: #1890ff; }

/* 最新工具面板 */
.panel-box {
    border: 1px solid #eaeaea;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    background: #fff;
}
.panel-box h2 { font-size: 17px; color: #555; margin-bottom: 14px; font-weight: 600; }
.latest-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
@media (max-width: 768px) {
    .latest-tools-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}


/* === 首页特色模块（为什么选择 / 优势）=== */
.feature-section {
    margin-bottom: 28px;
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.feature-section .feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.feature-section .feature-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #1890ff;
    border-radius: 2px;
    margin-right: 10px;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border-radius: 8px;
    background: #fafbfc;
    border: 1px solid #f0f0f0;
    transition: all 0.25s ease;
}
.feature-card:hover {
    background: #fff;
    border-color: #d6e4ff;
    box-shadow: 0 4px 12px rgba(24,144,255,0.08);
    transform: translateY(-2px);
}
.feature-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
}
.feature-icon.bg-blue { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.feature-icon.bg-green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.feature-icon.bg-orange { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.feature-icon.bg-cyan { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.feature-icon.bg-purple { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.feature-icon.bg-red { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); }
.feature-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.feature-info p {
    font-size: 13px;
    color: #888;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .feature-section { padding: 16px; border-radius: 8px; margin-bottom: 16px; }
    .feature-grid { grid-template-columns: 1fr; gap: 12px; }
    .feature-card { padding: 14px; gap: 12px; }
    .feature-icon { width: 44px; height: 44px; font-size: 20px; border-radius: 10px; }
    .feature-info h3 { font-size: 14px; }
    .feature-info p { font-size: 12px; }
}

/* === Footer === */
.footer {
    margin-left: 186px;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 28px 0 18px;
    font-size: 14px;
    color: #888;
}
.footer.expanded { margin-left: 0; }
.footer-flat { padding: 12px 0 10px; }
.footer .footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer .footer-disclaimer { color: #999; font-size: 13px; text-align: center; margin-bottom: 18px; padding: 0 20px; line-height: 1.6; }
.disclaimer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  border-radius: 8px;
  color: #d46b08;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.disclaimer-box i { font-size: 16px; color: #fa8c16; flex-shrink: 0; }
.disclaimer-box span { flex: 1; }
.footer .footer-nav { margin-bottom: 12px; display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .footer-nav a { color: #999; text-decoration: none; font-size: 14px; transition: color 0.2s; white-space: nowrap; }
.footer .footer-nav a:hover { color: #1890ff; }
.footer .friend-link { color: #aaa; font-size: 14px; margin-bottom: 12px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; }
.footer .friend-link a { color: #999; text-decoration: none; font-size: 14px; transition: color 0.2s; white-space: nowrap; }
.footer .friend-link a:hover { color: #1890ff; }
.footer .copyright-line { color: #bbb; font-size: 13px; margin: 0; padding-top: 14px; border-top: 1px solid #f5f5f5; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px; }
.footer .copyright-line a { color: #bbb; text-decoration: none; transition: color 0.2s; }
.footer .copyright-line a:hover { color: #1890ff; }
.footer .icp-link { margin-left: 10px; }
.footer .gab-link { margin-left: 6px; }

/* === 底部关于/FAQ区域（UUTOOL风格）=== */
.footer-about { padding: 24px 0 16px; text-align: left; }
.footer-about .footer-title { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 14px; }
.footer-about p { font-size: 13px; color: #888; line-height: 1.8; margin-bottom: 8px; }
.footer-about p strong { color: #555; }

.footer-faq { padding: 16px 0 20px; border-top: 1px solid #f0f0f0; }
.footer-faq .footer-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 12px; }
.faq-item { margin-bottom: 10px; }
.faq-item strong { display: block; font-size: 13px; color: #444; margin-bottom: 4px; }
.faq-item p { font-size: 12px; color: #999; line-height: 1.7; margin: 0; }

/* === 移动端响应式 === */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 12px;
    z-index: 101;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #555;
}
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.35);
    z-index: 89;
}
.sidebar-overlay.show { display: block; }

@media (max-width: 768px) {
    .left-sidebar {
        transform: translateX(-100%);
        top: 0;
        width: 220px;
        z-index: 100;
    }
    .left-sidebar.open { transform: translateX(0); }
    .sidebar-toggle { display: flex; }
    .main { margin-left: 0; padding: 16px 0; }
    .footer { margin-left: 0; }
    .header .container { padding-left: 52px; }
    .search-box { margin: 0 12px; max-width: none; }
    .header-right { display: none; }
    .tools-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    /* mobile header & nav optimization */
    .header { height: auto; min-height: 50px; padding: 8px 0; }
    .header .container { padding-left: 52px; padding-right: 12px; }
    .logo { font-size: 15px; white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; }
    .logo a { display: flex; align-items: center; height: 36px; }
    .logo a img { height: 28px !important; width: 28px !important; }
    .search-box { margin: 0 4px 0 8px !important; max-width: calc(100vw - 140px) !important; flex: 0 1 auto !important; min-width: 0; }
    .search-box input { font-size: 13px; padding: 7px 8px; width: 100%; }
    .search-box button { font-size: 14px; padding: 2px 6px; flex-shrink: 0; }
    .cat-nav-bar { padding: 6px 8px; position: relative; top: auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .cat-nav-bar .container { padding: 0 8px; overflow-x: auto; }
    .cat-nav-bar a.nav-cat { font-size: 13px; padding: 6px 10px; white-space: nowrap; flex-shrink: 0; }
    .cat-nav-bar a.nav-cat i { display: none; }
    .home-search { padding: 0; margin: 0 4px 0 8px !important; max-width: calc(100vw - 140px) !important; flex: 0 1 auto !important; min-width: 0; }
    .home-search form { display: flex; align-items: center; background: #f5f5f5; border-radius: 8px; border: 1px solid #e8e8e8; padding: 0 8px; }
    .home-search input { font-size: 13px; padding: 7px 8px; width: 100%; border: none; background: transparent; outline: none; }
    .home-search button { font-size: 14px; padding: 2px 6px; flex-shrink: 0; background: none; border: none; cursor: pointer; color: #999; }
    .section-block { padding: 16px; border-radius: 6px; margin-bottom: 16px; }
    #hotSection, #allSection { padding: 16px; border-radius: 8px; }
    .section-title { font-size: 16px; }
    .tool-card { padding: 12px 8px; }
    .tool-item__title { font-size: 13px; }
    .tool-item__desc { display: none; }
    .page-content { padding: 24px 16px 40px; }
    .page-content h2 { font-size: 18px; }
}

#relatedTools{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:16px}
#relatedTools a:hover{border-color:#1890ff !important}
@media(max-width:768px){#relatedTools{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){#relatedTools{grid-template-columns:1fr}}

/* === 静态页面内容排版 === */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px 60px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}
.page-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1890ff;
}
.page-content .page-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 28px;
}
.page-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-top: 28px;
    margin-bottom: 10px;
}
.page-content p {
    font-size: 14px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 14px;
}
.page-content ul, .page-content ol {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 14px;
}
.page-content li {
    font-size: 14px;
    line-height: 1.85;
    color: #555;
    margin-bottom: 4px;
}
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
}
.page-content th, .page-content td {
    padding: 10px 14px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 13px;
}
.page-content th {
    background: #f5f5f5;
    font-weight: 600;
}
.page-content a {
    color: #1890ff;
    text-decoration: none;
}
.page-content a:hover {
    text-decoration: underline;
}
.page-content strong {
    color: #333;
}




/* 返回顶部 - 仿 uutool.cn 侧边栏风格 */
.sidebar {
  z-index: 999;
  position: fixed;
  right: 14px;
  bottom: 180px;
}
@media (max-width: 768px) {
  .sidebar {
    right: 14px;
    bottom: 14px;
}
@media (max-width: 480px) {
    .sidebar ul li { width: 38px; height: 38px; line-height: 38px; }
}
}
.sidebar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.sidebar ul li {
  width: 42px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  border-radius: 12px;
  position: relative;
  margin-bottom: 8px;
  border: 1px solid #dbe6f6;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.sidebar ul li i {
  font-size: 18px;
  color: #64748b;
  transition: color 0.2s ease;
}
.sidebar ul li:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  background: #eff6ff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}
.sidebar ul li:hover i {
  color: #2563eb;
}

/* === 友情链接页面 - 仿 phototool.cn 风格 === */
.friend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    margin: 20px 0 32px;
}
.friend-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}
.friend-card:hover {
    border-color: #1890ff;
    box-shadow: 0 4px 16px rgba(24,144,255,0.10);
    transform: translateY(-2px);
    color: inherit;
}
.friend-card .friend-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f2f5;
    padding: 2px;
}
.friend-card .friend-info {
    flex: 1;
    min-width: 0;
}
.friend-card .friend-name {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}
.friend-card .friend-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.friend-empty {
    text-align: center;
    padding: 48px 20px;
    color: #bbb;
    font-size: 15px;
}
.friend-empty i {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
    color: #ddd;
}
.friend-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
@media (max-width: 768px) {
    .friend-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .friend-card {
        padding: 14px;
        gap: 12px;
    }
    .friend-card .friend-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }
}

/* ===== 栏目页头部（sitemap面板风格） ===== */
.scat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.scat-header-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  border-radius: 0 4px 4px 0;
  background: #1890ff;
}
.scat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1890ff, #40a9ff);
}
.scat-name {
  font-size: 17px;
  font-weight: 700;
  color: #222;
}
.scat-count {
  font-size: 12px;
  color: #fff;
  background: #1890ff;
  border-radius: 20px;
  padding: 3px 11px;
  font-weight: 600;
  white-space: nowrap;
}
.scat-desc {
  margin-left: auto;
  font-size: 13px;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

@media (max-width: 768px) {
  .scat-header { padding: 14px 16px; gap: 10px; }
  .scat-icon { width: 34px; height: 34px; font-size: 16px; }
  .scat-name { font-size: 15px; }
  .scat-desc { display: none; }
}

/* 节日大全 - 标签样式 */
.jieri-tag { display: inline-block; padding: 5px 14px; border-radius: 16px; font-size: 13px; margin: 4px 6px 4px 0; }
.jieri-tag.t0 { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.jieri-tag.t1 { background: #fff1f0; color: #f5222d; border: 1px solid #ffa39e; }
.jieri-tag.t2 { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }
.jieri-tag .jd { font-size: 11px; opacity: 0.7; margin-left: 6px; }
.month-section { margin-bottom: 20px; }
.month-title { font-size: 15px; font-weight: 600; color: #333; margin: 16px 0 8px; padding-bottom: 6px; border-bottom: 2px solid #1890ff; }
.jieri-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.no-result { text-align: center; color: #999; padding: 30px; font-size: 14px; }
.stat-item.s0 { border-left: 3px solid #52c41a; }
.stat-item.s1 { border-left: 3px solid #f5222d; }
.stat-item.s2 { border-left: 3px solid #1890ff; }


/* 移动端隐藏 */
@media (max-width:768px){
.mobile-hide{display:none!important}
}