/**
Theme Name: Astra Child
Author: xiaogongjiang
Author URI: xunpanduo.com
Description: xiaogongjiang
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
Template: astra
*/
@import "post.css";

:root {
    --blue: #1565C0;
    --blue-dark: #0D47A1;
    --blue-light: #1976D2;
    --green: #2E7D32;
    --gold: #F9A825;
    --navy: #0D1B2A;
    --navy-mid: #132337;
    --white: #FFFFFF;
    --gray-bg: #F5F6F8;
    --gray-light: #E8EAED;
    --gray-mid: #9E9E9E;
    --text-dark: #1A1A2E;
    --text-body: #4A4A5A;
    --radius: 6px;
    --shadow: 0 4px 20px rgba(0, 0, 0, .09);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, .14);
    --transition: .25s ease;
    --max-w: 1340px;
	 --slider-height:750px;
}

ul li,
ol li {
    list-style: none;
}

a {
    text-decoration: none;
    color: #333333;
    outline: none;
    blr: expression(this.onFocus=this.blur());
}

img {
    border: none;
}

.left {
    float: left
}

.right {
    float: right;
}
.ywp-entry-content h3{
	 background: #fafafa;
    font-size: 20px;
    padding: 10px 20px;
    color: #111;
    font-weight: 800;
    border-left: 3px solid #005361;margin:20px 0 10px 0;
}
/*客户自定义卡片*/
.ywp_quality_card {
    width: 100%;
    max-width: 355px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    font-family: Arial, Helvetica, sans-serif;
}


/* 顶部渐变区域 */
.ywp_quality_top {height: 175px;}


/* 内容区域 */
.ywp_quality_content {padding:15px 25px 25px 25px;}


/* 编号 */
.ywp_quality_number {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #8ba0b8;
    margin-bottom:4px;
}


/* 标题 */
.ywp_quality_title {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #10213d;
}


/* 副标题 */
.ywp_quality_subtitle {
    margin-top: 8px;
    font-size: 13px;
    letter-spacing: 1px;
    color: #58708d;
    font-weight: 500;
}


/* 列表 */
.ywp_quality_list {
    margin:15px 0 0!important;
    padding: 0!important;
    list-style: none;
}


.ywp_quality_list li {
    position: relative;
    padding-left:20px;
    margin-bottom:10px;
    font-size: 14px;
    line-height: 1.5;
    color: #536b87;
}


/* 绿色勾 */
.ywp_quality_list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #18c77b;
    font-size: 15px;
    font-weight: bold;
}
/*客户自定义结束*/

/*gallery 图片鼠标效果*/
.gallery-item {
    position: relative;
    overflow: hidden;
}

/* 图片容器隐藏溢出 */
.gallery-icon {
    position: relative;
    overflow: hidden;
}

/* 图片动画 */
.gallery-icon img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

/* hover 图片放大 */
.gallery-item:hover img {
    transform: scale(1.05);
}


/*超出两行隐藏*/
.ywp_products_card_title,.ywp_scroll_products_card_title{ display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;}
.ast-custom-button,.elementor-button {
    transition: transform 0.3s ease;
}

