body {
    margin: 0;
    background: #f4f6f8;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
}
html {
    scroll-behavior: smooth;
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 0 40px;
    height: 64px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.logo {
    font-size: 26px;
    font-weight: bold;
    color: #2d3a4b;
    display: flex;
    align-items: center; 
}
.logo-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
}
.main {
    margin: 32px auto;
    padding: 0 24px;
}
@media (max-width: 600px) {
    .main {
        margin: 16px auto 32px;
        padding: 0 10px;
    }
}
.category {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 32px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 24px;
}
.card-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.card {
    min-height: 80px;
    height: 80px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 10px 8px;
    background: #f7f9fa;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.card .info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.card .name, .card .desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eee;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}
.icon.egg { background: #ffe066; }
.icon.pianku { background: #4fc3f7; }
.icon.ddys { background: #b2ebf2; }
.icon.porn { background: #90caf9; }
.icon.down { background: #263b5e; color: #fff; font-weight: bold; font-size: 24px;}
.info .name {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.info .desc {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.search-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-left: auto;
}
.search-icon svg {
    display: block;
}
.search-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    justify-content: center;
    align-items: center;
}
.search-modal-content {
    background: #fff;
    padding: 24px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
    display: flex;
    gap: 12px;
    align-items: center;
}
#searchInput {
    font-size: 16px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}
#searchClose {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
}
#searchOk {
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
}
#searchOk:hover {
    background: #388e3c;
}
.card {
    transition: opacity 0.2s, box-shadow 0.2s;
}
.card-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    background: #eee;
    display: block;
}
a.card,
a.card:visited,
a.card:hover,
a.card:active,
a.card * {
    text-decoration: none !important;
    color: inherit !important;
}
.navbar {
    background: #c7c6c6;
    border-bottom: 2px solid #fff;
    padding: 0;
}
.navbar ul {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 44px;
    width: 100%;
}
.navbar li {
    flex: 1;
    text-align: center;
    margin: 0;
}
.navbar a {
    display: inline-block;
    color: #222;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s, font-weight 0.2s;
    padding: 12px 0;
}
.navbar a:hover {
    color: #000;
    font-weight: bold;
}
.footer {
    text-align: center;
    padding: 18px 0 12px 0;
    color: #888;
    font-size: 15px;
    background: none;
    line-height: 1.8;
}
.footer .copyright,
.footer .contact {
    margin: 0;
}
.card .name {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    width: 100%;
}

