/* ============================================
   长春市2026中考庆祝网站 - 主样式表（夏日浅白）
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #D4A84B;
    --gold-light: #F5E6C8;
    --gold-bg: #FDF8EE;
    --blue: #4A90D9;
    --blue-light: #E8F4FD;
    --blue-ice: #F0F8FF;
    --blue-sky: #D6EAF8;
    --mint: #7EC8B5;
    --mint-light: #E8F8F3;
    --coral: #F5A0A0;
    --coral-light: #FFF0F0;
    --lavender: #B8A9E8;
    --lavender-light: #F0ECFF;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C9B;
    --text-muted: #B0B8C4;
    --bg-body: #F5F8FC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FAFCFE;
    --bg-hero: linear-gradient(135deg, #E8F4FD 0%, #F0F8FF 30%, #E8F8F3 60%, #F5E6C8 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 20px rgba(74, 144, 217, 0.08);
    --shadow-hover: 0 8px 32px rgba(74, 144, 217, 0.12);
    --border: #E8ECF1;
    --border-light: #F0F2F5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; transition: color 0.3s; }
a:hover { color: #2C6FBD; }

/* ---------- SVG Icon Base ---------- */
.svg-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    flex-shrink: 0;
}
.svg-icon-lg { width: 1.5em; height: 1.5em; }
.svg-icon-xl { width: 2em; height: 2em; }
.svg-icon-xxl { width: 2.5em; height: 2.5em; }
.svg-icon-3xl { width: 3em; height: 3em; }

/* ---------- Hero Screen (大屏展示) ---------- */
.hero-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-hero);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(74,144,217,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212,168,75,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(126,200,181,0.05) 0%, transparent 50%);
    pointer-events: none;
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    animation: heroFadeIn 1.5s ease-out;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold), #C4983A);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 28px;
    border-radius: 50px;
    letter-spacing: 3px;
    margin-bottom: 24px;
    animation: badgePulse 2s ease-in-out infinite;
    box-shadow: 0 4px 16px rgba(212,168,75,0.25);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #2C3E50 0%, #4A90D9 40%, #D4A84B 70%, #2C3E50 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    line-height: 1.2;
    margin-bottom: 8px;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    letter-spacing: 6px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.scrolling-messages {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    z-index: 2;
    overflow: hidden;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(212,168,75,0.1);
    border-bottom: 1px solid rgba(212,168,75,0.1);
    padding: 12px 0;
}

.scrolling-track {
    display: flex;
    gap: 48px;
    animation: scrollMarquee 40s linear infinite;
    white-space: nowrap;
}

.scroll-msg-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--border);
    border-radius: 50px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.scroll-msg-nick {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.875rem;
}

.scroll-msg-text {
    color: var(--text-primary);
    font-size: 0.875rem;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scroll-msg-to {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@keyframes scrollMarquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--gold);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    opacity: 0.4;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ---------- Sections ---------- */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ---------- Featured Section ---------- */
.featured-section { padding-top: 40px; }

.featured-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold-light);
}

.featured-card-icon {
    color: var(--gold);
    margin-bottom: 12px;
}

.featured-card-msg {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-style: italic;
}

.featured-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}

/* ---------- Form Section ---------- */
.form-section {
    background: linear-gradient(180deg, transparent, var(--blue-ice) 50%, transparent);
    border-radius: 24px;
}

.form-container {
    max-width: 560px;
    margin: 0 auto;
}

.celebration-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.required { color: var(--coral); }

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.form-input::placeholder { color: var(--text-muted); }

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--gold), #C4983A);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(212,168,75,0.25);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212,168,75,0.35);
}

.btn-submit:active { transform: translateY(0); }

/* ---------- File Upload ---------- */
.file-upload-wrapper { position: relative; }

.file-input {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0; overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.file-label {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px;
    background: var(--bg-body);
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.file-label:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-ice);
}

.file-label svg { width: 1.3em; height: 1.3em; }

.file-preview { margin-top: 12px; display: none; }
.file-preview.show { display: block; }

.file-preview img {
    max-width: 100%; max-height: 200px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    object-fit: cover;
}

.file-preview .remove-file {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 8px; padding: 4px 12px;
    background: var(--coral-light); color: var(--coral);
    border: 1px solid var(--coral); border-radius: 20px;
    font-size: 0.8rem; cursor: pointer;
    transition: all 0.3s ease;
}

.file-preview .remove-file:hover { background: var(--coral); color: #fff; }

/* ---------- Message Card Image ---------- */
.msg-card-image {
    margin-top: 12px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-body);
}

.msg-card-image img {
    width: 100%; max-height: 200px;
    object-fit: cover; cursor: pointer;
    transition: all 0.3s ease; display: block;
}

.msg-card-image img:hover { opacity: 0.9; }

.msg-card-image img.expanded {
    max-height: 400px;
    object-fit: contain;
    background: var(--bg-body);
}

/* ---------- Alerts ---------- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: var(--mint-light);
    border: 1px solid var(--mint);
    color: #3A8A78;
}

.alert-error {
    background: var(--coral-light);
    border: 1px solid var(--coral);
    color: #C07A7A;
}

/* ---------- Filter Bar ---------- */
.filter-bar { margin-bottom: 32px; }
.filter-form { max-width: 100%; }

