/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration: none!important;
	/* text-decoration-thickness: 1px !important;
	text-underline-offset: .1em; */
}

div.wp-block-term-description,.by-wpdiscuz{
	display:none!important;
}

.two-row {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.4;
	max-height: calc(1.4em * 2);
}

.woocommerce-MyAccount-content p a[href*="action=logout"] {
	font-weight: 400;
	background: #111 !important;
	color: #fff !important;
	padding: 5px 10px;
	height: 30px;
	line-height: 30px;
	border-radius: 20px;
}

/* 评论区颜色 */
.wpd-comment-author a {
	color: #111 !important;
}

#wpdcom .wpd-blog-post_author .wpd-comment-label {
	background: #111 !important;
}

#wpdcom.wpd-layout-1 .wpd-comment .wpd-blog-post_author .wpd-avatar img {
	border-color: #111 !important;
}

#wpdcom .wpd-comment .wpd-reply-to a {
	color: #111 !important;
}

#wpdcom .wpd-auth .wpd-login a {
	color: #222;
}
#wpdcom.wpd-layout-1 .wpd-comment .wpd-blog-shop_manager .wpd-avatar img{
	border-color: #ccc !important;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Remove focus outline from all links */
a:focus {
	outline: none !important;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

	/* 优惠券发放弹窗 */
  .coupon-modal{
        position: fixed;
        left: 0;
        top: 180px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity .3s ease;
        z-index: 1000;
    }
	@media screen and (max-width: 768px) {
        .coupon-modal{
            top: 130px;
        }
		.coupon-modal-content{
			max-width: calc(90vw)!important;
			padding: 12px!important;
		}
		.coupon-modal-message{
			font-size: 12px!important;
		}
    }
    .coupon-modal.show{
        opacity: 1;
        background: rgba(0,0,0,0.4);
    }
    .coupon-modal-content{
		text-align: left;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        width: 80%;
		margin:0 auto;
        max-width: 580px;
        padding: 16px 18px;
        transform: translateY(-50px);
        transition: transform .3s ease;
        text-align: center;
    }
    .coupon-modal.show .coupon-modal-content{
        transform: translateY(0);
    }
    .coupon-modal-message{
		text-align: left;
        color: #111;
        font-size: 16px;
    }
    .coupon-modal-dismiss{
        margin-top: 12px;
        background: none;
        border: none;
        color: #111;
        text-decoration: underline;
        cursor: pointer;
        padding: 0 4px;
        font-size: 14px;
    }

            .coupon-modal-content {
            box-shadow: none;
            border: 1px solid #e5e7eb;
        }
        .coupon-title {
            font-size: 18px;
            font-weight: 600;
            color: #111;
            margin: 8px 0 12px;
        }
        .coupon-text {
            font-size: 14px;
            color: #727272;
            line-height: 2rem;
            text-align: left;
        }
        .coupon-actions {
            margin-top: 16px;
            display: flex;
            justify-content: flex-end;
        }
        .coupon-header {
            display: block;
            text-align: center;
        }
        .coupon-icon-line {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 20px auto;
        }
        .coupon-icon {
            width: 64px;
            height: 64px;
            color: #111;
            flex: 0 0 auto;
            display: block;
            object-fit: contain;
        }
        .coupon-btn {
            background: #111;
            color: #fff;
            border: none;
            border-radius: 24px;
            padding: 12px 18px;
            font-size: 14px;
            cursor: pointer;
            min-height: 44px;
        }
        .coupon-btn:hover {
            background: #222;
        }
        .coupon-btn:active {
            transform: scale(0.98);
        }
        @media (max-width: 768px) {
            .coupon-text{
                line-height: 1.4rem;
                margin:0 10px;
            }
            .coupon-modal-content {
                max-width: 80vw;
                padding: 24px;
            }
            .coupon-actions {
                justify-content: center;
                margin-bottom: 20px;
            }
            .coupon-btn {
                width: 100%;
            }
        }
        .coupon-modal{
            top: 0 !important;
            height: 100% !important;
        }
        @media (max-width: 768px){
            .coupon-modal{
                top: 0 !important;
                height: 100% !important;
            }
        }

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}