
/* ======================
    CSS 初始化代码 (Modern Reset)
   ====================== */

/* 盒模型重置 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 核心默认值 */
html {
    /* 基准字体 (1rem = 10px) */
    font-size: 62.5%; 
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    /* 基础字体设置 */
    font-family: 'Arial', sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    color: #333;
    background-color: #fff;
}

/* 媒体元素默认设置 */
img,
picture,
video,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 表单元素重置 */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* 链接重置 */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* 列表重置 */
ul[role="list"],
ol[role="list"] {
    list-style: none;
}

/* 无障碍优化 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 常用工具类 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 响应式基础 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 间距重置 */
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
    margin: 0 0 1.5rem;
}

/* 标题字体 */
h1 { font-size: 4.8rem; }
h2 { font-size: 3.6rem; font-weight: normal;}
h3 { font-size: 2.4rem; font-weight: normal;}
h4 { font-size: 1.8rem; font-weight: normal;}
h5 { font-size: 1.7rem; font-weight: normal;}
h6 { font-size: 1.6rem; font-weight: normal;}

/* 移动优先媒体查询 */
@media (min-width: 768px) {
    html {
        font-size: 65%;
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 68.75%; /* 11px */
    }
}


/*---------------------moxiang----------------*/
/*导航*/
/* 在样式表添加 */
.main-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo{
    margin: 0px;
}

.nav-logo img {
    max-height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #0073aa;
}

.nav-button {
    background: #0073aa;
    color: white !important;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.nav-button:hover {
    background: #005177;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        display: none; /* 移动端可改为汉堡菜单 */
    }
    
    .nav-auth {
        margin-left: auto;
    }
}



/* 导航样式 */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* 网站品牌/Logo 样式 */
.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 24px;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.site-description {
    margin: 0 0 0 15px;
    font-size: 14px;
    color: #777;
}

.custom-logo-link {
    display: inline-block;
    max-height: 60px;
}

.custom-logo-link img {
    max-height: 60px;
    width: auto;
}

/* 主导航菜单 */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
    margin: 0 10px;
}

.nav-menu a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: #0073aa;
}

/* 当前菜单项样式 */
.nav-menu .current-menu-item > a,
.nav-menu .current-page-ancestor > a {
    color: #0073aa;
    font-weight: 600;
}

/* 下拉菜单样式 */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu .sub-menu li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.nav-menu .sub-menu a {
    padding: 10px 15px;
    white-space: nowrap;
}

.nav-menu li:hover > .sub-menu {
    display: block;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 15px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 15px 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu a {
        padding: 12px 20px;
    }
    
    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        display: none;
    }
    
    .nav-menu .sub-menu.active {
        display: block;
    }
    
    .nav-menu .sub-menu a {
        padding-left: 30px;
    }
}

/* 页脚样式 */
.site-footer {
    background-color: #222;
    color: #aaa;
    padding: 30px 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-item {
    padding: 5px 0;
}

.copyright, .icp-number, .sitemap-link {
    color: #aaa;
    transition: color 0.3s ease;
}

.icp-number:hover, .sitemap-link:hover {
    color: #fff;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-item {
        text-align: center;
    }
}


/* 添加至主题的额外CSS设置 */
.site-header {
    position: fixed !important; /* 固定定位 */
    width: 100% !important;
    top: 0;
    z-index: 9999; /* 确保高于其他元素 */
    background: rgba(255,255,255,0.95); /* 半透明背景 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* 阴影效果 */
}

/* 防止内容被遮挡 */
body.admin-bar .site-header { /* 适配管理员工具栏 */
    top: 32px;
}
.main-content {
    margin-top: 100px; /* 根据导航高度调整 */
}

/* 移动端适配 */
@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}
.site-main{margin-top: 80px;}



/* 友情链接基础样式 */
.footer-links {
  background: #f8f9fa;
  padding: 30px 20px;
  border-top: 1px solid #e9ecef;
}

.links-title {
  color: #2c3e50;
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-align: center;
}

.links-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 30px;
}

.link-item {
  color: #34495e;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid #dee2e6;
}

.link-item:hover {
  background: #3498db;
  color: white;
  border-color: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .links-container {
    gap: 12px;
    padding: 0 10px;
  }
  
  .link-item {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
}


/*小工具*/
/*文章列表*/
.wp-block-latest-posts.wp-block-latest-posts__list {
    padding: 20px;
    padding-top: 0px;
}
.widget-area li {
    list-style: none;
}
.widget-area h2{padding: 20px;}
.widget-area li{padding: 10px 0px;}
.widget-area li a{font-size: 1.4rem;}
.widget-area ul{padding-inline-start: 20px;}