/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
 
 /* 全局页面背景设置 */
body {
    background-position: 0% 0%;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: var(--theme-palette-color-8);
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(/wp-content/uploads/2025/03/2023bg-5-6-scaled-1.webp);
}

/* 文本输入区域样式 */
textarea {
	--theme-form-field-border-radius: 20px;
}

/* 页脚文字样式 */
#footer [data-id="text"] h3 {
	font-size: 17px;
	margin-bottom: 5px;
}

/* Elementor手风琴组件样式 */
.elementor-widget-n-accordion .e-n-accordion-item [aria-expanded="false"] {
	border-radius: 20px; 
}

/* 面包屑导航样式 */
.ct-breadcrumbs-shortcode {
  --theme-text-color: #ffffffab;
  --theme-link-initial-color: #ffffffab;
  --theme-link-hover-color: var(--wp--preset--color--white);
}

/* 邮件订阅表单样式 */
.ct-newsletter-subscribe-shortcode {
	--theme-form-text-initial-color: var(--wp--preset--color--palette-color-5);
  --theme-form-text-focus-color: var(--wp--preset--color--palette-color-5);
  --theme-form-field-border-initial-color: var(--wp--preset--color--palette-color-1);
  --theme-form-field-border-focus-color: var(--wp--preset--color--palette-color-2);
}

/* 内容容器样式 */
.ct-container section{background:#fff;padding:30px}
.ct-hidden-sm{background:#fff;}

/* 英雄区域样式 */
.hero-section{ padding:0px 20px; width: var(--theme-container-width); max-width: var(--theme-normal-container-max-width); margin:0 auto;}

/* WooCommerce标签页样式 */
.woocommerce div.product div.woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: var(--vertical-alignment, center);
    background-color: #f5f5f5;
    border: none;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* 产品元信息样式 */
.product-meta-info {
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 折扣标签样式 */
.discount-percentage {
    margin-left: 5px;
    display: inline-block;
    padding: 0 10px;
    line-height: 22px;
    background-color: #ff3c20;
    color: #fff;
    font-weight: 700;
    font-size: 9px;
    position: relative;
}

/* 评论表单样式 */
.comment-form-field-textarea textarea{border-radius: 3PX;}


/* 基础布局 */
.ct-enhanced-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

/* 评论卡片 */
.ct-review-card-enhanced {
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ct-review-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 商品信息头部 */
.ct-review-product-header {
    display: flex;
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid var(--border-color, #f0f0f0);
}

.ct-product-thumbnail {
    flex: 0 0 80px;
    border-radius: 8px;
    overflow: hidden;
    align-self: center;
}

.ct-product-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.ct-product-meta {
    flex: 1;
}

.ct-product-meta h4 {
    margin: 0 0 0px;
    font-size: 1rem;
    color: var(--heading-color, #333);
}

.ct-product-price {
    color: var(--accent-color, #3a7dfd);
    font-weight: 700;
    font-size: 1.1rem;

}

/* Blocksy主题星级评分 */


.ct-stars-rating .star-rating {
    --star-size: 14px;
    --star-color: var(--paletteColor2, #ffb900);
    display: inline-block;
    font-family: star;
    font-size: var(--star-size);
    line-height: 1;
    position: relative;
    width: 5.4em;
}

.ct-stars-rating .star-rating::before {
    content: "\53\53\53\53\53";
    color: var(--star-color);
    opacity: 0.25;
}

.ct-stars-rating .star-rating span {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.ct-stars-rating .star-rating span::before {
    content: "\53\53\53\53\53";
    color: var(--star-color);
}

/* 购买按钮 */
.ct-add-to-cart.button {
    display: inline-block;
    padding: 8px 16px;
    background: var(--button-color, #3a7dfd);
    color: #fff !important;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.ct-add-to-cart.button:hover {
    background: var(--button-hover-color, #2c6ae0);
    transform: translateY(-1px);
}

/* 评论内容区 */
.ct-review-body {
    padding: 20px;
}

.ct-reviewer-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.ct-reviewer-name {
    font-weight: 600;
    color: var(--heading-color, #444);
}

.ct-review-date {
    color: var(--text-meta-color, #999);
}

.ct-review-text {
    line-height: 1.6;
    color: var(--text-color, #555);
    margin-bottom: 15px;
}

/* 图片画廊 */
.ct-review-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.ct-gallery-item {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1/1;
    transition: transform 0.3s ease;
}

.ct-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ct-gallery-item:hover {
    transform: scale(1.05);
}

/* 无评论提示 */
.ct-no-reviews {
    text-align: center;
    color: var(--text-meta-color, #999);
    padding: 2rem;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .ct-enhanced-reviews-grid {
        grid-template-columns: 1fr;
    }
    
   .ct-review-product-header {
        flex-direction: row;
        display: flex;
    }
    
    .ct-product-thumbnail {
        margin-bottom: 15px;
        width: 20%;
        flex: none;
    }
}


/*后台登录样式*/

