
@font-face {
    font-family: 'HYLXTJ';
    src: url('/static/fonts/汉仪菱心体简.ttf') format('truetype');
    font-weight: bold;
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('/static/images/header-bg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: transparent;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; 
    text-align: center;
    position: relative;

}

header h1 {
    margin: 0 0 12px 0;
    padding: 0;
    line-height: 1;
}

.site-title-image {
    height: 70px;
    width: auto;
    display: block;
    margin: 0 auto;
    
}


@media (max-width: 768px) {
    .site-title-image {
        height: 55px;
    }

    header {
        padding: 15px 0 8px;
        gap: 5px; 
    }

    nav a {
        font-size: 1.43em !important;
        margin: 0 10px !important;
    }
}


nav a {
    font-family: 'HYLXTJ', Arial, sans-serif;
    font-weight: bold;
    font-size: 1.48em; 
    color: #fff;
    margin: 0 12px;
    text-decoration: none;
}

@media (min-width: 769px) {
    nav a:hover {
        color: #009944;
    }
}

nav a.current-page {
    color: #009944e0 !important;
}

main {
    padding: 11px; 
    flex: 1;
}

footer {
    font-family: '黑体', Arial, sans-serif;
    text-align: center;
    padding: 10px 20px 5px; 
    background-color: #fff; 
    color: #33333380; 
    margin-top: auto;
    min-height: 20px; 
    border-top: 1px solid #ffffff00; 
    position: relative;
}

footer p {
    margin: 3px 0;
    font-family: 'Arial', '黑体', sans-serif;
    line-height: 1.2; 
    font-size: 0.9em; 
}

footer p:first-child {
    margin-bottom: 5px; 
}

footer p:last-child {
    transition: color 0.25s ease;
}
footer p:last-child:hover {
    color: #009944; 
}


footer hr {
    border: 0;
    height: 3px;
    background: transparent;
    margin: 10px auto;
    width: 100%;
    position: relative;
    overflow: visible;
}

footer hr:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(221, 221, 221, 0.8) 20%, rgba(221, 221, 221, 0.8) 80%, transparent 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) inset;
}

footer hr:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.2) 80%, transparent 100%);
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; 
    margin-bottom: 20px;
}

.software-square {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px; 
    height: 79px; 
    text-align: left;
    background-color: #fff; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.software-square img {
    width: 55px;
    height: 55px;
    margin-right: 13px;
    flex-shrink: 0;
    background-color: #f5f5f5; 
    border-radius: 10px; 
    padding: 9px; 
}

.software-square h3 {
    font-size: 1.12rem;
}


.software-info {
    flex: 1;
    min-width: 0;
}

.software-info h3 {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 1.1em;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333333;
    margin: 0 0 6px 0 !important; 
    line-height: 1.3 !important;
}

.software-info .description {
    font-family: '黑体', Arial, sans-serif;
    margin: 2px 0;
    font-size: 0.9em; 
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;

    display: -moz-box;
    -moz-box-orient: vertical;
    -moz-line-clamp: 1;
    display: box;
    line-clamp: 1;
    box-orient: vertical;
}

