﻿:root {
    --ann-surface: #fff;
    --ann-border: #ecdcc9;
    --ann-bg-soft: #fffaf2;
    --ann-title: #2f241b;
    --ann-muted: #7a6654;
}

.announcement-shell {
    background: radial-gradient(circle at 8% 2%, #fff4e7 0, transparent 30%),
        radial-gradient(circle at 100% 0, #fae9d6 0, transparent 23%),
        #f8efe6;
}

.announcement-head,
.announcement-filter,
.announcement-card,
.announcement-empty,
.announcement-calendar-wrap,
.calendar-result,
.announcement-detail {
    border: 1px solid var(--ann-border);
    border-radius: 1rem;
    background: var(--ann-surface);
    box-shadow: 0 14px 28px rgba(142, 99, 52, 0.09);
}

.announcement-head,
.announcement-filter,
.calendar-result,
.announcement-empty,
.announcement-detail {
    padding: 1rem;
}

.announcement-title {
    margin: 0.4rem 0 0.3rem;
    color: var(--ann-title);
    font-weight: 900;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.announcement-subtitle {
    margin: 0;
    color: var(--ann-muted);
}

.mode-toggle {
    display: inline-flex;
    border: 1px solid var(--ann-border);
    border-radius: 999px;
    overflow: hidden;
}

.mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6b5543;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    background: #fffaf4;
}

.mode-btn.is-active {
    background: #ef8a3d;
    color: #fff;
}

.announcement-card {
    overflow: hidden;
    height: 100%;
}

.announcement-cover-link,
.announcement-cover-link:hover {
    display: block;
    text-decoration: none;
}

.announcement-cover {
    width: 100%;
    height: 205px;
    object-fit: cover;
    border-bottom: 1px solid var(--ann-border);
}

.announcement-content {
    padding: 0.9rem;
}

.announcement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: var(--ann-muted);
    font-size: 0.86rem;
    margin-bottom: 0.45rem;
}

.announcement-card-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
}

.announcement-card-title a {
    color: #2f241b;
    text-decoration: none;
}

.announcement-card-title a:hover {
    color: #d86f21;
}

.announcement-excerpt {
    margin: 0.5rem 0 0;
    color: #604f40;
    line-height: 1.75;
}

.announcement-empty {
    color: var(--ann-muted);
    text-align: center;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.calendar-month {
    color: #3b2b1f;
    font-weight: 900;
}

.announcement-calendar-wrap {
    overflow-x: auto;
}

.announcement-calendar {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.announcement-calendar th,
.announcement-calendar td {
    border: 1px solid #f0e2d2;
    vertical-align: top;
}

.announcement-calendar th {
    background: #fff6ec;
    color: #5f4734;
    text-align: center;
    padding: 0.5rem;
}

.announcement-calendar td {
    height: 112px;
    padding: 0.45rem;
    cursor: pointer;
}

.announcement-calendar td.is-out-month {
    background: #f9f4ee;
    color: #b1a293;
}

.announcement-calendar td.has-item {
    background: #fffaf0;
}

.announcement-calendar td.is-selected {
    outline: 2px solid #eb7d2e;
    outline-offset: -2px;
}

.calendar-day-number {
    font-weight: 800;
    color: #412f22;
}

.calendar-day-count {
    margin-top: 0.35rem;
    display: inline-flex;
    border-radius: 999px;
    border: 1px solid #f2d6ba;
    padding: 0.1rem 0.45rem;
    font-size: 0.76rem;
    color: #8a5d35;
}

.calendar-result-title {
    color: #3a2a1f;
    font-weight: 800;
    margin-bottom: 0.55rem;
}

.calendar-result-list {
    display: grid;
    gap: 0.5rem;
}

.calendar-item {
    display: flex;
    gap: 0.7rem;
    text-decoration: none;
    border: 1px solid #f0dfcd;
    background: #fff8ef;
    border-radius: 0.7rem;
    padding: 0.55rem 0.7rem;
    color: #3b2a1f;
}

.calendar-item-time {
    min-width: 42px;
    font-weight: 800;
    color: #d26f28;
}

.calendar-item-title {
    font-weight: 700;
}

.calendar-empty {
    color: var(--ann-muted);
}

.announcement-detail .detail-header h1 {
    margin: 0.45rem 0 0.45rem;
    color: #2f2219;
    font-weight: 900;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.detail-meta {
    color: #7a6654;
    font-size: 0.9rem;
}

.detail-cover {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid var(--ann-border);
    margin-bottom: 0.75rem;
}

.detail-cover.side {
    width: 42%;
    max-width: 320px;
    margin: 0;
}

.detail-content {
    margin-top: 1rem;
    color: #35291f;
    line-height: 1.85;
}

.detail-content iframe,
.detail-content video,
.detail-content img {
    max-width: 100%;
}

.detail-content table {
    width: 100%;
    border-collapse: collapse;
}

.detail-content table td,
.detail-content table th {
    border: 1px solid #e8d8c7;
    padding: 0.45rem;
}

.detail-header.news-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-header.banner-style {
    border-radius: 1rem;
    min-height: 260px;
    background: #efe2d2 center center/cover no-repeat;
    overflow: hidden;
}

.banner-mask {
    min-height: 260px;
    background: linear-gradient(180deg, rgba(20, 15, 10, 0.18), rgba(20, 15, 10, 0.66));
    color: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.banner-mask h1,
.banner-mask .detail-meta {
    color: #fff;
}

.detail-header.event-style {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.event-date-block {
    min-width: 92px;
    border-radius: 0.8rem;
    border: 1px solid #f0d8be;
    background: #fff5ea;
    text-align: center;
    padding: 0.55rem;
}

.event-date-block .day {
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
    color: #d26c26;
}

.event-date-block .month {
    color: #8a715a;
    font-weight: 700;
    margin-top: 0.25rem;
    font-size: 0.82rem;
}

.highlight-box {
    margin-top: 0.65rem;
    border: 1px solid #f2d6b4;
    background: #fff4df;
    border-radius: 0.75rem;
    padding: 0.7rem;
    color: #6b4a28;
    font-weight: 600;
}

.detail-cover.shadowed {
    box-shadow: 0 18px 26px rgba(136, 84, 35, 0.25);
}

@media (max-width: 991.98px) {
    .announcement-head {
        display: grid;
        gap: 0.75rem;
    }

    .detail-header.news-card {
        display: block;
    }

    .detail-cover.side {
        width: 100%;
        max-width: none;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .announcement-shell {
        padding-top: 1rem;
    }

    .announcement-head,
    .announcement-filter,
    .calendar-result,
    .announcement-empty,
    .announcement-detail {
        padding: 0.8rem;
    }

    .announcement-cover {
        height: 180px;
    }

    .calendar-toolbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .announcement-calendar {
        min-width: 640px;
    }
}

