/* Opteeq 公告 —— 列表与详情样式 */

.oqn-page {
    background: #f6f8fc;
    padding: 132px 16px 64px;
    min-height: 62vh;
    box-sizing: border-box;
}

.oqn-inner {
    max-width: 860px;
    margin: 0 auto;
}

/* 页头 */
.oqn-pagehead {
    margin: 0 0 26px;
}

.oqn-pagehead h1 {
    position: relative;
    margin: 0 0 10px;
    padding-left: 16px;
    font-size: 28px;
    line-height: 1.35;
    font-weight: 600;
    color: #0f1923;
}

.oqn-pagehead h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    border-radius: 3px;
    background: #0095a9;
}

.oqn-pagehead p {
    margin: 0;
    padding-left: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #7a869a;
}

/* 时间线 */
.oqn-timeline {
    margin: 0;
}

.oqn-item {
    display: flex;
    gap: 20px;
    margin: 0 0 18px;
}

.oqn-time {
    flex: 0 0 76px;
    padding-top: 18px;
    text-align: right;
}

.oqn-day {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 600;
    color: #0095a9;
    font-variant-numeric: tabular-nums;
}

.oqn-year {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #9aa4b2;
}

.oqn-card {
    flex: 1 1 auto;
    min-width: 0;
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    padding: 20px 22px 18px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .05);
    transition: box-shadow .2s, border-color .2s, transform .2s;
}

.oqn-card:hover {
    border-color: #dbe7ee;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .08);
    transform: translateY(-1px);
}

.oqn-title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 600;
}

.oqn-title a {
    color: #0f1923;
    text-decoration: none;
}

.oqn-title a:hover {
    color: #0095a9;
}

.oqn-text {
    font-size: 14px;
    line-height: 1.75;
    color: #5a6678;
}

.oqn-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #0095a9;
    text-decoration: none;
}

.oqn-more:hover {
    color: #00808f;
}

.oqn-empty {
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
    color: #9aa4b2;
}

/* 分页 */
.oqn-inner .navigation.pagination {
    margin-top: 26px;
    text-align: center;
}

.oqn-inner .nav-links {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.oqn-inner .page-numbers {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    line-height: 34px;
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
}

.oqn-inner .page-numbers.current,
.oqn-inner .page-numbers:hover {
    border-color: #0095a9;
    background: #0095a9;
    color: #fff;
}

/* 详情页 */
.oqn-single {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    padding: 36px 40px 32px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
    box-sizing: border-box;
}

.oqn-back {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 13px;
    color: #7a869a;
    text-decoration: none;
}

.oqn-back:hover {
    color: #0095a9;
}

.oqn-stitle {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.45;
    font-weight: 600;
    color: #0f1923;
}

.oqn-meta {
    margin: 0 0 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f2f6;
    font-size: 13px;
    color: #9aa4b2;
}

.oqn-content {
    font-size: 15px;
    line-height: 1.9;
    color: #2c3644;
    word-break: break-word;
}

.oqn-content p {
    margin: 0 0 16px;
}

.oqn-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.oqn-content a {
    color: #0095a9;
}

.oqn-content ul,
.oqn-content ol {
    padding-left: 22px;
    margin: 0 0 16px;
}

.oqn-content li {
    margin: 0 0 6px;
    list-style: disc;
}

.oqn-content ol li {
    list-style: decimal;
}

/* 正文富文本：小标题 / 引用 / 表格 / 分隔线（详情页与展开区共用） */
.oqn-content h2,
.oqn-full h2 {
    margin: 28px 0 12px;
    font-size: 19px;
    line-height: 1.5;
    font-weight: 600;
    color: #0f1923;
}

.oqn-content h3,
.oqn-full h3 {
    margin: 24px 0 10px;
    font-size: 16.5px;
    line-height: 1.55;
    font-weight: 600;
    color: #0f1923;
}

.oqn-content h4,
.oqn-full h4 {
    margin: 20px 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #0f1923;
}

.oqn-content blockquote,
.oqn-full blockquote {
    margin: 16px 0;
    padding: 10px 16px;
    border-left: 3px solid #0095a9;
    border-radius: 0 6px 6px 0;
    background: #f4fafb;
    color: #4b5563;
}

.oqn-content blockquote p:last-child,
.oqn-full blockquote p:last-child {
    margin-bottom: 0;
}

.oqn-content table,
.oqn-full table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    font-size: 13.5px;
}