.software-info .details {
    font-family: '黑体', Arial, sans-serif;
    margin: 5px 0;
    font-size: 0.8em; 
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.software-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.software-rectangle {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    text-align: left;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 79px; 
    overflow: hidden;
}

@media (min-width: 769px) {
    .software-square:hover {
        transform: scale(1.026);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .software-square:hover .software-info h3 {
        color: #009944;
    }

    .software-rectangle:hover {
        transform: scale(1.026);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .software-rectangle:hover .software-info h3 {
        color: #009944;
    }
}

.software-rectangle img {
    width: 55px;
    height: 55px;
    margin-right: 13px; 
    flex-shrink: 0;
    background-color: #f5f5f5; 
    border-radius: 10px; 
    padding: 9px; 
}

.software-rectangle .software-info {
    flex: 1;
    min-width: 0;
}

.software-rectangle .software-info h3 {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    margin: 0;
    font-size: 1.1em; 
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.software-rectangle .software-info .description {
    font-family: '黑体', Arial, sans-serif;
    margin: 5px 0;
    font-size: 0.9em; 
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    display: -moz-box;
    -moz-box-orient: vertical;
    -moz-line-clamp: 1;
    display: box;
    line-clamp: 1;
    box-orient: vertical;
}

.software-rectangle .software-info .details {
    font-family: '黑体', Arial, sans-serif;
    margin: 5px 0;
    font-size: 0.8em; 
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.category-nav button {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-weight: bold;
    font-size: 1.139em; 
    background-color: transparent;
    color: #333333;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 0.1;
    letter-spacing: 0.3px;

    padding: 12px 16px;
    margin: 6px 3px;
}

@media (min-width: 769px) {
    .category-nav button:hover {
        color: #009944;
    }
}

.category-nav button.active {
    font-size: 1.2em;
    color: #009944;
}

.resources-background h2 {
    color: #009944;  
    font-size: 1.8em; 
    margin-left: 6px; 
    margin-bottom: 20px; 
    margin-top: 2px;
    font-family: 'HYLXTJ', Arial, sans-serif; 
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); 
}

@media (max-width: 768px) {
    .resources-background h2 {
        font-size: 1.19em;
        margin-bottom: 10px;
        margin-left: 0;
        margin-top: 0;
    }
}


.info-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 145px;
    height: 215px;
    padding: 0;
    background-color: #fff;
    background-image: url('/static/ad.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: hidden;
    opacity: 0;
    animation: fadeInInfoBox 0.3s ease-in-out 0.2s forwards;
}

.info-box.init-hidden {
    display: none !important;
}

.info-box-content {
    position: relative;
    height: 100%;
    width: 100%;
}

.info-box img {
    display: none;
}

.info-box-controls {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    height: 16px;
    margin-bottom: 8px;
}

.toggle-info-box {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.5) !important;
    border: none;
    font-size: 0.8em; 
    cursor: pointer;
    color: #333;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.toggle-info-box:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #ff0000;
}

.minimize-info-box {
    position: absolute;
    top: 0;
    right: 20px;
    background: rgba(255, 255, 255, 0.5) !important;
    border: none;
    font-size: 0.8em; 
    cursor: pointer;
    color: #333;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.minimize-info-box:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #007BFF;
}

.search-form {
    position: relative;
    width: 59%;
    max-width: 439px;
    margin: 5px auto 0; 
    transform: translateY(6px); 
}

.search-form input {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    padding: 0.8em;
    width: 100%;
    border-radius: 25px;
    border: 1px solid #ddd;
    padding-right: 4em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-form input:hover {
    border-color: #FFEA00;
}

.search-form input:focus {
    outline: none;
    border-color: #FFEA00; 
    box-shadow: 0 0 0 2px rgba(0, 255, 115, 0.1);
}

.search-form button {
    font-family: Arial, sans-serif;
    position: absolute;
    right: 0.3em;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5em 1em;
    background-color: #009944;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    height: calc(100% - 0.6em);
    transition: all 0.3s ease;
}


@media (min-width: 769px) {
    .search-form button:hover {
        background-color: #007BFF;
    }
}


@media (max-width: 768px) {
    .main-content-container {
        width: calc(100% - 24px);
        margin: 10px auto; 
        padding: 0;
    }

    .content-background {
        width: 100%;
        padding: 12px 12px !important;
        box-sizing: border-box;
    }

    .category-background {
        width: 100%;
        background: rgba(249,249,249,0.5);
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        box-sizing: border-box;
        overflow: hidden;
    }

    .search-form {
        margin-top: 5px; 
        transform: translateY(5px); 
    }

    .software-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        margin-bottom: 10px;
    }

    .software-grid .software-square:nth-child(-n+8) {
        height: 56px; 
        flex-direction: row;
        align-items: center;
        padding: 3px 8px; 
    }

    .software-grid .software-square:nth-child(-n+8) img {
        width: 38px; 
        height: 38px; 
        margin-right: 9px; 
        margin-left: 1px; 
        margin-bottom: 0;
        background-color: #f5f5f5; 
        border-radius: 8px; 
        padding: 5px; 
    }

    .software-grid .software-square:nth-child(-n+8) .software-info {
        flex: 1;
        min-width: 0;
    }

    .software-grid .software-square:nth-child(-n+8) .software-info h3 {
        font-size: 0.93em; 
        margin: 5px 0 5px 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .software-grid .software-square:nth-child(-n+8) .software-info .description {
        font-size: 0.5em; 
        margin: 5px 0 10px 0;
        line-height: 1;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;

        display: -moz-box;
        -moz-box-orient: vertical;
        -moz-line-clamp: 1;
        display: box;
        line-clamp: 1;
        box-orient: vertical;
    }

    .software-grid .software-square:nth-child(-n+8) .software-info .details {
        display: none;
    }

    .software-grid .software-square:nth-child(n+9) .software-info {
        margin-left: 0;
        min-width: 0;
    }

    .category-container {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    .category-nav {
        justify-content: flex-start;
        align-items: center;
    }

    .category-nav button {
        font-size: 0.93em;
        text-align: center;
        width: 100%;
        min-height: 32px;
        letter-spacing: 0.2px;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;

        padding: 1px;
        margin: 0 8px;
    }
    
    .category-nav button.active {
        font-size: 0.95em; 
        color: #009944;
    }

    
    #software-list {
        padding-left: 0;
        gap: 3px;
        margin-left: 0px;
        width: 73%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .software-list .software-rectangle:not(.category-page .software-rectangle) {
        min-height: 49px !important;
        max-height: 49px !important;
        height: auto !important;
        overflow: hidden;
    }

    .category-page .software-rectangle {
        min-height: 39px !important;
        max-height: 39px !important;
        height: auto !important;
        overflow: hidden;
    }

    .software-rectangle .software-info {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        display: -moz-box;
        -moz-box-orient: vertical;
        -moz-line-clamp: 2;
        display: box;
        line-clamp: 2;
        box-orient: vertical;
        overflow: hidden;
        max-height: 100%;
    }

    .software-list:not(.category-page .software-list) {
        gap: 5px; 
    }

    .software-rectangle .software-info h3 {
        font-size: 0.9em;
        margin: 6px 0 0 0 !important;
        transition: color 0.3s ease;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .software-rectangle .software-info .description {
        font-size: 0.5em;
        margin: 6px 0 10px 0;
        line-height: 1;
    }

    .software-rectangle .software-info .details {
        display: none;
    }

    .software-rectangle img {
        margin-bottom: 0; 
        width: 36px; 
        height: 36px; 
        margin-right: 8px; 
        background-color: #f5f5f5; 
        border-radius: 8px; 
        padding: 3px;
    }

    .info-box {
        display: none !important;
    }

    .search-container, .search-results-container {
        width: 90%;
    }

    footer p {
        font-size: 0.62em;
    }

    .announcement-disclaimer p {
        font-size: 0.6em !important;
    }
}


@media (min-width: 769px) {
    .main-content-container {
        width: 95%;
        max-width: 1250px;
        margin: 0 auto;
        position: relative;
        left: 0;
        right: 0;
    }

    header {
        padding: 30px calc(5% + 20px) 25px;
    }
    
    .category-divider {
        border-top: 1px dashed rgba(100, 100, 100, 0.3);
        margin: 20px 0;
        width: 100%;
    }
}

.info-box.minimized {
    height: 1.0cm !important;
    width: 1.0cm !important;
    background-image: none !important;
    animation: none;
    opacity: 1;
    border: 1px solid #fff !important;
}

@keyframes fadeInInfoBox {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.info-box.minimized img {
    display: none !important;
}

.info-box,
#three-windows-container {
    transition: none !important;
}

.info-box.minimized .info-box-controls {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.announcement-section {
    background-color: rgba(249, 249, 249, 0.5);
    border: 1px solid #ffea0088; 
    border-radius: 12px; 
    padding: 25px;
    margin: 0px auto;
    max-width: 855px; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.announcement-section h2 {
    color: #009944;
    font-family: '黑体', Arial, sans-serif;
    margin-top: 0;
    border-bottom: 1.9px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 20px;
    font-size: 1.8rem; 
}

@media (max-width: 768px) {
    .announcement-section h2 {
        padding-bottom: 9px;
        margin-bottom: 9px;
    }
}

.announcement-description {
    line-height: 1.5;
    font-size: 1.03em; 
    color: #333333;
    margin-bottom: 20px;
}

.announcement-description p {
    margin-bottom: 15px;
}

.announcement-description strong {
    font-weight: bold;
}

.announcement-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(221, 221, 221, 0.8) 20%, rgb(221, 221, 221) 80%, transparent 100%);
    margin: 66px 0 25px 0; 
    position: relative;
}

.announcement-divider:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.2) 80%, transparent 100%);
}

.announcement-disclaimer p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
    margin: 15px 0 0 0;
}

@media (max-width: 768px) {
    .announcement-section {
        padding: 10px;
        margin: 10px;
        margin-top: 20px;  
    }
    .announcement-header h2 {
        font-size: 1.3em;
        margin-top: 0;
    }
    .announcement-divider {
        margin: 30px 0 15px 0; 
    }
}


.back-to-top {
    position: fixed;
    bottom: 401px; 
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #ffffff; 
    color: #009944; 
    border: none;
    border-radius: 11px; 
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-image: url('/static/images/back-to-top.png'); 
    background-size: 89%; 
    background-position: center;
    background-repeat: no-repeat;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
    
}

@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 231px;
        right: 20px;
    }
}

