/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 头部 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.logo p {
    font-size: 14px;
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.3s;
}

.nav a:hover,
.nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

.admin-link {
    background: rgba(255, 255, 255, 0.2);
}

.fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #333;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* 头部登录按钮 */
.header-actions {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    transition: background 0.3s;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* 移动端菜单遮罩 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    display: block;
}

/* 移动端导航菜单 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 999;
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-nav .logo a {
    display: block;
    color: #667eea;
    text-align: center;
    margin-bottom: 5px;
    text-shadow: none;
}

.mobile-nav .logo h1 {
    font-size: 24px;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    border-radius: 10px;
    transition: background 0.2s;
    margin-bottom: 4px;
}

.mobile-nav a:hover {
    background: #f5f5f5;
}

.mobile-nav a.active {
    background: #667eea;
    color: white;
}

.mobile-nav-divider {
    height: 1px;
    background: #eee;
    margin: 16px 0;
}

.mobile-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8f9fa !important;
    border-radius: 10px;
    margin-top: 10px !important;
}

.mobile-nav-group {
    margin-bottom: 4px;
}

.mobile-nav-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    border-radius: 10px;
    transition: background 0.2s;
    margin-bottom: 4px;
}

.mobile-nav-group-title:hover {
    background: #f5f5f5;
}

.mobile-nav-group-title i.fas.fa-chevron-down {
    transition: transform 0.3s;
}

.mobile-nav-group.open .mobile-nav-group-title i.fas.fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-nav-submenu {
    display: none;
    padding-left: 20px;
}

.mobile-nav-group.open .mobile-nav-submenu {
    display: block;
}

.mobile-nav-submenu a {
    padding-left: 20px !important;
    font-size: 15px !important;
    color: #666 !important;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.nav-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #333 !important;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.nav-dropdown .dropdown-menu a:hover {
    background: #f5f5f5;
}

.nav-dropdown .dropdown-menu a.active {
    background: #667eea;
    color: white !important;
}

.nav-dropdown.active .dropdown-trigger {
    background: rgba(255, 255, 255, 0.2);
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.25);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* 会员登录下拉菜单 */
.member-auth-dropdown {
    position: relative;
}

.member-auth-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    z-index: 1000;
    overflow: hidden;
}

.member-auth-dropdown:hover .dropdown-menu {
    display: block;
}

.member-auth-dropdown .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.member-auth-dropdown .dropdown-menu a:hover {
    background: #f5f5f5;
}

.member-auth-dropdown .dropdown-menu i {
    margin-right: 8px;
    color: #666;
}

/* 筛选栏 */
.filter-bar {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.filter-bar .container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    min-width: 300px;
    flex: 1;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    font-size: 14px;
}

.search-box button {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #5a6fd6;
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-group select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.category-page .search-bar {
    display: none;
}

.category-page .filter-bar .filter-group {
    display: none;
}

.category-page .sidebar {
    display: block;
}

@media (max-width: 768px) {
    .category-page .filter-bar .filter-group {
        display: flex;
    }

    .category-page .sidebar {
        display: none;
    }
}

/* 轮播区域 */
.carousel-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.carousel-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #2d3436;
    font-weight: 700;
    letter-spacing: 1px;
}

.carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: white;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    min-width: 100%;
    display: flex;
    flex-direction: row;
    background: white;
}

.carousel-image-wrapper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    position: relative;
}

.carousel-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    pointer-events: none;
}

.carousel-image {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.carousel-image:hover {
    transform: scale(1.02);
}

.carousel-info {
    padding: 45px;
    flex-shrink: 0;
    min-width: 320px;
    max-width: 420px;
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left: 1px solid #e0e0e0;
}

.carousel-info h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #2d3436;
    line-height: 1.3;
    font-weight: 700;
}

.carousel-info p {
    margin-bottom: 10px;
    color: #636e72;
    line-height: 1.6;
    font-size: 15px;
}

.carousel-info p:last-child {
    margin-bottom: 0;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
    border-color: #667eea;
    color: #667eea;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    background: rgba(0, 0, 0, 0.4);
}

.carousel-indicator.active {
    background: #667eea;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: scale(1.2);
}

/* 网格区域 */
.grid-section {
    padding: 40px 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
}

.cert-count {
    color: #666;
    font-size: 14px;
}