.ast-custom-button:hover,.elementor-button:hover {
    transform: translateY(-3px);
}
.sec-eyebrow .elementor-heading-title::before{
    content: '';
    width: 30px;
    height: 3px;
    background: #005361;
    border-radius: 2px;
        border-radius: 2px;
    display: inline-block;
    margin-bottom: 3px;
    margin-right: 15px;
}
/*Elementor 弹窗*/
.popup-title{text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 900;
    color: #000;}
.popup-title b{color:#22A870}
.custom-popup{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    z-index:9999;
}

.popup-content{
    background:#fff;
    width:650px;
    max-width:90%;
    padding:30px;
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
}


.popup-close{
    position:absolute;
    right:10px;
    top:-20px;
    font-size:55px;
    cursor:pointer;
}
.popup-close:hover{color:#22A870}

/* ── PROCESS ── */
.process-sec { background: var(--gray-50); padding: 88px 0; }
.process-steps {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
  position: relative; margin-top: 52px;
}
.process-steps::before {
  content: ''; position: absolute; top: 27px;
  left: calc(12.5% + 27px); right: calc(12.5% + 27px); height: 2px;
  background-image: repeating-linear-gradient(to right,#005361 0,#005361 7px,transparent 7px,transparent 14px);
}
.proc-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 28px; }
.proc-num {
  width: 54px; height: 54px; background:#005361; color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; margin-bottom: 22px; position: relative; z-index: 1;
  box-shadow: 0 4px 18px rgba(46,204,138,.42);
}
.proc-title { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.proc-desc { font-size: 16px; color: var(--gray-500); line-height: 1.65; }


.profile-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.profile-badge {
  display: flex; align-items: center; gap: 8px;
  background: #E8FAF3; border: 1px solid rgba(46,204,138,.25);
  color:#22A870; font-size: 15px; font-weight: 700;
  padding: 8px 16px; border-radius: 50px;
}
.profile-badge svg { width: 16px; height: 16px; fill:#22A870; }
/*自定义elementor 菜单*/
/* YWP 菜单基础样式 */
.ywp-menu-container .ywp-menu-list {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
}

.ywp-menu-container .ywp-menu-list li {   position: relative;
    list-style: none;
    padding: 0 10px;
    margin: 0;cursor: pointer;
    transition: color 0.3s;
}
.ywp-menu-container .ywp-menu-list li::after,.ywp-menu-container li.current-menu-item::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0; /* 贴在 li 的底部 */
    width: 100%;
    height: 3px;
    background-color:var(--ast-global-color-1);
    /* 核心：初始缩放为 0，且基点设为左侧 */
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s ease-out;
}
/* 3. 鼠标悬停在 li 上时，触发伪元素动画 */
.ywp-menu-container .ywp-menu-list li:hover::after {
    transform: scaleX(1);
}
.ywp-menu-container li.current-menu-item::after{ transform: scaleX(1)!important;}
.ywp-menu-container li.current-menu-item a{color:var(--ast-global-color-1)!important}

/* 4. 确保 a 标签样式不会遮挡或冲突 */
.ywp-menu-container .ywp-menu-list li a {
    display: block;
    padding: 10px 0; /* 给文字留出空间 */
    text-decoration: none;
    color: var(--ast-global-color-1);;
}
.ywp-menu-container .ywp-menu-list li a {
    text-decoration: none;
    color: #6B7A8D;
    font-weight:600;
    display: block;font-size:18px;padding:17px 28px;    
}

.ywp-menu-container .ywp-menu-list li a:hover {
      
    color: var(--ast-global-color-1);
}
.ywp-menu-placeholder {
    padding: 20px;
    border: 1px dashed #ccc;
    color: #666;
}
/*时间轴*/
.pipeline{
    position:relative;
    padding:10px 0 10px;
  }
  .pipeline::before{
    content:"";
    position:absolute;
    left:50%;
    top:0; bottom:0;
    width:4px;
    margin-left:-2px;
    background:
    repeating-linear-gradient(
        to bottom,
        #AAB6BE 0px,
        #AAB6BE 10px,
        #55636F 10px,
        #E5EFF0 16px
      );
    border-radius:2px;
  }
  .p-row{
    position:relative;
    display:flex;
    align-items:flex-start;
    min-height:120px;
    margin-bottom:6px;
  }
  .p-flange{
    position:absolute;
    left:50%;
    top:4px;
    width:34px;height:34px;
    margin-left:-17px;
    border-radius:50%;
    background:#FFFFFF;
    border:3px solid #005361;
    z-index:2;
    display:flex;align-items:center;justify-content:center;
  }
  .p-flange::before{
    content:"";
    width:8px;height:8px;
    border-radius:50%;
    background:#22A870;
  }
  .p-row.highlight .p-flange{ border-color:#22A870; }
  .p-row.highlight .p-flange::before{ background:#005361; }
  /* bolt dots around flange */
  .p-flange::after{
    content:"";
    position:absolute;
    inset:-6px;
    border-radius:50%;
    border:1px dashed #AAB6BE;
  }

  .p-side{
    width:calc(50% - 40px);
    padding-top:2px;
  }
  .p-side.left{ margin-right:auto; text-align:right; }
  .p-side.right{ margin-left:auto; text-align:left; }

  .p-year{
    font-weight:700;
    font-size:30px;
    color:#005361;
    line-height:1;
    letter-spacing:0.02em;
  }
  .p-row.highlight .p-year{ color:var(--acc-600); }

  .p-card{
    display:inline-block;
    margin-top:10px;
    background:#FFFFFF;
    border:1px solid #DFF3E9;
    border-radius:8px;
    box-shadow::0 1px 2px rgba(0,83,97,0.06), 0 2px 10px rgba(0,83,97,0.05);
    padding:14px 18px;
    max-width:420px;
  }
  .p-side.left .p-card{ border-right:3px solid #005361; }
  .p-side.right .p-card{ border-left:3px solid #005361); }
  .p-row.highlight .p-side.left .p-card{ border-right-color:#22A870 }
  .p-row.highlight .p-side.right .p-card{ border-left-color:#22A870 }

  .p-tag{
    display:inline-block;
   
    font-size:11px;
    letter-spacing:0.06em;
    text-transform:uppercase;
    color:#005361;
    background:#E5EFF0;
    padding:2px 8px;
    border-radius:2px;
    margin-bottom:8px;
  }
  .p-row.highlight .p-tag{ color:#22A870; background:#DFF3E9; }
  .p-title{
    font-size:15px;
    font-weight:600;
    color:var(--text);
    margin:0 0 4px;
    line-height:1.4;
  }
  .p-issuer{
    font-size:13px;
    color:#64707A;
    margin:0;
    line-height:1.5;
  }




.section-tag {
    display: inline-block;
    background: #F0F5FF;
    color: #1A56DB;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 44px;
}

.title-divider::before,
.title-divider::after {
    content: '';
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: var(--gray-light);
}

.title-divider-bar {
    width: 52px;
    height: 4px;
    background: var(--blue);
    border-radius: 2px;
}

.cta-divider {
    width: 40px;
    height: 3px;
    background: var(--blue);
    border-radius: 2px;
    margin-bottom: 22px;
}

.shops-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.shop-img {
    border-radius: #10;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #c5e8fa, #87CEFA);
    aspect-ratio: 4/3;
    border-radius: 8px !important;
}

.shop-img.large {
    grid-column: span 2;
    aspect-ratio: 16/7;
}

.shop-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-img-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: white;
    font-size: 13px;
    font-weight: 500;
    padding: 20px 14px 10px;
}

/*wpform*/
.wpforms-container {
    margin-top: 0 !important
}

.wpforms-container .wpforms-form .wpforms-field-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    letter-spacing: 0.5px;
}

.wpforms-container .wpforms-field,
.wp-core-ui div.wpforms-container .wpforms-field,
.wpforms-container .wpforms-field.wpforms-one-half {
    padding-top: 0 !important
}

div.wpforms-container-full .wpforms-form textarea.wpforms-field-large {
    height: 110px !important
}

.wpforms-submit {
    text-transform: uppercase;
    font-size: 15px !important;
    padding: 10px 30px !important;
}

/*download*/
.v1-row {
    display: block;
    padding: 10px 20px;
    border: 1px solid #f1f5f9;
    border-radius: 15px;
}

.v1-row:hover {
    background: #f7f7f7;
}


.v1-row::after {
    content: "";
    display: table;
    clear: both;
}

.v1-left {
    float: left;
    display: block;
    width: calc(100% - 130px);
}

.v1-right {
    float: right;
    width: 110px;
    text-align: right;
    margin-top: 4px;
}

.v1-icon-box {
    float: left;
    background: #fef2f2;
    color: #dc2626;
    padding: 8px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid #fee2e2;
    text-align: center;
    width: 50px;
    margin-right: 16px;
}

.v1-details {
    float: left;
    width: calc(100% - 70px);
}

.v1-title {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.v1-meta {
    font-size: 13px;
    color: #64748b;
}

.v1-btn {
    display: inline-block;
    background-color: #2563eb;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.15s ease;
}

.v1-btn:hover {
    background-color: #1d4ed8;
    color: #fff;
}

@media screen and (max-width:768px) {
	.elementor-image-gallery .gallery-item{width:50%!important}
    .v1-title {
        line-height: 1.1;
    }

    .v1-row {
        padding: 5px
    }

    .v1-meta {
        line-height: 1.3
    }

    .v1-details {
        float: left;
        width: calc(100% - 45px);
    }

    .v1-icon-box {
        padding: 5px;
        width: 35px;
        margin-right: 8px
    }

    .v1-left {
        width: calc(100% - 110px)
    }
}



/* 单个下载行项目 */
.download-item {
    display: flex;
    align-items: center;
    padding: 15px 24px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

/* 鼠标悬停整行时的效果 */
.download-item:hover {
    background-color: #fafafa;
}

/* 蓝色文档图标包装器 */
.file-icon {
    width: 36px;
    height: 36px;
    background-color: #4285f4;
    /* 类似 Google Docs 的蓝色 */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    /* 防止图标被压缩 */
}

/* 用 SVG 绘制内部的文档线条 */
.file-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 公司/项目描述信息 */
.file-profile {
    flex: 3;
    /* 占用较多空间 */
    font-size: 15px;
    color: #333333;
    padding-right: 20px;
    font-weight: 500;
}

/* 具体的文件名 */
.file-name {
    flex: 3;
    /* 占用最多空间，展示完整文件名 */
    font-size: 14px;
    color: #666666;
    word-break: break-all;
    /* 防止长文件名撑破布局 */
    padding-right: 20px;
}

/* 下载链接按钮 */
.download-link {
    flex-shrink: 0;
    font-size: 15px;
    color: #fff !important;
    background: #30B7F1;
    padding: 8px 10px;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

/* 下载链接悬停效果 */
.download-link:hover {
    background: #003D9C;
    color: #fff;
}

.ywp_download p {
    margin-bottom: 0
}

.ywp_download .e-con-inner {
    border-bottom: 1px solid #f0f0f0
}

/* 响应式媒体查询：针对手机等小屏幕进行优化 */
@media (max-width: 768px) {
	.process-steps{grid-template-columns:1fr 1fr;gap:15px;}
	.proc-step{padding:0 5px;}
	.custom-hero-slider{height:90vh;}
	.custom-hero-slider .swiper-slide{padding:0 15px;}
	.slide-title{font-size:28px;margin-bottom:15px;}
    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .file-icon {
        margin-bottom: 5px;
    }

    .file-profile,
    .file-name {
        padding-right: 0;
        width: 100%;
    }
}

/*Footer*/
.ast-builder-footer-grid-columns .widget .widget-title {
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.footer-widget-area-inner .menu li a {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition), padding-left var(--transition);
}

.footer-widget-area-inner .menu li a::before {
    content: '›';
    color:#22A870;
}

.social-label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 12px;
}

.social-label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition);
}

.social-icon:hover {
    background: var(--blue);
    border-color: var(--blue);
}

.social-icon svg {
    width: 15px;
    height: 15px;
    fill: rgba(255, 255, 255, .7);
}

.social-icon:hover svg {
    fill: #fff;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .83rem;
    color: rgba(255, 255, 255, .65);
}

.contact-item svg {
    width: 15px;
    height: 15px;
    fill: var(--blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item a {
    color: rgba(255, 255, 255, .65);
    transition: color var(--transition);
}

.contact-item a:hover {
    color: #fff;
}

.val-card {
    background: #0D1B2A;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    padding: 32px 24px;
    transition: .25s ease;
}

.val-card:hover {
    background: #1565C0;
    border-color: var(--blue);
}

.val-card .val-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: #14A83B;
    margin-bottom: 10px;
}

.val-card .val-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.val-card .val-text {
    font-size: .83rem;
    color: rgba(255, 255, 255, .6);
    line-height: 1.7;
}

/* XPS features list */
.xps-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.xps-feat {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: rgba(21, 101, 192, .05);
    border-radius: var(--radius);
    border-left: 3px solid var(--blue);
}

.xps-feat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    min-width: 32px;
}

.xps-feat-text {
    font-size: .85rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* --- 全局文章基础初始化 --- */
.ywp-latest-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    /* 左右分栏间距 20px */
    width: 100%;
    box-sizing: border-box;
}

.ywp-post-item {
    display: flex;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

.ywp-post-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.ywp-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ywp-post-content {
    display: flex;
    flex-direction: column;
}

.ywp-post-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ywp-post-title a {
    color: #333;
    text-decoration: none;
}

.ywp-post-title a:hover {
    text-decoration: underline;
}

.ywp-post-desc {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;
    /* 所有描述均两行超出隐藏 */
}

.primary-post .ywp-post-content {
    background: #005361;
    padding: 20px;
}

.primary-post .ywp-post-content .ywp-post-title a,
.primary-post .ywp-post-content .ywp-post-desc {
    color: #fff;
}

/* --- PC 端 & iPad 端（屏幕宽度 >= 768px） --- */
@media (min-width: 768px) {

    /* 让两侧的大网格保持高度同步拉伸 */
    .ywp-latest-posts-grid {
        align-items: stretch;
    }


    /* 左边大模块（上图下文） */
    .primary-post {
        flex-direction: column;
    }

    .primary-post .ywp-post-thumb {
        width: 100%;
        height: 290px;
    }

    .primary-post .ywp-post-title {
        -webkit-line-clamp: 1;
        /* 左侧标题一行超出隐藏 */
    }

    /* 右边总包裹容器 */
    .ywp-secondary-posts {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        /* 弹性分配中间空隙，确保完美上下贴边对齐 */
        height: 100%;
    }

    /* 右边单行模块（左图右文） */
    .secondary-post {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        /* 图文水平间距 20px */
    }

    /* 严格锁死 PC 和 iPad 端的图片尺寸为 270px x 180px */
    .secondary-post .ywp-post-thumb {
        flex-shrink: 0;
        width: 270px !important;
        min-width: 270px !important;
        max-width: 270px !important;
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }

    .secondary-post .ywp-post-thumb img {
        width: 270px !important;
        height: 180px !important;
    }

    .secondary-post .ywp-post-content {
        flex-grow: 1;
        /* 文字宽度自动适应剩余空间 */
        padding: 4px 0 0 0;
        /* 略微下移，对齐大图的视觉重心 */
    }

    .secondary-post .ywp-post-title {
        -webkit-line-clamp: 2;
        /* 右侧标题两行超出隐藏 */
        font-size: 16px;
    }
}

/* --- 移动端（手机屏幕 < 768px） --- */
@media (max-width: 767px) {
    .ywp-latest-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .primary-post {
        flex-direction: column;
    }

    .primary-post .ywp-post-title {
        -webkit-line-clamp: 2;
    }

    .ywp-secondary-posts {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .secondary-post {
        flex-direction: row;
        gap: 20px;
    }

    /* 手机端保持你最初要求的 130px x 100px 尺寸，防止屏幕过窄放不下 */
    .secondary-post .ywp-post-thumb {
        flex-shrink: 0;
        width: 130px !important;
        min-width: 130px !important;
        max-width: 130px !important;
        height: 100px !important;
    }

    .secondary-post .ywp-post-content {
        flex-grow: 1;
    }
}

/* 头部跟随 */
body.is-scrolled {
    padding-top: 80px !important;
    /* Altezza media header mobile */
}

/* 2. Header Sticky - Configurazione Core */
body.is-scrolled .ast-main-header-wrap {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100% !important;
    z-index: 9999 !important;
    /* Sempre sopra il contenuto */
    background-color: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
}

/* 3. FIX MENU MOBILE: Posizionamento e Trasparenza */
/* Questo blocco corregge il "muro bianco" che copriva tutto il post */

body.is-scrolled .ast-mobile-header-content,
body.is-scrolled .ast-mobile-popup-drawer {
    position: fixed !important;
    top: 80px !important;
    /* Si ancora sotto l'header */
    left: 0 !important;
    width: 100% !important;
    z-index: 9998 !important;
    /* Sotto la barra header ma sopra il post */
    background-color: #ffffff !important;

    /* Gestione Altezza Dinamica */
    height: auto !important;
    max-height: calc(100vh - 80px) !important;
    /* Evita che il menu esca dallo schermo */
    overflow-y: auto !important;
    /* Permette lo scroll se il menu è lungo */

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 4. Sincronizzazione Icone e Trigger */
/* Assicura che l'hamburger/X rimanga visibile e cliccabile */
.ast-mobile-menu-trigger-wrapper,
.main-header-menu-toggle {
    z-index: 10000 !important;
    position: relative;
}

/* 5. Pulizia elementi durante lo scroll */
body.is-scrolled .ast-above-header-wrap,
body.is-scrolled .ast-below-header-wrap {
    display: none !important;
}

/* 6. Fix per utenti loggati (Admin Bar di WordPress) */
body.admin-bar.is-scrolled .ast-main-header-wrap {
    top: 32px !important;
}

/* Mobile Admin Bar Fix (più alta su schermi piccoli) */
@media screen and (max-width: 782px) {
    body.admin-bar.is-scrolled .ast-main-header-wrap {
        top: 46px !important;
    }

    body.admin-bar.is-scrolled .main-header-bar-navigation,
    body.admin-bar.is-scrolled .ast-mobile-header-content {
        top: calc(46px + 80px) !important;
    }
}

/** side contact **/
.displaynone {
    display: none !important
}

.lineBox {
    position: fixed !important;
    bottom: 35%;
    right: 0px;
    left: auto;
    z-index: 99999
}

.lineBox .lineItem {
    border-radius: 50%;
    cursor: pointer;
    width: 50px;
    height: 50px;
    background: #153CBA;
    margin-bottom:3px;
    color: #fff;
    line-height: 50px;
    text-align: center;
    position: relative;
    display: block;
    font-size: 20px;
    text-decoration: none;box-shadow: 0 6px 18px rgba(0,0,0,.15);transition:.3s;
}

.lineItem .layui-icon {
    font-size: 26px;
}

.lineItem svg {
    width: 30px !important;
    height: 30px !important;
    margin: 9px auto;
}

a#inquiry {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 55px;
}

a#inquiry span {
    display: inline-block;
    font-size: 14px;
    line-height: 16px;
}

.lineItem:hover {
    opacity: 0.8;transform:translateX(-3px);
}

.lineItem:hover .lineTip {
    display: block;
}

.lineTop {
    margin-top: 4px;
}

.lineTip {
    border-radius: 2px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, .2);
    position: absolute;
    top: 0px;
    right: 49px;
    color: #000;
    padding: 0 10px;
    background: #fff;
    display: none;
    font-size: 14px;
    width: 250px;
}

.lineTip:before,
.lineTip:after {
    content: "";
    display: block;
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-left-color: rgba(255, 255, 255, 1);
    right: -16px;
    top: 15px;
    z-index: 1;
}

.lineTip:after {
    right: -18px;
    border-left-color: rgb(237, 237, 237);
    z-index: 0;
}

.lineWechat {
    width: 100px;
    height: 100px;
    padding: 0px;
}