::-webkit-scrollbar {
    width: 9px; 
    background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background-color: #bbbbbb;
}

.software-square, 
.software-rectangle,
.resource-square,
.resource-result-item,
#window-1, #window-2, #window-3 {
    transition: all 0.3s ease;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
    opacity: 1;
    transition: opacity 0.3s ease;
    flex-wrap: wrap;
}

.pagination button {
    transition: background-color 0.2s, transform 0.2s;
    will-change: transform;

    transform: none !important;
    box-shadow: none !important;

    padding: 8px 12px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: '黑体', Arial, sans-serif;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
}

@media (min-width: 769px) {
    .pagination button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 153, 68, 0.2);
        color: #009944;
        border-color: #009944;
    }
    
    .refresh-btn:hover {
        background-color: #f9f9f9;
        color: #009944;
        border-color: #009944;
    }
}

.pagination button.active {
    background-color: #009944;
    color: white;
    border-color: #009944;
}

.pagination button.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.pagination button.disabled:hover {
    color: inherit !important;
    border-color: #ddd !important;
    background-color: #f9f9f9 !important;
}


@media (max-width: 768px) {
    #admin-back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }

    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination button {
        padding: 6px 10px;
        font-size: 0.9em;
    }
}

.admin-logout-container {
    position: absolute;
    top: 31px;
    right: 18px;
    z-index: 1000;
}

