/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #0891b2;
    --accent-color: #f59e0b;
    --bg-color: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
    --card-bg: rgba(255, 255, 255, 0.98);
    --card-bg-hover: rgba(255, 255, 255, 1);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: rgba(148, 163, 184, 0.15);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 36px;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 20px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
}

.header > .nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    background: var(--bg-white);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-title);
    line-height: 1.2;
    letter-spacing: 0;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.3;
}

/* 导航 */
.nav {
    display: flex;
    gap: 4px;
    background: var(--bg-white);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-body);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link.active {
    color: white;
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(22, 93, 255, 0.3);
}

/* 快捷链接 */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.quick-link-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

.quick-link-icon {
    font-size: 22px;
}

/* 搜索区域 */
.search-section {
    margin-bottom: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 6px 6px 6px 20px;
    max-width: 550px;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 16px;
    padding: 12px 0;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), #1e40af);
    transform: scale(1.08);
    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.4);
}

/* 主要内容区域 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 下载区块 */
.download-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transition: box-shadow 0.3s ease;
}

.download-section:hover {
    box-shadow: var(--shadow-md);
}

.download-section:nth-child(1) { animation-delay: 0.05s; }
.download-section:nth-child(2) { animation-delay: 0.1s; }
.download-section:nth-child(3) { animation-delay: 0.15s; }
.download-section:nth-child(4) { animation-delay: 0.2s; }
.download-section:nth-child(5) { animation-delay: 0.25s; }
.download-section:nth-child(6) { animation-delay: 0.3s; }
.download-section:nth-child(7) { animation-delay: 0.35s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-section.featured {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(8, 145, 178, 0.04) 100%);
    border-radius: 20px;
    padding: 32px;
    border: 2px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: -0.3px;
}

/* 子版块标题 */
.subsection-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 18px 0;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    border-left: 5px solid var(--primary-color);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.subsection-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subsection-title:hover {
    border-color: #cbd5e1;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.subsection-title:hover::before {
    opacity: 1;
}

/* 子版块内容区域 */
.subsection-content {
    margin-bottom: 8px;
}

.subsection-content .download-grid {
    animation: fadeInSub 0.4s ease;
}

@keyframes fadeInSub {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 子版块之间的分隔线 */
.subsection-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
    margin: 24px 0;
}

.download-section.featured .section-title {
    font-size: 22px;
    color: var(--primary-color);
    border-bottom-color: rgba(37, 99, 235, 0.2);
}

.title-icon {
    font-size: 22px;
}

/* 下载网格 - 卡片式布局（保留兼容） */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

/* 下载列表 - 分离式布局 */
.download-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 14px;
}

/* 下载项目 */
.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.download-item:hover {
    background: var(--card-bg-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.item-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.item-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.download-item:hover .item-icon {
    transform: scale(1.1) rotate(5deg);
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-desc {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-download {
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.item-download:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #1e40af 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* 下载卡片 */
.download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.download-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.35);
}

.download-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.download-card:hover .card-icon {
    transform: scale(1.12) rotate(3deg);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.download-card:hover .card-name {
    color: var(--primary-color);
}

.card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.download-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
    position: relative;
    z-index: 1;
}

.download-card:hover .download-btn {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #1e40af 100%);
    transform: scale(1.08);
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.35);
}

/* 各软件图标颜�?*/
.env { background: linear-gradient(135deg, #512bd4 0%, #7c3aed 100%); }
.silverlight { background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%); }
.sql { background: linear-gradient(135deg, #dc382d 0%, #b91c1c 100%); }
.windows { background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%); }
.win11 { background: linear-gradient(135deg, #00a4ef 0%, #0078d4 100%); }
.msdn { background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%); }
.wps { background: linear-gradient(135deg, #e60012 0%, #ff4d4f 100%); }
.wechat-work { background: linear-gradient(135deg, #2ba245 0%, #1a7a32 100%); }
.winrar { background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%); }
.input { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.guanjia { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.qianniu { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.ishop { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.xt { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }
.printer { background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%); }
.xt800 { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }
.uu { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.todesk { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.sunlogin { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.hp { background: linear-gradient(135deg, #0096d6 0%, #0077b6 100%); }
.canon { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.epson { background: linear-gradient(135deg, #039be5 0%, #0277bd 100%); }
.brother { background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%); }
.ricoh { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.sharp { background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%); }
.pantum { background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%); }
.tsc { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.pos { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }
.tool { background: linear-gradient(135deg, #64748b 0%, #475569 100%); }
.edge { background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%); }
.chrome { background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 75%, #ea4335 100%); }
.firefox { background: linear-gradient(135deg, #ff7139 0%, #e66000 100%); }
.qq { background: linear-gradient(135deg, #12b7f5 0%, #0ea5e9 100%); }

/* 页脚 */
.footer {
    margin-top: 50px;
    padding: 30px 28px;
    border-top: 2px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 16px 16px 0 0;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links .divider {
    color: var(--border-color);
    font-size: 13px;
}

.copyright {
    color: var(--text-secondary);
    font-size: 13px;
}

/* 搜索高亮 */
.download-card.hidden,
.download-item.hidden {
    display: none;
}

.download-card.highlight,
.download-item.highlight {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* 响应式设�?*/
@media (max-width: 1024px) {
    .container {
        padding: 24px 28px;
    }
    
    .download-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .download-section {
        padding: 28px;
    }
    
    .main-content {
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 18px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 18px;
        padding: 16px 0;
        margin-bottom: 24px;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-link {
        padding: 9px 15px;
        font-size: 14px;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .download-section {
        padding: 22px;
        border-radius: 16px;
    }
    
    .download-card {
        padding: 16px 18px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .card-name {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 19px;
        gap: 12px;
    }
    
    .subsection-title {
        font-size: 16px;
        padding: 12px 16px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links .divider {
        display: none;
    }
    
    .main-content {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 22px;
    }
    
    .logo-subtitle {
        font-size: 12px;
    }
    
    .logo-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .nav-link {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* 滚动条美�?*/
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.6);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.5) 0%, rgba(148, 163, 184, 0.7) 100%);
    border-radius: 6px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.7) 0%, rgba(148, 163, 184, 0.9) 100%);
}
