/* 產品介紹 (products.html): every product, grouped by kind as on the home
   page, each a card linking to its page. */
.products-page {
    padding: 110px 0 80px;
}
.C-E-title h1 {
    margin: 0 0 3px 0;
    color: #302c2b;
    font-size: clamp(28px, 2.5vw, 34px);
    letter-spacing: .14em;
}
.products-kind + .products-kind {
    margin-top: 56px;
}
/* the kind's heading, as on the home page (css/index.css) */
.product-group-title {
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--line, #302c2b);
    font-size: clamp(19px, 1.8vw, 23px);
    letter-spacing: .14em;
}
.product-group-title::before,
.product-group-title::after {
    content: '';
    width: 36px;
    height: 1px;
    background: currentColor;
    opacity: .45;
}
.products-grid {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
    justify-content: center;
    list-style: none;
}
.products-grid a {
    display: block;
    color: #302c2b;
    text-decoration: none;
    text-align: center;
}
.products-grid img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1;
}
.products-grid h3 {
    margin: 6px 0 4px;
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: .05em;
    word-break: keep-all;
    transition: color .25s;
}
.products-grid p {
    margin: 0;
    color: #6b6b6b;
    font-size: 14px;
    line-height: 1.7;
}
@media (hover: hover) {
    .products-grid a:hover h3 { color: #0d6575; }
}
/* a kind with one product: its card centred, as wide as one of three */
.products-grid:has(> li:only-child) {
    grid-template-columns: minmax(0, 260px);
}
@media screen and (min-width: 640px) {
    .products-page { padding-top: 140px; }
    .products-kind + .products-kind { margin-top: 72px; }
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px 28px;
    }
}

/* the line under the last kind, for visitors who came here from the menu */
.products-more {
    margin: 64px 0 0;
    color: #494949;
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: .05em;
    text-align: center;
    text-wrap: balance;
}
/* the Chinese line breaks after its comma, not inside a phrase */
.products-more span {
    display: inline-block;
}

/* 文章專區 (posts.html): every article, as the cards on the home page
   (css/index.css), two to a row from 640 px */
.posts-page .blog-area {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}
.posts-page .blog-card {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
@media screen and (min-width: 640px) {
    .posts-page .blog-card {
        width: calc(50% - 20px);
    }
}
.posts-page .blog-introduce {
    margin: 0 0 20px;
}
.posts-page .blog-introduce img {
    width: 100%;
    height: auto;
    display: block;
}
.posts-page .blog-introduce figcaption {
    padding-top: 14px;
    font-size: 18px;
    line-height: 1.7;
    letter-spacing: .04em;
    font-weight: bold;
    color: #0d6575;
}
/* the whole card is the link: picture and title, no button */
.posts-page a.blog-card {
    color: inherit;
    text-decoration: none;
}
.posts-page a.blog-card .blog-introduce img {
    transition: opacity .25s;
}
.posts-page a.blog-card figcaption {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: text-decoration-color .25s;
}
@media (hover: hover) {
    .posts-page a.blog-card:hover .blog-introduce img {
        opacity: .88;
    }
    .posts-page a.blog-card:hover figcaption {
        text-decoration-color: currentColor;
    }
}
.posts-page a.blog-card:focus-visible {
    outline: 2px solid #0d6575;
    outline-offset: 4px;
}