.oqn-content th,
.oqn-content td,
.oqn-full th,
.oqn-full td {
    padding: 9px 11px;
    border: 1px solid #dde3ea;
    text-align: left;
}

.oqn-content th,
.oqn-full th {
    background: #f6f8fc;
    font-weight: 600;
}

.oqn-content hr,
.oqn-full hr {
    height: 1px;
    margin: 26px 0;
    border: 0;
    background: #eef1f6;
}

/* 上一条 / 下一条 */
.oqn-adj {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin: 34px 0 0;
    padding-top: 22px;
    border-top: 1px solid #f0f2f6;
}

.oqn-adj-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 47%;
    min-width: 0;
    text-decoration: none;
}

.oqn-adj-empty {
    flex: 0 0 0;
}

.oqn-adj-next {
    margin-left: auto;
    text-align: right;
}

.oqn-adj-label {
    font-size: 12.5px;
    line-height: 1;
    color: #9aa4b2;
}

.oqn-adj-title {
    font-size: 14px;
    line-height: 1.55;
    color: #0f1923;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.oqn-adj-item:hover .oqn-adj-label {
    color: #0095a9;
}

.oqn-adj-item:hover .oqn-adj-title {
    color: #0095a9;
}

/* 移动端 */
@media (max-width: 640px) {
    .oqn-page {
        padding: 104px 12px 40px;
    }

    .oqn-pagehead h1 {
        font-size: 22px;
        padding-left: 14px;
    }

    .oqn-pagehead h1::before {
        height: 19px;
        width: 4px;
    }

    .oqn-pagehead p {
        padding-left: 14px;
        font-size: 13px;
    }

    .oqn-item {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 14px;
    }

    .oqn-time {
        flex: none;
        padding-top: 0;
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

    .oqn-day {
        font-size: 15px;
    }

    .oqn-year {
        margin-top: 0;
        font-size: 12px;
    }

    .oqn-card {
        padding: 16px 16px 14px;
        border-radius: 12px;
    }

    .oqn-title {
        font-size: 16px;
    }

    .oqn-text {
        font-size: 13px;
    }

    .oqn-single {
        padding: 22px 18px 20px;
        border-radius: 14px;
    }

    .oqn-stitle {
        font-size: 20px;
    }

    .oqn-content {
        font-size: 14px;
        line-height: 1.85;
    }
}

/* 公告中心横幅 */
.oqn-banner {
    margin: 0 0 24px;
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 10px 28px rgba(16, 24, 40, .07);
}

.oqn-banner a,
.oqn-banner img {
    display: block;
    width: 100%;
}

.oqn-banner img {
    height: auto;
    transition: transform .35s ease;
}

.oqn-banner a:hover img {
    transform: scale(1.015);
}

/* 展开全文 */
.oqn-full {
    display: none;
    font-size: 14.5px;
    line-height: 1.85;
    color: #2c3644;
    word-break: break-word;
}

.oqn-full.is-open {
    display: block;
    animation: oqnFade .22s ease-out;
}

@keyframes oqnFade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

.oqn-full p {
    margin: 0 0 14px;
}

.oqn-full img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 4px 0 12px;
}

.oqn-full ul,
.oqn-full ol {
    margin: 0 0 14px;
    padding-left: 20px;
}

.oqn-full li {
    list-style: disc;
    margin: 0 0 6px;
}

.oqn-full ol li {
    list-style: decimal;
}

.oqn-full a {
    color: #0095a9;
}

/* 展开按钮 */
.oqn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: #0095a9;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

.oqn-toggle:hover {
    color: #00808f;
}

.oqn-toggle-arrow {
    font-style: normal;
    font-size: 11px;
    line-height: 1;
    transition: transform .2s ease;
}

.oqn-card.is-open .oqn-toggle-arrow {
    transform: rotate(180deg);
}

/* 锚点定位避开固定头部 */
.oqn-item {
    scroll-margin-top: 132px;
}

@media (max-width: 640px) {
    .oqn-banner {
        margin-bottom: 18px;
        border-radius: 12px;
    }

    .oqn-full {
        font-size: 14px;
    }

    .oqn-content table,
    .oqn-full table {
        font-size: 12.5px;
    }

    .oqn-content th,
    .oqn-content td,
    .oqn-full th,
    .oqn-full td {
        padding: 6px 8px;
    }

    .oqn-item {
        scroll-margin-top: 100px;
    }

    .oqn-adj {
        gap: 12px;
        margin-top: 28px;
        padding-top: 18px;
    }

    .oqn-adj-title {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
}
