/* 科技前沿 - 全站样式 */
:root {
    --primary: #0066cc;
    --primary-dark: #003366;
    --primary-darker: hsl(210, 100%, 20%);
    --primary-light: #e6f0ff;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-muted: #999;
    --bg-body: #f5f5f5;
    --bg-white: #fff;
    --border-color: #e5e5e5;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --radius: 8px;
    --header-height: 56px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--primary-dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-height);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-logo svg { width: 24px; height: 24px; }
.site-logo:hover { color: #fff; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.main-nav a {
    color: rgba(255,255,255,0.85);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.header-search {
    flex: 1;
    max-width: 300px;
    margin-left: auto;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.search-form input::placeholder { color: rgba(255,255,255,0.6); }

.search-form button {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button:hover { background: #0077ee; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-login:hover { background: #0077ee; }

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    position: relative;
}

.user-info .username { color: rgba(255,255,255,0.9); }

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    min-width: 140px;
    padding: 8px 0;
    display: none;
    z-index: 100;
}

.user-info:hover .user-dropdown { display: block; }

.user-dropdown a {
    display: block;
    padding: 8px 16px;
    color: var(--text-primary);
    font-size: 14px;
}

.user-dropdown a:hover { background: var(--primary-light); }

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

/* ===== CAROUSEL ===== */
.carousel-section {
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.carousel {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 2.5 / 1;
    background: #111;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide .carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.carousel-slide .carousel-title {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.carousel-btn:hover { background: rgba(255,255,255,0.4); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title svg { color: var(--primary); }

/* ===== ARTICLE CARDS ===== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.article-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

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

.card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.featured-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #f59e0b;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.card-body { padding: 14px; }

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.card-meta .category-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a { color: var(--text-primary); }
.card-title a:hover { color: var(--primary); }

.card-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.card-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.card-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.card-stats svg { width: 14px; height: 14px; }

/* ===== SIDEBAR ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.sidebar-title svg { color: var(--primary); width: 20px; height: 20px; }

.hot-list { list-style: none; }

.hot-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.hot-list li:last-child { border-bottom: none; }

.hot-rank {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    margin-top: 2px;
}

.hot-rank.top { background: var(--primary); }
.hot-rank.normal { background: #ccc; color: #666; }

.hot-item-info { flex: 1; min-width: 0; }

.hot-item-title {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-item-title a { color: var(--text-primary); }
.hot-item-title a:hover { color: var(--primary); }

.hot-item-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    transition: background 0.2s;
}

.tag-badge:hover { background: var(--primary-dark); color: #fff; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { color: var(--text-muted); }

/* ===== ARTICLE DETAIL ===== */
.article-detail {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.article-detail h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-meta .category-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 4px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.article-tags a {
    background: var(--primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.article-tags a:hover { background: var(--primary-dark); color: #fff; }

.article-cover {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 24px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-content h1 { font-size: 24px; margin: 28px 0 16px; }
.article-content h2 { font-size: 22px; margin: 24px 0 14px; }
.article-content h3 { font-size: 18px; margin: 20px 0 12px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 16px 0; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content img { border-radius: 8px; margin: 16px 0; }
.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--primary-light);
    border-radius: 0 8px 8px 0;
}
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.article-content th, .article-content td {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    text-align: left;
}
.article-content th { background: var(--primary-light); font-weight: 600; }

.article-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-white);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

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

.action-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn svg { width: 18px; height: 18px; }

/* ===== PREV/NEXT NAV ===== */
.prev-next-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.prev-next-link {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    transition: border-color 0.2s;
}

.prev-next-link:hover { border-color: var(--primary); }

.prev-next-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.prev-next-title {
    font-size: 14px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prev-next-link.next { text-align: right; }

/* ===== CATEGORY/TAG PAGE ===== */
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.page-header .article-count {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

/* Category page uses 4-col grid like homepage */
.list-article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ===== SEARCH PAGE ===== */
.search-page-form {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.search-page-form input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.search-page-form input:focus { border-color: var(--primary); }

.search-page-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.search-page-form button:hover { background: #0077ee; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 32px 0 16px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
}

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

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

.page-btn.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.page-dots { color: var(--text-muted); padding: 0 4px; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-logo svg { width: 24px; height: 24px; }

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
}

.footer-links h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 13px;
}

.footer-bottom p { margin-bottom: 4px; }
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: #fff; }

/* ===== LOGIN/REGISTER ===== */
.auth-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 0 20px;
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.auth-card h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 24px;
}

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

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

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus { border-color: var(--primary); }

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover { background: #0077ee; }

.auth-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-link a { color: var(--primary); }

.alert {
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* ===== 404 ===== */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h1 { font-size: 72px; color: var(--primary); }
.error-page h2 { font-size: 24px; margin: 16px 0; }
.error-page p { color: var(--text-secondary); margin-bottom: 24px; }

.btn-back {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
}

.btn-back:hover { background: #0077ee; color: #fff; }

/* ===== RELATED ARTICLES ===== */
.related-section {
    margin-top: 32px;
}

.related-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

/* ===== COMMENTS ===== */
.comments-section {
    margin-top: 24px;
}

.comments-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    outline: none;
    margin-bottom: 8px;
}

.comment-form textarea:focus { border-color: var(--primary); }

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    flex-shrink: 0;
}

.comment-body { flex: 1; }
.comment-author { font-weight: 600; font-size: 14px; }
.comment-time { font-size: 12px; color: var(--text-muted); margin-left: 8px; }
.comment-text { font-size: 14px; margin-top: 4px; line-height: 1.6; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .article-grid, .list-article-grid { grid-template-columns: repeat(3, 1fr); }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    .article-grid, .list-article-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .header-search { display: none; }
    .hamburger { display: block; }

    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--primary-dark);
        padding: 12px;
        box-shadow: var(--shadow-md);
    }

    .main-nav.active a {
        padding: 10px 16px;
        width: 100%;
    }

    .article-grid, .list-article-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .prev-next-nav { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .carousel { aspect-ratio: 16/9; }

    .article-detail { padding: 20px; }
    .article-detail h1 { font-size: 20px; }
}

@media (max-width: 480px) {
    .article-grid, .list-article-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
}

/* ===== ADMIN STYLES ===== */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--primary-dark);
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
}

.admin-sidebar .logo {
    padding: 0 20px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: all 0.2s;
}

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

.admin-main {
    flex: 1;
    padding: 24px;
    background: var(--bg-body);
}

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

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

.admin-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

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

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

.data-table th,
.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background: var(--bg-body);
    font-weight: 600;
    color: var(--text-secondary);
}

.data-table tr:hover { background: var(--primary-light); }

.btn-sm {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    border: none;
}

.btn-edit { background: var(--primary); color: #fff; }
.btn-delete { background: #dc2626; color: #fff; }
.btn-sm:hover { opacity: 0.9; }

/* Admin form */
.admin-form .form-group { margin-bottom: 16px; }

.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.admin-form select:focus,
.admin-form textarea:focus { border-color: var(--primary); }

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