/* 引入公共样式 */
@import url('common.css');

/* 公告页面特定样式 */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f8fffe 0%, #e8f8f5 30%, #d5f4e6 100%);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(180, 239, 78, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 57, 210, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(26, 102, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Header 样式覆盖 */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(180, 239, 78, 0.2);
  box-shadow: 0 2px 20px rgba(180, 239, 78, 0.1);
}

/* 导航样式 */
nav#navigation ul li a {
  color: #2c3e50 !important;
  font-weight: 600;
  background: transparent;
}

nav#navigation ul li a:hover,
nav#navigation ul li a.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #B4EF4E 0%, #9DE83F 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 130px;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.hero-text {
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2c3e50;
  line-height: 1.2;
}

.hero-subtitle-cn {
  font-size: 1.5rem;
  color: #5a6c7d;
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.hero-description-cn {
  font-size: 1.1rem;
  color: #5a6c7d;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* 公告部分 */
.announcements-section {
  padding: 4rem 0;
  background: #ffffff;
}

.announcements-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #5a6c7d;
  font-weight: 500;
}

.announcements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.announcement-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.announcement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: rgba(180, 239, 78, 0.3);
}

.announcement-card.important {
  border-color: rgba(255, 57, 210, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #fef7ff 100%);
}

.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.announcement-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, #B4EF4E 0%, #9DE83F 100%);
  color: #ffffff;
}

.announcement-badge.important {
  background: linear-gradient(135deg, #FF39D2 0%, #E91E63 100%);
}

.announcement-date {
  color: #5a6c7d;
  font-size: 0.9rem;
}

.announcement-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.announcement-excerpt {
  color: #5a6c7d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.read-more {
  color: #1A66FF;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #0052E6;
}

.read-more::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: translateX(3px);
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.pagination-btn {
  padding: 0.8rem 1.5rem;
  border: 2px solid #B4EF4E;
  background: transparent;
  color: #2c3e50;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #B4EF4E;
  color: #ffffff;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  color: #5a6c7d;
  font-weight: 500;
}

/* 订阅部分 */
.subscribe-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fffe 0%, #e8f8f5 100%);
  text-align: center;
}

.subscribe-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.subscribe-description {
  font-size: 1.1rem;
  color: #5a6c7d;
  margin-bottom: 2rem;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.subscribe-form input {
  flex: 1;
  padding: 1rem;
  border: 2px solid rgba(180, 239, 78, 0.3);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.subscribe-form input:focus {
  border-color: #B4EF4E;
}

.subscribe-form button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #B4EF4E 0%, #9DE83F 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.subscribe-form button:hover {
  transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .announcements-grid {
    grid-template-columns: 1fr;
  }
  
  .subscribe-form {
    flex-direction: column;
  }
  
  .pagination {
    flex-direction: column;
    gap: 0.5rem;
  }
}