/* 包含main、style、notice、footer 的所有内容 */

/* ==================== 基础样式 (来自style.css) ==================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* 中间内容容器必须设置 flex:1 占据中间区域 */
/*main,
.content,
.search-page {
  flex: 1;
}*/

.header {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #f8f9fa;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-main {
  display: flex;
  align-items: center;
  padding: 10px 30px;
}

.header-content {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: auto;
}

.logo {
  height: 35px;
  width: 35px;
  margin-right: 15px;
}

.title-container {
  display: inline-block;
  text-align: left;
}

.title-container a {
  text-decoration: none;
}

.site-title {
  font-size: 25px;
  font-weight: bold;
  color: #333;
  line-height: 1;
}

.content {
  padding: 20px;
}

/* 页脚样式 */
.site-footer {
  text-align: center;
  padding: 20px;
  margin-top: 20px;
  font-size: 13px;
  color: #666;
  background-color: #f8f9fa;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
}

.site-footer a, .footer-link {
  color: #666;
  text-decoration: underline;
}

.footer-link {
  color: #0000EE !important;
}

.footer-link:hover {
  color: #551A8B;
}

/* 分隔线 */
.divider {
  margin-top: 40px;
  border: none;
  border-top: 1px solid #ccc;
}

/* ==================== 公告栏样式 (来自notice.css) ==================== */
.notice-container {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 15px;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.marquee-inner {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
  color: #6c757d;
  font-size: 1.6em;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.notice-container:hover .marquee-inner {
  animation-play-state: paused;
}

/* ==================== 分类模块样式 (来自main.css) ==================== */
.category {
  margin-bottom: 20px;
  margin-left: 20px;
  margin-right: 20px;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
}

.category h2 {
  margin-top: 0;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  /*margin-top: 16px;*/
  order: 1;
}

.tool-item {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7bdff2, #b2f7ef);
  color: #003f5c;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.tool-item:hover {
  background: linear-gradient(135deg, #89f7fe, #66a6ff);
  color: #00263a;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.more-link {
  display: block;
  width: 120px;
  margin: 16px auto 0;
  padding: 8px 12px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  font-size: 15px;
  color: #0066ff;
  transition: all 0.3s ease;
  order: 2;
  margin-top: 15px;
  position: static !important;
}

.more-link:hover {
  background: #e9ecef;
  border-color: #ccc;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ==================== 响应式设计 (合并所有文件的媒体查询) ==================== */
@media (max-width: 768px) {
  /* 来自style.css */
  .header-main {
    padding: 8px 20px;
  }
  
  .logo {
    height: 35px;
    width: 35px;
    margin-right: 10px;
  }
  
  .site-title {
    font-size: 25px;
  }
  
  .content {
    padding: 15px !important;
  }

  /* 来自notice.css */
  .notice-container {
    padding: 6px 10px;
    font-size: 0.8em;
  }
  
  .marquee-inner {
    animation-duration: 15s;
  }

  /* 来自main.css */
  .tool-item {
    padding: 8px 14px;
    font-size: 14px;
  }
}

/* ==================== 安全区域适配 (来自style.css) ==================== */
/* 防抖动 */
@supports (padding: max(0px)) {
  .header, .content {
    padding-left: max(15px, env(safe-area-inset-left));
    padding-right: max(15px, env(safe-area-inset-right));
  }
  
  .header {
    padding-top: max(2px, env(safe-area-inset-top));
  }
}