/**
Theme Name: Astra
Theme URI: https://wpastra.com/
Author: Brainstorm Force
Author URI: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
Description: The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 5,700+ five-star reviews! It’s ideal for professional web designers, solopreneurs, small businesses, eCommerce, membership sites and any type of website. It offers special features and templates so it works perfectly with all page builders like Spectra, Elementor, Beaver Builder, etc. Fast performance, clean code, mobile-first design and schema markup are all built-in, making the theme exceptionally SEO-friendly. It’s fully compatible with WooCommerce, SureCart and other eCommerce plugins and comes with lots of store-friendly features and templates. Astra also provides expert support for free users. A dedicated team of fully trained WordPress experts are on hand to help with every aspect of the theme. Try the live demo of Astra: https://zipwp.org/themes/astra/
Version: 4.11.3
Requires at least: 5.3
WC requires at least: 3.0
WC tested up to: 9.6
Tested up to: 6.8
Requires PHP: 5.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra
Domain Path: /languages
Tags: custom-menu, custom-logo, entertainment, one-column, two-columns, left-sidebar, e-commerce, right-sidebar, custom-colors, editor-style, featured-images, full-width-template, microformats, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready, blog
AMP: true

Astra WordPress Theme, Copyright 2020 WPAstra.
Astra is distributed under the terms of the GNU GPL.

Astra is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of.
Nicolas Gallagher and Jonathan Neal https://necolas.github.com/normalize.css/

Astra icon font is based on IcoMoon-Free vector icon by Keyamoon.
IcoMoon-Free vector icon distributed under terms of CC BY 4.0 or GPL. (https://creativecommons.org/licenses/by/4.0/ or https://www.gnu.org/licenses/gpl.html)
Source: http://keyamoon.com/

Flexibility is a JavaScript polyfill for Flexbox By Jonathan Neal, 10up. (https://github.com/jonathantneal/flexibility)
Licensed under MIT ( https://github.com/jonathantneal/flexibility/blob/master/LICENSE.md )

Screenshot image is a collage of actual sites created using the Astra WordPress Theme.

Icons used in the Screenshot image are all licensed under Creative Commons ( CC BY 4.0 ) License ( https://fontawesome.com/license/free )
https://fontawesome.com/v5.15/icons/store?style=solid
https://fontawesome.com/v5.15/icons/shopping-cart?style=solid
https://fontawesome.com/v5.15/icons/pen-square?style=solid
https://fontawesome.com/v5.15/icons/user-tie?style=solid
https://fontawesome.com/v5.15/icons/user-tie?style=solid

Illustrations used in the Screenshot images are all licensed under Creative Commons ( CC0 ) License ( https://gumroad.com/l/humaaans )
https://websitedemos.net/web-design-agency-08/wp-content/uploads/sites/796/2021/05/standing-24.png
https://websitedemos.net/web-design-agency-08/wp-content/uploads/sites/796/2021/05/sitting-2.png

Hand-drawn illustrations used are created by Brainstorm Force and released under Creative Commons ( CC0 ) License.
https://websitedemos.net/web-design-agency-08/wp-content/uploads/sites/796/2021/05/girl-with-image-container.png
https://websitedemos.net/web-design-agency-08/wp-content/uploads/sites/796/2021/05/boy-with-code-container.png
https://websitedemos.net/web-design-agency-08/wp-content/uploads/sites/796/2021/05/web-browser.png

The same site as screenshot can be imported from here https://websitedemos.net/web-design-agency-08/.

For more information, refer to this document on how to create a page like in the screenshot - https://wpastra.com/docs/replicating-the-screenshot/.

Astra default breadcrumb is based on Breadcrumb Trail by Justin Tadlock. (https://github.com/justintadlock/breadcrumb-trail)
Breadcrumb Trail is distributed under the terms of the GNU GPL v2 or later.

Astra local fonts feature is based on Webfonts Loader by WordPress Themes Team (WPTT). (https://github.com/WPTT/webfont-loader)
Licensed under MIT ( https://github.com/WPTT/webfont-loader/blob/master/LICENSE )

/* Note: The CSS files are loaded from assets/css/ folder. */

.custom-hover-bg {
  /* 初始样式 */
  background-color: rgba(1, 1, 1, 0.5) !important; /* 透明背景 */
  color: white;
  padding: 20px;
  position: fixed;
  
  z-index: 99999;
  width: 100%;
  top: 0;
  left: 0;
  font-weight: bolder;
  /* 统一过渡设置 */
  transition: background-color 0.8s ease 0.8s;
}

/* 悬停时的样式 */
.custom-hover-bg:hover {
  background-color: black !important; /* 浅色背景 */
  transition-delay: 0.1s; /* 鼠标进入时不延迟 */
  color: black;
  
}

/* 鼠标离开时，恢复初始样式，带过渡动画 */
.custom-hover-bg:not(:hover) {
  background-color:  rgba(1, 1, 1, 0.5) !important;
  transition-delay: 0.1s;
  color: white;
  
}

/* 内层 div 初始状态使用 text-light 类 */
.custom-text-hover li a{
    /* 默认情况下已经是浅色文字，这里不需要额外设置 */
    color: white;
    text-decoration:none;
}

/* 当外层 div 悬停时，添加 text-dark 类移除 text-light 类的效果 */
.custom-hover-bg:hover .custom-text-hover li a {
    /* 使用 Bootstrap 的 text-dark 类覆盖 text-light 类 */

    color: black;
}
.myPicCss{
  border-radius: 100% !important;
}
.myBkCss{
  background-color: red !important;
}

.wp-element-caption{
  text-align: center !important;
}
.myheaddiv{
  width: 100%;
  height: 3.1rem;
}
/* 在电脑端home页面默认导航的排序，在手机端home页面的导航使用下面css排序 */
@media (max-width: 768px) {
    .glsNavigation {     /*导航组件*/
      order: 0;
    }
    .glsTitle{           /*gelanshi 标题*/
      order: 1;
    }
    .glsUser{           /*用户*/
      order: 2;
    }
    .glsSearch{         /*搜索框*/
      order:3;
    }
    .glsShoppingCart{   /*购物车*/
      order:4;
    }
}
/* 手机端：WooCommerce Block 产品 - 2列 + 缩小字体 */

@media (max-width: 768px) {
  .product-cols-3{
    display: none !important;
  }
  /* 1. 设置网格为 2 列 */
  .wc-block-product-template__responsive {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px; /* 产品间距 */
    padding-left: 0px !important;
     margin-top: 1.5rem !important;
  }
  .wc-block-product-template__responsive.columns-1 {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .wc-block-product-template__responsive.columns-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* .wc-block-product-template__responsive.columns-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  } */
  /* 2. 缩小产品标题字体 */
  .wp-block-post-title {
    font-size: 1rem !important; /* 默认通常是 1rem 或 16px，这里约 13-14px */
    
    
  }

  /* 3. 缩小价格字体 */
  .wc-block-product__price {
    font-size: 0.8rem !important; /* 约 12-13px */
    
  }

  /* 4. 可选：缩小评分（如果有） */
  .wc-block-product__rating {
    font-size: 0.75rem !important;
  }

  /* 5. 可选：缩小“加入购物车”按钮文字（如果是动态块） */
  .wp-block-button__link,
  .wc-block-components-button {
    font-size: 0.8rem !important;
    padding: 6px 10px !important; /* 适当缩小按钮 */
  }
}


