/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a{
    text-decoration: none;
    color: inherit;
}
/* 头部导航整体样式 */
.pet-adoption-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: 'Arial', sans-serif;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

/* Logo样式 */
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
}

.logo img {
  margin-right: 10px;
}

.site-name {
  font-size: 20px;
  font-weight: bold;
  color: #ff6b6b;
}

/* 主导航菜单 */
.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  position: relative;
  margin: 0 15px;
}

.main-nav a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 0;
  transition: color 0.3s;
  display: block;
}

.main-nav a:hover {
  color: #ff6b6b;
}

/* 下拉菜单 */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu a {
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a:hover {
  background: #fff5f5;
}

.dropdown-icon {
  font-size: 10px;
  margin-left: 5px;
}

/* 右侧功能区 */
.header-actions {
  display: flex;
  align-items: center;
}

.favorites-btn, .login-btn, .post-pet-btn {
  padding: 8px 15px;
  margin-left: 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.favorites-btn {
  color: #ff6b6b;
  border: 1px solid #ff6b6b;
}

.favorites-btn:hover {
  background: #ffebee;
}

.login-btn {
  color: #555;
  border: 1px solid #ddd;
}

.login-btn:hover {
  background: #f5f5f5;
}

.post-pet-btn {
  background: #ff6b6b;
  color: white;
  border: 1px solid #ff6b6b;
}

.post-pet-btn:hover {
  background: #ff5252;
}

.heart-icon {
  margin-right: 5px;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .header-container {
    flex-direction: column;
    padding: 10px;
  }
  
  .main-nav {
    margin: 15px 0;
  }
  
  .header-actions {
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .main-nav li {
    margin: 5px 10px;
  }
  
  .header-actions a {
    padding: 6px 10px;
    font-size: 13px;
  }
}

.content-divider {
  display: flex;
  align-items: center;
  margin: 40px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #ff6b6b, transparent);
}

.divider-title {
  padding: 0 20px;
  text-align: center;
}

.divider-title span {
  font-size: 18px;
  color: #ff6b6b;
  font-weight: bold;
  position: relative;
  padding: 0 10px;
}

.divider-title span:before,
.divider-title span:after {
  content: "🐾";
  margin: 0 5px;
  font-size: 14px;
}


/* 卡片容器：Flexbox 或 Grid 布局 */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* 自动换行，最小宽度250px */
  gap: 20px; /* 卡片间距 */
  padding: 20px;
}

/* 单个卡片样式 */
.card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden; /* 防止图片圆角溢出 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover; /* 图片裁剪适应 */
}

.card h3 {
  margin: 10px 15px;
  font-size: 1.2rem;
}

.card p {
  margin: 0 15px 15px;
  color: #666;
}

.adopt-btn {
  display: block;
  width: 80%;
  margin: 0 auto 15px;
  padding: 8px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* 悬停效果 */
.card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* 悬浮阴影 */
}


/***************/

.card-divider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.divider-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.divider-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.card-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.divider-card h3 {
  color: #333;
  margin-bottom: 10px;
}

.divider-card p {
  color: #666;
  margin-bottom: 15px;
}

.card-link {
  color: #ff6b6b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.card-link:hover {
  color: #ff5252;
}

@media (max-width: 768px) {
  .card-divider {
    grid-template-columns: 1fr;
  }
  
  .divider-title span:before,
  .divider-title span:after {
    display: none;
  }
}

/***************/

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.page-btn {
  padding: 8px 15px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
}

.page-btn:hover:not(.disabled):not(.active) {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.page-btn.active {
  background: #ff6b6b;
  color: white;
  border-color: #ff6b6b;
}

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

/* 全局底部样式 */
.site-footer {
  background: #333;
  color: #fff;
  padding: 30px 0 0;
  font-size: 14px;
  margin-top: 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 自动适应列数 */
  gap: 30px;
  padding: 0 20px;
}

/* 标题样式 */
.site-footer h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid #444;
}

/* 友情链接 */
.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ff6b6b;
}

/* 二维码 */
.footer-qrcode img {
  display: block;
  margin-bottom: 10px;
  border: 1px solid #444;
}

/* 底部版权信息 */
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  background: #222;
  margin-top: 30px;
}

.footer-bottom p {
  margin: 5px 0;
  color: #999;
}

.footer-bottom a {
  color: #aaa;
  text-decoration: none;
  margin: 0 10px;
}

.footer-bottom a:hover {
  color: #fff;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}