/* 耶兰官方专属样式 - 最终定稿版 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f7ff 100%);
    color: #333;
    line-height: 1.8;
}

/* 顶部导航 */
a:visited {
    color: #334155 !important;
}
.top-nav {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    padding: 14px 0;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}

.nav-menu a {
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    transition: 0.2s;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }
}

/* 在线咨询按钮 */
.nav-btn {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.55);
    color: #fff;
}

/* 面包屑 */
.breadcrumb {
    max-width: 1200px;
    margin: 25px auto 0;
    padding: 0 15px;
    color: #64748b;
    font-size: 14px;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

/* 左侧主体 */
.left-main {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.article-title {
    font-size: 26px;
    color: #1e293b;
    margin-bottom: 18px;
    border-left: 5px solid #3b82f6;
    padding-left: 16px;
    line-height: 1.4;
}

.article-meta {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.article-content p {
    margin-bottom: 18px;
    font-size: 16px;
    color: #334155;
}

.article-content img {
    max-width: 100%;
    display: block;
    margin: 22px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* 高亮文本 */
.short-text {
    background: linear-gradient(90deg, #eff6ff, #dbeafe);
    padding: 14px 12px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 15px;
    color: #2563eb;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

/* 广告 */
.ad-banner {
    margin-top: 35px;
    text-align: center;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.ad-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 右侧边栏 */
.right-sidebar {
    width: 320px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widget {
    background: #fff;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.035);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.widget-title {
    font-size: 17px;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    position: relative;
}

.widget-title::after {
    content: "";
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    position: absolute;
    left: 0;
    bottom: -1.5px;
    border-radius: 3px;
}

/* 文章列表（今日更新） */
.article-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e2e8f0;
}

.article-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* 今日更新标题：a链接控制，默认黑、悬浮蓝、访问后不变 */
.article-item h3 a:link {
    color: #334155; /* 未访问：黑色 */
    text-decoration: none;
}
.article-item h3 a:visited {
    color: #334155; /* 已访问：仍然黑色 */
}
.article-item h3 a:hover {
    color: #2563eb; /* 悬浮：蓝色 */
    text-decoration: none;
}
.article-item h3 a:active {
    color: #334155;
}

.article-item h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.article-item p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

/* 独立FAQ样式（无冲突版） */
.yl-faq-box {
    margin-bottom: 16px;
}

.yl-faq-ask {
    font-weight: 600;
    color: #2563eb;
    font-size: 15px;
    margin-bottom: 6px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.yl-faq-ask::before {
    content: "Q";
    color: #fff;
    background: #3b82f6;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
}

.yl-faq-reply {
    font-size: 14px;
    color: #475569;
    padding-left: 24px;
    line-height: 1.6;
}

/* 标签 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags a {
    padding: 6px 12px;
    background: linear-gradient(90deg, #eff6ff, #dbeafe);
    color: #2563eb;
    border-radius: 50px;
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s;
}

.tags a:hover {
    background: #3b82f6;
    color: #fff;
}

/* 列表页专用 */
.article-list-item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
    text-decoration: none;
}

.article-list-item h3 {
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 6px;
}

.article-list-item p {
    font-size: 13px;
    color: #64748b;
}

.article-list-item:hover h3 {
    color: #3b82f6;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination a {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #334155;
}

.pagination a.active,
.pagination a:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* 底部版权 */
.footer {
    background: linear-gradient(90deg, #edf2fb, #dbeafe, #e0efff);
    color: #334155;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
}

.footer p {
    margin-bottom: 6px;
}

.footer a {
    color: #2563eb;
    text-decoration: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .right-sidebar {
        width: 100%;
    }

    .left-main {
        padding: 24px;
    }

    .article-title {
        font-size: 22px;
    }

    .widget {
        padding: 22px;
    }
}