#admin-logout-btn {
    display: inline-block;
    padding: 6px 19px;
    background-color: #009944;
    color: white !important;
    text-decoration: none;
    border-radius: 9px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#admin-logout-btn:hover {
    background-color: #dc3545;
    transform: translateY(-0.5px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

@media (max-width: 768px) {
    #admin-logout-btn:hover {
        background-color: #009944 !important;
        transform: none !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    }
    
    #admin-logout-btn {
       
        font-size: 0.9em;
        padding: 3px 11px;
    }

    #admin-logout-btn:active {
        transform: scale(0.96) !important;
        transition: transform 0.1s ease !important;
    }

    header nav a:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }
}

.software-detail-container {
    background-color: rgba(249, 249, 249, 0.5);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin: 10px 66px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.software-detail-header {
    display: flex;
    align-items: flex-end;
    margin-bottom: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.software-detail-icon {
    width: 101px;
    height: 101px;
    margin-right: 25px;
    background-color: #f5f5f5;
    border-radius: 15px;
    padding: 12px;
    flex-shrink: 0;
}

.software-detail-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.software-detail-title h2 {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: #009944;
    margin: 0 0 5px 0;
    font-size: 1.5em;
    line-height: 1.2;
}

.software-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.meta-item {
    background-color: #f0f0f0;
    padding: 5px 8px;
    border-radius: 11px;
    font-size: 0.5em;
    color: #505050;
    margin: 0px;
    display: inline-block;
}

.software-detail-content {
    margin-bottom: 25px;
}

.software-detail-description {
    line-height: 1.6;
    font-size: 1em;
    color: #333;
    margin-bottom: 10px;
    padding: 10px 0;
}

.download-section {
    text-align: center;
    margin: 15px 0;
    padding: 18px;
    background-color: #f5f3f2;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 153, 68, 0.15);
    border: 1px dashed #ddd;
}

.download-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #009944;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s;
    margin: 10px 0;
    min-width: 88px;
}

@media (min-width: 769px) {
    .header-download-btn .header-download-button:hover,
    .header-back-btn .header-download-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .download-btn:hover {
        background-color: #007BFF;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 153, 68, 0.3);
    }
}

.related-software-section h3 {
    font-family: 'HYLXTJ', Arial, sans-serif;
    color: #009944;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.related-software-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.related-software-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}


@media (min-width: 769px) {
    .related-software-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}

.related-software-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 8px;
}

.related-software-item h4 {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    margin: 0;
    font-size: 1em;
    color: #333;
    text-overflow: ellipsis;
}

.related-software-section .related-software-grid .related-software-item .software-name {
    margin: 0;
    font-size: 1em;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    padding: 0 5px;
    box-sizing: border-box;
}

.related-software-grid .related-software-item {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .related-software-section .related-software-grid .related-software-item .software-name {
        font-size: 0.9em;
    }
}


@media (max-width: 768px) {
    .software-detail-icon {
        display: none !important;
    }

    .software-detail-title h2 {
        font-size: 1.2em;
        margin-bottom: 8px;
    }
    
    .software-detail-description {
        font-size: 0.8em;
        margin-bottom: 1px;
        line-height: 1.6;
        padding: 0 0;
    }

    .software-detail-container {
        margin: 10px 0px;
    }
    
    .download-btn {
        padding: 7px 16px;
        font-size: 1em;
        min-width: 88px;
    }

    .software-detail-header {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 16px;
        margin-bottom: 10px;
    }
    
    .header-download-btn,
    .header-back-btn {
        flex: none;
        width: auto;
    }

    .software-detail-meta {
        gap: 3px !important;
        margin-top: 6px !important;
    }
    
    .meta-item {
        font-size: 0.3em !important;
        padding: 5px 5px !important;
        margin: 1px 0 !important;
        line-height: 0.9 !important;
        border-radius: 6px !important;
    }
}

.header-buttons-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
}

