/* ============================================
   蓝天救援队 队员管理系统 样式表
   ============================================ */

:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #42A5F5;
    --accent: #E53935;
    --accent-dark: #C62828;
    --bg: #F5F7FA;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --text: #263238;
    --text-secondary: #607D8B;
    --text-light: #90A4AE;
    --border: #E0E0E0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

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

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;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.site-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    display: block;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255,255,255,0.15);
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    padding: 4px;
}

/* ===== Content ===== */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    width: 100%;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1976D2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin: -24px -20px 32px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: heroBg 20s linear infinite;
}

@keyframes heroBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    letter-spacing: 2px;
}

.hero p {
    font-size: 17px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 24px;
    position: relative;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    position: relative;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover { background: var(--accent-dark); color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(229,57,53,0.4); }

.btn-outline {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { background: rgba(255,255,255,0.25); color: white; }

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

.btn-white {
    background: white;
    color: var(--primary);
}
.btn-white:hover { background: #f0f0f0; color: var(--primary-dark); }

.btn-danger { background: var(--accent); color: white; }
.btn-danger:hover { background: var(--accent-dark); color: white; }

/* ===== Stats Cards ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    padding: 28px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.stat-card .stat-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.stat-card .stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stat-card .stat-number.alt { color: var(--accent); }

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

/* ===== Section ===== */
.section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ===== Photo Wall ===== */
.photo-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.member-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: 1px solid var(--border);
}

.member-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.member-card .card-avatar {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #E3F2FD;
}

.member-card .card-info {
    padding: 14px 12px;
}

.member-card .card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.member-card .card-level {
    font-size: 12px;
}

.level-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ===== Member Detail ===== */
.member-detail {
    padding: 24px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.member-profile {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.member-profile-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 40px 32px;
    text-align: center;
    color: white;
}

.member-profile-header .avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
    margin: 0 auto 16px;
    background: rgba(255,255,255,0.1);
}

.member-profile-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.member-profile-body {
    padding: 32px;
}

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

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    font-size: 16px;
    color: var(--text);
    font-weight: 500;
}

.info-value.text {
    grid-column: 1 / -1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

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

/* ===== Task List ===== */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.task-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.task-card .task-type-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    background: #E3F2FD;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.task-card .task-content {
    flex: 1;
}

.task-card .task-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.task-card .task-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

.task-card .task-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== Join Form ===== */
.join-form-wrapper {
    max-width: 1200px;
    padding: 24px 20px;
    width: 100%;
    margin: 0 auto;
}

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

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--accent);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.form-section {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.form-submit {
    margin-top: 32px;
    text-align: center;
}

.form-submit .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
}

/* ===== Captcha ===== */
.captcha-row {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}
.captcha-img-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.captcha-img {
    height: 45px;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.captcha-img:hover {
    opacity: 0.85;
}
.captcha-refresh {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}
.captcha-refresh:hover {
    text-decoration: underline;
}
/* ===== Team Page ===== */
.team-intro {
    padding: 24px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.team-intro .section-block {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    line-height: 1.8;
}

.team-intro h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary);
}

.team-intro p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.feature-card {
    text-align: center;
    padding: 24px;
    background: #F8FAFC;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.feature-card .feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.feature-card h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 20px;
    font-size: 13px;
    margin-top: auto;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.page-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== Search ===== */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-bar input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-bar select {
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

/* ===== Filters ===== */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text);
    transition: var(--transition);
    text-decoration: none;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== Alerts ===== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success { background: #D4EDDA; color: #155724; border: 1px solid #C3E6CB; }
.alert-error { background: #F8D7DA; color: #721C24; border: 1px solid #F5C6CB; }
.alert-info { background: #D1ECF1; color: #0C5460; border: 1px solid #BEE5EB; }

/* ===== No Data ===== */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-data .no-data-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.no-data p {
    font-size: 16px;
}

/* ===== Member Detail Hours Section ===== */
.hours-highlight {
    display: flex;
    gap: 24px;
    justify-content: center;
    background: #F8FAFC;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

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

.hours-item .hours-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.hours-item .hours-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-inner { height: 56px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 8px 0;
    }
    .nav-links.open { display: flex; }
    .nav-links a { border-radius: 0; padding: 12px 24px; }
    .menu-toggle { display: block; }

    .hero { padding: 40px 20px; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 15px; }

    .photo-wall { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .join-form { padding: 24px; }

    .member-profile-header { padding: 24px 20px; }
    .member-profile-body { padding: 24px; }
    .info-grid { grid-template-columns: 1fr; }

    .task-card { flex-direction: column; align-items: center; text-align: center; }
    .task-card .task-meta { justify-content: center; }
}

/* ===== Table Styles (Admin) ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: #F8FAFC;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr:hover td { background: #F8FAFC; }

/* ===== Admin Layout ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 20px 0;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar .admin-logo {
    padding: 0 20px 20px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-main {
    flex: 1;
    margin-left: 240px;
    padding: 24px;
    background: var(--bg);
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.admin-header h1 {
    font-size: 22px;
    color: var(--text);
}

.admin-actions {
    display: flex;
    gap: 10px;
}

/* ===== Form Toggle ===== */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.toggle input { display: none; }

.toggle .slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #CCC;
    border-radius: 24px;
    transition: var(--transition);
}

.toggle .slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle input:checked + .slider { background: var(--primary); }
.toggle input:checked + .slider::before { transform: translateX(20px); }

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show { display: flex; }

.modal {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal h3 { margin-bottom: 20px; }

/* ===== Card Grid ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ===== Admin Dashboard Stats ===== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.admin-stat-card.warn { border-left-color: #FF9800; }
.admin-stat-card.success { border-left-color: #4CAF50; }
.admin-stat-card.danger { border-left-color: var(--accent); }

.admin-stat-card .stat-val {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
}

.admin-stat-card .stat-lbl {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CCC; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #AAA; }

/* ===== News / Articles ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.news-card-img {
    display: block;
    height: 180px;
    overflow: hidden;
    background: #F0F4F8;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 20px;
}

.news-card-body h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.news-card-body h3 a {
    color: var(--text);
    text-decoration: none;
}

.news-card-body h3 a:hover {
    color: var(--primary);
}

.news-summary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
}

/* Article Detail */
.article-detail {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.article-header {
    padding: 32px 32px 0;
}

.article-header h1 {
    font-size: 28px;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.article-cover {
    margin: 0;
}

.article-cover img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.article-content {
    padding: 32px;
    font-size: 16px;
    line-height: 2;
    color: var(--text);
}

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

.article-footer {
    padding: 20px 32px;
    border-top: 1px solid var(--border);
    background: #F8FAFC;
}

/* Admin Table */
.admin-table-wrap {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: #F8FAFC;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
}

.admin-table tr:hover td {
    background: #F8FAFC;
}

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

.admin-page-header h1 {
    font-size: 20px;
}

.admin-filters {
    margin-bottom: 16px;
}

.admin-filters input,
.admin-filters select {
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
}

.admin-form {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.admin-form .form-row {
    display: flex;
    gap: 20px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-danger {
    background: var(--accent);
    color: white;
}

.btn-danger:hover {
    background: #C62828;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}
