/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(120deg, #e6f7ff 0%, #d1eaff 100%);
    padding-top: 80px; /* 避免内容被标题栏遮挡 */
    padding-bottom: 100px; /* 避免内容被页脚遮挡 */
}

/* 毛玻璃通用效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 标题栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 5%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 45px;
    width: 45px;
    border-radius: 6px;
}

.header h1 {
    color: #0a3d62;
    font-size: 1.6rem;
}

.announcement-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  width: 300px;
  text-align: center;
}

.center {
  text-align: center;
}

.modal-content h3 {
  color: #2b79d9; /* 蓝色标题 */
  margin-top: 0;
}

.close-modal {
  background: #2b79d9;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 15px;
}

.close-modal:hover {
  background: #1a68c9;
}

/* 按钮样式 */
.glass-btn {
    background: rgba(12, 62, 112, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #0a3d62;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.glass-btn:hover {
    background: rgba(12, 62, 112, 0.35);
    transform: translateY(-2px);
}

.switch-btn {
    padding: 8px 25px;
    font-size: 1rem;
}

/* 主内容区 */
.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.center {
    text-align: center;
}

.glass-card {
    padding: 30px;
    border-radius: 16px;
    color: #0a3d62;
}

.glass-card h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.resource-item {
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-5px);
}

.resource-item h3 {
    margin-bottom: 10px;
    color: #0a3d62;
}

.resource-item p {
    color: #2c3e50;
    margin-bottom: 15px;
}

.download-btn {
    width: 100%;
    text-align: center;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

/* 页脚样式 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

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

.footer p {
    color: #0a3d62;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.3rem;
    }
    .resource-grid {
        grid-template-columns: 1fr;
    }
}