/**
 * 通用侧边栏样式
 * 适用于：sidebar-common.php, sidebar-equipment.php, sidebar-map.php, sidebar-guide.php
 * 文件: assets/css/sidebar.css
 */

/* ===== 侧边栏基础盒子 ===== */
.side-box {
    background: #faf5e8;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    margin-bottom: 1rem;
}

.side-box-title {
    background: linear-gradient(90deg, #4a3810, #8b6914);
    color: #fffde0;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.side-box-body {
    padding: 0.8rem;
}

.side-box-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-box-body li {
    padding: 0.5rem 0;
    border-bottom: 1px dotted #c8b898;
    font-size: 0.82rem;
}

.side-box-body li:last-child {
    border-bottom: none;
}

.side-box-body a {
    color: #000080;
    text-decoration: none;
}

.side-box-body a:hover {
    color: #cc0000;
    text-decoration: underline;
}

.side-box-footer {
    text-align: right;
    margin-top: 0.6rem;
    padding-top: 0.4rem;
    border-top: 1px dotted #c8b898;
}

.side-box-footer a {
    font-size: 0.7rem;
    color: #000080;
    text-decoration: none;
}

.side-box-footer a:hover {
    text-decoration: underline;
}

/* ===== 开服信息卡片（通用） ===== */
.server-mini-item {
    padding: 0.5rem 0;
    border-bottom: 1px dotted #c8b898;
    font-size: 0.78rem;
}

.server-mini-item:last-child {
    border-bottom: none;
}

.server-mini-tag {
    display: inline-block;
    padding: 1px 6px;
    font-size: 0.65rem;
    font-weight: bold;
    margin-right: 4px;
}

.server-mini-tag.new {
    background: #ffe0e0;
    color: #cc0000;
    border: 1px solid #cc0000;
}

.server-mini-tag.rec {
    background: #e0f0ff;
    color: #0066cc;
    border: 1px solid #0066cc;
}

.server-mini-name {
    font-weight: bold;
    color: #000080;
}

.server-mini-info {
    color: #888;
    font-size: 0.7rem;
    margin-top: 0.15rem;
}

/* ===== 相关攻略列表（guide专用） ===== */
.related-guides-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.related-guides-list li a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.related-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.related-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-views {
    font-size: 0.7rem;
    color: #999;
    flex-shrink: 0;
}

/* ===== 推荐装备列表（equipment专用） ===== */
.recommend-equip-list li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.recommend-equip-list li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.equip-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ===== BOSS速查（map专用） ===== */
.boss-item {
    padding: 0.5rem 0;
    border-bottom: 1px dotted #c8b898;
}

.boss-item:last-child {
    border-bottom: none;
}

.boss-name {
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.boss-name a {
    color: #000080;
    text-decoration: none;
}

.boss-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.7rem;
    color: #888;
}

.boss-location,
.boss-respawn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ===== 回到顶部（通用） ===== */
.back-to-top {
    text-align: center;
    margin-top: 0.5rem;
}

.back-to-top a {
    color: #000080;
    font-size: 0.8rem;
    text-decoration: none;
}

.back-to-top a:hover {
    text-decoration: underline;
}

/* ===== 热门标签云（通用） ===== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 3px 12px;
    font-size: 0.75rem;
    border: 1px solid #b0a080;
    background: #efe8d0;
    color: #5a4a32;
    text-decoration: none;
    border-radius: 2px;
}

.tag:hover {
    background: #e0d4b8;
    color: #000080;
}

.tag-hot {
    background: #ffe0e0;
    border-color: #cc0000;
    color: #cc0000;
}

.tag-new {
    background: #e0f0ff;
    border-color: #0066cc;
    color: #0066cc;
}

.tag-active {
    background: #000080;
    border-color: #000080;
    color: #fff;
}

.tag-active:hover {
    background: #0000a0;
    color: #fff;
}
/* ===== BOSS刷新查询样式 ===== */
.boss-item {
    padding: 0.6rem 0;
    border-bottom: 1px dotted #c8b898;
}
.boss-item:last-child {
    border-bottom: none;
}
.boss-name {
    font-weight: bold;
    margin-bottom: 0.2rem;
}
.boss-name a {
    color: #000080;
    text-decoration: none;
}
.boss-name a:hover {
    color: #cc0000;
    text-decoration: underline;
}
.boss-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.7rem;
    color: #888;
}
.boss-location,
.boss-respawn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ===== 跑图指南列表样式 ===== */
.side-box-body li {
    position: relative;
}
.map-icon-mini {
    font-size: 0.85rem;
    margin-right: 4px;
}
.map-mantra-mini {
    font-size: 0.7rem;
    color: #cc0000;
    margin-top: 0.2rem;
    margin-left: 1.2rem;
    padding-left: 8px;
    border-left: 2px solid #ccaa00;
}

/* ===== 开服信息样式 ===== */
.server-mini-item {
    padding: 0.5rem 0;
    border-bottom: 1px dotted #c8b898;
    font-size: 0.78rem;
}
.server-mini-item:last-child {
    border-bottom: none;
}
.server-mini-tag {
    display: inline-block;
    padding: 1px 6px;
    font-size: 0.65rem;
    font-weight: bold;
    margin-right: 4px;
}
.server-mini-tag.new {
    background: #ffe0e0;
    color: #cc0000;
    border: 1px solid #cc0000;
}
.server-mini-tag.rec {
    background: #e0f0ff;
    color: #0066cc;
    border: 1px solid #0066cc;
}
.server-mini-name {
    font-weight: bold;
}
.server-mini-name a {
    color: #000080;
    text-decoration: none;
}
.server-mini-name a:hover {
    color: #cc0000;
    text-decoration: underline;
}
.server-mini-info {
    color: #888;
    font-size: 0.7rem;
    margin-top: 0.15rem;
}

/* 侧边栏底部链接 */
.side-box-footer {
    text-align: right;
    margin-top: 0.6rem;
    padding-top: 0.4rem;
    border-top: 1px dotted #c8b898;
}
.side-box-footer a {
    font-size: 0.7rem;
    color: #000080;
    text-decoration: none;
}
.side-box-footer a:hover {
    text-decoration: underline;
}
/* ===== 热门任务列表样式 ===== */
.hot-quest-list li,
.related-quest-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}
.hot-quest-list li a,
.related-quest-list li a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-decoration: none;
    color: #000080;
}
.hot-quest-list li a:hover,
.related-quest-list li a:hover {
    color: #cc0000;
    text-decoration: underline;
}
.hot-quest-title,
.related-quest-title {
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.hot-quest-views {
    font-size: 0.7rem;
    color: #cc0000;
    flex-shrink: 0;
}
.related-quest-date {
    font-size: 0.7rem;
    color: #999;
    flex-shrink: 0;
}