/* 中世纪手抄本风格 – 羊皮纸 · 朱红 · 蓝金 · 花体装饰（与新闻页一致） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: #2b1e0f;
    font-family: 'Cinzel', 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #2d2418;
    padding: 30px 20px;
    background-image: repeating-linear-gradient(45deg, #3e2e1c 0px, #3e2e1c 2px, transparent 2px, transparent 10px);
}
.uqm-manuscript {
    max-width: 1300px;
    margin: 0 auto;
    background-color: #f9eddf;
    border: 12px solid #8b1e1e;
    border-image: repeating-linear-gradient(45deg, #8b1e1e, #d4af37 10px, #8b1e1e 20px) 30 stretch;
    box-shadow: 0 0 0 8px #d4af37, 0 20px 40px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
    padding: 8px;
}
.uqm-manuscript::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="1"/></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.1"/></svg>');
    opacity: 0.2;
    pointer-events: none;
}
.uqm-manuscript::after {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 2px solid #1e3f5f;
    border-radius: 4px 40px 4px 40px;
    box-shadow: 0 0 0 4px #d4af37 inset;
    pointer-events: none;
    opacity: 0.8;
}
.uqm-header {
    padding: 28px 44px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(145deg, #1e3f5f, #0f2a3f);
    border-bottom: 6px solid #d4af37;
    border-left: 6px solid #8b1e1e;
    border-radius: 0 60px 0 20px;
    position: relative;
    z-index: 2;
    box-shadow: 10px 10px 0 #8b1e1e66;
}
.uqm-header__site {
    display: flex;
    align-items: baseline;
    gap: 16px;
    background: rgba(0,0,0,0.2);
    padding: 0 20px;
}
.uqm-header__sitename {
    font-size: 2.8rem;
    font-weight: 600;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 2px 2px 0 #8b1e1e, 4px 4px 0 #0f2a3f;
    font-family: 'Cinzel', serif;
    border-right: 3px solid #d4af37;
    padding-right: 20px;
}
.uqm-header__sitename--light {
    font-size: 1rem;
    font-weight: 400;
    color: #f9eddf;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-left: 2px solid #d4af37;
    padding-left: 12px;
}
.uqm-search {
    display: flex;
    min-width: 280px;
    background-color: #f9eddf;
    border: 4px solid #8b1e1e;
    border-radius: 60px 20px 60px 20px;
    overflow: hidden;
    box-shadow: inset 0 0 0 2px #d4af37, 6px 6px 0 #1e3f5f;
}
.uqm-search__input {
    flex: 1;
    padding: 14px 24px;
    border: none;
    background: transparent;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: #2d2418;
}
.uqm-search__input:focus {
    outline: none;
    background-color: #f2d9c0;
}
.uqm-search__input::placeholder {
    color: #8b1e1e;
    font-style: italic;
}
.uqm-search__btn {
    background: #8b1e1e;
    border: none;
    border-left: 4px solid #1e3f5f;
    color: #d4af37;
    padding: 0 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Cinzel', serif;
}
.uqm-search__btn:hover {
    background: #d4af37;
    color: #1e3f5f;
    border-left-color: #8b1e1e;
}
.uqm-breadcrumb {
    padding: 18px 44px 0;
    background-color: transparent;
    position: relative;
    z-index: 2;
}
.uqm-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 12px 10px;
    border-bottom: 4px double #d4af37;
    padding-bottom: 16px;
}
.uqm-breadcrumb__item {
    font-size: 1rem;
    font-weight: 500;
}
.uqm-breadcrumb__item:not(:last-child)::after {
    content: "❧";
    margin-left: 12px;
    color: #8b1e1e;
    font-size: 1.2rem;
}
.uqm-breadcrumb__link {
    color: #1e3f5f;
    text-decoration: none;
    padding: 5px 16px;
    background-color: #f9eddf;
    border: 2px solid #8b1e1e;
    border-radius: 40px 10px 40px 10px;
    display: inline-block;
    transition: 0.1s;
    box-shadow: 3px 3px 0 #d4af37;
}
.uqm-breadcrumb__link:hover {
    background-color: #d4af37;
    color: #1e3f5f;
    border-color: #1e3f5f;
    box-shadow: 1px 1px 0 #8b1e1e;
}
.uqm-breadcrumb__link--active {
    background-color: #1e3f5f;
    color: #d4af37;
    border-color: #d4af37;
    box-shadow: 3px 3px 0 #d4af37;
    pointer-events: none;
}
.uqm-main {
    padding: 36px 44px 48px;
    background-color: transparent;
    position: relative;
    z-index: 2;
}
.uqm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}
.uqm-card {
    background-color: #fef5e9;
    border: 4px solid #1e3f5f;
    border-radius: 4px 60px 4px 60px;
    padding: 24px 22px;
    box-shadow: 8px 8px 0 #8b1e1e66, inset 0 0 0 3px #d4af37;
    transition: transform 0.2s;
    position: relative;
}
.uqm-card::before {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 2px dashed #8b1e1e;
    border-radius: 10px 66px 10px 66px;
    opacity: 0.5;
    pointer-events: none;
}
.uqm-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 12px 12px 0 #8b1e1e66, inset 0 0 0 3px #d4af37;
}
.uqm-card__title {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #1e3f5f;
    border-left: 8px solid #d4af37;
    padding-left: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Cinzel', serif;
    text-shadow: 1px 1px 0 #f9eddf;
}
.uqm-card__title a {
    text-decoration: none;
    color: inherit;
}
.uqm-card__title a:hover {
    color: #8b1e1e;
    text-decoration: underline wavy #d4af37;
}
.uqm-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    color: #5e4a3a;
    font-size: 0.9rem;
    margin-bottom: 16px;
    padding-left: 22px;
}
.uqm-card__date {
    background-color: #f0e0d0;
    padding: 4px 16px;
    border: 2px solid #1e3f5f;
    border-radius: 40px 10px 40px 10px;
    box-shadow: 2px 2px 0 #d4af37;
    font-weight: 500;
}
.uqm-card__readtime {
    background-color: #d4af37;
    color: #1e3f5f;
    padding: 4px 16px;
    border: 2px solid #1e3f5f;
    border-radius: 40px 10px 40px 10px;
    box-shadow: 2px 2px 0 #8b1e1e;
    font-weight: 500;
}
.uqm-card__desc {
    color: #2d2418;
    font-size: 0.95rem;
    line-height: 1.6;
    border-left: 3px dashed #d4af37;
    padding-left: 18px;
    margin-top: 8px;
}
.uqm-pagination {
    padding: 24px 0 0;
    border-top: 4px double #d4af37;
    display: flex;
    justify-content: center;
    position: relative;
}
.uqm-pagination::before {
    content: '❧';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f9eddf;
    padding: 0 20px;
    font-size: 2rem;
    color: #8b1e1e;
}
.uqm-pagination__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 10px;
    list-style: none;
    margin-top: 10px;
}
.uqm-pagination__link {
    display: inline-block;
    padding: 12px 20px;
    background-color: #f9eddf;
    color: #1e3f5f;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid #8b1e1e;
    border-radius: 40px 10px 40px 10px;
    min-width: 68px;
    text-align: center;
    transition: 0.2s;
    font-size: 0.95rem;
    font-family: 'Cinzel', serif;
    box-shadow: 3px 3px 0 #d4af37;
}
.uqm-pagination__link--current {
    background-color: #1e3f5f;
    color: #d4af37;
    border-color: #d4af37;
    box-shadow: 3px 3px 0 #d4af37;
    pointer-events: none;
}
.uqm-pagination__link:hover:not(.uqm-pagination__link--current) {
    background-color: #d4af37;
    color: #1e3f5f;
    border-color: #1e3f5f;
    box-shadow: 1px 1px 0 #8b1e1e;
}
.uqm-footer {
    background-color: #1e3f5f;
    padding: 24px 44px;
    text-align: center;
    color: #d4af37;
    border-top: 8px solid #8b1e1e;
    border-radius: 0 0 4px 60px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    z-index: 2;
    box-shadow: 0 -5px 0 #0f2a3f;
}
.uqm-footer::before {
    content: '✠';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #8b1e1e;
    opacity: 0.7;
}
.uqm-footer::after {
    content: '✠';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #8b1e1e;
    opacity: 0.7;
}
@media (max-width: 900px) {
    .uqm-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .uqm-search {
        width: 100%;
    }
}
@media (max-width: 600px) {
    .uqm-header, .uqm-main, .uqm-breadcrumb {
        padding-left: 24px;
        padding-right: 24px;
    }
    .uqm-card__title {
        font-size: 1.4rem;
    }
    .uqm-card {
        padding: 20px 16px;
    }
    .uqm-pagination__link {
        padding: 8px 14px;
        min-width: 55px;
    }
}