/* ====== 全局基础 ====== */
body {
    margin: 0;
    font-family: "Microsoft YaHei", sans-serif;
    background: #f7f7f7;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ====== Header ====== */
.it-header {
    background: #0a0a0a;
    color: #fff;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.it-header-container {
    max-width: 1280px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.it-logo a {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.it-nav {
    display: flex;
}

.it-nav-list {
    display: flex;
    gap: 28px;
}

.it-nav-list a {
    color: #fff;
    font-size: 15px;
    transition: 0.3s;
}

.it-nav-list a:hover {
    color: #4da3ff;
}

/* 移动端菜单按钮 */
.it-nav-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* ====== Footer ====== */
.it-footer {
    background: #111;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.it-footer-container {
    max-width: 1280px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.it-footer-col h4 {
    color: #fff;
    margin-bottom: 12px;
}

.it-footer-col ul li {
    margin-bottom: 8px;
}

.it-footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
}

/* ====== Main 内容区域 ====== */
.it-main {
    max-width: 1280px;
    margin: auto;
    padding: 40px 20px;
}

/* ====== 三端自适应 ====== */

/* --- PC 端（≥1024px） --- */
@media (min-width: 1024px) {
    .it-nav {
        display: flex;
    }
}

/* --- 平板端（768px - 1023px） --- */
@media (max-width: 1023px) {
    .it-nav-list {
        gap: 20px;
    }
}

/* --- 手机端（≤767px） --- */
@media (max-width: 767px) {

    .it-nav {
        display: none;
        flex-direction: column;
        background: #0a0a0a;
        padding: 20px;
    }

    .it-nav.it-nav-open {
        display: flex;
    }

    .it-nav-toggle {
        display: block;
        color: #fff;
    }

    .it-nav-list {
        flex-direction: column;
        gap: 16px;
    }

    .it-footer-container {
        flex-direction: column;
        text-align: center;
    }
}
/*通用结束*/
/* ====== 面包屑导航 ====== */
.it-breadcrumb {
    margin: 20px 0;
    font-size: 14px;
}

.it-breadcrumb ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.it-breadcrumb li {
    color: #666;
}

.it-breadcrumb a {
    color: #0078ff;
    text-decoration: none;
}

.it-breadcrumb li::after {
    content: ">";
    margin: 0 6px;
    color: #999;
}

.it-breadcrumb li:last-child::after {
    content: "";
}

/* ====== 文章详情 ====== */
.it-article-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #0078ff;
}

.it-article-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
    display: block;
}

.it-article-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.it-article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

/* ====== 上一篇/下一篇 ====== */
.it-article-nav {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.it-article-nav a {
    color: #0078ff;
    text-decoration: none;
    font-size: 14px;
}

/* ====== 评论区 ====== */
.it-comments {
    margin-top: 40px;
}

.it-comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.it-comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.it-comment-btn {
    align-self: flex-end;
    padding: 8px 16px;
    background-color: #0078ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.it-comment-list {
    margin-top: 20px;
}

.it-comment-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.it-comment-item strong {
    color: #0078ff;
    display: block;
    margin-bottom: 6px;
}

/* 三端自适应 */
@media (max-width: 767px) {
    .it-article-title {
        font-size: 20px;
    }
    .it-article-content p {
        font-size: 14px;
    }
}
