:root {
    --bg: #fbf6ef;
    --line: #eaded1;
    --text: #202020;
    --muted: #756f68;
    --coral: #ec7457;
    --teal: #2f817d;
    --shadow: 0 18px 44px rgba(99, 73, 45, .10);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Noto Sans TC", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 227, 205, .6), transparent 25%),
        radial-gradient(circle at 85% 75%, rgba(224, 248, 241, .75), transparent 25%),
        linear-gradient(180deg, #fbf6ef 0%, #fffaf4 50%, #fbf6ef 100%);
}

a { text-decoration: none; }
.container { max-width: 1160px; }

.announcement-page {
    padding: 42px 12px 72px;
}

.page-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--coral);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-title h1,
.article-card h1 {
    font-family: "Noto Serif TC", serif;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    margin: 0 0 10px;
}

.page-title p,
.public-card p,
.article-card .summary,
.empty-card p {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.8;
}

.primary-link,
.back-link,
.row-actions a,
.row-actions button,
.form-actions button,
.form-actions a,
.public-card a {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fffaf4;
    color: var(--teal);
    padding: 10px 14px;
    font-weight: 900;
}

.primary-link,
.form-actions button {
    background: var(--coral);
    border-color: var(--coral);
    color: #fff;
}

.back-link {
    margin-bottom: 18px;
}

.alert,
.stat-grid article,
.table-card,
.empty-card,
.form-card,
.public-card,
.article-card {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
}

.alert {
    padding: 16px 20px;
    margin-bottom: 18px;
    font-weight: 900;
}

.alert.success {
    color: var(--teal);
    background: #eef8f4;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.stat-grid article {
    padding: 22px;
    text-align: center;
}

.stat-grid strong {
    color: var(--coral);
    font-size: 34px;
    font-weight: 900;
}

.stat-grid p {
    color: var(--muted);
    font-weight: 800;
    margin: 6px 0 0;
}

.table-card {
    overflow-x: auto;
}

.table-card table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
}

.table-card th,
.table-card td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.table-card th {
    background: #fff8ef;
    color: #5f5a53;
    font-size: 14px;
    font-weight: 900;
}

.table-card td p {
    color: var(--muted);
    margin: 4px 0 0;
    font-size: 13px;
}

.pill {
    display: inline-block;
    border-radius: 999px;
    background: #eef8f4;
    color: var(--teal);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
}

.pill.status {
    background: #fff0e8;
    color: var(--coral);
}

.row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.row-actions form {
    margin: 0;
}

.row-actions button {
    cursor: pointer;
}

.empty-card {
    padding: 42px;
    text-align: center;
}

.form-card {
    padding: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-grid label {
    display: grid;
    gap: 8px;
    color: #4b4640;
    font-weight: 900;
}

.form-grid label.full {
    grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fffaf4;
    padding: 12px 14px;
    outline: none;
    font-weight: 800;
}

.check-label {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px !important;
}

.check-label input {
    width: 20px;
    height: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.public-list {
    display: grid;
    gap: 16px;
}

.public-card {
    padding: 24px;
}

.public-card h2 {
    font-size: 26px;
    font-weight: 900;
    margin: 10px 0;
}

.public-card small {
    display: block;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 14px;
}

.article-card {
    padding: 40px;
}

.article-card .meta {
    display: inline-flex;
    gap: 10px;
    border-radius: 999px;
    background: #fffaf4;
    border: 1px solid var(--line);
    padding: 8px 14px;
    margin-bottom: 22px;
}

.article-card .meta span {
    color: var(--muted);
    font-weight: 800;
}

.article-card .content {
    white-space: pre-wrap;
    color: #4b4640;
    font-size: 18px;
    line-height: 2;
    font-weight: 700;
}

@media (max-width: 900px) {
    .page-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .stat-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .row-actions {
        justify-content: flex-start;
    }
}
