@charset "UTF-8";

/* ============================================================
   宠物世界门户 - 全局样式
   ============================================================ */

/* ===== CSS变量 ===== */
:root {
  --pet-orange: #ff6b35;
  --pet-orange-light: #ff8c5a;
  --pet-orange-dark: #e55a25;
  --pet-teal: #2ec4b6;
  --pet-purple: #7c5cbf;
  --pet-pink: #e84393;
  --pet-green: #00b894;
  --pet-blue: #0984e3;
  --pet-bg-light: #fdf6f0;
  --pet-text-primary: #222;
  --pet-text-secondary: #666;
  --pet-text-muted: #999;
  --pet-border: #f0f0f0;
  --pet-shadow: rgba(0, 0, 0, 0.06);
}

/* ===== 基础 ===== */
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--pet-text-primary);
}

/* ============================================================
   头部导航样式
   ============================================================ */

/* -- 品牌栏 -- */
.pet-brand-bar {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  z-index: 1000;
}
.pet-brand-bar.shadow-sm {
  box-shadow: 0 2px 8px var(--pet-shadow);
}

/* Logo */
.pet-logo {
  display: inline-block;
  text-decoration: none;
}
.pet-logo img {
  height: 48px;
  max-width: 100%;
}

/* -- 单行头部导航（Logo + 栏目 + 用户） -- */
.pet-header {
  background: linear-gradient(135deg, #fffdf7 0%, #fbf8ee 100%);
  border-bottom: 1px solid #f2ead8;
  position: sticky;
  top: 0;
  z-index: 1001;
}
.pet-header .container {
  min-height: 54px;
}
.pet-nav-scroll {
  flex: 1;
  overflow-x: auto;
  margin: 0 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.pet-nav-scroll::-webkit-scrollbar {
  display: none;
}
.pet-nav-links {
  flex-wrap: nowrap;
  gap: 3px;
}
.pet-nav-links .nav-link {
  color: #4b5563;
  font-size: 15px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.pet-nav-links .nav-link:hover {
  color: #9a7a1f;
  background: rgba(212, 190, 120, 0.24);
}
.pet-nav-links .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, #d7bf72 0%, #b9c96f 100%);
  box-shadow: 0 4px 12px rgba(191, 171, 102, 0.34);
}
.pet-header-user {
  flex-shrink: 0;
}

/* 搜索栏 */
.pet-search-form .input-group {
  border: 2px solid var(--pet-orange);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}
.pet-search-select {
  border: none;
  border-right: 1px solid #eee;
  border-radius: 0;
  font-size: 13px;
  padding: 6px 12px;
  background: #fafafa;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.pet-search-input {
  border: none;
  font-size: 13px;
  padding: 8px 16px;
  box-shadow: none !important;
}
.pet-search-input:focus {
  outline: none;
}
.pet-search-input::placeholder {
  color: #ccc;
}
.pet-search-btn {
  background: var(--pet-orange);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 0 22px 22px 0;
  transition: background 0.2s;
}
.pet-search-btn:hover {
  background: var(--pet-orange-dark);
  color: #fff;
}

/* 热门搜索 */
.pet-hot-search {
  font-size: 12px;
  padding-left: 4px;
}
.pet-hot-search-label {
  color: var(--pet-text-muted);
}
.pet-hot-search-link {
  color: var(--pet-text-secondary);
  text-decoration: none;
  margin-right: 10px;
  transition: color 0.15s;
}
.pet-hot-search-link:hover {
  color: var(--pet-orange);
}

/* 用户区域 */
.pet-user-dropdown {
  position: relative;
}
.pet-user-trigger {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 20px;
  transition: background 0.15s;
}
.pet-user-trigger:hover {
  background: #f8f8f8;
}
.pet-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
}
.pet-user-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
  cursor: pointer;
}
.pet-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--pet-text-primary);
  line-height: 1.2;
}
.pet-user-level {
  font-size: 11px;
  color: var(--pet-text-muted);
  line-height: 1.2;
}
.pet-user-arrow {
  font-size: 10px;
  color: #ccc;
}
.pet-user-menu {
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-top: 8px;
  min-width: 160px;
}
.pet-user-menu .dropdown-item {
  font-size: 13px;
  padding: 8px 16px;
  color: var(--pet-text-secondary);
}
.pet-user-menu .dropdown-item:hover {
  background: #fdf8ea;
  color: #9a7a1f;
}

