/* PC端首页样式 */
.pc-home-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

/* 头部样式 */
.pc-header {
    background: #1a1a1a;
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-icon {
    font-size: 24px;
    opacity: 0.8;
}

.header-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 分类导航样式 */
.category-nav {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 30px auto;
    max-width: 1400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.nav-container {
    width: 100%;
}

.nav-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 50px;
    background: #f5f5f5;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    color: #333;
}

.nav-tab:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-tab.active {
    background: #d4a574;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.nav-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    border-radius: 25px;
}

.tab-text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* 主要内容区域 */
.pc-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}


/* 活动内容区域 */
.activities-section {
    background: #2c3e50;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.activity-card {
    /* background: white; */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    position: relative;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.card-image {
    position: relative;
    /* height: 200px; */
    overflow: hidden;
}

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

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.activity-card:hover .card-overlay {
    opacity: 1;
}

.overlay-btn {
    padding: 12px 24px;
    background: white;
    color: #333;
    border: 2px solid #fff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.overlay-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.3);
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 20px 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.pagination-info {
    color: #bdc3c7;
    font-size: 14px;
}

.pagination {
    display: flex;
    gap: 8px;
}

.page-btn {
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    color: #bdc3c7;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.page-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.page-btn.current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* 右侧悬浮面板 */
.floating-panel {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 1000;
}

.panel-content {
    padding: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-details {
    flex: 1;
}

.user-name {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.user-status {
    display: block;
    color: #6c757d;
    font-size: 12px;
}

.panel-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #6c757d;
    transition: all 0.3s ease;
    text-decoration: none;
}

.panel-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.login-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.record-btn:hover {
    background: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.logout-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
}

.close {
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 30px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

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

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

/* 记录表格样式 */
.record-table {
    max-height: 400px;
    overflow-y: auto;
}

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

.record-table th,
.record-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.record-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.record-table td {
    color: #6c757d;
}

.status-pending {
    color: #ffc107;
    font-weight: 500;
}

.status-approved {
    color: #28a745;
    font-weight: 500;
}

.status-rejected {
    color: #dc3545;
    font-weight: 500;
}

.no-records {
    text-align: center;
    color: #6c757d;
    padding: 40px;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .pc-main {
        max-width: 100%;
        padding: 20px 15px;
    }
    
    .floating-panel {
        right: 15px;
        width: 180px;
    }
    
    .category-nav {
        margin: 20px auto;
        padding: 15px;
    }
    
    .nav-tab {
        min-width: 100px;
        height: 45px;
    }
    
    .tab-text {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .nav-tabs {
        gap: 8px;
    }
    
    .nav-tab {
        min-width: 90px;
        height: 40px;
    }
    
    .tab-text {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .pc-home-page {
        display: none;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-card {
    animation: fadeInUp 0.6s ease-out;
}

.activity-card:nth-child(1) { animation-delay: 0.1s; }
.activity-card:nth-child(2) { animation-delay: 0.2s; }
.activity-card:nth-child(3) { animation-delay: 0.3s; }
.activity-card:nth-child(4) { animation-delay: 0.4s; }
.activity-card:nth-child(5) { animation-delay: 0.5s; }
.activity-card:nth-child(6) { animation-delay: 0.6s; }
