/* =========================
           Responsive
   ========================= */

.title-box {
    grid-area: title;
    position: relative;
    display: grid;
    grid-template-columns: max-content max-content;
    /* 列宽跟随内容，不撑开 */
    grid-template-rows: auto auto;
    grid-template-areas:
        "title icon"
        "subtitle icon";
    align-items: start;
    column-gap: clamp(10px, 4vw, 20px);
    /* ← 这里调左右间距 */
    /* margin: 10px 0 20px 20px; */
    margin-bottom: 10px;
    row-gap: 5px;
    /* color: var(--brand-black-color); */
    /* z-index: 10; */
}

/* 竖排文字 */
.title-box__title,
.title-box__subtitle {
        writing-mode: horizontal-tb;
    text-orientation: initial;
    /* font-family: inherit; */
    line-height: 1;
    margin: 0;
}


.title-box__title {
    grid-area: title;
}

.title-box__subtitle {
    grid-area: subtitle;
    text-transform: uppercase;
    /* color: #000; */
    align-self: start;
}


/* icon 在左列、title 下方；默认水平居中，也可改 start/end */
.title-box__icon {
    grid-area: icon;
    width: 50px;
    height: 50px;
    /* 按需改 */
    /* background-size: 100% auto; */
    justify-self: center;
}

/* ============================
           发现箭头按钮
   ============================ */

.home-discovery {
    display: inline-block;
    margin-top: 40px;
}

/* =====================================
           暂时隐藏
   ===================================== */
.home-discovery {
  pointer-events: none !important;
  opacity: 0 !important;
  cursor: not-allowed !important;
}
.home-discovery a {
    display: flex;
     position: relative;   
    align-items: center;
    gap: 25px;
    padding: 12px 0 14px 0;
    /* z-index: 1; */
    text-align: left;
    text-transform: uppercase;
    font-family: var(--ff-heading);
    font-size: 1.2em;
    font-weight: bold;
    /* color: var(--brand-grey-color); */
    letter-spacing: 3px;
    text-decoration: none;
    
}

.home-discovery a::before {
    content: "";
    width: 100%;
    height: 1px;
    pointer-events: none;
    position: absolute;
    background-color: var(--brand-black-color);
    bottom: 0;
    left: 0;
    /* z-index: 1; */
    transition: width var(--transition-duration) var(--animation-curve);
}

.home-discovery a::after {
    content: "";
    width: 38px;
    height: 6px;
    background: url("../../static/icon-discovery-arrow.svg") right center no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    transition: transform var(--transition-duration) var(--animation-curve);
}


/* ============================
           断点1024px
   ============================ */

@media (min-width: 1024px) {

    .title-box {
        grid-template-columns: max-content max-content;
        /* 列宽跟随内容，不撑开 */
        grid-template-rows: auto;
        grid-template-areas:
            "title icon"
            "subtitle icon";

        flex-wrap: wrap;
        align-items: center;
        transform: none;
        /* margin: 2vh 5vw 2vh 5vw; */

        /* max-width: 100%; */
        box-sizing: border-box;
        column-gap: 0;
        /* ← 这里调左右间距 */
        margin: 0;
        row-gap: 10px
 
    }

    .title-box__title,
    .title-box__subtitle {
               /* writing-mode: horizontal-tb;
        text-orientation:initial; */
    }
    .title-box__title {

                justify-self: start;
    }
    .title-box__icon {
        width: 40px;
        height: 40px;
        padding-left: 5px;
        /* align-self: center; */
    }
    .title-box__subtitle {

        justify-self: start;
        margin-top: 15px;
    }
.home-discovery a:hover:before {
    width: 0;
    left: auto;
    right: 0;
} 
.home-discovery a:hover:not(.noArrow):after {
    transform: translateX(15%);
}
}
@media (min-width: 1024px) and (max-height: 850px) {
    .home-discovery a {
        font-size: 1em;
    }
}