/* 登录/注册按钮 */
.pet-auth-buttons {
  display: flex;
  align-items: center;
}
.pet-btn-login {
  color: #8e7428;
  border: 1px solid #d8c58a;
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 18px;
  border-radius: 20px;
  transition: all 0.2s;
}
.pet-btn-login:hover {
  background: #d7bf72;
  color: #fff;
  border-color: #d7bf72;
  box-shadow: 0 4px 10px rgba(191, 171, 102, 0.28);
}
.pet-btn-register {
  background: linear-gradient(135deg, #d7bf72 0%, #b9c96f 100%);
  color: #fff;
  border: 1px solid #b9c96f;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 18px;
  border-radius: 20px;
  margin-left: 8px;
  transition: all 0.2s;
}
.pet-btn-register:hover {
  background: linear-gradient(135deg, #cfb463 0%, #aebe5f 100%);
  border-color: #aebe5f;
  color: #fff;
  box-shadow: 0 5px 12px rgba(191, 171, 102, 0.32);
}

/* 移动端搜索图标 */
.pet-mobile-search {
  color: var(--pet-text-secondary);
  font-size: 18px;
  padding: 4px;
  transition: color 0.15s;
}
.pet-mobile-search:hover {
  color: var(--pet-orange);
}

/* -- 第三行：频道导航条 -- */
.pet-channel-nav {
  background: #fff;
  border-bottom: 3px solid var(--pet-orange);
  box-shadow: 0 2px 6px var(--pet-shadow);
  position: sticky;
  top: 0;
  z-index: 999;
}
.pet-channel-links {
  margin: 0 auto;
  flex-wrap: nowrap;
}
.pet-channel-links .nav-link {
  font-size: 15px;
  font-weight: 500;
  padding: 14px 20px;
  color: var(--pet-text-primary) !important;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}
.pet-channel-links .nav-link:hover {
  color: var(--pet-orange) !important;
}
.pet-channel-links .nav-link.active {
  color: var(--pet-orange) !important;
  font-weight: 600;
}
.pet-channel-links .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--pet-orange);
  border-radius: 2px;
}

/* ============================================================
   通用组件样式（保留原有）
   ============================================================ */

.cm-hidden {
  display: none;
}

.cm-pointer {
  cursor: pointer;
}

.cm-ff-yh {
  font-family: "Microsoft YaHei", 微软雅黑, "MicrosoftJhengHei", serif;
}

.cm-block-head-bottom {
  border-bottom: solid 2px;
  border-color: var(--pet-orange);
  display: inline-block;
  padding-bottom: 0.3rem;
}

.cm-trans-bottom {
  width: 100%;
  bottom: 0;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.4);
}

.cm-media-img {
  max-width: 180px;
  max-height: 120px;
}

@media screen and (max-width: 767px) {
  .cm-media-img {
    max-width: 120px;
    max-height: 80px;
  }
}

.cm-link {
  color: #212529;
}
.cm-link:hover {
  color: var(--pet-orange);
}

.es-highlight em {
  color: #dc3545;
  font-style: normal;
}

.pet-right-ad {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--pet-border);
  background: #fff;
  min-height: 320px;
}

.pet-right-ad img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.pet-right-ad-script {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.pet-right-ad-placeholder {
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c84f4f;
  font-size: 22px;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #f8fbff 0%, #f6fffd 100%);
}

/* ============================================================
   响应式调整
   ============================================================ */

@media (max-width: 991.98px) {
  .pet-header .container {
    min-height: 46px;
  }
  .pet-nav-scroll {
    margin: 0 12px;
  }
  .pet-nav-links .nav-link {
    font-size: 14px;
    padding: 4px 6px;
  }
  .pet-channel-links .nav-link {
    font-size: 13px;
    padding: 10px 12px;
  }
}

@media (max-width: 575.98px) {
  .pet-header .container {
    min-height: 40px;
  }
  .pet-nav-scroll {
    margin: 0 8px;
  }
  .pet-nav-links .nav-link {
    font-size: 13px;
    padding: 3px 5px;
  }
  .pet-logo img {
    height: 36px;
  }
  .pet-channel-links .nav-link {
    font-size: 12px;
    padding: 8px 10px;
  }
}
