/*
Theme Name: 一刀传奇·超变单职业资讯站
Theme URI: https://yourdomain.com
Author: 一刀传奇团队
Author URI: https://yourdomain.com
Description: 单职业超变传奇资讯站，包含攻略秘籍、版本评测、资源图鉴、新服速递等功能
Version: 1.0.0
License: GPL v2 or later
Text Domain: yidao-legend
Domain Path: /languages
*/

/* 导入公共样式 */
@import url("assets/css/theme-style.css");
@import url("assets/css/mobile-adapt.css");
/* ==================== 新服速递表格样式 ==================== */
.server-table-wrapper {
    overflow-x: auto;
    margin: 0 -5px;
    padding: 0 5px;
}

.server-table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    table-layout: fixed;
}

.server-table th,
.server-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #efe4d4;
    vertical-align: middle;
}

/* 第1列：开服时间 - 固定宽度，右侧加间距 */
.server-table th:first-child,
.server-table td:first-child {
    width: 130px;
    white-space: nowrap;
    padding-right: 20px;  /* 增加右侧间距，与版本名称分开 */
}

/* 第2列：版本名称 */
.server-table th:nth-child(2),
.server-table td:nth-child(2) {
    width: 160px;
}

/* 第3列：版本类型 */
.server-table th:nth-child(3),
.server-table td:nth-child(3) {
    width: 140px;
}

/* 第4列：特色标签 - 调大宽度 */
.server-table th:nth-child(4),
.server-table td:nth-child(4) {
    width: 360px;
}

/* 第5列：操作 */
.server-table th:last-child,
.server-table td:last-child {
    width: 90px;
    white-space: nowrap;
    text-align: center;
}

/* 特色标签内部样式 - 长文本截断 */
.feature-item.intro-tag {
    display: inline-block;
    background: #fef5e7;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #b88633;
    border: 1px solid #f0dbb5;
    cursor: help;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

/* 版本类型内部样式 */
.feature-item.version-tag {
    display: inline-block;
    background: #e8f4f8;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #2c5f8a;
    border: 1px solid #b8d4e8;
    margin: 2px;
}

/* 进服按钮 */
.btn-download {
    background: #d4af37;
    border: none;
    color: #16232e;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-download:hover {
    background: #c19b3c;
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 900px) {
    .server-table-wrapper {
        margin: 0 -16px;
        padding: 0 16px;
    }
    .server-table {
        min-width: 750px;
    }
    .server-table th,
    .server-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    .server-table td:first-child {
        padding-right: 15px;
    }
    .feature-item.intro-tag {
        max-width: 220px;
    }
}
/* 专属版本标签高亮 */
.feature-item.version-exclusive {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #e6c468);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #0f1a24;
    border: 1px solid #f3dfa8;
    margin: 2px;
    font-weight: bold;
}

/* 专属版本行背景高亮（可选） */
.server-table tr.exclusive-row {
    background: linear-gradient(90deg, #fff8e7, #ffffff);
}
/* 热门装备样式 */
.hot-equip-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #efe4d4;
}

.hot-equip-item:last-child {
    border-bottom: none;
}

.hot-equip-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, #e8dccd, #f5efe6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b68b40;
    font-size: 20px;
    border: 1px solid #d4af37;
    overflow: hidden;
}

.hot-equip-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-equip-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e3b4e;
    margin-bottom: 4px;
}

.hot-equip-info h4 a {
    color: #1e3b4e;
    text-decoration: none;
}

.hot-equip-info h4 a:hover {
    color: #b88633;
}

.hot-equip-info span {
    font-size: 12px;
    color: #8a9aa8;
}
/* ================== Font Awesome 图标强制修复 ================== */
/* 确保所有图标类的基本属性正确 */
.fas,
.fa-solid,
.far,
.fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

/* 确保伪元素存在并能正常显示 */
.fas:before,
.fa-solid:before,
.far:before,
.fa-regular:before {
    content: var(--fa-content, "") !important;
    display: inline-block !important;
}

/* 为当前使用的特定图标手动指定内容（最稳妥的备用方案） */
.fa-sword:before {
    content: "\f71e" !important;
}
.fa-dragon:before {
    content: "\f6d5" !important;
}
.fa-arrow-up:before {
    content: "\f062" !important;
}
.fa-gem:before {
    content: "\f3a5" !important;
}
.fa-search:before {
    content: "\f002" !important;
}
.fa-chevron-left:before {
    content: "\f053" !important;
}
.fa-chevron-right:before {
    content: "\f054" !important;
}

/* 装备图标容器样式优化 */
.equipment-icon {
    width: 60px !important;
    height: 60px !important;
    margin: 0 auto 12px !important;
    background: linear-gradient(145deg, #e8dccd, #f5efe6);
    border-radius: 14px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4af37;
    overflow: hidden;
    flex-shrink: 0;
}

/* 确保图标在容器内正确显示 */
.equipment-icon i {
    font-size: 28px !important;
    color: #b68b40 !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
}
/* 热门搜索网格布局 */
.hot-search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hot-search-item {
    background: #f5efe6;
    border: 1px solid #e8dccd;
    border-radius: 30px;
    padding: 8px 6px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    color: #3b5b70;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hot-search-item i {
    color: #b88633;
    font-size: 11px;
}

.hot-search-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-search-item:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: #0f1a24;
    transform: translateY(-2px);
}

.hot-search-item:hover i {
    color: #0f1a24;
}

.hot-search-empty {
    text-align: center;
    color: #8a9aa8;
    padding: 15px;
}

/* 响应式：手机端一排2个 */
@media (max-width: 600px) {
    .hot-search-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .hot-search-item {
        padding: 6px 4px;
        font-size: 12px;
    }
}
/* ==================== 友情链接样式 ==================== */
.friend-links-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    text-align: left;
}

.friend-links-title {
    font-size: 14px;
    font-weight: 600;
    color: #b88633;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
}

.friend-links-title i {
    font-size: 13px;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 16px;
}

.friend-link {
    color: #7e8c9b;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    padding: 2px 0;
}

.friend-link:hover {
    color: #d4af37;
}

/* 可选：添加分隔符 */
.friend-link:not(:last-child)::after {
    content: "|";
    color: #ddd0bb;
    margin-left: 16px;
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
}

/* 移动端适配：去掉分隔符或调整间距 */
@media (max-width: 600px) {
    .friend-links-list {
        gap: 6px 12px;
    }
    .friend-link {
        font-size: 12px;
    }
    .friend-link:not(:last-child)::after {
        margin-left: 12px;
        right: -10px;
    }
}

/* 更小屏幕时去掉分隔符 */
@media (max-width: 480px) {
    .friend-link:not(:last-child)::after {
        content: none;
    }
    .friend-links-list {
        gap: 6px 10px;
    }
}