/*
Theme Name: boxwpnew Child
Template: boxwpnew
*/


h1{font:normal bold 32px Arial,sans-serif;}
h2{font:normal bold 28px Arial,sans-serif;}
h3{font:normal bold 24px Arial,sans-serif;}
h4{font:normal bold 20px Arial,sans-serif;}
h5{font:normal bold 18px Arial,sans-serif;}
h6{font:normal bold 16px Arial,sans-serif;}




.taxonomy-description{text-align:left;}


.entry-title{position:relative;font:normal bold 26px Arial,Helvetica,sans-serif;color:#000000;margin:0 0 10px 0;line-height:1.2;text-align:center;letter-spacing:-0.5px;}



/* Sidebar
-------------------------------------------------------------- */
.boxwp-sidebar-wrapper .widget{position:relative;padding:0;margin-bottom:8px;word-break:normal;word-wrap:break-word;overflow:hidden;}
.boxwp-sidebar-wrapper .widget .boxwp-widget-title{font:normal normal 14px Oswald,Arial,Helvetica,sans-serif;line-height:1;color:#ffffff;margin:0 0 5px 0;padding:0;text-transform:uppercase;background:#333333;border-bottom:3px solid #7f181b;-webkit-box-shadow:0 0 5px rgba(0,0,0,0.6);-moz-box-shadow:0 0 5px rgba(0,0,0,0.6);box-shadow:0 0 5px rgba(0,0,0,0.6);text-align:center;}
.boxwp-sidebar-wrapper .widget .boxwp-widget-title a,.boxwp-sidebar-wrapper .widget .boxwp-widget-title a:hover,.boxwp-sidebar-wrapper .widget .boxwp-widget-title a:focus{color:#ffffff;}
.boxwp-sidebar-wrapper .widget .boxwp-widget-title span{padding:8px 10px;display:inline-block;background:#7f181b;}


.boxwp-sidebar-wrapper .widget .boxwp-widget-title span:before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512' width='14' height='14' fill='%23ffffff'%3E%3Cpath d='M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM112 208c0-8.8 7.2-16 16-16h96c8.8 0 16 7.2 16 16s-7.2 16-16 16H128c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16h96c8.8 0 16 7.2 16 16s-7.2 16-16 16H128c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16h96c8.8 0 16 7.2 16 16s-7.2 16-16 16H128c-8.8 0-16-7.2-16-16z'/%3E%3C/svg%3E");
  display: inline-block;
  margin-right: 5px;
  vertical-align: top;
  /* 删除 font-family、content:"\f15c" 等旧属性 */
}


.boxwp-sidebar-wrapper .widget a{color:#444444;}
.boxwp-sidebar-wrapper .widget a:hover,.boxwp-sidebar-wrapper .widget a:focus{color:#666666;}
.boxwp-sidebar-wrapper .widget a:active{text-decoration:none;}
.boxwp-sidebar-wrapper .widget ul{margin:0;padding:0;list-style:none;list-style-type:none;}
.boxwp-sidebar-wrapper .widget ol{margin:0;padding:0 0 0 1.2em;}

/* 替换原 .widget li 样式（关键！） */
.boxwp-sidebar-wrapper .widget li {
  margin: 0;
  padding: 5px 0; /* 增加微量上下内边距，避免文字贴边 */
  line-height: 1.3; /* 核心：收紧行高，消除文字底部视觉空白 */
  border-bottom: 1px dotted #eeeeee;
}

/* 仅针对评论小工具，避免影响其他小工具 */
.boxwp-sidebar-wrapper .widget.widget_recent_comments li *,
.boxwp-sidebar-wrapper .widget.widget_comments li * {
  margin: 0 !important;
}

.boxwp-sidebar-wrapper .widget li li{padding:0px 0 0px 10px;line-height:1.0;}
.boxwp-sidebar-wrapper .widget li:first-child{}
.boxwp-sidebar-wrapper .widget li:last-child{padding-bottom:0;border-bottom:none;}
.boxwp-sidebar-wrapper .widget select,.boxwp-footer-blocks select{margin:0;padding:2px;width:100%;max-width:100%;}




.boxwp-grid-post-title{font:normal bold 17px Arial,Helvetica,sans-serif;color:#000000 !important;margin:6px 0 0 0;line-height:1.2;text-transform:none;text-align:center;padding:0;letter-spacing:-0.4px;}




/* === 悬停预览大图样式 === */
.article-hover-preview {
    position: fixed;
    z-index: 99999;
    max-width: 600px;
    width: auto;
    height: auto;
    max-height: 400px;
    border: 2px solid #333;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    background: #fff;
    object-fit: contain;
    pointer-events: none;
    transition: opacity 0.1s ease;
}




/* 清除评论列表及内部元素的所有底部间距 */
.wp-block-latest-comments {
    margin-bottom: 0;
}

.wp-block-latest-comments li {
    margin-bottom: 0 !important;
}

/* 防止评论文字内容自带边距撑开空白 */
.wp-block-latest-comments__comment-excerpt p {
    margin-bottom: 0;
}


/* 修改评论文章标题的颜色 */
.wp-block-latest-comments__comment-link {
    color: #1976d2 !important;   /* 换成了柔和的砖红色 */
    text-decoration: none;       /* 去掉下划线 */
    font-weight: bold;           /* 加粗字体 */
}

/* 鼠标悬停时的效果 */
.wp-block-latest-comments__comment-link:hover {
    color: #ff6b6b !important;   /* 鼠标放上去变成更亮一点的粉色 */
    text-decoration: underline;  /* 显示下划线 */
}



/* 缩略图放大效果 */
.boxwp-grid-post-thumbnail {
    overflow: hidden;
    display: block;
    position: relative;
}
.boxwp-grid-post-thumbnail-img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out !important;
    transform: scale(1) !important;
}
.boxwp-grid-post-thumbnail-img:hover {
    transform: scale(1.1) !important;
}
@media (max-width: 768px) {
    .boxwp-grid-post-thumbnail-img:hover {
        transform: scale(1) !important;
    }
}





/* 评论背景图样式 */
#comment {
    background-image: url(https://www.ra2.club/wp-content/uploads/2026/02/westwoodlogoxiao.webp);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    background-attachment: local;
    min-height: 100px;
    padding: 20px 10px;
}
@media (max-width: 768px) {
    #comment {
        background-size: 60%;
        background-position: center top 20px;
    }
}
@media (min-width: 769px) {
    #comment {
        background-size: 30%;
    }
}

/* 评论内容区样式 */
#comment .comment-content,
#comment input,
#comment textarea {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px;
    border-radius: 4px;
}







/* ========== 通用样式（新旧文章都生效，基础框架） ========== */
.wp-block-file {
    font-size: 0.95em !important;
    line-height: 1.4 !important;
    padding: 4px 14px !important;
    background-color: #c9cdd6 !important;
    border-radius: 4px !important;
    display: inline-block !important;
    border: 1px solid #b9bfcc !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* ========== 旧文章专属样式（精准匹配你贴的结构） ========== */
/* 旧文章文件名：无特殊类名/id，仅为wp-block-file下的第一个a标签 */
.wp-block-file > a:first-child:not(.wp-block-file__button) {
    font-size: 0.95em !important;
    margin-right: 8px !important;
    font-weight: 600 !important;
    color: #1e40af !important;
    text-decoration: none !important;
    position: relative !important;
    padding-bottom: 1.5px !important;
    display: inline-block !important;
}

/* 旧文章文件名下划线 */
.wp-block-file > a:first-child:not(.wp-block-file__button)::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 0 !important;
    height: 1.5px !important;
    background-color: #1e40af !important;
    border-radius: 0.75px !important;
    transition: width 0.3s ease !important;
    z-index: 999 !important;
}

/* 旧文章文件名悬浮下划线展开 */
.wp-block-file > a:first-child:not(.wp-block-file__button):hover::after {
    width: 100% !important;
}

/* 旧文章下载按钮：匹配你贴的 .wp-block-file__button 类名 */
.wp-block-file > a.wp-block-file__button {
    font-size: 0.95em !important;
    padding: 2px 14px !important;
    border-radius: 4px !important;
    background-color: #1e40af !important;
    color: #ffffff !important;
    border: 1px solid #1e40af !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    text-decoration: none !important;
    vertical-align: middle !important;
    display: inline-block !important;
    line-height: 1.4 !important;
}

/* 旧文章按钮悬浮效果 */
.wp-block-file > a.wp-block-file__button:hover {
    background-color: #1a3690 !important;
}

/* ========== 新文章专属样式（保留，确保不被影响） ========== */
.wp-block-file a[id*="wp-block-file--media-"] {
    font-size: 0.95em !important;
    margin-right: 8px !important;
    font-weight: 600 !important;
    color: #1e40af !important;
    text-decoration: none !important;
    position: relative !important;
    padding-bottom: 1.5px !important;
}

.wp-block-file a[id*="wp-block-file--media-"]::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 0 !important;
    height: 1.5px !important;
    background-color: #1e40af !important;
    border-radius: 0.75px !important;
    transition: width 0.3s ease !important;
}

.wp-block-file a[id*="wp-block-file--media-"]:hover::after {
    width: 100% !important;
}

.wp-block-file .wp-element-button {
    font-size: 0.95em !important;
    padding: 2px 14px !important;
    border-radius: 4px !important;
    background-color: #1e40af !important;
    color: #ffffff !important;
    border: 1px solid #1e40af !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    text-decoration: none !important;
    vertical-align: middle !important;
}

.wp-block-file .wp-element-button:hover {
    background-color: #1a3690 !important;
}



/* ========== 页脚红警相关外链 - 闪光下划线+图片放大+加大间距版 ========== */
.ra2-footer-simple * {
    text-decoration: none !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}
.ra2-footer-simple {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    text-align: center;
    box-sizing: border-box;
}
/* 核心修改：加大图片间距（横向+纵向） */
.ra2-footer-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    row-gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ra2-footer-list li {
    margin: 0;
    padding: 0;
    line-height: 1;
    overflow: visible;
}
.ra2-footer-img {
    max-height: 50px;
    width: auto;
    display: block;
    margin: 0;
    vertical-align: middle;
    -webkit-appearance: none;
    border-radius: 8px;
    transform: scale(1);
    transition: all 0.3s ease-in-out !important;
    transform-origin: center center;
}
.ra2-footer-link {
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
    z-index: 1;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    outline-offset: 0;
    cursor: pointer;
}
.ra2-footer-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e0e8ff, transparent);
    transform-origin: left center;
    transform: scaleX(0);
    transition: width 0.4s ease-in-out, transform 0.4s ease-in-out;
    z-index: 99;
    background-clip: padding-box;
}
.ra2-footer-link:hover::after,
.ra2-footer-link:focus::after {
    width: 100% !important;
    transform: scaleX(1) !important;
}
.ra2-footer-link:hover .ra2-footer-img,
.ra2-footer-link:focus .ra2-footer-img {
    transform: scale(1.1) !important;
    border-radius: 10px !important;
}

