/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f8f9fa;
    min-height: 100vh;
    padding-bottom: 40px;
    color: #333;
    background-image: radial-gradient(#e3f2fd 1px, transparent 1px);
    background-size: 20px 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
/*header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
    position: relative;
    border-bottom: 1px solid #e0e6ed;
}
*/


h1 {
    font-size: 42px;
    color: #2c3e50;
    margin-bottom: 15px;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #3498db, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 18px;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 标签页样式 */
.tabs {
    display: flex;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    margin: 0 auto 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}

.tab {
    padding: 12px 30px;
    margin: 0 5px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #34495e;
    position: relative;
    overflow: hidden;
}

.tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(52,152,219,0.1), rgba(44,62,80,0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.tab:hover {
    background: #f1f4f8;
}

.tab:hover::before {
    opacity: 1;
}

.tab.active {
    background: #3498db;
    color: #fff;
}

.tab-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.tab-content {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    background-image: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8));
}

.search-box {
    flex: 1;
    position: relative;
    margin-bottom: 30px;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.search-box input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
}

.content-layout {
    display: flex;
    gap: 25px;
}

.secondary-menu {
    width: 250px;
    background: #fff;
    border-radius: 8px;
    padding: 20px 0;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    position: sticky;
    top: 20px;
    transition: all 0.3s;
}

.secondary-menu:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.secondary-menu h3 {
    padding: 0 20px 15px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
}

.secondary-menu h3::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 18px;
    background: #3498db;
    border-radius: 3px;
    margin-right: 10px;
}

.menu-item {
    padding: 12px 25px;
    color: #34495e;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-size: 15px;
    display: flex;
    align-items: center;
    position: relative;
    font-weight: bold;
}

.menu-item.active {
    font-weight: bold;
}

.menu-item .item-count {
    margin-left: auto;
    background: #e3f2fd;
    color: #2980b9;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
}

.menu-item:hover {
    background: #f1f4f8;
    border-left: 3px solid #3498db;
}

.menu-item.active {
    background: #e3f2fd;
    color: #2980b9;
    border-left: 3px solid #3498db;
    font-weight: 600;
}

.menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #7f8c8d;
}

.menu-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(236, 240, 241, 0.8);
}

.content-detail {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: all 0.3s;
}

.content-detail:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.content-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.breadcrumbs {
    font-size: 14px;
    color: #7f8c8d;
    margin-left: 10px;
}

.breadcrumbs span {
    color: #3498db;
}

.content-title {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
}

.detail-list {
    list-style: none;
}

.detail-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transform-origin: top;
}

.detail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
    border-color: #d4e6f1;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.item-header:hover {
    background: #f8fafc;
}

.item-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    color: #3498db;
    transition: all 0.3s;
}

.item-header:hover .item-icon {
    transform: scale(1.1);
    background: #3498db;
    color: white;
}

.expand-btn {
    background: none;
    border: none;
    color: #95a5a6;
    font-size: 18px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.expand-btn:hover {
    background: #f1f4f8;
    color: #3498db;
}

.item-details {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    color: #7f8c8d;
    border-top: 1px solid #f1f4f8;
    font-size: 14px;
}

.item-details.active {
    padding: 20px;
    max-height: 1000px;
}

/* 版本按钮列表样式 */
.version-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
}

.version-btn {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #e3f2fd;
    border: none;
    border-radius: 8px;
    color: #3498db;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    font-size: 14px;
    text-decoration: none;
}

.version-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(52, 152, 219, 0.3);
}

.version-btn i {
    margin-right: 8px;
    transition: all 0.3s;
}

.version-btn:hover i {
    transform: rotate(-10deg);
}

.version-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    opacity: 0;
    transition: opacity 0.3s;
}

.version-btn:hover::after {
    opacity: 1;
}

.version-popular {
    position: absolute;
    top: -7px;
    right: -7px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 12px;
    transform: rotate(10deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.version-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 100;
}

.version-btn:hover .version-tooltip {
    opacity: 1;
}

.version-tooltip::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: rgba(0,0,0,0.8) transparent transparent transparent;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #95a5a6;
    font-size: 14px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.empty-results {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
}

.empty-results i {
    font-size: 60px;
    color: #e0e7ff;
    margin-bottom: 20px;
}

.statistics {
    display: flex;
    margin-bottom: 15px;
    justify-content: center;
    gap: 20px;
}

.stat-item {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    min-width: 120px;
    text-align: center;
}

.stat-value {
    font-weight: bold;
    font-size: 20px;
    color: #3498db;
}

.stat-label {
    font-size: 12px;
    color: #7f8c8d;
}

@media (max-width: 992px) {
    .content-layout {
        flex-direction: column;
    }
    .secondary-menu {
        width: 100%;
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .tabs {
        flex-wrap: wrap;
    }
    .tab {
        flex: 1;
        min-width: 100px;
        margin-bottom: 8px;
        text-align: center;
        padding: 10px 15px;
        font-size: 14px;
    }
    h1 {
        font-size: 32px;
    }
    .content-title {
        font-size: 20px;
    }
}
.local-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.item-icon img.local-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 确保图标容器正确显示 */
.item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

@font-face {
  font-family: 'iconfont';  /* Project id 123456 */
  src: url('../fonts/iconfont.woff2?t=123456') format('woff2'),
       url('../fonts/iconfont.woff?t=123456') format('woff'),
       url('../fonts/iconfont.ttf?t=123456') format('truetype');
}

/* iconfont基础样式 */
.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 调整导航中心中的图标大小 */
.menu-item .iconfont,
.item-icon .iconfont {
    font-size: 18px;
}

/* 为iconfont图标添加悬停效果 */
.menu-item:hover .iconfont,
.item-header:hover .item-icon .iconfont {
    transform: scale(1.1);
    transition: transform 0.3s;
}