/* zhibo/index.html 独立样式 - 复刻同行参考图排版 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 14px;
    color: #333;
    background: #f4f4f4;
    line-height: 1.6;
}

a { color: #333; text-decoration: none; }
a:hover { color: #c00; }

.container {
    width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 0 20px 30px;
}

/* ===== 顶部 header ===== */
#header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.site {
    width: 1200px;
    margin: 0 auto;
    padding: 15px 0;
}

.site-bd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo a {
    font-size: 26px;
    font-weight: bold;
    color: #c00;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav .item a {
    display: block;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 3px;
    font-size: 14px;
}

.nav .item a:hover {
    background: #c00;
    color: #fff;
}

.search-form {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 3px;
    overflow: hidden;
}

.search-word {
    width: 180px;
    padding: 7px 10px;
    border: none;
    outline: none;
}

.search-btn {
    padding: 7px 15px;
    border: none;
    background: #6a0;
    color: #fff;
    cursor: pointer;
}

.nav-m { display: none; }

/* 子导航 */
.nav-lei {
    width: 1200px;
    margin: 10px auto 0;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    padding: 10px 15px;
    border-radius: 3px;
}

.nav-lei-inner dl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
}

.nav-lei-inner dt {
    font-weight: bold;
    color: #c00;
}

.nav-lei-inner dd a {
    color: #555;
    padding: 2px 5px;
}

.nav-lei-inner dd a:hover {
    color: #c00;
}

/* 顶部广告 */
#toubu {
    width: 1200px;
    margin: 15px auto;
    text-align: center;
}

/* ===== 主体内容 ===== */
.main {
    width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 10px 20px 30px;
}

.breadcrumb {
    padding: 10px 0;
    color: #666;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #c00; }

.section {
    margin-bottom: 25px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.section-title .more {
    font-size: 13px;
    font-weight: normal;
    color: #666;
}

.section-title .more:hover {
    color: #c00;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.card {
    display: block;
    border: 1px solid #e0e0e0;
    background: #fff;
    text-align: center;
    padding: 12px 5px;
    font-size: 14px;
    color: #333;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card:hover {
    border-color: #999;
    background: #f9f9f9;
    color: #c00;
}

/* ===== 页脚 ===== */
.footer {
    width: 1200px;
    margin: 0 auto;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #666;
    line-height: 2;
}

.footer a { color: #666; }

/* ===== 响应式：小屏简化 ===== */
@media (max-width: 1240px) {
    .container,
    .site,
    .nav-lei,
    #toubu,
    .main,
    .footer {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .site-bd {
        flex-direction: column;
        gap: 10px;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}
