* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #f5f7fa 0%, #eef1f6 100%);
    color: #2c3e50;
    min-height: 100vh;
}
.hero {
    background: linear-gradient(135deg, #3a7bd5 0%, #3a6078 100%);
    padding: 46px 20px 40px;
    text-align: center;
    color: #fff;
}
.hero h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.hero p {
    font-size: 15px;
    opacity: .9;
    margin-bottom: 24px;
}
.search-box {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 4px 6px 4px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 12px 0;
    color: #333;
    background: transparent;
}
.search-box button {
    border: none;
    background: #3a7bd5;
    color: #fff;
    font-size: 15px;
    padding: 11px 26px;
    border-radius: 26px;
    cursor: pointer;
    transition: .2s;
}
.search-box button:hover { background: #2f6bc0; }

.container {
    max-width: 1280px;
    margin: 30px auto;
    padding: 0 20px 60px;
}
#content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}
.cat-section {
    height: 360px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    overflow: hidden;
}
.cat-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}
.cat-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: #3a7bd5;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.cat-title { font-size: 20px; font-weight: 700; }
.cat-count {
    font-size: 13px;
    color: #888;
    background: #e3e8f0;
    border-radius: 12px;
    padding: 2px 10px;
}
.grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
@media (max-width: 1100px) {
    #content { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    #content { grid-template-columns: 1fr; }
}
.item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 14px;
    transition: .15s;
}
.item-row:hover { background: #f0f4f8; }
.soft-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    flex-shrink: 0;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.04);
}
.item-name {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.35;
    white-space: normal;
    word-break: break-all;
}
.dl-count {
    font-size: 12px;
    color: #8a94a6;
    white-space: nowrap;
    flex-shrink: 0;
}
.dl-count b {
    color: #3a7bd5;
    font-weight: 600;
}
.dl-btn {
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    padding: 7px 18px;
    border-radius: 8px;
    background: #3a7bd5;
    transition: .2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.dl-btn:hover { background: #2f6bc0; }

/* 自定义滚动条样式 */
.grid::-webkit-scrollbar {
    width: 6px;
    background: transparent;
    border-radius: 3px;
}
.grid::-webkit-scrollbar-thumb {
    background: #c1c8d4;
    border-radius: 3px;
}
.grid::-webkit-scrollbar-thumb:hover {
    background: #a0a8b8;
}
.grid::-webkit-scrollbar-track {
    background: transparent;
}

.no-result {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    display: none;
}
.footer {
    text-align: center;
    color: #aaa;
    font-size: 13px;
    padding: 20px;
    line-height: 1.8;
}
.footer b { color: #777; }
