/*
 Theme Name:   Astra Child for外贸网站
 Theme URI:    https://wpastra.com/
 Description:  A child theme of Astra for外贸网站, optimized for Elementor page builder.
 Author:       Your Name
 Author URI:   https://yourwebsite.com
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child
 Tags:         one-column, two-columns, left-sidebar, right-sidebar, custom-colors, custom-menu, featured-images, full-width-template, rtl-language-support, theme-options, threaded-comments, translation-ready, blog, e-commerce, elementor

*/

/* 
 * 在这里添加您的自定义CSS
 * 这个子主题继承了Astra的所有功能，并针对外贸网站进行了优化
 */

/*--------------------------------------------------------------
# 外贸网站通用样式
--------------------------------------------------------------*/

/* 全局样式调整 */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif;
}

/* 产品展示相关样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
 
}

.product-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 18px;
}

/* 联系我们表单样式 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button {
    background: #3498db;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.contact-form button:hover {
    background: #2980b9;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .contact-form {
        padding: 15px;
    }
}

/* 多语言支持样式 */
.language-switcher {
    display: inline-block;
    margin-left: 15px;
}

.language-switcher select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/*--------------------------------------------------------------
# Elementor头部滚动效果样式
--------------------------------------------------------------*/

/* 头部模板默认样式 */
.elementor-location-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: all 0.3s ease;
    opacity: 1 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 确保Elementor动效层不影响头部可见性 */
.elementor-location-header .elementor-motion-effects-layer {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 确保头部背景始终为白色 */
.elementor-location-header {
    background-color: #ffffff !important;
}

/* 头部模板中的导航菜单链接默认样式 */
.elementor-location-header .elementor-nav-menu a,
.elementor-location-header .elementor-nav-menu a:visited {
    color: #333!important;
    transition: color 0.3s ease;
}

/* 头部模板滚动后导航菜单链接样式 */
.elementor-location-header.scrolled .elementor-nav-menu a,
.elementor-location-header.scrolled .elementor-nav-menu a:visited {
    color: #333333 !important;
}
.elementor-location-header.scrolled .elementor-nav-menu a,
.elementor-location-header.scrolled .elementor-nav-menu a:hover {
    color: #333333 !important;
}
/* 头部模板中的按钮默认样式 */
.elementor-location-header .elementor-button {
    color: #ffffff !important;
    border-color: #ffffff !important;
    transition: all 0.3s ease;
}

/* 头部模板滚动后按钮样式 */
.elementor-location-header.scrolled .elementor-button {
    color: #333333 !important;
    border-color: #333333 !important;
}

/* 头部模板中的文本默认样式 */
/* .elementor-location-header .elementor-heading-title,
.elementor-location-header .elementor-text-editor,
.elementor-location-header .elementor-icon-list-item a,
.elementor-location-header .elementor-social-icons-wrapper a {
    color: #333!important;
    transition: color 0.3s ease;
} */

/* 头部模板滚动后文本样式 */
.elementor-location-header.scrolled .elementor-heading-title,
.elementor-location-header.scrolled .elementor-text-editor,
.elementor-location-header.scrolled .elementor-icon-list-item a,
.elementor-location-header.scrolled .elementor-social-icons-wrapper a {
    color: #333333 !important;
}