.header-download-btn .header-download-button,
.header-back-btn .header-download-button {
    margin-top: 8px;
    display: inline-block;
    padding: 9px 20px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

@media (max-width: 768px) {
    .header-download-btn .header-download-button,
    .header-back-btn .header-download-button {
        padding: 6px 12px;
        font-size: 0.8em;
        margin-top: 5px;
        min-width: 80px;
    }
    .related-software-grid {
        gap: 10px; 
    }
    .related-software-item img {
        width: 42px; 
        height: 42px;
        margin-bottom: 8px; 
    }
}

@media (max-width: 768px) {
    .resource-square:active,
    .software-result-item:active,
    .resource-result-item:active,
    .category-nav button:active,
    .nav-link:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
        opacity: 0.9;
    }

    .software-square:active,
    .software-rectangle:active,
    .related-software-item:active {
        border-color: #FFEA00 !important;
        transform: scale(0.98) !important;
        transition: all 0.1s ease !important;
    }
    .search-form button:active {
        transform: scale(0.98) translateY(-50%) !important;
        transition: all 0.1s ease !important;
 
    }

    .pagination button:active {
        transform: scale(0.98) !important;
    }

    .download-btn:active,
    .header-download-button:active {
        background-color: #007BFF !important;
        transform: scale(0.98);
    }

    .refresh-btn:active，
    .btn:active {
        transform: scale(0.98);
        transition: all 0.1s ease;
    }
}


.btn[onclick*="openIconSelector"] {
    transition: all 0.3s ease;
    background-color: #009944;
    color: white;
}

@media (min-width: 769px) {
    .btn[onclick*="openIconSelector"]:hover {
        background-color: #007BFF;
    }
}

@media (max-width: 768px) {
    .btn[onclick*="openIconSelector"]:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-software-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .software-square, .software-rectangle {
        height: 73px;
    }
}


@media (max-width: 768px) {
    a, 
    button, 
    .nav-link, 
    .category-nav button, 
    .search-form button,
    .software-square, 
    .software-rectangle,
    .resource-square,
    .software-result-item,
    .resource-result-item,
    .related-software-item,
    .download-btn,
    .header-download-button,
    .pagination button,
    .refresh-btn,
    .back-to-top,
    .toggle-info-box,
    .minimize-info-box,
    .btn,
    .header-download-btn .header-download-button,
    .header-back-btn .header-download-button {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        user-select: none !important;
    }
}