/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
}

.logo i {
    font-size: 24px;
    color: #337ab7;
    margin-right: 8px;
}

.logo span {
    color: #333;
}

.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav li {
    margin: 0;
}

.nav a {
    text-decoration: none;
    color: #666;
    padding: 8px 16px;
    border-radius: 4px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.nav a i {
    font-size: 14px;
}

.nav a:hover {
    color: #337ab7;
}

/* QQ按钮样式 - 与返回首页保持一致 */
.qq-btn {
    background: transparent;
    color: #666 !important;
    border: none;
}

.qq-btn:hover {
    background: transparent;
    color: #337ab7 !important;
    transform: none;
    box-shadow: none;
}

/* QQ群下拉菜单 */
.qq-dropdown {
    position: relative;
}

.dropdown-arrow {
    margin-left: 8px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.qq-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.qq-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
}

.qq-dropdown.active .qq-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.qq-group-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

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

.qq-group-item:hover {
    background-color: #f8f9fa;
}

.qq-group-item i {
    font-size: 20px;
    color: #12b7f5;
    margin-right: 12px;
    flex-shrink: 0;
}

.group-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.group-name {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.group-number {
    font-size: 12px;
    color: #666;
}

/* 主要内容区域 */
.main {
    padding: 20px 0;
    flex: 1;
}

/* 工具卡片 */
.tool-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 20px;
}

.tool-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.tool-icon {
    margin-right: 15px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon i {
    font-size: 64px;
    color: #5cb85c;
    display: block;
}

.tool-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.tool-info {
    flex: 1;
}

.tool-info h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.version-intro {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 4px;
    min-height: 44px;
}

.version-intro i {
    font-size: 16px;
    color: #337ab7;
    flex-shrink: 0;
}

.intro-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
    min-width: 80px;
}

.intro-content {
    flex: 1;
    overflow: hidden;
    height: 20px;
    position: relative;
}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    font-size: 14px;
    color: #666;
    line-height: 20px;
    animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.intro-content:hover .scrolling-text {
    animation-play-state: paused;
}



.tool-description h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: normal;
}

.tool-description p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.update-log-section {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.update-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.update-log-header:hover {
    color: #337ab7;
}

.update-log-header:hover h4 {
    color: #337ab7;
}

.update-log-header h4 {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: normal;
    transition: color 0.2s ease;
}

.update-log-header i {
    font-size: 12px;
    color: #999;
    transition: all 0.3s ease;
}

.update-log-header:hover i {
    color: #337ab7;
}

.update-log-header.expanded i {
    transform: rotate(180deg);
}

.update-log {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: transparent;
    margin-top: 10px;
    opacity: 0;
}

.update-log.show {
    max-height: 300px;
    padding: 10px 0;
    opacity: 1;
}

.log-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.log-item:last-child {
    margin-bottom: 0;
}

.log-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 44px;
    height: 24px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    line-height: 1;
}

.log-tag.new {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border: none;
}

.log-tag.update {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: #fff;
    border: none;
}

.log-tag.fix {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    border: none;
}

.log-content {
    color: #666;
    font-size: 12px;
    flex: 1;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

/* 下载区域 */
.download-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.download-header {
    background: #f5f5f5;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
}

.mini-logo {
    font-size: 16px;
    color: #337ab7;
    margin-right: 10px;
}

.download-table-header {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #333;
    font-size: 13px;
    flex: 1;
}

.download-table-header span:nth-child(1) {
    flex: 2;
}

.download-table-header span:nth-child(2) {
    flex: 1.5;
}

.download-table-header span:nth-child(3) {
    flex: 2;
}

.download-table-header span:nth-child(4) {
    flex: 1;
}

.download-table-header span:nth-child(5) {
    flex: 3;
}

.download-list {
    padding: 0;
}

.download-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.download-item:hover {
    background-color: #f9f9f9;
}

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

.item-icon {
    width: 20px;
    margin-right: 10px;
}

.item-icon i {
    font-size: 16px;
    color: #5cb85c;
}

.item-name {
    flex: 2;
    color: #333;
    font-size: 13px;
}

.item-version {
    flex: 1.5;
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

.version-tag {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.3);
}

.item-date {
    flex: 2;
    color: #666;
    font-size: 12px;
}

.item-size {
    flex: 1;
    color: #666;
    font-size: 12px;
}

.item-downloads {
    flex: 3;
    display: flex;
    gap: 6px;
}

.item-downloads a {
    color: #fff;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    transition: all 0.3s ease;
}

/* 百度云 - 蓝色 */
.item-downloads a:nth-child(1) {
    background: #337ab7;
}

.item-downloads a:nth-child(1):hover {
    background: #286090;
}

/* 蓝奏云 - 绿色 */
.item-downloads a:nth-child(2) {
    background: #28a745;
}

.item-downloads a:nth-child(2):hover {
    background: #218838;
}

/* 本地下载 - 橙色 */
.item-downloads a:nth-child(3) {
    background: #fd7e14;
}

.item-downloads a:nth-child(3):hover {
    background: #e8650e;
}

/* QQ群下载 - 蓝色 */
.item-downloads a:nth-child(4) {
    background: #007bff;
}

.item-downloads a:nth-child(4):hover {
    background: #0056b3;
}

.item-downloads a i {
    margin-right: 4px;
    font-size: 10px;
}



/* 页脚 */
.footer {
    background: #f5f5f5;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    padding: 15px 0;
    font-size: 12px;
    color: #666;
    margin-top: auto;
}

.footer a {
    color: #666;
    text-decoration: none;
}

.footer a:hover {
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .tool-header {
        flex-direction: column;
        text-align: center;
    }

    .tool-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }


    

    
    .download-table-header {
        display: none;
    }
    
    .download-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .item-name {
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    .item-date,
    .item-size {
        margin-bottom: 5px;
    }
    
    .item-downloads {
        margin-top: 10px;
        flex-wrap: wrap;
    }
    

}
