/* 基础样式 */
body { font-family: 'Inter', system-ui, sans-serif; background-color: #f8fafc; margin: 0; padding: 0; height: 100vh; display: flex; align-items: center; justify-content: flex-start; flex-direction: column; gap: 14px; }
.main-content { padding-top: 40px; flex: 1; }
.container, .homecontainer { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.homecontainer {margin-top:40px;align-items: center; justify-content: flex-start; flex-direction: column; gap: 14px; }


/* 导航栏样式 */
.nav { background-color: white; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); position: fixed; width: 100%; z-index: 50; transition: all 0.3s ease; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { display: flex; align-items: center; }
.nav-logo i { color: #22c55e; font-size: 24px; margin-right: 8px; }
.nav-logo span { font-size: 18px; font-weight: bold; color: #334155; }
.nav-links { display: none; }
@media (min-width: 768px) { .nav-links { display: flex; align-items: center; gap: 24px; } }
.nav-links a { color: #475569; font-weight: 500; text-decoration: none; transition: color 0.3s ease; }
.nav-links a:hover { color: #22c55e; }
.nav-buttons { display: flex; align-items: center; gap: 12px; }

/* 按钮基础样式 */
.btn { padding: 8px 16px; border-radius: 4px; text-decoration: none; cursor: pointer; transition: all 0.3s ease; font-size: 14px; }
.btn-primary { background-color: #22c55e; color: white; border: none; }
.btn-primary:hover { background-color: #16a34a; }
.btn-secondary { background-color: transparent; color: #22c55e; border: 1px solid #22c55e; }
.btn-secondary:hover { background-color: rgba(34, 197, 94, 0.1); }

/* 移动端菜单样式 */
.mobile-menu-btn { display: block; color: #475569; font-size: 24px; }
@media (min-width: 768px) { .mobile-menu-btn { display: block; } }
.mobile-menu { display: none; background-color: white; border-top: 1px solid #e2e8f0; }
.mobile-menu-container { max-width: 1200px; margin: 0 auto; padding: 8px 16px; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu a { color: #475569; text-decoration: none; padding: 8px 0; transition: color 0.3s ease; }
.mobile-menu a:hover { color: #22c55e; }

/* 首页英雄区样式 */
.hero { background-color: #22c55e; color: white; padding: 10px 0; text-align: center; }
.hero-title { font-size: 25px; font-weight: bold; margin-bottom: 16px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.hero-subtitle { font-size: 15px; margin-bottom: 32px; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 20px; }
.stat-card { background-color: white; color: #334155; padding: 10px 20px; border-radius: 8px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); width: auto; transition: all 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.stat-number { font-size: 20px; font-weight: bold; color: #22c55e; margin-bottom: 3px; }
.stat-label { font-size: 16px; color: #64748b; }
.btn-hero { background-color: #22c55e; color: #fff; padding: 12px 44px; border-radius: 4px; text-decoration: none; font-weight: bold; display: inline-block; transition: all 0.3s ease; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);}
.btn-hero:hover { background-color: #22aa22; }

/* 最新动态样式 */
.section { padding: 10px 0; }
.section-title { font-size: 20px; font-weight: bold; color: #334155; padding: 10 30px; margin-bottom: 20px; text-align: center; }
.news-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: 1fr 1fr 1fr; } }
.news-card { background-color: white; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); border-radius: 8px; overflow: hidden; transition: all 0.3s ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); }
.news-image { height: 200px; background-color: #e2e8f0; overflow: hidden; }
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-content { padding: 0 24px 10px 24px; }
.news-title { font-size: 20px; font-weight: bold; color: #334155; margin-bottom: 10px; }
.news-meta { font-size: 14px; color: #64748b; margin-bottom: 10px; }
.news-excerpt { font-size: 16px; color: #475569; margin-bottom: 16px; }
.btn-read-more { color: #22c55e; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; }
.btn-read-more i { margin-left: 4px; }


.mobile-menu-btn { display: none; background: none; border: none; font-size: 20px; color: #333; cursor: pointer; padding: 5px; }
.mobile-menu {border-radius: 6px; display: none; position: absolute; right: 1%; top: 100%; background-color: #f7f7f7; border: 1px solid #eee; border-top: none; z-index: 100; min-width: 120px; }
.mobile-menu-container { display: flex; flex-direction: column; padding: 10px; gap: 10px; }
.mobile-menu-container a { line-height:15px; text-decoration: none; color: #333; padding: 8px; border-bottom: 1px solid #f5f5f5; white-space: nowrap; }
.mobile-menu-container a:last-child { border-bottom: none; }
.hamburger { width: 30px; height: 20px; position: relative; cursor: pointer; } /* 高度从24px改为20px */
.hamburger span { display: block; width: 100%; height: 4px; background-color: #333; border-radius: 2px; position: absolute; transition: all 0.3s ease; }
.hamburger span:first-child { top: 0; } /* 保持顶部线位置 */
.hamburger span:nth-child(2) { top: 8px; } /* 中间线从10px改为8px */
.hamburger span:last-child { bottom: 0; } /* 保持底部线位置 */
.hamburger:hover span { background-color: #22aa22; }

/* 模态框样式 */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 50; display: none; align-items: center; justify-content: center; }
.modal-content { background-color: white; border-radius: 8px; width: 90%; max-width: 400px; padding: 24px; transform: scale(0.95); transition: transform 0.3s ease; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-title { font-size: 20px; font-weight: bold; color: #334155; }
.close-modal { color: #94a3b8; font-size: 24px; cursor: pointer; }
.close-modal:hover { color: #64748b; }

/* 表单样式 */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: #475569; margin-bottom: 4px; }
.form-input { width: 100%; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 14px; color: #334155; outline: none; }
.form-input:focus { border-color: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2); }
.remember-me { display: flex; align-items: center; gap: 4px; font-size: 14px; color: #64748b; }
.forgot-password { font-size: 14px; color: #22c55e; text-decoration: none; }
.forgot-password:hover { text-decoration: underline; }
.form-footer { text-align: center; margin-top: 16px; font-size: 14px; color: #64748b; }
.form-footer a { color: #22c55e; text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }

/* 页脚样式 */
.footer { background-color: #334155; color: white; padding: 10px; }
.footer-content { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 768px) { .footer-content { flex-direction: row; justify-content: space-between; } }
.footer-section { flex: 1; }
.footer-title { font-size: 18px; font-weight: bold; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cbd5e1; text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: white; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: 8px; display: flex; align-items: center; }
.footer-contact i { margin-right: 8px; color: #22c55e; }
.footer-bottom { text-align: center; margin-top: 10px; padding-top: 4px; border-top: 1px solid #475569; color: #94a3b8; }

/* 排名页面样式 */
.ranking-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.ranking-table th, .ranking-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.ranking-table th { background-color: #f1f5f9; color: #334155; font-weight: 600; }
.ranking-table tr:hover { background-color: #f8fafc; }
.rank-number { font-weight: bold; color: #22c55e; }
.rank-avatar { width: 40px; height: 40px; border-radius: 50%; margin-right: 12px; }
.pagination { display: flex; justify-content: center; margin-top: 32px; gap: 8px; }
.pagination a { padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 4px; text-decoration: none; color: #334155; }
.pagination a:hover { background-color: #f8fafc; }
.pagination .active { background-color: #22c55e; color: white; border-color: #22c55e; }

/* 上传页面样式 */
.upload-form { max-width: 600px; margin: 0 auto; }
.upload-group { margin-bottom: 24px; }
.upload-label { display: block; font-size: 16px; font-weight: 500; color: #334155; margin-bottom: 8px; }
.upload-input { width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 16px; color: #334155; }
.upload-textarea { width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 16px; color: #334155; min-height: 120px; resize: vertical; }
.upload-file { display: block; padding: 10px 12px; border: 1px dashed #e2e8f0; border-radius: 4px; background-color: #f8fafc; text-align: center; cursor: pointer; }
.upload-file:hover { background-color: #f1f5f9; }
.upload-file input { display: none; }

/* 审核页面样式 */
.review-card { background-color: white; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); padding: 24px; margin-bottom: 24px; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.review-title { font-size: 20px; font-weight: bold; color: #334155; }
.review-status { padding: 4px 8px; border-radius: 4px; font-size: 14px; font-weight: 500; }
.status-pending { background-color: #fffbeb; color: #f59e0b; }
.status-approved { background-color: #f0fdf4; color: #10b981; }
.status-rejected { background-color: #fef2f2; color: #ef4444; }
.review-content { margin-bottom: 16px; color: #475569; }
.review-images { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.review-image { width: 100px; height: 100px; border-radius: 4px; overflow: hidden; }
.review-image img { width: 100%; height: 100%; object-fit: cover; }
.review-actions { display: flex; gap: 12px; }
.btn-approve { background-color: #10b981; color: white; padding: 8px 16px; border-radius: 4px; cursor: pointer; border: none; }
.btn-approve:hover { background-color: #059669; }
.btn-reject { background-color: #ef4444; color: white; padding: 8px 16px; border-radius: 4px; cursor: pointer; border: none; }
.btn-reject:hover { background-color: #dc2626; }