/* 小屏适配 */
@media (max-width: 768px) {
    .ra2-footer-list {
        gap: 20px;
        row-gap: 15px;
    }
    .ra2-footer-img {
        max-height: 45px;
        border-radius: 7px;
    }
    .ra2-footer-link::after {
        height: 1.8px;
    }
    .ra2-footer-link:hover .ra2-footer-img {
        transform: scale(1.08) !important;
        border-radius: 9px !important;
    }
}
@media (max-width: 480px) {
    .ra2-footer-list {
        gap: 15px;
        row-gap: 10px;
    }
    .ra2-footer-img {
        max-height: 40px;
        border-radius: 6px;
    }
    .ra2-footer-link:hover .ra2-footer-img {
        transform: scale(1.05) !important;
        border-radius: 8px !important;
    }
}




/* 
 * 回到顶部按钮样式（纯 SVG 图标，不依赖 Font Awesome）
 */
/* 默认状态 */
.boxwp-scroll-top {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M288 288l-96-96-96 96H64l128-128 128 128H288z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-color: #000;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;

  /* 其他样式 */
  border: 1px solid #000;
  cursor: pointer;
  display: block;
  width: 30px;
  height: 30px;
  opacity: 0.4;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  border-radius: 0;
  padding: 0;
  text-indent: -9999px;

  /* 过渡只作用于 opacity */
  transition: opacity 1s;
}

/* 悬停状态：必须保留背景图！ */
.boxwp-scroll-top:hover,
.boxwp-scroll-top:focus {
  opacity: 1;
  /* 显式保留背景（防止被清除） */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M288 288l-96-96-96 96H64l128-128 128 128H288z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-color: #000;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
}



/* 主页菜单的搜索图标svg版 */
.boxwp-top-social-icons a.boxwp-social-icon-search {
  width: 26px;
  height: 26px;

  /* 完全透明背景 */
  background-color: transparent;

  /* 白色放大镜图标 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23ffffff'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 13px;

  color: transparent !important;
  text-decoration: none;
  display: inline-block;
  border-radius: 50%;
  line-height: 0;
  padding: 0;
  margin: 0;

  /* 👇 真彩色 + 小光晕 */
  animation: breathing-light-color 3s ease-in-out infinite;
  box-shadow: 0 0 6px 2px rgba(0, 255, 100, 0.7); /* 电光蓝，小范围 */
}

@keyframes breathing-light-color {
  0%, 100% {
    box-shadow: 0 0 6px 2px rgba(0, 255, 100, 0.7); /* 较强光 */
  }
  50% {
    box-shadow: 0 0 4px 1px rgba(0, 255, 100, 0.3); /* 收缩变暗 */
  }
}

/* 悬停：暂停 + 轻微放大 */
.boxwp-top-social-icons a.boxwp-social-icon-search:hover {
  animation-play-state: paused;
  transform: scale(1.2);
}


/* 小屏主菜单图标三横 */
.boxwp-secondary-responsive-menu-icon::before {
  /* 移除字体图标 */
  content: "";
  
  /* SVG ☰ 菜单图标（白色，3条横线）*/
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath fill='%23ffffff' d='M3 6h18v2H3V6zm0 5h18v2H3v-2zm0 5h18v2H3v-2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;

  /* 尺寸与原字体图标对齐 */
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: top;
  margin: 0 6px 0 0;
}



.boxwp-primary-responsive-menu-icon::before{
	  content: "";
  
  /* SVG ☰ 菜单图标（白色，3条横线）*/
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath fill='%23ffffff' d='M3 6h18v2H3V6zm0 5h18v2H3v-2zm0 5h18v2H3v-2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;

  /* 尺寸与原字体图标对齐 */
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: top;
  margin: 0 6px 0 0;
}





/* ===== 红警极简霓虹菜单 - 纯 CSS 帅气版 ===== */
/* ===== 桌面端 · 红警菜单（清晰版） ===== */
@media screen and (min-width: 768px) {
    
    /* 基础：默认青色文字 */
    #boxwp-menu-primary-navigation li a {
        color: #64ffda;
        text-shadow: none;
        background: transparent;
        padding: 15px;
        transition: all 0.25s ease;
    }

    /* 悬停：白字 + 青光 */
    #boxwp-menu-primary-navigation li a:hover {
        color: white;
        text-shadow:
            0 0 8px #4fc3f7,
            0 0 16px #29b6f6,
            0 0 24px #00e5ff;
        transform: translateY(-2px);
    }

    /* ========== 当前项：白字 + 红光（清晰高亮） ========== */
    #boxwp-menu-primary-navigation li.current-menu-item > a {
        color: white !important; /* ← 关键：用白色文字 */
        text-shadow:
            0 0 10px #ff5252,
            0 0 20px #ff1744,
            0 0 30px #d50000 !important;
        background: transparent !important;
    }

    /* ========== 点击当前项：更强红光 + 微缩放 ========== */
    #boxwp-menu-primary-navigation li.current-menu-item > a:active {
        color: white !important;
        text-shadow:
            0 0 15px #ff1744,
            0 0 30px #ff0000,
            0 0 45px #b30000 !important;
        transform: translateY(1px) scale(0.97) !important;
        transition: all 0.1s ease !important;
    }

    /* 普通项点击反馈（非当前页） */
    #boxwp-menu-primary-navigation li a:active {
        color: white; /* 也改成白字，统一交互 */
        text-shadow:
            0 0 10px #ff5252,
            0 0 20px #ff1744,
            0 0 30px #d50000;
        transform: translateY(1px) scale(0.98);
        transition: all 0.15s ease;
    }
}




/* ===== 次级导航栏 · 红警风格 ===== */
@media screen and (min-width: 768px) {
    /* 基础样式 */
    #boxwp-secondary-navigation li a {
        color: #64ffda;
        text-shadow: none;
        background: transparent;
        padding: 15px 10px; /* 可根据实际布局微调 */
        transition: all 0.25s ease;
        display: block; /* 确保整个区域可点击 */
    }

    /* 悬停效果：白字 + 青光 */
    #boxwp-secondary-navigation li a:hover {
        color: white;
        text-shadow:
            0 0 8px #4fc3f7,
            0 0 16px #29b6f6,
            0 0 24px #00e5ff;
        transform: translateY(-2px);
    }

    /* ========== 当前页面高亮：白字 + 红光 ========== */
    /* WordPress 会自动为当前分类/页面的菜单项添加 .current-menu-item 类 */
    #boxwp-secondary-navigation li.current-menu-item > a {
        color: white !important;
        text-shadow:
            0 0 10px #ff5252,
            0 0 20px #ff1744,
            0 0 30px #d50000 !important;
        background: transparent !important;
    }

    /* ========== 点击反馈（所有项） ========== */
    #boxwp-secondary-navigation li a:active {
        color: white;
        text-shadow:
            0 0 10px #ff5252,
            0 0 20px #ff1744,
            0 0 30px #d50000;
        transform: translateY(1px) scale(0.98);
        transition: all 0.1s ease;
    }

    /* ========== 点击反馈（当前项，效果更强） ========== */
    #boxwp-secondary-navigation li.current-menu-item > a:active {
        text-shadow:
            0 0 15px #ff1744,
            0 0 30px #ff0000,
            0 0 45px #b30000 !important;
        transform: translateY(1px) scale(0.97) !important;
    }
}
/* ===== 红警极简霓虹菜单 - 纯 CSS 帅气版 ===== */




/* 点击阅读更多  箭头 */
.boxwp-grid-post-read-more a:after{content:"";display:inline-block;width:12px;height:12px;margin-left:5px;vertical-align:top;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%23ffffff' d='M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z'/%3E%3C/svg%3E");background-size:contain;background-repeat:no-repeat;background-position:center;}