/*
Theme Name: Search Theme
Theme URI: https://example.com/search-theme
Author: Your Name
Author URI: https://example.com
Description: A simple search-focused WordPress theme.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.5.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: search-theme
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 0;
    margin: 0;
}
    .icon-star:before {
        content: "★";
        font-family: Arial;
    }
    .icon-fangwen:before {
        content: "访问";
        font-family: inherit;
        font-size: 14px;
    }
/* 新增通知样式 */
.action-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 已收藏状态样式 */
.favorite-btn.favorited {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #ef4444;
}

.favorite-btn.favorited:hover {
    background-color: #fecaca;
}
/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

/* 头部占位元素 */
.header-placeholder {
    height: 63px;
}

@media (max-width: 992px) {
    .header-placeholder {
        height: 63px;
    }
}

/* 标题过渡动画 */
head > title {
    display: block;
    transition: opacity 0.3s ease;
}

/* Header */
.site-header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.site-title {
    margin: 0;
    font-size: 2.5rem;
}
.site-title a {
    margin: 0;
    font-size: 2.5rem;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #CCCCCC;
}
.site-description {
    margin: 10px 0 0;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* ====================== */
/* 头部样式 */
/* ====================== */
.hua-header {
  position: fixed;
  top: 0;
  width: 100%;
  text-align: center;
  z-index: 998;
  transition: .3s;
}

.hua-header.slideUp {
  top: -63px;
}

.hua-navbar {
  position: relative;
  z-index: 999;
  height: 63px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.97);
}

.hua-navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.hua-navbar .logo{padding:12px 0;display: block;float: left;}
.hua-navbar .logo img{height: 40px;width: auto;}


.hua-navbar .nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hua-navbar .nav-list li {
  position: relative;
}

.nav-list li.current a {
  color: #007bff;
}

.nav-list li em {
  position: absolute;
  height: 63px;
  line-height: 63px;
  right: 2px;
  cursor: pointer;
}

.nav-list li em i {
  font-size: 22px;
}

.nav-list>li>a {
  height: 63px;
  line-height: 63px;
  display: inline-block;
  font-weight: 600;
  padding: 0 15px;
  font-size: 15px;
  text-decoration: none;
  color: #333;
}

.nav-list .sub-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  font-size: 14px;
  padding: 9px 0;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  line-height: 32px;
  min-width: 119px;
  width: 100%;
}

.nav-list .sub-nav a {
  display: inline-block;
  width: 100%;
  padding: 5px 0;
  color: #000;
  background-color: #fff;
  text-decoration: none;
}

.nav-list .sub-nav li {
  display: inline-block;
  width: 100%;
}

.nav-list li:hover .sub-nav {
  display: block;
}

.nav-list li:hover a,
.nav-list li:hover i.down {
  color: #0e52ff
}

.nav-list li:hover .sub-nav a {
  color: #000
}

.nav-list li .sub-nav a:hover {
  color: #0e52ff;
}

.nav-list li .down:before {
  display: inline-block;
  transition: all .15s ease;
}
.dropdown-arrow {
  display: none !important;
}

/* 修改后 */
.nav-list li:hover .down {
  transform: rotate(180deg);
}
/* 添加这一条规则 */
.nav-list li:hover .down {
  color: #0e52ff;
  transform: rotate(180deg);
}

