@charset "utf-8";

.subpage {
    background: linear-gradient(to bottom, #f5faff 10%, #dce9f8 100%);
    min-height: 100vh;
}

.subpage .header {
    position: absolute;
    height: auto;
    padding-bottom: 0.5rem;
}

.page-banner {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 25%;
    margin-top: 0;
    overflow: hidden;
}

.page-banner .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/top.png');
    background-size: cover;
    background-position: center;
}

.page-banner .banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
}

.page-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-banner p {
    font-size: 1.25rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.9;
}

.page-main {
    background: linear-gradient(to bottom, #f5faff 10%, #dce9f8 100%);
    min-height: 60vh;
    padding: 3rem 0 5rem;
}

.page-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.sidebar-nav {
    width: 15rem;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
}

.side-nav {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,64,152,0.1);
    overflow: hidden;
}

.side-nav-header {
    background: var(--ouc-blue);
    padding: 1.25rem 1.5rem;
}

.side-nav-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.side-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-nav-item {
    border-bottom: 1px solid #eef3f8;
}

.side-nav-item:last-child {
    border-bottom: none;
}

.side-nav-item a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--ouc-blue);
    font-size: 1rem;
    transition: all 0.25s ease;
    position: relative;
}

.side-nav-item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--sky-blue);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.side-nav-item:hover a {
    background: #f5faff;
    padding-left: 2rem;
}

.side-nav-item:hover a::before {
    transform: scaleY(1);
}

.side-nav-item.active a {
    background: #f0f7ff;
    color: var(--ouc-blue);
    font-weight: 600;
    padding-left: 2rem;
}

.side-nav-item.active a::before {
    transform: scaleY(1);
    background: var(--ouc-blue);
}

.side-nav-item.nav-level-2 a {
    padding-left: 2.5rem;
    font-size: 0.9rem;
}

.side-nav-item.nav-level-2:hover a,
.side-nav-item.nav-level-2.active a {
    padding-left: 3rem;
}

.side-nav-item.nav-level-3 a {
    padding-left: 3.5rem;
    font-size: 0.85rem;
}

.side-nav-item.nav-level-3:hover a,
.side-nav-item.nav-level-3.active a {
    padding-left: 4rem;
}

.article-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0,64,152,0.06);
    padding: 2.5rem 3rem;
}

.article-section {
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #eef3f8;
}

.article-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-heading {
    font-size: 1.75rem;
    color: var(--ouc-blue);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--sky-blue);
    display: inline-block;
}

.section-body {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: #444;
}

.section-body h2,
.section-body h3,
.section-body h4,
.section-body h5,
.section-body h6 {
    color: var(--ouc-blue);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.section-body h2 {
    font-size: 1.5rem;
}

.section-body h3 {
    font-size: 1.25rem;
}

.section-body h4 {
    font-size: 1.125rem;
}

.section-body p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

.section-body p:last-child {
    margin-bottom: 0;
}

.section-body strong,
.section-body b {
    color: var(--ouc-blue);
    font-weight: 600;
}

.article-figure {
    margin: 1.5rem 0;
    text-align: center;
}

.article-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #888;
    font-style: italic;
}

.timeline {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 3px solid var(--ouc-blue);
}

.timeline-item {
    position: relative;
    padding: 1rem 0 1rem 2rem;
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 1.35rem;
    width: 10px;
    height: 10px;
    background: var(--sky-blue);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--ouc-blue);
}

.timeline-year {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ouc-blue);
    min-width: 4rem;
}

.timeline-event {
    color: #555;
    flex: 1;
}

.org-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.org-list li {
    position: relative;
    padding-left: 1.5rem;
    color: #555;
}

.org-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: var(--sky-blue);
    border-radius: 2px;
    transform: rotate(45deg);
}

.contact-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--ouc-blue);
}

.contact-item {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #e0e6ed;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    color: var(--ouc-blue);
    font-weight: 600;
    min-width: 4rem;
}

.contact-value {
    color: #555;
}

.ordered-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    counter-reset: none;
}

.ordered-list li {
    position: relative;
    padding: 0.25rem 0;
    color: #555;
}

.ordered-list li::marker {
    color: var(--ouc-blue);
    font-weight: 600;
}

blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-left: 4px solid var(--sky-blue);
    color: #555;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

pre {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #1e293b;
    border-radius: 8px;
    overflow-x: auto;
}

pre code {
    color: #e2e8f0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

code {
    background: #f1f5f9;
    color: var(--ouc-blue);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

pre code {
    background: none;
    padding: 0;
}

del {
    color: #999;
    text-decoration: line-through;
}

.md-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,64,152,0.08);
}

.md-table th,
.md-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e6ed;
}

.md-table th {
    background: var(--ouc-blue);
    color: #fff;
    font-weight: 600;
}

.md-table tbody tr:hover {
    background: #f8fafc;
}

.md-table tbody tr:last-child td {
    border-bottom: none;
}

.static-footer {
    position: relative !important;
    transform: none !important;
    pointer-events: auto !important;
}

.static-footer::before {
    background-attachment: scroll !important;
}

.back-to-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 60px;
    height: 78px;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    filter: drop-shadow(0 4px 10px rgba(0,64,152,0.3));
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 20px rgba(0,64,152,0.4));
}

.back-to-top svg {
    width: 100%;
    height: 100%;
}

.back-to-top .drop-shape {
    fill: var(--ouc-blue);
}

.back-to-top .arrow-icon {
    stroke: #fff;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 52px;
        height: 68px;
    }
}
