:root {
    --primary: #4f46e5;
    --primary-600: #4338ca;
    --primary-light: #7c3aed;
    --violet: #7c3aed;
    --cyan: #06b6d4;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --bg: #fbfcfe;
    --card: #ffffff;
    --border: #e8ecf2;
    --text: #0b1220;
    --text-secondary: #5b6577;
    --text-hint: #98a2b3;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --shadow: 0 1px 3px rgba(16,24,40,.06);
    --shadow-sm: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
    --shadow-md: 0 14px 38px rgba(16,24,40,.09);
    --shadow-lg: 0 30px 70px rgba(16,24,40,.12);
    --ease: cubic-bezier(.22,.61,.36,1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.hidden {
    display: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(620px 420px at 12% 8%, rgba(79,70,229,.10), transparent 60%),
        radial-gradient(560px 400px at 88% 18%, rgba(124,58,237,.10), transparent 60%),
        radial-gradient(720px 520px at 50% 108%, rgba(6,182,212,.06), transparent 62%);
}

.wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 顶部导航 */
.notice-header {
    background: rgba(255,255,255,.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.notice-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    position: relative;
}

.brand-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
}

.brand-text {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}

.back-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s;
}

.back-link:hover {
    background: var(--bg);
    color: var(--primary);
}

/* 主内容 */
.notice-main {
    flex: 1;
    padding: 32px 0 48px;
}

.page-header {
    margin-bottom: 28px;
}

.page-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.page-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 通知列表 */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.notice-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.notice-card:hover::before {
    transform: scaleY(1);
}

.notice-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(79,70,229,.35);
}

.notice-card.is-top {
    border-color: rgba(239, 68, 68, 0.25);
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.notice-card.is-top::before {
    background: #ef4444;
    transform: scaleY(1);
}

.notice-card.is-top:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.1);
}

.card-left {
    flex: 1;
    min-width: 0;
}

.card-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.top-icon {
    font-size: 14px;
    line-height: 1;
}

.notice-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.notice-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-date {
    font-size: 13px;
    color: var(--text-hint);
}

.card-arrow {
    color: var(--text-hint);
    flex-shrink: 0;
    margin-left: 16px;
}

.card-arrow svg {
    width: 20px;
    height: 20px;
}

/* 返回按钮 */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.15s;
    font-family: inherit;
}

.back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* 文章详情 */
.notice-article {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 36px 40px;
    border: 1px solid var(--border);
}

.article-header {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.article-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-header .notice-type {
    margin-bottom: 0;
}

.top-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
}

.article-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 14px;
    color: var(--text);
}

.article-date {
    font-size: 13px;
    color: var(--text-hint);
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-content {
    font-size: 15px;
    line-height: 1.9;
    color: #374151;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 16px;
    padding-left: 26px;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-content strong {
    color: var(--text);
    font-weight: 600;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    margin: 24px 0 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.article-content h2 {
    font-size: 19px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.article-content h3 { font-size: 17px; }

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    transition: opacity 0.15s;
}

.article-content a:hover {
    opacity: 0.8;
}

/* 加载和空状态 */
.loading,
.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-hint);
    font-size: 14px;
}

/* 底部 */
.notice-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 20px 0;
    margin-top: auto;
}

.notice-footer .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-hint);
}

.footer-beian {
    font-size: 12px;
}

.footer-beian a {
    color: var(--text-hint);
    text-decoration: none;
}

.footer-beian a:hover {
    color: var(--primary);
}

/* 响应式 */
@media (max-width: 768px) {
    .wrap {
        padding: 0 16px;
    }

    .notice-main {
        padding: 20px 0 28px;
    }

    .page-header {
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 22px;
    }

    .page-desc {
        font-size: 13px;
    }

    .notice-list {
        gap: 10px;
    }

    .notice-card {
        padding: 16px;
    }

    .notice-title {
        font-size: 15px;
    }

    .notice-date {
        font-size: 12px;
    }

    .card-arrow {
        margin-left: 12px;
    }

    .card-arrow svg {
        width: 18px;
        height: 18px;
    }

    .notice-article {
        padding: 24px 20px;
    }

    .article-title {
        font-size: 20px;
    }

    .article-content {
        font-size: 14px;
        line-height: 1.8;
    }

    .article-content h2 {
        font-size: 17px;
    }

    .article-content h3 {
        font-size: 15px;
    }

    .back-btn {
        padding: 6px 12px;
        font-size: 13px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: 14px;
    }

    .back-link {
        font-size: 13px;
        padding: 4px 8px;
    }

    .page-title {
        font-size: 20px;
    }

    .notice-card {
        padding: 14px;
    }

    .notice-title {
        font-size: 14px;
        line-height: 1.4;
    }

    .notice-article {
        padding: 20px 16px;
    }

    .article-title {
        font-size: 18px;
    }

    .article-header {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .article-content {
        font-size: 14px;
    }

    .article-content p {
        margin-bottom: 12px;
    }

    .article-content ul,
    .article-content ol {
        margin-bottom: 12px;
        padding-left: 22px;
    }
}
