:root {
    --primary-color: #0570fd;
    --secondary-color: #f7ad0d;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --hover-color: #0456c8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar, 
body::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    display: none;
}

body {
    background-color: var(--bg-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    scrollbar-width: none;
}

body {
    -ms-overflow-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    flex: 1;
    width: 100%;
    padding-bottom: 60px;
    overflow-x: hidden;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
    padding: 0;
    background: none;
}

.software-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(80,120,200,0.08);
    padding: 18px 22px;
    min-height: 100px;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.18s, transform 0.18s;
}

.software-item::before {
    display: none;
}

.software-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.software-item img {
    width: 85px;
    height: auto;
    margin: 0 0 6px 0;
    transition: transform 0.22s cubic-bezier(.4,2,.6,1);
    object-fit: contain;
    filter: none;
}

.software-item p {
    color: #0570FD;
    font-weight: 600;
    font-size: 15px;
    margin-top: 6px;
    letter-spacing: 0.2px;
    z-index: 1;
    position: relative;
}

.software-item p::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #0570FD;
    transition: width 0.22s cubic-bezier(.4,2,.6,1);
    position: absolute;
    left: 0;
    bottom: -2px;
}

.software-item:hover p::after {
    width: 100%;
}

.software-item:hover {
    box-shadow: 0 6px 24px rgba(80,120,200,0.13);
    transform: translateY(-2px) scale(1.01);
}

.software-item:hover img {
    transform: scale(1.04);
}

.links-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.link-item {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-logo {
    width: 32px;
    height: 32px;
    color: white;
    border-radius: 0; /* 彻底改为直角方形 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.5px;
}

/* 不同类型的颜色方案 */
/* 所有类型统一颜色样式 */
.type-1, .type-2, .type-3, .type-4, .type-5, .type-6, .type-7 {
    background: linear-gradient(135deg, #2980B9, #2980B9); /* 主题蓝 */
}


.link-text {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #2c3e50;
}

.link-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.link-item:hover .link-text {
    color: white;
}

.link-item:hover .link-logo {
    transform: scale(1.1);
    background: white;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .container {
        padding: 15px 10px;
        padding-bottom: 100px;
    }

    .header h1 {
        font-size: 24px;
    }

    .software-grid {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }
}

.section-title {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

/* 切换按钮样式 */
.switch-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.switch-button {
    padding: 10px 20px;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.switch-button.active {
    background-color: #007bff;
    color: white;
}

/* 版权声明样式 */
.copyright {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.copyright p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.software-item-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.software-item-main a {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f6f8fa;
    padding: 6px;
}

.software-item-main a:hover {
    box-shadow: 0 2px 8px rgba(80,120,200,0.13);
}

.software-item-main img {
    width: 200px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.software-item-info-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 22px;
    flex: 1;
}

.software-item-info {
    font-size: 17px;
    font-weight: 700;
    color: #0570FD;
    letter-spacing: 0.2px;
    margin-bottom: 10px;
    text-align: left;
}

.software-item-info p {
    color: #0570FD;
    font-weight: 700;
    font-size: 17px;
    margin: 0;
    letter-spacing: 0.3px;
    text-align: center;
    width: 100%;
}

.software-item-link {
    text-align: left;
}

.software-item-link a {
    color: #fff;
    background: #0570FD;
    padding: 5px 18px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    display: inline-block;
    box-shadow: 0 1px 4px rgba(80,120,200,0.08);
}

.software-item-link a:hover {
    background: #0456c8;
    color: #fff;
    text-decoration: underline;
    box-shadow: 0 2px 8px rgba(80,120,200,0.13);
}

@media (max-width: 700px) {
    .software-item {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 8px;
    }
    .software-item-main {
        justify-content: center;
    }
    .software-item-main img {
        width: 60px;
        height: 60px;
    }
    .software-item-info-group {
        margin-left: 0;
        margin-top: 10px;
        align-items: center;
    }
    .software-item-info {
        text-align: center;
        font-size: 15px;
        margin-bottom: 8px;
    }
    .software-item-link {
        text-align: center;
    }
}
