/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* ========== Elementor 按钮统一样式（导航栏、Hero、Posts） ========== */

/* 导航栏按钮外层阴影效果 */
.elementor-button-wrapper {
    filter: drop-shadow(2px 4px 9px #AA0000);
}

/* 按钮默认样式（适用于 .elementor-button 和 .elementor-post__read-more） */
.elementor-button,
.elementor-post__read-more {
    background: #AA0000 !important;
    border: 2px solid #AA0000 !important;
    color: #fff !important;
    font-size: clamp(13px, 1.1vw, 16px) !important;
    font-weight: 400 !important;
    text-align: center !important;
    padding: clamp(10px, 1.5vw, 15px) clamp(20px, 3.5vw, 35px);
    clip-path: polygon(
        clamp(8px, 2vw, 20px) 0%,
        100% 0%,
        100% calc(100% - clamp(8px, 2vw, 20px)),
        calc(100% - clamp(8px, 2vw, 20px)) 100%,
        0 100%,
        0 clamp(8px, 2vw, 20px)
    );
}

/* 悬停时的按钮样式 */
.elementor-button:hover,
.elementor-post__read-more:hover {
    color: #AA0000 !important;
    background: linear-gradient(
        135deg,
        #AA0000 0,
        #AA0000 clamp(6px, 1.4vw, 14px),
        #ffffff clamp(6px, 1.4vw, 14px),
        #ffffff calc(100% - clamp(6px, 1.4vw, 14px)),
        #AA0000 calc(100% - clamp(6px, 1.4vw, 14px)),
        #AA0000 100%
    ) !important;
    border: 2px solid #AA0000 !important;
    clip-path: polygon(
        clamp(8px, 2vw, 20px) 0%,
        100% 0%,
        100% calc(100% - clamp(8px, 2vw, 20px)),
        calc(100% - clamp(8px, 2vw, 20px)) 100%,
        0 100%,
        0 clamp(8px, 2vw, 20px)
    );
}