.nav-right {
  display: flex;
  font-size: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-right li {
  position: relative;
}

.nav-right a {
  display: inline-block;
  padding: 0 15px;
  transition: ease-in color .15s;
  position: relative;
  color: #333;
  text-decoration: none;
}

.nav-right>li>a {
  padding: 25px 10px 23px
}

.nav-right .nav-search {
  padding: 15px 12px 15px;
}

.nav-right .nav-search .iconfont {
  font-size: 24px;
}

.nav-right .nav-search a {
  padding: 6px 0;
  z-index: 99;
}

.search-box {
  position: fixed;
  left: 0;
  right: 0;
  top: -100px;
  z-index: 9998;
  padding: 6.5px 0;
  background: #fff;
  transition: top 0.3s cubic-bezier(.4, 0, .2, 1);
  display: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-box.show {
  top: 0;
  display: block;
}

.search-box .container {
  max-width: 800px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #007bff;
  text-decoration: none;
}

.search-close .iconfont {
  font-size: 24px;
  padding: 5px;
}

.search-input {
  text-align: center;
  float: left;
  font-size: 20px;
  font-weight: 700;
  border: none;
  width: 100%;
  height: 50px;
  padding: 4px 12px;
  border-right: none;
  font-size: 16px;
  border-radius: 2px 0 0 2px;
  outline: none;
  border-bottom: 2px solid #007bff;
}

.search-box-form a {
  margin-left: 20px;
  color: #999
}

.search-box-form a:hover {
  color: #0d7ffa
}

.nav-right .nav-button {
  display: none;
}

.menu-btn {
  display: none;
  padding: 6px 0;
  float: right;
  margin-left: 15px;
  cursor: pointer;
}

.menu-btn:before,
.menu-btn:after,
.menu-btn span {
  display: block;
  height: 2px;
  background-color: #000;
  content: '';
  transition: all 0.3s;
}

.menu-btn:before {
  width: 24px;
}

.menu-btn:after {
  width: 18px;
  margin-left: 6px;
  margin-top: 6px;
}

.menu-btn span {
  width: 12px;
  margin: 6px 0 6px 12px;
}

/* 移动端菜单样式 */
@media (max-width: 992px) {
  .hua-navbar .nav-list {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding-top: 70px;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .hua-navbar .nav-list.show {
    right: 0;
  }
  
  .nav-list>li>a {
    width: 100%;
    height: auto;
    line-height: 1.5;
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
  }
  
  .nav-list .sub-nav {
    position: static;
    display: none;
    box-shadow: none;
    padding: 0;
  }
  
  .nav-list li .sub-nav a {
    padding-left: 30px;
  }
  
  .nav-right .nav-button {
    display: block;
  }
  
  .menu-btn {
    display: block;
  }
  
  .hua-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .canvas-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
    cursor: pointer;
  }
  
  .canvas-close .iconfont {
    font-size: 24px;
  }
  
  .dot {
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 2;
  }
}

/* ====================== */
/* 新搜索框样式 */
/* ====================== */

.search-box {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 63px;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-box .container {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.search-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #007bff;
  text-decoration: none;
  z-index: 10;
}

.search-close .iconfont {
  font-size: 24px;
  padding: 5px;
}

.search-input {
  width: 100%;
  height: 100%;
  padding: 0 50px 0 20px;
  border: none;
  font-size: 18px;
  font-weight: 600;
  outline: none;
  background: transparent;
}

.search-input::placeholder {
  color: #999;
  font-weight: normal;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-input {
    font-size: 16px;
    padding: 0 40px 0 15px;
    min-height: 44px;
  }
  
  .search-close {
    right: 10px;
  }
  
  .search-close .iconfont {
    font-size: 20px;
  }
}

/* 确保搜索框在移动设备上正确显示 */
@media (max-width: 992px) {
  .search-box {
    height: 63px;
  }
}
/* 图标字体 */





/* 面包屑导航样式 */
.breadcrumb {
    padding: 10px 0;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #6c757d;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #1a6ca9;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #adb5bd;
}

.current-category {
    color: #2c3e50;
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.9rem;
        padding: 12px 0;
        margin-bottom: 15px;
    }
    
    .breadcrumb-separator {
        margin: 0 8px;
    }
}

/* Search section */
.search-section {
    margin: 50px auto;
    max-width: 800px;
    text-align: center;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-input {
  width: 100%;
  height: 100%;
  padding: 0 50px 0 20px;
  border: none;
  font-size: 18px;
  font-weight: 600;
  outline: none;
  background: transparent;
  -webkit-appearance: none;
  border-radius: 0;
}

.search-input::placeholder {
  color: #999;
  font-weight: normal;
}

.search-options {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.search-option {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-button {
    padding: 15px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #2980b9;
}

/* Results section */
.results-container {
    margin-top: 30px;
    text-align: left;
}

.result-item {
    background-color: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.result-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.result-title a {
    color: #2c3e50;
    text-decoration: none;
}

.result-title a:hover {
    color: #3498db;
}

.result-excerpt {
    color: #666;
}

.result-meta {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* ===================== */
/* 辅助组件样式 */
/* ===================== */

/* 分页样式 - 美化的部分 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 0;
    padding: 10px 0;
}

.pagination .nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #3498db;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pagination .page-numbers:hover {
    background: #f5f9ff;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, #3498db, #1a6ca9);
    color: white;
    border-color: #3498db;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.pagination .prev,
.pagination .next {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    background: #f0f8ff;
    border: 1px solid #d0e8ff;
}

.pagination .prev:before {
    content: "←";
    font-weight: bold;
}

.pagination .next:after {
    content: "→";
    font-weight: bold;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #e1f0ff;
    border-color: #3498db;
}

.pagination .dots {
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: -50px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: bottom 0.3s ease-in-out, background-color 0.3s;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    bottom: 200px;
}

.back-to-top:hover {
    background-color: #2980b9;
}

/* 纯CSS箭头 */
.arrow-up {
    display: block;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 16px solid white;
    transform: translateY(-2px);
}

/* 平滑加载效果 */
/* ===================== */
/* 加载状态样式 */
/* ===================== */
.articles-grid.loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 6px;
}

.loading-overlay .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(52, 152, 219, 0.2);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 平滑过渡效果 */
.articles-container {
    position: relative;
    transition: min-height 0.3s ease;
}

.articles-grid {
    transition: opacity 0.3s ease;
}

/* Loading states */
.global-loading {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    display: none;
    z-index: 1000;
}

.loading-more, .search-status {
    text-align: center;
    padding: 20px;
    color: #666;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s ease-in-out infinite;
}

/* Cache indicator */
.cache-indicator {
    display: inline-block;
    margin-left: 10px;
    color: #4CAF50;
    font-size: 1.2em;
    cursor: help;
}

/* Load more button */
.load-more-container {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
}

.load-more-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-button:hover {
    background: #005a87;
}

.load-progress {
    font-size: 0.8em;
    color: #999;
    margin-top: 5px;
}

/* Error states */
.load-error, .search-status.error, .load-more-error {
    color: #d63638;
    text-align: center;
    padding: 20px;
}

.retry-button {
    background: none;
    border: 1px solid #d63638;
    color: #d63638;
    padding: 3px 8px;
    margin-left: 10px;
    border-radius: 3px;
    cursor: pointer;
}

.all-results-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

/* ========================================= */
/* 响应式调整 */
/* ========================================= */
@media (max-width: 992px) {
    /* 桌面端调整 */
    .breadcrumb {
        padding-top: 15px;
    }
      .hua-navbar .nav-list li.menu-item-has-children > a {
    position: relative;
    padding-right: 40px;
  }

  .hua-navbar .nav-list li.menu-item-has-children .down {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 12px;
    transition: transform 0.3s ease;
  }

  .hua-navbar .nav-list li.menu-item-has-children:hover .down {
    transform: translateY(-50%) rotate(180deg);
  }
}

/* 会员头部区域样式 */
    .gmc-header-member {
        display: flex;
        align-items: center;
        margin-left: 15px;
        position: relative;
    }
    
    .gmc-member-avatar {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        overflow: hidden;
        cursor: pointer;
        border: 2px solid #f0f0f0;
        transition: all 0.3s ease;
    }
    
    .gmc-member-avatar:hover {
        border-color: #1a73e8;
        transform: scale(1.05);
    }
    
    .gmc-member-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .gmc-login-links {
        display: flex;
        gap: 10px;
    }
    
    .gmc-login-links a {
        color: #333;
        text-decoration: none;
        font-size: 14px;
        padding: 5px 10px;
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    .gmc-login-links a:hover {
        background: #f0f7ff;
        color: #1a73e8;
    }
    
    .gmc-member-menu {
        position: absolute;
        top: 100%;
        right: 2rem;
        background: white;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        min-width: 220px;
        z-index: 1000;
        overflow: hidden;
        display: none;
        animation: fadeIn 0.3s ease;
    }
    
    .gmc-member-menu a {
        display: flex;
        align-items: center;
        padding: 0.8rem 1.5rem;
        text-decoration: none;
        color: var(--dark-color);
        font-size: 0.95rem;
        border-bottom: 1px solid var(--border-color);
        transition: all 0.2s ease;
    }
    
    .gmc-member-menu a:last-child {
        border-bottom: none;
    }
    
    .gmc-member-menu a:hover {
        background-color: #f0f7ff;
        color: var(--primary-color);
    }
    
    .gmc-member-menu a i {
        margin-right: 0.8rem;
        width: 20px;
        text-align: center;
        color: var(--primary-color);
    }
    
    @media (max-width: 768px) {
        .gmc-header-member {
            margin-left: 10px;
        }
        
        .gmc-login-links a {
            padding: 4px 8px;
            font-size: 13px;
        }
    }
 