.filter-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-select, .filter-input {
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-select:focus, .filter-input:focus {
    border-color: var(--blue);
}

.filter-select option { background: #fff; }

.filter-input { min-width: 200px; }

.filter-btn {
    padding: 10px 20px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover { background: #3A7BC8; }

.filter-clear {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---------- Messages Grid ---------- */
.messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.msg-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.msg-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue-sky);
    box-shadow: var(--shadow-hover);
    background: var(--bg-card-hover);
}

.msg-card-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.75rem;
    background: var(--gold-bg);
    color: var(--gold);
    padding: 2px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--gold-light);
}

.msg-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.msg-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-sky), var(--blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue);
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(74,144,217,0.1);
}

.msg-card-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.msg-card-nick {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.msg-card-category {
    font-size: 0.75rem;
    padding: 1px 8px;
    border-radius: 12px;
    width: fit-content;
}

.msg-card-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    word-break: break-word;
}

.msg-card-to, .msg-card-school {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.msg-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.msg-card-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-like {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-family: inherit;
}

.btn-like:hover {
    border-color: var(--coral);
    color: var(--coral);
}

.btn-like.liked {
    border-color: var(--coral);
    color: var(--coral);
    background: var(--coral-light);
}

.like-icon { font-size: 1rem; }
.like-icon.liked-anim { animation: heartPop 0.3s ease; }

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* ---------- Empty State ---------- */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ---------- Tags ---------- */
.tag-self { background: var(--lavender-light); color: #7A6BB8; }
.tag-classmate { background: var(--mint-light); color: #4A9A88; }
.tag-teacher { background: var(--blue-light); color: #4A7AC8; }
.tag-school { background: var(--gold-bg); color: #B8983A; }
.tag-family { background: var(--coral-light); color: #C07A7A; }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.page-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.page-active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-card);
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.footer-admin { margin-top: 8px; }

.footer-admin a {
    font-size: 0.8rem;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.footer-admin a:hover { opacity: 1; }

/* ---------- Confetti Canvas ---------- */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ==============================================
   后台管理样式（浅白主题）
   ============================================== */

/* Login */
.admin-login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--blue-ice), #E8F8F3);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 8px 40px rgba(74, 144, 217, 0.08);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-icon {
    color: var(--blue);
    margin-bottom: 12px;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

.login-form .form-group { margin-bottom: 20px; }

.btn-login { margin-top: 8px; }

.login-footer {
    text-align: center;
    margin-top: 24px;
}

.login-footer a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Admin Layout */
.admin-body { background: var(--bg-body); }

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 240px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-light);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.sidebar-nav { padding: 12px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    margin-bottom: 4px;
    font-size: 0.9rem;
    position: relative;
}

.nav-item:hover {
    background: var(--blue-light);
    color: var(--blue);
}

.nav-active {
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 600;
}

.nav-icon { width: 1.2em; height: 1.2em; }

.nav-badge {
    position: absolute;
    right: 12px;
    background: var(--coral);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

.nav-logout { margin-top: 20px; }
.nav-logout:hover { background: var(--coral-light); color: var(--coral); }

/* Admin Main */
.admin-main {
    flex: 1;
    padding: 32px 40px;
    max-width: 100%;
    overflow-x: hidden;
}

.admin-header { margin-bottom: 32px; }

.admin-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.admin-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.stat-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-blue .stat-card-icon { background: var(--blue-light); color: var(--blue); }
.stat-green .stat-card-icon { background: var(--mint-light); color: var(--mint); }
.stat-orange .stat-card-icon { background: var(--gold-bg); color: var(--gold); }
.stat-purple .stat-card-icon { background: var(--lavender-light); color: var(--lavender); }
.stat-pink .stat-card-icon { background: var(--coral-light); color: var(--coral); }

.stat-card-body {
    display: flex;
    flex-direction: column;
}

.stat-card-number {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Admin Sections */
.admin-section {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-section-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-link {
    font-size: 0.85rem;
    color: var(--blue);
}

/* Admin Table */
.admin-table-wrapper { overflow-x: auto; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    text-align: left;
    padding: 12px 10px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    color: var(--text-primary);
}

.admin-table tr:hover td { background: var(--bg-body); }

.row-pending { background: rgba(212,168,75,0.03); }

.msg-preview {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}

.empty-cell {
    text-align: center;
    padding: 40px !important;
    color: var(--text-muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-approved {
    background: var(--mint-light);
    color: #3A8A78;
}

.status-pending {
    background: var(--gold-bg);
    color: #B8983A;
}

.action-btns { white-space: nowrap; display: flex; gap: 4px; }

.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-sm-green { background: var(--mint-light); color: var(--mint); border-color: var(--mint); }
.btn-sm-green:hover { background: var(--mint); color: #fff; }
.btn-sm-yellow { background: var(--gold-bg); color: var(--gold); border-color: var(--gold-light); }
.btn-sm-yellow:hover { background: var(--gold); color: #fff; }
.btn-sm-red { background: var(--coral-light); color: var(--coral); border-color: var(--coral); }
.btn-sm-red:hover { background: var(--coral); color: #fff; }

/* Admin Search */
.admin-search { margin-bottom: 20px; }

.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.batch-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }
    .sidebar-nav { display: flex; flex-wrap: wrap; gap: 4px; }
    .nav-item { flex: 1; min-width: 100px; justify-content: center; }
    .admin-main { padding: 20px 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 20px; }
    .featured-carousel { grid-template-columns: 1fr; }
    .messages-grid { grid-template-columns: 1fr; }
    .filter-group { flex-direction: column; }
    .filter-group > * { width: 100%; }
    .search-form { flex-direction: column; }
    .search-form > * { width: 100%; }
    .batch-bar { flex-direction: column; }
    .batch-bar > * { width: 100%; }
    .admin-section { padding: 16px; }
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }