/* ========== 全局字体 - 参考立创商城 ========== */
body,
html,
.rx-page,
.page-template-page-about-rxsy,
.page-template-page-products-rxsy,
.page-template-page-contact-rxsy,
.page-template-page-news-rxsy {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}

/* === RXSY 品牌全局样式 === */

/* Header */
.main-header, .home-page-header {
    background: rgba(255,255,255,0.97) !important;
    box-shadow: 0 1px 12px rgba(0,0,0,0.06) !important;
    backdrop-filter: blur(12px) !important;
}

.site-title a {
    color: #0B1D3A !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    letter-spacing: 0.5px !important;
}

.site-description {
    color: #718096 !important;
    font-size: 11px !important;
}

.main-header .navigation-menu ul li a,
.home-page-header .navigation-menu ul li a {
    color: #4A5568 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.3s !important;
    padding: 10px 14px !important;
    letter-spacing: 0.3px !important;
}

.main-header .navigation-menu ul li a:hover,
.main-header .navigation-menu ul li.current-menu-item a,
.home-page-header .navigation-menu ul li a:hover,
.home-page-header .navigation-menu ul li.current-menu-item a {
    color: #1E65D8 !important;
}

.cart-box, .account-box {
    display: none !important;
}

/* Front page layout fixes */
body.page-template-front-page #maincontent {
    padding: 0 !important;
    margin: 0 !important;
}

body.page-template-front-page .sidebar,
body.page-template-front-page aside {
    display: none !important;
}

body.page-template-front-page .container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Hide theme default footer widgets on front page, use custom */
body.page-template-front-page .footer-section,
body.page-template-front-page .footer-section .footer-block,
body.page-template-front-page #footer.copyright-wrapper {
    display: none !important;
}

/* Footer styling */
footer {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

footer .footer-section {
    display: none !important;
}

footer .footer,
footer #footer-2 {
    display: none !important;
}

.copyright {
    display: none !important;
}

/* WooCommerce clean */
.woocommerce .price {
    display: none !important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button {
    background: #0B1D3A !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: #1E65D8 !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F7F9FC; }
::-webkit-scrollbar-thumb { background: #CBD5E0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #A0AEC0; }

/* Selection */
::selection {
    background: rgba(30,101,216,0.15);
    color: #0B1D3A;
}

/* === RXSY 新头部样式 v4.0 === */

/* 隐藏旧header结构 */
.home-page-header > .main-topbar { display: none !important; }

/* 新头部容器 */
.rxsy-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 2px 16px rgba(0,102,255,0.06);
    border-bottom: 1px solid rgba(0,102,255,0.06);
}

.rxsy-header-inner {
    max-width: min(92vw, 1800px);
    margin: 0 auto;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* LOGO区 */
.rxsy-logo-area {
    flex-shrink: 0;
}

.rxsy-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.rxsy-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* 导航区 */
.rxsy-nav-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rxsy-nav-area .navigation-menu,
.rxsy-nav-area .main-navigation .menu {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rxsy-nav-area .navigation-menu > li,
.rxsy-nav-area .main-navigation .menu > li {
    position: relative;
}

.rxsy-nav-area .navigation-menu > li > a,
.rxsy-nav-area .main-navigation .menu > li > a {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #2D3748 !important;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    border-radius: 8px;
    transition: all 0.25s ease !important;
    white-space: nowrap;
}

.rxsy-nav-area .navigation-menu > li > a:hover,
.rxsy-nav-area .main-navigation .menu > li > a:hover,
.rxsy-nav-area .navigation-menu > li.current-menu-item > a,
.rxsy-nav-area .main-navigation .menu > li.current-menu-item > a {
    color: #0066FF !important;
    background: rgba(0,102,255,0.06);
}

.rxsy-nav-area .navigation-menu > li > a:after,
.rxsy-nav-area .main-navigation .menu > li > a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0066FF, #00C853);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.rxsy-nav-area .navigation-menu > li > a:hover:after,
.rxsy-nav-area .main-navigation .menu > li > a:hover:after,
.rxsy-nav-area .navigation-menu > li.current-menu-item > a:after,
.rxsy-nav-area .main-navigation .menu > li.current-menu-item > a:after {
    width: 60%;
}

/* 右侧联系区 */
.rxsy-contact-area {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.rxsy-contact-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0,102,255,0.06), rgba(0,200,83,0.06));
    border: 1px solid rgba(0,102,255,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.rxsy-contact-phone:hover {
    background: linear-gradient(135deg, rgba(0,102,255,0.1), rgba(0,200,83,0.1));
    border-color: rgba(0,102,255,0.2);
    box-shadow: 0 2px 12px rgba(0,102,255,0.1);
}

.rxsy-contact-phone i {
    color: #0066FF;
    font-size: 15px;
}

.rxsy-phone-label {
    font-size: 11px;
    color: #718096;
    font-weight: 400;
}

.rxsy-phone-num {
    font-size: 14px;
    font-weight: 600;
    color: #1A202C;
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* 隐藏旧的标题和描述 */
.rxsy-header-wrap .site-title,
.rxsy-header-wrap .site-description,
.rxsy-header-wrap .logo .site-logo {
    display: none !important;
}

/* 移动端适配 */
@media (max-width: 991px) {
    .rxsy-header-inner {
        padding: 0 20px;
        height: 64px;
    }
    .rxsy-logo-img {
        height: 36px;
    }
    .rxsy-contact-area {
        display: none;
    }
    .rxsy-nav-area {
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    .rxsy-header-inner {
        padding: 0 16px;
        height: 58px;
    }
    .rxsy-logo-img {
        height: 32px;
    }
}

/* ===== 内页大屏自适应 (27寸/2K/4K) ===== */
/* 覆盖bootstrap container默认1320px上限 */
body:not(.page-template-front-page) .container{
  max-width:min(92vw,1800px)!important;
  padding-left:40px;
  padding-right:40px
}
@media(min-width:1920px){
  body:not(.page-template-front-page) .container{
    padding-left:60px;
    padding-right:60px
  }
}
@media(min-width:2400px){
  body:not(.page-template-front-page) .container{
    padding-left:80px;
    padding-right:80px
  }
}

/* 关于我们页面大屏 */
@media(min-width:1920px){
  .rxsy-stats{gap:60px}
  .rxsy-stat-num{font-size:56px}
  .rxsy-strength-grid{gap:36px}
  .rxsy-milestone{padding:28px 32px}
}

/* 产品中心大屏 */
@media(min-width:1920px){
  .rxsy-prod-grid{grid-template-columns:repeat(4,1fr);gap:32px}
  .rxsy-prod-card{padding:28px}
  .rxsy-prod-img{height:220px}
}
@media(min-width:2400px){
  .rxsy-prod-grid{grid-template-columns:repeat(4,1fr);gap:40px}
  .rxsy-prod-img{height:260px}
}

/* 联系我们大屏 */
@media(min-width:1920px){
  .rxsy-contact-grid{grid-template-columns:repeat(3,1fr);gap:36px}
  .rxsy-contact-card{padding:36px 28px}
  .rxsy-contact-wrap{display:grid;grid-template-columns:1fr 1fr;gap:60px}
}

/* 新闻资讯大屏 */
@media(min-width:1920px){
  .rxsy-news-list{max-width:1200px}
  .rxsy-industry{max-width:1200px}
  .rxsy-news-item{padding:28px}
  .rxsy-ind-grid{grid-template-columns:repeat(3,1fr);gap:32px}
}

/* ===== 全屏首图 + 大屏自适应系统 ===== */

/* Banner首图全屏铺满 */
.rxsy-about-banner,
.rxsy-prod-banner,
.rxsy-contact-banner,
.rxsy-news-banner{
  width:100vw;
  margin-left:calc(-50vw + 50%);
  margin-right:calc(-50vw + 50%);
  position:relative;
  overflow:hidden
}

/* 所有内页container覆盖为响应式大宽 */
body.page-template-page-about-rxsy .container,
body.page-template-page-products-rxsy .container,
body.page-template-page-contact-rxsy .container,
body.page-template-page-news-rxsy .container{
  max-width:min(92vw,1800px)!important;
  margin-left:auto;
  margin-right:auto;
  padding-left:40px;
  padding-right:40px
}

/* 中等屏幕 1440-1919 */
@media(min-width:1440px) and (max-width:1919px){
  body.page-template-page-about-rxsy .container,
  body.page-template-page-products-rxsy .container,
  body.page-template-page-contact-rxsy .container,
  body.page-template-page-news-rxsy .container{
    max-width:1400px!important
  }
}

/* 大屏 1920-2399 (27寸 1080p) */
@media(min-width:1920px) and (max-width:2399px){
  body.page-template-page-about-rxsy .container,
  body.page-template-page-products-rxsy .container,
  body.page-template-page-contact-rxsy .container,
  body.page-template-page-news-rxsy .container{
    max-width:1600px!important;
    padding-left:60px;
    padding-right:60px
  }
}

/* 超大屏 2400+ (27寸 2K/4K) */
@media(min-width:2400px){
  body.page-template-page-about-rxsy .container,
  body.page-template-page-products-rxsy .container,
  body.page-template-page-contact-rxsy .container,
  body.page-template-page-news-rxsy .container{
    max-width:1800px!important;
    padding-left:80px;
    padding-right:80px
  }
}

/* 产品中心grid大屏增加列数 */
@media(min-width:1920px){
  .rxsy-prod-grid{grid-template-columns:repeat(4,1fr)!important;gap:32px}
  .rxsy-prod-img{height:200px}
  .rxsy-stats{gap:50px}
  .rxsy-stat-num{font-size:52px}
  .rxsy-advantages{gap:40px}
  .rxsy-adv-card{padding:48px 36px}
  .rxsy-contact-grid{grid-template-columns:repeat(3,1fr);gap:40px}
  .rxsy-contact-card{padding:40px 32px}
}
@media(min-width:2400px){
  .rxsy-prod-grid{gap:40px}
  .rxsy-prod-img{height:240px}
  .rxsy-stat-num{font-size:58px}
  .rxsy-ind-grid{grid-template-columns:repeat(3,1fr);gap:36px}
}

/* 首页hero全屏优化 */
@media(min-width:1920px){
  .rx-hero{min-height:700px}
  .rx-hero-inner{gap:80px;padding:140px 60px 120px}
  .rx-hero h1{font-size:52px}
  .rx-hero-visual{max-width:560px}
  .rx-cat-grid{gap:40px}
  .rx-apps-grid{gap:40px}
  .rx-adv-grid{gap:40px}
  .rx-prod-grid{grid-template-columns:repeat(3,1fr);gap:32px}
}
@media(min-width:2400px){
  .rx-hero{min-height:800px}
  .rx-hero-inner{gap:100px;padding:160px 80px 140px}
  .rx-hero h1{font-size:60px}
  .rx-hero-visual{max-width:640px}
}

/* header也要适配大屏 */
@media(min-width:1920px){
  .top-header-wrap{padding-left:40px;padding-right:40px}
}
@media(min-width:2400px){
  .top-header-wrap{padding-left:80px;padding-right:80px}
}

/* ========== 覆盖主题默认英文字体 ========== */
h1, h2, h3, h4, h5, h6,
.heading-font,
.entry-title,
.site-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

/* 备案号 */
.rxsy-icp-text {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    padding-top: 0;
}
.rxsy-icp-text a {
    color: #94a3b8;
    text-decoration: none;
}
.rxsy-icp-text a:hover {
    color: #0066FF;
}

/* ===== 滚动条加宽（参考立创商城风格） ===== */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: #f1f3f5;
}
::-webkit-scrollbar-thumb {
  background: #c1c7cd;
  border-radius: 6px;
  border: 2px solid #f1f3f5;
}
::-webkit-scrollbar-thumb:hover {
  background: #909399;
}
/* Firefox */
* {
  scrollbar-width: auto;
  scrollbar-color: #c1c7cd #f1f3f5;
}