.cert-grid {
    /* 移除 grid 布局，让瀑布流布局生效 */
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-top: 20px;
}

/* 瀑布流容器 - JS 动态布局 */
.masonry-grid {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.masonry-item {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 瀑布流响应式列宽由 JS 动态计算，此处仅保留占位 */

.cert-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    width: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    box-sizing: border-box;
}

.lazy-image {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.card-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.competition-level-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.award-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.award-badge.large {
    font-size: 16px;
    padding: 8px 20px;
}

.selected-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.selected-badge.large {
    font-size: 16px;
    padding: 8px 20px;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.card-students {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    padding: 12px 40px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.load-more-btn:hover {
    background: #5a6fd6;
}

/* 弹窗 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

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

.modal {
    background: white;
    border-radius: 15px;
    max-width: 100%;
    max-height: 100vh;
    width: 90%;
    overflow: hidden;
    position: relative;
}

/* 统一居中弹窗样式 */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.confirm-modal.active {
    display: flex;
}

.confirm-modal .modal-box {
    background: white;
    border-radius: 16px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.confirm-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.confirm-modal .modal-header h3 {
    font-size: 18px;
    color: #1e293b;
    margin: 0;
}

.confirm-modal .modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
}

.confirm-modal .modal-close-btn:hover {
    color: #64748b;
}

.confirm-modal .modal-body {
    padding: 24px;
}

.confirm-modal .modal-body p {
    margin-bottom: 16px;
    color: #475569;
    font-size: 14px;
}

.confirm-modal .modal-footer {
    padding: 18px 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #fafbfc;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.modal-content {
    padding: 20px;
}

.modal-detail {
    display: flex;
    gap: 20px;

}

.modal-image {
    max-width: 50%;
    border-radius: 10px;
    max-height: 95vh;
}

.modal-info {
    flex: 1;
}

.modal-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.modal-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

/* 全屏模式 */
.fullscreen-mode {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    z-index: 2000;
    flex-direction: column;
}

.fullscreen-mode.active {
    display: flex;
}

.exit-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
}

.fs-prev,
.fs-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.fs-prev:hover,
.fs-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.fs-prev {
    left: 20px;
}

.fs-next {
    right: 20px;
}

.fs-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fs-image {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
}

.fs-info {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px 40px;
    border-radius: 15px;
    text-align: center;
}

.fs-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.fs-info p {
    font-size: 14px;
    opacity: 0.8;
}

.fs-qrcode {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 12px;
    color: #333;
}

.qrcode-container {
    width: 100px;
    height: 100px;
    margin-bottom: 8px;
    background: #f0f0f0;
}

/* 分类页面 */
.category-page {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    margin: 0 auto;
    box-sizing: border-box;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
    min-width: 250px;
}

.sidebar-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.category-list,
.year-list,
.level-list {
    list-style: none;
}

.category-list li,
.year-list li,
.level-list li {
    margin-bottom: 8px;
}

.category-list a,
.year-list a,
.level-list a {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.3s;
}

.category-list a:hover,
.category-list a.active,
.year-list a:hover,
.year-list a.active,
.level-list a:hover,
.level-list a.active {
    background: #f0f4ff;
    color: #667eea;
}

.main-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* 页面标题区 */
.page-intro-section {
    padding: 50px 0 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.page-intro {
    text-align: center;
}

.page-intro-title {
    font-size: 32px;
    color: #2d3436;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-intro-desc {
    font-size: 16px;
    color: #636e72;
}


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

.content-header h2 {
    font-size: 24px;
}

.result-count {
    color: #888;
    font-size: 14px;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
}

.search-bar button {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}



.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #666;
    transition: background 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 证书详情页 */
.cert-detail-page {
    padding: 30px 0;
}

/* ---- 面包屑 ---- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #999;
    margin: 24px 0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    color: #ccc;
}
.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

.back-link {
    line-height: 6;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #999;
    flex-wrap: wrap;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link a:hover {
    color: #5a6fd6;
}

.cert-detail {
    display: flex;
    gap: 40px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.detail-image-container {
    flex-shrink: 0;
    width: 50%;
    padding: 30px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.image-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.download-btn,
.download-original-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn {
    background: #667eea;
    color: white;
}

.download-btn:hover {
    background: #5a6fd6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.download-original-btn {
    background: #fff;
    color: #667eea;
    border: 1px solid #667eea;
}

.download-original-btn:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
}

.detail-info {
    flex: 1;
    padding: 30px;
}

.info-header {
    margin-bottom: 25px;
}

.info-header h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

.info-badges {
    display: flex;
    gap: 10px;
}

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

.info-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-item label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.info-item span {
    font-size: 15px;
    color: #333;
}

.info-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.info-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.related-work {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.related-work a {
    display: flex;
    gap: 20px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-work a:hover {
    background: #f0f0f0;
}

.related-work img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.work-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.work-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.work-detail-wrapper {
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.work-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 35px;
    color: white;
}

.work-detail-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.work-detail-main {
    display: flex;
    gap: 40px;
}

.work-image-container {
    flex-shrink: 0;
    width: 50%;
    padding: 30px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.work-detail-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.work-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.work-detail-info {
    flex: 1;
    padding: 30px;
}

.work-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-video {
    background: #f8f9fa;
    color: #667eea;
    border: 1px solid #e9ecef;
}

.action-video:hover {
    background: #eef2ff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.action-download {
    background: #667eea;
    color: white;
}

.action-download:hover {
    background: #5a6fd6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.work-info-section {
    flex: 1;
}

.work-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.meta-item {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: #f0f2ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.meta-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.work-detail-section {
    padding: 25px 35px;
    border-top: 1px solid #f0f0f0;
}

.section-header {
    margin-bottom: 18px;
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.section-header h3 i {
    color: #667eea;
    font-size: 16px;
}

.section-content {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

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

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

.description-content p:last-child {
    margin-bottom: 0;
}

.description-content strong,
.description-content b {
    font-weight: 600;
    color: #333;
}

.description-content em,
.description-content i {
    font-style: italic;
}

.description-content ul,
.description-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.description-content li {
    margin-bottom: 8px;
}

.description-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.description-content a:hover {
    border-bottom-color: #667eea;
    color: #5a6fd6;
}

.work-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.work-thumb-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.work-thumb-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.work-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.related-certificates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.related-cert-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-cert-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.related-cert-item a {
    text-decoration: none;
    color: inherit;
}

.related-cert-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.cert-info {
    padding: 15px;
    background: #f8f9fa;
}

.cert-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cert-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .work-detail-header {
        padding: 24px 20px;
    }

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

    .work-detail-main {
        flex-direction: column;
        gap: 0;
    }

    .work-image-container {
        width: 100%;
    }

    .work-info-grid {
        grid-template-columns: 1fr;
    }

    .work-detail-section {
        padding: 20px;
    }

    .work-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-certificates {
        grid-template-columns: repeat(2, 1fr);
    }
}

.info-header h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

.info-badges {
    display: flex;
    gap: 10px;
}

.year-badge {
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 14px;
}

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

.info-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-item label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.info-item span {
    font-size: 15px;
    color: #333;
}

/* 登录页面 */
.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
}

.login-hint {
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* 后台管理页面 */
.admin-page {
    min-height: 100vh;
    background: #f5f7fa;
}

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

.admin-sidebar {
    width: 250px;
    background: #2d3748;
    color: white;
    flex-shrink: 0;
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.sidebar-header {
    padding: 25px;
    border-bottom: 1px solid #4a5568;
}

.sidebar-header h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-name {
    font-size: 14px;
    color: white;
    font-weight: 500;
}

.user-role {
    font-size: 12px;
    color: #a0aec0;
    padding: 3px 8px;
    background: #4a5568;
    border-radius: 4px;
}

.admin-nav {
    padding: 20px 0;
}

.admin-nav a {
    display: block;
    padding: 15px 25px;
    color: #a0aec0;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.admin-nav a i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: #4a5568;
    color: white;
}

/* 导航子菜单 */
.nav-group {
    position: relative;
}

.nav-group>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.nav-group.open .nav-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    display: none;
    /* background: #3d4556; */
    padding: 10px 0;
}

.nav-group.open .nav-submenu {
    display: block;
}

.nav-submenu a {
    padding: 10px 35px;
    font-size: 13px;
}

.nav-submenu a:hover {
    background: #4a5568;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #4a5568;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.frontend-link {
    display: block;
    padding: 10px 15px;
    background: #48bb78;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 10px;
    transition: background 0.3s;
}

.frontend-link:hover {
    background: #38a169;
}

.profile-link {
    display: block;
    padding: 10px 15px;
    background: #4299e1;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background 0.3s;
}

.profile-link:hover {
    background: #3182ce;
}

.logout-link {
    display: block;
    padding: 10px 15px;
    color: #a0aec0;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background 0.3s, color 0.3s;
}

.logout-link:hover {
    color: white;
    background: #4a5568;
}

.admin-content {
    flex: 1;
    padding: 30px;
}

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

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

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

.welcome {
    color: #888;
}

.add-btn {
    padding: 10px 20px;
    background: #48bb78;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.add-btn:hover {
    background: #38a169;
}

/* 通用按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd6;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

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

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

.btn-sm.btn-primary {
    background: #667eea;
}

.btn-sm.btn-primary:hover {
    background: #5a6fd6;
}

.btn-sm.btn-danger {
    background: #dc3545;
}

.btn-sm.btn-danger:hover {
    background: #c82333;
}

/* 工具栏样式 */
.page-tools {
    margin-bottom: 20px;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 批量操作按钮 */
.batch-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* 操作按钮组 */
.action-btns {
    display: flex;
    gap: 5px;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}


/* 必填字段标记 */
.required {
    color: #dc3545;
    font-weight: bold;
}

/* checkbox样式 */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-wrapper label {
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

/* 表格链接样式 */
.text-primary {
    color: #667eea;
    text-decoration: none;
}

.text-primary:hover {
    text-decoration: underline;
}

/* 消息提示样式 */
.message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Quill编辑器样式优化 */
.ql-container {
    font-size: 15px;
    border-radius: 0 0 8px 8px;
}

.ql-toolbar {
    border-radius: 8px 8px 0 0;
    border-color: #ddd;
}

.ql-container {
    border-color: #ddd;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
}

.cert-icon {
    background: #ebf8ff;
}

.cat-icon {
    background: #f0fff4;
}

.feat-icon {
    background: #fffaf0;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    display: block;
}

.stat-label {
    color: #888;
    font-size: 14px;
}

/* ========== 后台统一样式 ========== */

/* 搜索区域 */
.search-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.search-form {
    width: 100%;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.search-group {
    flex: 1;
    min-width: 150px;
}

.search-keyword {
    flex: 2;
    min-width: 250px;
}

.search-group input,
.search-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.search-btn {
    padding: 10px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #5a6fd6;
}

.reset-btn {
    padding: 10px 24px;
    background: #6c757d;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.reset-btn:hover {
    background: #5a6268;
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.data-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #eee;
    font-size: 13px;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

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

.data-table .actions {
    display: flex;
    gap: 8px;
}

/* 操作按钮 */
.status-link {
    padding: 6px 12px;
    background: #d2712b;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.2s;
    margin-right: 8px;
}

.view-link {
    padding: 6px 12px;
    background: #4878bb;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.2s;
    margin-right: 8px;
}


.edit-link {
    padding: 6px 12px;
    background: #48bb78;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.2s;
    margin-right: 8px;
}

.edit-link:hover {
    background: #38a169;
}

.delete-link {
    color: #fc8181;
    text-decoration: none;
}

.delete-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.delete-btn:hover {
    background: #c82333;
}

/* end 操作按钮 */
/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px;
}

.page-link {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #fff;
    transition: all 0.2s;
}

.page-link:hover:not(.active) {
    background: #f0f0f0;
    border-color: #999;
}

.page-link.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.page-info {
    margin-left: 12px;
    color: #666;
    font-size: 14px;
}

/* 列表信息 */
.list-info {
    padding: 10px 0;
    color: #666;
    font-size: 14px;
}

/* 统计行 */
.stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-item {
    flex: 1;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-item .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    display: block;
}

.stat-item .stat-label {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* 批量操作 */
.batch-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.batch-btn {
    padding: 8px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.batch-btn:hover {
    background: #5a6fd6;
}

.batch-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved,
.status-normal {
    background: #d4edda;
    color: #155724;
}

.status-rejected,
.status-disabled {
    background: #f8d7da;
    color: #721c24;
}

/* 表单样式 */
.form-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.form-section h2 {
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.checkbox-label {
    font-weight: normal !important;
    cursor: pointer;
}

.hint {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.submit-btn {
    padding: 12px 30px;
    background: #48bb78;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.cancel-btn {
    padding: 12px 30px;
    background: #e2e8f0;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.data-table th,
.data-table td {
    padding: 15px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
}

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

.review-btn {
    background: #667eea;
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 13px;
    margin-right: 8px;
    transition: background 0.2s;
}



.delete-form {
    display: inline;
    margin-left: 5px;
}

/* 批量操作 */
.batch-form {
    margin-bottom: 20px;
}

.batch-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.batch-actions select,
.batch-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.batch-btn {
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
}

/* 选项卡 */
.tab-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.tab-bar a {
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s;
    font-weight: 500;
}

.tab-bar a:hover {
    background: #f0f0f0;
}

.tab-bar a.active {
    background: #667eea;
    color: white;
}

/* 状态标签 */
.status-active {
    display: inline-block;
    padding: 4px 12px;
    background: #48bb78;
    color: white;
    border-radius: 20px;
    font-size: 12px;
}

.status-hidden {
    display: inline-block;
    padding: 4px 12px;
    background: #e53e3e;
    color: white;
    border-radius: 20px;
    font-size: 12px;
}

/* 操作按钮 */
.hide-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-left: 8px;
}

.hide-btn:hover {
    background: #c53030;
}

.show-btn {
    background: #48bb78;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 8px;
}

.show-btn:hover {
    background: #38a169;
}

/* 状态区域 */
.status-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.status-section h3 {
    margin-bottom: 20px;
}

.status-grid {
    display: flex;
    gap: 30px;
}

.status-item {
    display: flex;
    gap: 15px;
}

.status-label {
    color: #888;
}

.status-value {
    font-weight: 600;
}

.status-value.success {
    color: #48bb78;
}

.status-value.error {
    color: #fc8181;
}

.status-value.warning {
    color: #ed8936;
}

/* 信息区域 */
.info-section {
    background: #ebf8ff;
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
}

.info-section h3 {
    margin-bottom: 15px;
    color: #2b6cb0;
}

.info-section ul {
    list-style: none;
}

/* 搜索区域样式 */
.search-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-form {
    margin: 0;
}

.search-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.search-group {
    flex: 1;
    min-width: 150px;
}

.search-group select,
.search-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.search-group.search-keyword {
    flex: 2;
    min-width: 250px;
}

.search-btn {
    padding: 10px 25px;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #3182ce;
}

/* 内容包装器 */
.content-wrapper {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-wrapper h2 {
    margin-bottom: 30px;
    font-size: 20px;
    color: #333;
}

/* 表格容器 */
.table-container {
    overflow-x: auto;
}

/* 空状态 */
.empty-state {
    padding: 60px 20px;
    color: #888;
    text-align: center;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-state p {
    margin-bottom: 20px;
    color: #888;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}


/* 后台表单 */
.admin-form {
    margin-top: 20px;
}

/* 操作按钮 */
.actions {
    white-space: nowrap;
}

.action-btn {
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s;
    margin-right: 8px;
    display: inline-block;
}

.action-btn.edit {
    background: #4299e1;
    color: white;
}

.action-btn.edit:hover {
    background: #3182ce;
}

.action-btn.delete {
    background: #fc8181;
    color: white;
}

.action-btn.delete:hover {
    background: #f56565;
}

/* 缩略图预览 */
.thumb-preview {
    object-fit: cover;
    border-radius: 5px;
}

/* 图片预览列表 */
.image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* 提示消息 */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.alert-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
}

.info-section li {
    padding: 8px 0;
    border-bottom: 1px solid #bee3f8;
}

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

/* 页脚 */
.footer {
    background: #2d3748;
    color: white;
    padding: 15px 0;
    margin-top: 50px;
}

.footer-content {
    display: none;

}

.footer-section {
    padding: 0 15px;
}

.footer-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    color: #a0aec0;
    font-size: 14px;
}

.footer-bottom .icp-link {
    display: inline-block;
    margin-left: 10px;
    color: #a0aec0;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-bottom .icp-link:hover {
    color: #667eea;
}


/* 作品展示相关样式 */
.work-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.work-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.work-thumb:hover {
    transform: scale(1.05);
}

.related-work {
    margin-top: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
}

.related-work a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.related-work img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.work-info h4 {
    margin: 0 0 5px 0;
    color: #667eea;
}

.work-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.related-certificates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.related-cert-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.related-cert-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-cert-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-cert-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.cert-info {
    padding: 10px;
}

.cert-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.cert-info p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.pagination a {
    padding: 8px 12px;
    font-size: 13px;
}

.footer-content {
    gap: 20px;
}

.footer-section h3 {
    font-size: 16px;
}

.footer-section p,
.footer-section ul li a {
    font-size: 13px;
}



/* 表单提交错误提示样式 */
.form-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-left: 4px solid #ff4d4f;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 16px 0;
    color: #cf1322;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-error::before {
    content: "✕";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #ff4d4f;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.form-error ul {
    margin: 0;
    padding-left: 20px;
}

.form-error li {
    margin: 4px 0;
}

/* 文件上传预览 */
.file-preview {
    margin-top: 10px;
    display: none;
}

.file-preview img {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 文件大小提示 */
.file-size-hint {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* 错误提示样式（弹窗） */
.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-left: 4px solid #ff4d4f;
    border-radius: 4px;
    padding: 16px 20px;
    color: #cf1322;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.error-toast.success {
    background: #f6ffed;
    border-color: #b7eb8f;
    border-left-color: #52c41a;
    color: #389e0d;
}

/* 有错误时的输入框 */
input.error,
textarea.error,
select.error {
    border-color: #ff4d4f !important;
}

input.error:focus,
textarea.error:focus,
select.error:focus {
    border-color: #ff4d4f !important;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2) !important;
}

/* 后台页面错误提示 */
.admin-page .form-section .form-error {
    margin-left: 0;
    margin-right: 0;
}



/* 下方为响应式样式 */



/* ==================== 移动优先响应式样式 ==================== */

/* 基础移动端样式 (默认 < 576px) */
.container {
    padding: 0 12px;
}

.header {
    padding: 12px 0;
}

.logo h1 {
    font-size: 22px;
}

.logo p {
    font-size: 12px;
}

.logo a {
    color: #fff;
    text-decoration: none;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}


/* 桌面导航默认隐藏，移动端显示汉堡菜单 */
.nav {
    display: none;
}

.mobile-menu-btn {
    display: flex;
}

.mobile-nav {
    display: block;
}

.filter-bar {
    padding: 12px 0;
    margin-bottom: 20px;
}

.filter-bar .container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.search-box {
    min-width: 100%;
}

.search-box input {
    font-size: 14px;
    padding: 10px 14px;
}

.filter-group {
    flex-wrap: wrap;
    gap: 8px;
    min-width: 60%;
}

.filter-group select {
    flex: 1;
    min-width: 100px;
    font-size: 13px;
    padding: 10px;
}

.masonry-grid {
    position: relative;
}

.cert-card {
    margin-bottom: 12px;
}

.card-content {
    padding: 12px;
}

.card-title {
    font-size: 14px;
    margin-bottom: 8px;
}

.card-meta {
    font-size: 12px;
    flex-wrap: wrap;
    gap: 5px;
}

.card-students {
    font-size: 12px;
    margin-top: 8px;
}

.lazy-image {
    max-height: 250px;
}

.section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.section-header h2 {
    font-size: 18px;
}

.cert-count {
    font-size: 12px;
}

.grid-section {
    padding: 20px 0;
}

/* 轮播区域 - 移动端上下布局 */
.carousel-section {
    padding: 20px 0;
}

.carousel-section h2 {
    font-size: 20px;
    margin-bottom: 18px;
}

.carousel {
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.carousel-item {
    flex-direction: column;
    display: flex;
}

.carousel-image-wrapper {
    padding: 10px;
}

.carousel-image {
    max-height: 220px;
}

.carousel-info {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    text-align: center;
    border-left: none;
    border-top: 1px solid #e0e0e0;
}

.carousel-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.carousel-info p {
    font-size: 14px;
    margin-bottom: 6px;
}

.carousel-prev {
    width: 40px;
    height: 40px;
    font-size: 20px;
    left: 10px;

}

.carousel-next {
    width: 40px;
    height: 40px;
    font-size: 20px;

    right: 10px;
}

.carousel-indicators {
    bottom: 15px;
    gap: 8px;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
}

/* 页脚移动端 */
.footer-content {
    flex-direction: column;
    gap: 24px;
}

.footer-section {
    text-align: center;
}

.footer-section ul {
    justify-content: center;
}

.footer-bottom p {
    font-size: 12px;
}

/* 侧边栏移动端 */
.category-page {
    flex-direction: column;
}

.sidebar {
    width: 100%;
    margin-bottom: 20px;
}

.main-content {
    width: 100%;
}

.cert-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}

.cert-detail {
    flex-direction: column;
}

.detail-image-container {
    width: 100%;
}

.info-grid {
    grid-template-columns: 1fr;
}

.member-auth-dropdown {
    display: none;
}

.btn-login img {
    margin-right: 0;
}

/* 大屏手机 (>= 576px) */
@media (min-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .masonry-grid {
        /* 列宽由 JS 控制 */
    }

    .cert-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .filter-group select {
        min-width: 100px;
    }
}


/* 平板 (>= 768px) */
@media (min-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .logo p {
        font-size: 14px;
    }

    .header {
        padding: 18px 0;
    }



    .nav a {
        padding: 6px 6px;
    }

    .filter-group select {
        min-width: calc(20% - 7px);
    }

    .lazy-image {
        max-height: 300px;
    }

    /* 轮播平板 - 上下布局 */
    .carousel-section {
        padding: 25px 0;
    }

    .carousel-section h2 {
        font-size: 22px;
    }

    .carousel-image {
        max-height: 280px;
    }

    .carousel-info {
        padding: 24px;
    }

    .carousel-info h3 {
        font-size: 20px;
    }

    .carousel-prev,
    .carousel-next {
        width: 44px;
        height: 44px;
    }

    .footer {
        padding: 25px 0;
    }



    .footer-section {
        text-align: left;
    }


}

/* 小桌面 (>= 1024px) */
@media (min-width: 1024px) {

    /* 显示桌面导航，隐藏汉堡菜单 */
    .nav {
        display: flex;
    }

    .member-auth-dropdown {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .mobile-nav {
        display: none;
    }

    .lazy-image {
        max-height: 320px;
    }

    /* 轮播小桌面 - 并排布局 */
    .carousel-item {
        flex-direction: row;
    }

    .carousel-image {
        max-height: 340px;
    }

    .carousel-info {
        width: 38%;
        min-width: 280px;
        max-width: 360px;
        padding: 30px;
        border-left: 1px solid #e0e0e0;
        border-top: none;
        text-align: left;
    }

    .carousel-info h3 {
        font-size: 22px;
    }

    .carousel-prev,
    .carousel-next {
        width: 46px;
        height: 46px;
    }

    .filter-bar .container {
        flex-direction: row;
        align-items: center;
    }

    .search-box {
        min-width: auto;
    }

    /* 页脚平板 */
    .footer-content {
        display: grid;
        flex-direction: row;
        flex-wrap: wrap;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
        margin-bottom: 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .footer-bottom {
        border-top: 1px solid #4a5568;
    }
}

/* 桌面 (>= 1280px) */
@media (min-width: 1280px) {
    .carousel-image {
        max-height: 400px;
    }

    .carousel-info {
        width: 34%;
        min-width: 300px;
        max-width: 400px;
    }

    .nav a {
        padding: 8px 18px;
        font-size: 15px;
    }

    .footer {
        padding: 35px 0;
    }
}

/* 大桌面 (>= 1920px) */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }


    .header {
        padding: 30px 0;
    }

    .logo h1 {
        font-size: 32px;
    }

    .logo p {
        font-size: 16px;
    }

    .nav a {
        padding: 12px 24px;
        font-size: 16px;
    }

    .cert-grid {
        gap: 30px;
    }

    .card-content {
        padding: 22px;
    }

    .card-title {
        font-size: 17px;
    }

    .carousel-section {
        padding: 50px 0;
    }

    .carousel-section h2 {
        font-size: 32px;
    }

    .carousel-image {
        max-height: 500px;
    }

    .carousel-info {
        padding: 50px;
        width: 45%;
        min-width: 360px;
        max-width: 550px;
    }

    .carousel-info h3 {
        font-size: 28px;
    }

    .carousel-info p {
        font-size: 16px;
    }

    .carousel-prev,
    .carousel-next {
        width: 54px;
        height: 54px;
        font-size: 26px;
    }
}

/* ==================== 后台管理响应式 ==================== */
@media (min-width: 768px) {
    .category-page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        margin-bottom: 0;
    }

    .main-content {
        width: calc(100% - 280px);
    }

    .cert-detail {
        flex-direction: row;
    }

    .detail-image-container {
        max-width: 50%;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 小屏手机优化 */
@media (max-width: 575px) {
    .logo h1 {
        font-size: 22px;
    }

    .btn-login span {
        display: none;
    }

    .btn-login img {
        margin-right: 0;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

/* ==================== 无限滚动加载样式 ==================== */
.infinite-scroll-loader {
    text-align: center;
    padding: 30px 0;
    color: #999;
}

.infinite-scroll-loader .spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: infiniteScrollSpin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes infiniteScrollSpin {
    to {
        transform: rotate(360deg);
    }
}

.infinite-scroll-end {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 14px;
}

/* ==================== 后台统一弹窗样式 ==================== */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.2s ease;
}

.admin-modal.active {
    display: flex;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.admin-modal .modal-content {
    background: white;
    border-radius: 12px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admin-modal .modal-content.modal-sm {
    max-width: 480px;
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    border-radius: 12px 12px 0 0;
}

.admin-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #1f2937;
    font-weight: 600;
}

.admin-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    line-height: 1;
}

.admin-modal-close:hover {
    color: #64748b;
}

.admin-modal .modal-body {
    padding: 24px;
}

.admin-modal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.admin-modal .form-group {
    margin-bottom: 0;
}

.admin-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.admin-modal textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.admin-modal textarea:focus {
    outline: none;
    border-color: #667eea;
}

.admin-modal .confirm-info {
    background: #f8fafc;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

.admin-modal .info-row {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-modal .info-row:last-child {
    margin-bottom: 0;
}

.admin-modal .info-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    min-width: 100px;
}

.admin-modal .info-row span:last-child {
    color: #1e293b;
    font-weight: 500;
    font-size: 14px;
}

.admin-modal .name-match-status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
}

.admin-modal .name-match-status.matched {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.admin-modal .name-match-status.not-matched {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ========== 后台统一卡片样式 ========== */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.card-header h3 {
    margin: 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 600;
}

.card-body {
    padding: 24px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #cbd5e1;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    color: #64748b;
    font-size: 16px;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* 赛事卡片网格 */
.competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.competition-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.competition-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.competition-card h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #1e293b;
}

.competition-card p {
    margin: 6px 0;
    font-size: 13px;
    color: #64748b;
}

/* 标签页 */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.tab {
    padding: 10px 24px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.tab:hover {
    background: #e2e8f0;
}

.tab.active {
    background: #667eea;
    color: white;
}

/* 排名徽章 */
.ranking-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.ranking-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
}

.ranking-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}

.ranking-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
}

.ranking-badge.other {
    background: #94a3b8;
}

/* 评分徽章 */
.score-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.score-badge.high {
    background: #dcfce7;
    color: #166534;
}

.score-badge.medium {
    background: #fffbeb;
    color: #92400e;
}

.score-badge.low {
    background: #fee2e2;
    color: #991b1b;
}

/* 评委评分列表 */
.reviewer-scores {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.reviewer-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 12px;
}

.reviewer-score .name {
    color: #64748b;
}

.reviewer-score .score {
    font-weight: 600;
    color: #667eea;
}

/* 阶段列表 */
.stages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stage-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 10px;
}

.stage-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

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

.stage-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.stage-meta {
    font-size: 13px;
    color: #64748b;
}

.stage-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 8px;
    font-weight: 500;
}

.stage-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* 面包屑 */
.breadcrumb {
    font-size: 13px;
    color: #94a3b8;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 评委列表 */
.reviewers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reviewer-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 10px;
}

.reviewer-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

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

.reviewer-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.reviewer-title {
    font-size: 13px;
    color: #667eea;
    font-weight: normal;
}

.reviewer-meta {
    font-size: 13px;
    color: #64748b;
}

.reviewer-stages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.reviewer-stages .stage-tag {
    margin-left: 0;
    background: #e0e7ff;
    color: #4338ca;
}

.reviewer-actions {
    flex-shrink: 0;
}

/* 维度行 */
.dimension-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.dimension-row input {
    flex: 1;
    min-width: 150px;
}

.remove-dim {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.remove-dim:hover {
    background: #fecaca;
}

/* 维度区域 */
.dimensions-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.dimensions-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #334155;
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
}