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

a{
    text-decoration: none;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

/* 顶部导航栏样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: relative;
}

.nav-brand .logo {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-item {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-item.active,
.nav-item:hover {
    color: #1677ff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.download-btn {
    background: linear-gradient(135deg, #40a9ff, #1677ff);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icons i {
    color: #666;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
    display: none; /* 隐藏图标 */
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.nav-icons i:hover {
    color: #1677ff;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    height: 32px;
    box-sizing: border-box;
}

.login-btn:hover {
    color: #1677ff;
    background: rgba(22, 119, 255, 0.1);
}

.login-btn i {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 14px;
}

/* 主要内容区域 */
.main-content {
    padding: 20px 0;
}

/* 主要布局 */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: stretch;
    min-height: calc(100vh - 140px); /* 减去header和padding的高度 */
}

.main-content-area {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* 精选空投区域 */
/* featured-section 样式现在在 projects.css 中定义 */

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

.section-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-more-btn {
    color: #1677ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.view-more-btn:hover {
    color: #0958d9;
}

.section-header h2 {
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h2 i {
    color: #ff4d4f;
}

.daily-update {
    background-color: #ff4d4f;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.featured-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.card-image {
    height: 160px;
    position: relative;
    overflow: hidden;
}

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

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

.card-content {
    padding: 20px;
    background-color: white;
}

.card-content h3 {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}

.card-date {
    font-size: 13px;
    color: #999;
}

/* 分类标签区域 */
.category-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.category-tab {
    background-color: #f5f5f5;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.category-tab.active,
.category-tab:hover {
    background-color: #1677ff;
    color: white;
}

/* 搜索区域 */
.search-section {
    margin-bottom: 20px;
}

.search-bar {
    display: flex;
    gap: 12px;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.2);
}

.search-btn {
    background-color: #f5f5f5;
    border: 1px solid #d9d9d9;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background-color: #e6f7ff;
    border-color: #1677ff;
    color: #1677ff;
}

/* 项目表格区域 */
.projects-table-section {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.projects-table th {
    background-color: #fafafa;
    padding: 16px 12px;
    text-align: left;
    font-size: 13px;
    color: #666;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.projects-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.projects-table tr:hover {
    background-color: #fafafa;
}

.star-icon {
    color: #d9d9d9;
    cursor: pointer;
    transition: color 0.3s;
}

.star-icon:hover {
    color: #faad14;
}

.project-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
    overflow: hidden;
}

.project-logo .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.yellow-logo {
    background: linear-gradient(135deg, #ffec3d, #ff9800);
}

.purple-logo {
    background: linear-gradient(135deg, #7c4dff, #512da8);
}

.black-logo {
    background: linear-gradient(135deg, #424242, #212121);
}

.task-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.task-type.blue {
    background-color: #e6f7ff;
    color: #1677ff;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status.active {
    background-color: #fff7e6;
    color: #fa8c16;
}

.category {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.category.green {
    background-color: #f6ffed;
    color: #52c41a;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-links i {
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.social-links i:hover {
    color: #1677ff;
}

/* 分页组件 */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

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

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: white;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination-btn:hover:not(.disabled) {
    border-color: #1677ff;
    color: #1677ff;
}

.pagination-btn.disabled {
    color: #ccc;
    border-color: #f0f0f0;
    cursor: not-allowed;
    background: #fafafa;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 16px;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: white;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination-number:hover {
    border-color: #1677ff;
    color: #1677ff;
}

.pagination-number.active {
    background: #1677ff;
    border-color: #1677ff;
    color: white;
}

.pagination-dots {
    color: #999;
    padding: 0 8px;
    font-size: 14px;
}

.pagination-size {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.page-size-select {
    padding: 6px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.page-size-select:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.2);
}

/* 解锁内容按钮 */
.unlock-content {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.unlock-btn {
    background: linear-gradient(135deg, #40a9ff, #1677ff);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(22, 119, 255, 0.3);
    transition: all 0.3s;
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 119, 255, 0.4);
}

/* 公告侧边栏 */
.announcement-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.announcement-sidebar .sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #1677ff;
}

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

.sidebar-header i {
    color: #1677ff;
}

.announcement-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.announcement-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.announcement-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.announcement-item:hover {
    background-color: #fafafa;
    margin: 0 -12px;
    padding: 16px 12px;
    border-radius: 6px;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    height: fit-content;
    margin-top: 2px;
}

.announcement-badge.new {
    background: #52c41a;
}

.announcement-badge.hot {
    background: #ff4d4f;
}

.announcement-content {
    flex: 1;
}

.announcement-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.announcement-content p {
    font-size: 12px;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-date {
    font-size: 11px;
    color: #999;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    flex-shrink: 0;
}

.view-all-link {
    color: #1677ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: #0958d9;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr 280px;
        gap: 24px;
    }
    
    .announcement-sidebar .sidebar-card {
        padding: 20px;
    }
}

@media (max-width: 968px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto;
    }
    
    .announcement-sidebar {
        order: -1;
        height: auto;
    }
    
    .announcement-sidebar .sidebar-card {
        padding: 16px;
        height: auto;
    }
    
    .announcement-list {
        max-height: 400px;
        flex: none;
    }
    
    .sidebar-footer {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .featured-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-image {
        height: 140px;
    }

    .card-content {
        padding: 16px;
    }

    .card-content h3 {
        font-size: 14px;
    }

    .category-tabs {
        justify-content: center;
    }
    
    .projects-table {
        font-size: 12px;
    }
    
    .projects-table th,
    .projects-table td {
        padding: 12px 8px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .unlock-content {
        bottom: 20px;
        right: 20px;
    }
    
    .announcement-list {
        max-height: 300px;
        flex: none;
    }
    
    .announcement-content h4 {
        font-size: 13px;
    }
    
    .announcement-content p {
        font-size: 11px;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .pagination {
        order: 1;
    }
    
    .pagination-info {
        order: 2;
    }
    
    .pagination-size {
        order: 3;
    }
    
    .pagination-numbers {
        margin: 0 8px;
    }
    
    .pagination-btn {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .pagination-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .featured-cards {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 200px;
    }
    
    .category-tabs {
        gap: 8px;
    }
    
    .category-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 深色主题支持 */
.dark-theme .announcement-sidebar .sidebar-card {
    background: #2d2d2d;
    border-color: #404040;
}

.dark-theme .sidebar-header {
    border-bottom-color: #40a9ff;
}

.dark-theme .sidebar-header h3 {
    color: #e0e0e0;
}

.dark-theme .sidebar-header i {
    color: #40a9ff;
}

.dark-theme .announcement-item {
    border-bottom-color: #404040;
}

.dark-theme .announcement-item:hover {
    background-color: #404040;
}

.dark-theme .announcement-content h4 {
    color: #e0e0e0;
}

.dark-theme .announcement-content p {
    color: #ccc;
}

.dark-theme .announcement-date {
    color: #999;
}

.dark-theme .sidebar-footer {
    border-top-color: #404040;
}

.dark-theme .view-all-link {
    color: #40a9ff;
}

.dark-theme .view-all-link:hover {
    color: #69c0ff;
}

/* 分页组件深色主题 */
.dark-theme .pagination-wrapper {
    background: #404040;
    border-top-color: #555;
}

.dark-theme .pagination-info {
    color: #ccc;
}

.dark-theme .pagination-btn {
    background: #2d2d2d;
    border-color: #555;
    color: #ccc;
}

.dark-theme .pagination-btn:hover:not(.disabled) {
    border-color: #40a9ff;
    color: #40a9ff;
}

.dark-theme .pagination-btn.disabled {
    background: #404040;
    border-color: #555;
    color: #666;
}

.dark-theme .pagination-number {
    background: #2d2d2d;
    border-color: #555;
    color: #ccc;
}

.dark-theme .pagination-number:hover {
    border-color: #40a9ff;
    color: #40a9ff;
}

.dark-theme .pagination-number.active {
    background: #40a9ff;
    border-color: #40a9ff;
    color: white;
}

.dark-theme .pagination-size {
    color: #ccc;
}

.dark-theme .page-size-select {
    background: #2d2d2d;
    border-color: #555;
    color: #ccc;
}

.dark-theme .page-size-select:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(64, 169, 255, 0.2);
}

/* 会员遮罩层 */
.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.unlock-content-box {
    text-align: center;
    padding: 40px 20px;
    max-width: 280px;
}

.unlock-icon {
    margin-bottom: 20px;
}

.unlock-icon i {
    font-size: 48px;
    color: #1677ff;
    opacity: 0.8;
}

.unlock-content-box h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 0 16px 0;
}

.unlock-content-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.unlock-btn-overlay {
    background: linear-gradient(135deg, #1677ff, #40a9ff);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

.unlock-btn-overlay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 119, 255, 0.4);
}

.unlock-btn-overlay i {
    font-size: 16px;
}

/* 深色主题下的遮罩层 */
.dark-theme .member-overlay {
    background: rgba(45, 45, 45, 0.95);
}

.dark-theme .unlock-content-box h3 {
    color: #e0e0e0;
}

.dark-theme .unlock-content-box p {
    color: #ccc;
}

.dark-theme .unlock-icon i {
    color: #40a9ff;
} 