/* ==================== CSS 變數與重置 (Variables & Reset) ==================== */

/* 文字選取樣式（還原瀏覽器預設，覆蓋 DaisyUI） */
::selection {
    background-color: Highlight;
    color: HighlightText;
}

/* html, body 基礎設定 */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    color: var(--gray-900);
    font-family:
        "Noto Sans TC",
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        "Noto Sans",
        "Liberation Sans",
        Arial,
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Segoe UI Symbol",
        "Noto Sans Symbols";
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: 1.5;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family:
        "Noto Sans TC",
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        "Noto Sans",
        "Liberation Sans",
        Arial,
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Segoe UI Symbol",
        "Noto Sans Symbols";
}

/* 表單元素字體繼承（含 DaisyUI 覆蓋） */
/* input,
textarea,
select,
button,
.input,
.textarea,
.select {
  font-family: inherit;
  font-size: inherit;
} */

/* 連結重置 */
a {
    text-decoration: none;
}

/* ==================== 全域工具類別 (Global Utilities) ==================== */

/* ---------- 區塊標題 ---------- */
.page-section-title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
}

/* ---------- 視覺隱藏（螢幕閱讀器可讀） ---------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Skip Link（跳過導航連結） ---------- */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background-color: var(--brand-primary);
    color: var(--white);
    padding: 12px 24px;
    z-index: 10000;
    text-decoration: none;
    font-weight: var(--fw-medium);
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--brand-primary-600);
    outline-offset: 2px;
}

/* ---------- 文字截斷 ---------- */

.text-clamp-1,
.text-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-clamp-1 {
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.text-clamp-2 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* ---------- 計數器效果 ---------- */
[data-countup],
.text-outline {
    color: transparent !important;
    -webkit-text-stroke: 1px #00bcd4;
}

/* ---------- 圖示 ---------- */
.material-symbols-outlined {
    font-variation-settings:
        "FILL" 0,
        "wght" 300,
        "GRAD" 0,
        "opsz" 24;
}

/* ---------- 表單覆寫 ---------- */
.form-check {
    margin-bottom: 0;
}

.form-check-inline {
    margin-right: 0;
}

/* ---------- 文字工具 ---------- */
.text-brand-cyan {
    color: var(--brand-primary);
}

.text-white {
    color: var(--white);
}

.text-block {
    font-size: var(--fs-sm);
}

/* ---------- 分隔線 ---------- */
.divider-h {
    width: 100%;
    height: 1px;
    margin: 1.25rem 0;
    background-color: white;
}

/* ========== 按鈕系統 ========== */

/* ---------- 基礎按鈕 ---------- */
.site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    line-height: 1.8;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* ---------- 藥丸型按鈕 ---------- */
.site-btn-pill {
    border-radius: 100px;
}

/* ---------- 實心按鈕 ---------- */
.site-btn-solid {
    background-color: var(--brand-primary);
    border: none;
    color: var(--white);
}

.site-btn-solid:hover {
    background-color: var(--brand-primary-hover);
    color: var(--white);
}

/* ---------- 空心按鈕 ---------- */
.site-btn-outline {
    background-color: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.site-btn-outline:hover {
    border-color: var(--brand-primary);
    background-color: var(--brand-primary);
    color: var(--white);
}

/* ---------- 箭頭按鈕（獨立結構） ---------- */
.site-btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 14px 8px 24px;
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    color: var(--gray-900);
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-btn-arrow:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* Footer 深色背景下的箭頭按鈕 */
.footer-section .site-btn-arrow {
    border-color: var(--white);
    color: var(--white);
}

.footer-section .site-btn-arrow:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background-color: var(--white);
}

/* 箭頭圖示區塊 */
.site-btn-arrow-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    margin-left: 20px;
    background-color: var(--brand-primary);
    border-radius: 100%;
    color: var(--white);
}

/* ==================== 共用版面元件 (Shared Layout Components) ==================== */

/* ---------- 頁尾 (Footer) ---------- */

/* 頁尾外層 */
.footer-section {
    background-color: var(--gray-800);
    padding: 60px 0 20px;
}

/* 頁尾導航列 */
.footer-navbar {
    border-bottom: 1px solid var(--white);
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-logo {
    width: 100%;
    max-width: 150px;
}

.footer-list {
    gap: 10px;
    color: var(--white);
    margin-bottom: 0;
    padding-left: 0;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
}

.footer-menu-link-text {
    color: var(--white);
    padding: 30px 16px;
    display: block;
    white-space: nowrap;
}

/* 頁尾內容區 */
.footer-section .footer-body {
    margin-top: 40px;
}

.footer-base-info-header {
    color: var(--white);
    margin-bottom: 60px;
}

.footer-base-info-header .main-title {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
    margin-bottom: 8px;
}

.footer-base-info-header .sub-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-regular);
    margin-bottom: 8px;
}

.footer-base-info-body {
    gap: 5px;
    color: var(--white);
    flex-flow: column;
    display: flex;
}

.footer-base-info-col {
    gap: 10px;
    flex-flow: row;
    justify-content: flex-start;
    align-items: center;
    display: flex;
}

.footer-base-info-title {
    font-weight: var(--fw-medium);
    color: var(--white);
    width: 80px;
    min-width: 80px;
    margin-block: 0;
}

.footer-base-info-text {
    font-size: var(--fs-sm);
    color: var(--gray-200);
}

/* 頁尾表單 */
.footer-form {
    padding-top: 20px;
}

.footer-form-title {
    font-weight: var(--fw-medium);
    min-width: 100px;
    margin-bottom: 0;
    flex-shrink: 0;
    color: var(--white);
}

.footer-form-field {
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    display: flex;
}

.footer-dropdown {
    margin-inline: 0;
}

.text-field {
    background-color: var(--transparent);
    border-radius: 8px;
    width: 100%;
    max-width: 150px;
    margin-bottom: 0;
}

.footer-form-checkbox {
    gap: 20px;
    justify-content: flex-start;
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    flex: 1;
}

.footer-form-checkbox .label {
    white-space: nowrap;
}

/* Footer 公司型態欄位 - 手機垂直排列，平板以上水平排列 */
.footer-form-field:has(.footer-form-checkbox) {
    flex-direction: column;
    align-items: flex-start;
}

/* 手機：「其他」輸入框換行並放寬 */
.footer-form-checkbox:has(.checkbox-other) {
    flex-wrap: wrap;
}

.footer-form-checkbox .checkbox-other {
    flex: 1 1 100%;
}

/* 平板以上：公司型態水平排列，「其他」不換行 */
@media (min-width: 768px) {
    .footer-form-field:has(.footer-form-checkbox) {
        flex-direction: row;
        align-items: center;
    }

    .footer-form-field:has(.footer-form-checkbox) .footer-form-title {
        align-self: center;
    }

    .footer-form-checkbox:has(.checkbox-other) {
        flex-wrap: nowrap;
    }

    .footer-form-checkbox .checkbox-other {
        flex: 1 1 auto;
        min-width: 200px;
    }
}

.checkbox-label {
    color: var(--white);
}

.checkbox-field {
    min-width: 70px;
}

.checkbox-other {
    flex: 1;
    min-width: 200px;
    justify-content: flex-start;
    align-items: center;
    display: flex;
    gap: 8px;
}

.checkbox-other .form-control {
    flex: 1;
    min-width: 120px;
}

.radio-button-label {
    color: var(--white);
}

.radio-button-field {
    margin-top: 4px;
}

/* DaisyUI checkbox 圓角覆寫（-xs 預設太圓） */
.checkbox-xs {
    border-radius: 0.375rem; /* rounded-md = 6px */
}

/* 頁尾版權區 */
.footer-copyright {
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    display: flex;
}

.social {
    gap: 20px;
    align-items: center;
    display: flex;
}

.social a {
    color: var(--gray-500);
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright {
    color: var(--white);
    font-size: var(--fs-sm);
}

/* 頁尾 RWD */
@media screen and (max-width: 991.98px) {
    .footer-base {
        width: 100%;
    }

    .footer-copyright {
        flex-flow: column;
    }
}
@media screen and (max-width: 767.98px) {
    .footer-base-info-header {
        margin-bottom: 20px;
    }

    .footer-base-info-body {
        gap: 16px;
    }

    .footer-base-info-col {
        flex-flow: column;
        align-items: flex-start;
        gap: 4px;
    }

    .footer-menu-link-text {
        padding: 8px 16px;
    }
}
@media screen and (max-width: 575.98px) {
    .footer-form-checkbox {
        flex-wrap: wrap;
        gap: 10px;
    }

    .checkbox-other {
        width: 100%;
    }
}

/* ---------- 浮動選單 (Float Menu) ---------- */

.float-menu-container {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    z-index: 99;
    visibility: hidden;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    opacity: 0;
}

.float-menu-container ul li {
    margin-bottom: 1rem;
}

.float-menu-container ul li:nth-last-child(1) {
    margin-bottom: 0;
}

.float-menu-container ul li a {
    line-height: 1;
    padding: 0.5rem;
    font-size: 1rem;
    text-align: center;
    background-color: var(--white);
    color: var(--brand-primary);
    border-radius: 0.5rem;
    border: 1px solid var(--brand-primary-400);
    height: 44px;
    width: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.float-menu-container ul li a:hover {
    background-color: var(--brand-primary);
    color: var(--white);
}

.floatShow {
    opacity: 1;
    visibility: visible;
}

@media only screen and (max-width: 767px) {
    .float-menu-container {
        left: 0;
        bottom: 0;
        top: initial;
        right: initial;
        transform: initial;
        width: 100%;
        display: block;
    }

    .float-menu-container ul {
        width: 100%;
        display: flex;
        background-color: var(--white);
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    }

    .float-menu-container ul li {
        flex: 1;
        width: 25%;
        height: 100%;
        border-right: var(--gray-200) solid 1px;
        margin-bottom: 0;
    }

    .float-menu-container ul li:nth-last-child(1) {
        border-right: none;
    }

    .float-menu-container ul li a {
        width: 100%;
        font-size: 1rem;
        border: 0;
        border-radius: 0;
    }

    .float-menu-container.floatShow ~ .footer-section {
        margin-bottom: 44px;
    }
}

/* ---------- 麵包屑 (Breadcrumb) ---------- */

.bread-crumbs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    font-size: var(--fs-sm);
    justify-content: center;
}

.bread-crumbs li {
    display: flex;
    align-items: center;
}

.bread-crumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 10px;
    color: var(--gray-500);
}

.bread-crumbs a {
    color: var(--gray-500);
}

.bread-crumbs a:hover {
    color: var(--brand-primary);
}

.bread-crumbs li[aria-current="page"] {
    color: var(--brand-primary);
}

/* ---------- 頁面標題 (Page Header) ---------- */

.page-header {
    text-align: center;
    gap: 10px;
    flex-flow: column;
    display: flex;
}

.page-subtitle {
    font-size: var(--fs-sm);
    color: var(--brand-primary);
    margin-bottom: 0;
    text-align: center;
}

.page-title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-medium);
    margin-bottom: 0;
}

/* ---------- 橫幅圖片 (Banner Image) ---------- */

.banner-image {
    width: 100%;
    height: clamp(100px, 10vw, 200px);
    overflow: hidden;
}

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

/* ---------- 分頁導航 (Pagination) ---------- */

.pagination-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px dashed var(--gray-300);
}

.pagination-prev-btn,
.pagination-next-btn {
    color: var(--gray-900);
}

.pagination-prev-btn:hover,
.pagination-next-btn:hover {
    color: var(--brand-primary);
}

.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    list-style: none;
    margin-bottom: 0;
}

.page-number-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    border-radius: 0.25rem;
    border: 1px solid var(--gray-300);
    color: var(--gray-900);
}

.page-number-btn.active,
.page-number-btn:hover {
    border-color: var(--brand-primary);
    background-color: var(--brand-primary);
    color: var(--white);
}

.page-number-btn:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.pagination-prev-btn:focus-visible,
.pagination-next-btn:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.page-number-text {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.pagination-next-text {
    color: var(--gray-900);
}

/* ---------- 標籤群組 (Tag Group) ---------- */

.tag-group {
    margin-top: 1rem;
}

.tag-group-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tag-group-list a {
    display: block;
    border-radius: 9999px;
    background-color: var(--gray-100);
    color: var(--gray-900);
    padding: 10px 20px;
    font-size: var(--fs-md);
}

.tag-group-list a:hover {
    background-color: var(--brand-primary);
    color: var(--white);
}

/* 小尺寸標籤 - 用於產品/文章卡片內 */
.tag-group-sm .tag-group-list a {
    padding: 4px 12px;
    font-size: var(--fs-sm);
}

/* ==================== 共用內容元件 (Shared Content Components) ==================== */

/* ---------- 產品卡片 ---------- */

.product-card {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
}

.product-card-link {
    color: var(--gray-800);
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-content {
    flex-grow: 1;
}

.product-card-image {
    aspect-ratio: 1;
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    padding: 10px;
}

.product-card-img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.product-card-body {
    padding: 0 10px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-card-title {
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
}
.product-card-subtitle {
    color: var(--brand-primary);
}
.product-card-title,
.product-card-meta,
.product-card-subtitle,
.product-card-summary {
    margin-bottom: 0;
}

.product-card-title.text-clamp-1 {
    height: 20px;
}

/* 產品卡片 - 簡述 */
.product-card-summary {
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--gray-500);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: calc(var(--fs-sm) * 1.5 * 2);
}

.product-card-active {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 10px 10px 10px;
}

/* 產品卡片內按鈕等寬 */
.product-card-active .site-btn {
    flex: 1;
    max-width: 200px;
}

/* ---------- 產品列表模式（左圖右內容） ---------- */
.product-list {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
}

.product-list-image {
    width: 260px;
    height: 260px;
    flex-shrink: 0;
    display: block;
}

.product-list-img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.product-list-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-list-body {
    color: var(--gray-800);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.product-list-title {
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
}
.product-list-subtitle {
    color: var(--brand-primary);
}

.product-list-title,
.product-list-meta,
.product-list-subtitle,
.product-list-summary {
    margin-bottom: 0;
}

.product-list-summary {
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--gray-500);
}

.product-list-active {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: auto;
}

@media screen and (max-width: 767.98px) {
    .product-list {
        flex-direction: column;
    }
    .product-list-image {
        width: 100%;
        height: auto;
    }
    .product-list-active {
        justify-content: center;
    }
}

/* ---------- 新聞卡片 ---------- */

.article-card {
    display: flex;
    position: relative;
    margin-bottom: 40px;
}

.article-card::before {
    content: "";
    /* z-index: -1; */
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    width: 80%;
    height: 100%;
    position: absolute;
    right: 0;
}

.article-card-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    max-width: 600px;
    padding-block: 20px;
    z-index: 1;
}

.article-card-img {
    object-fit: cover;
    border-radius: 20px;
    width: 100%;
}

.article-card-body {
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 40px;
    display: flex;
    z-index: 1;
}

.article-card-main {
    gap: 15px;
    display: flex;
}

.article-card-meta {
    flex-flow: column;
    justify-content: space-between;
    align-items: stretch;
    min-width: 100px;
    display: flex;
}

.news-datetime {
    text-align: center;
}

.datetime-day {
    margin-block: 0;
    font-size: var(--fs-2xl);
    line-height: 1;
}

.datetime-year-month {
    gap: 6px;
    justify-content: center;
    align-items: center;
    font-size: var(--fs-xs);
    display: flex;
}

.category-button-text {
    color: var(--brand-primary);
    text-align: center;
    font-weight: var(--fw-bold);
}

.article-card-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
    color: var(--gray-800);
    margin-top: 0;
}
.article-card-subtitle {
    color: var(--brand-primary);
    margin-bottom: 0;
}
/* 文章卡片 - 簡述 */
.article-card-summary {
    color: var(--gray-500);
    margin-bottom: 0;
}

.article-card-action {
    margin-top: 40px;
}

/* 新聞卡片平板響應式（991px 以下：上圖下文） */
@media screen and (max-width: 991.98px) {
    .article-card {
        flex-direction: column;
    }

    .article-card::before {
        width: 100%;
        height: 75%;
        bottom: 0%;
    }

    .article-card-image {
        max-width: 80%;
        width: 100%;
        margin: 0 auto;
    }

    .article-card-body {
        position: relative;
        z-index: 1;
    }

    .article-card-main {
        flex-direction: column;
    }

    .article-card-meta {
        position: relative;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        min-width: auto;
    }

    .article-card-action {
        margin-top: 20px;
    }
}
@media screen and (max-width: 575.98px) {
    .article-card::before {
        height: 85%;
    }
    .article-card-image {
        max-width: 85%;
    }

    .article-card-body {
        padding: 30px;
    }
}

/* 側邊欄簡易卡片 */
.article-simple-wrapper {
    width: 100%;
    /* height: 100%; */
}

.article-simple-card {
    background-color: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    height: 100%;
}

.article-simple-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-simple-card-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    padding: 10px;
}

.article-simple-card-img {
    object-fit: cover;
    width: 100%;
    border-radius: 0.375rem;
}

.article-simple-card-body {
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 0 15px 15px;
    display: flex;
}

.article-simple-card-main {
    gap: 2px;
    flex-flow: column;
    display: flex;
    width: 100%;
}

.article-simple-card-meta {
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    min-width: 100px;
    display: flex;
}

.article-simple-card-news-datetime {
    color: var(--gray-500);
    font-size: var(--fs-sm);
}

.article-simple-card-meta .category-button-text {
    font-size: var(--fs-sm);
}

.article-simple-card-title {
    color: var(--gray-900);
    font-size: var(--fs-base);
    margin-bottom: 0.25rem;
}
.article-simple-card-subtitle {
    font-size: var(--fs-sm);
    color: var(--brand-primary);
    margin-bottom: 0;
}
/* 文章簡易卡片 - 簡述 */
.article-simple-card-summary {
    color: var(--gray-500);
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: calc(var(--fs-sm) * 1.5 * 2);
}

.article-simple-card-action {
    padding: 0 15px 15px;
}

/* ==================== 首頁專屬區塊 (Homepage - index.html) ==================== */

/* ---------- Hero 橫幅區 (Hero Banner) ---------- */

.hero-banner {
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

@media (min-width: 1920.98px) {
    .hero-banner-bg {
        object-fit: contain;
    }
}

.hero-banner-header {
    color: var(--white);
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    display: flex;
    width: 100%;
}

.hero-banner-title {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-medium);
}

.hero-banner-subtitle {
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
    margin-top: 20px;
}
.hero-banner-img {
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-banner-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Hero Banner Swiper */
.hero-banner-swiper {
    width: 100%;
    height: 100%;
}

.hero-banner-swiper .swiper-slide {
    display: flex;
    align-items: center;
}

.hero-banner-swiper .hero-banner-pagination {
    display: none;
}

.hero-banner-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.hero-banner-pagination .swiper-pagination-bullet-active {
    background: var(--white);
}

.hero-banner-prev,
.hero-banner-next {
    color: var(--white);
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.hero-banner-prev:hover,
.hero-banner-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

.hero-banner-prev:after,
.hero-banner-next:after {
    font-size: 20px;
}

.scroll-active {
    z-index: 1;
    position: absolute;
    justify-content: center;
    align-items: center;
    display: flex;
    inset: auto 0% 20px;
}

.scroll-block {
    position: relative;
    background-color: var(--transparent);
    text-align: center;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 15px;
    width: 140px;
    height: 70px;
    display: flex;
    color: var(--white);
    border: none;
}

/* 半圓弧線 - 使用 mask 實現兩側漸淡效果 */
.scroll-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 140px;
    border: 1px solid var(--white);
    border-radius: 50%;
    clip-path: inset(0 0 50% 0);
    -webkit-mask: linear-gradient(to bottom, white 0%, transparent 50%);
    mask: linear-gradient(to bottom, white 0%, transparent 50%);
}

.button {
    border-top: 1px solid var(--white);
    background-color: var(--transparent);
    text-align: center;
    border-radius: 100%;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    display: flex;
}

@media screen and (max-width: 991.98px) {
    .hero-banner-header {
        justify-content: center;
        align-items: flex-start;
    }

    .hero-banner-img {
        height: auto;
        aspect-ratio: 3/2;
    }

    .hero-banner-img img {
        object-fit: contain;
        object-position: bottom;
    }
}

/* ---------- 關於區塊 (About Section) ---------- */

.about-section {
    padding-block: 100px;
}

.about-content {
    width: 100%;
    height: 100%;
    margin-bottom: auto;
}

.about-header {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    display: flex;
}

.about-title-block {
    flex-flow: column;
    justify-content: center;
    align-items: center;
    display: block;
}

.timer-block {
    flex-flow: row;
    justify-content: flex-start;
    align-items: flex-start;
    margin-left: 0;
    display: flex;
}

.timer-content {
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
    display: flex;
}

.number-counter {
    font-family:
        Open Sans,
        sans-serif;
    font-size: var(--fs-5xl);
    font-weight: var(--fw-bold);
    line-height: 1;
    display: block;
}

.number-year {
    color: var(--brand-primary);
    font-size: var(--fs-xl);
}

.number-plus {
    font-family:
        Open Sans,
        sans-serif;
    font-size: var(--fs-5xl);
    font-weight: var(--fw-bold);
    line-height: 1;
}

.about-body {
    padding-left: 60px;
}

.about-action {
    margin-top: 40px;
}

.reveal-image {
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    display: flex;
    position: relative;
    overflow: hidden;
}

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

/* ---------- 產品介紹區 (Product Section) ---------- */

.product-section {
    background-color: var(--white);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.product-code-embed-desktop {
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    inset: 0%;
}

.product-code-embed-desktop::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--brand-cyan);
}

.product-code-embed-desktop::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--brand-blue);
    clip-path: polygon(100% 0, 100% 100%, 30% 100%);
}

.product-code-embed-mobile {
    width: 100%;
    height: 100%;
    display: none;
    position: absolute;
    inset: 0% auto auto 0%;
}

.product-code-embed-mobile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--brand-cyan);
}

.product-code-embed-mobile::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--brand-blue);
}

.product-container {
    width: 100%;
    padding: 60px 5%;
    position: relative;
}

.product-contant {
    position: relative;
}

.product-introduce-header {
    margin-bottom: 60px;
    color: var(--white);
}

.product-header {
    color: var(--white);
    font-size: var(--fs-xl);
    font-weight: var(--fw-regular);
}

.product-left {
    gap: 30px;
    width: 100%;
    display: flex;
    position: relative;
}

.product-square-slider {
    border-radius: 20px;
    width: 100%;
    overflow: hidden;
}

.product-left-image {
    object-fit: cover;
    border-radius: 20px;
    width: 100%;
    height: 100%;
}

.product-right {
    gap: 30px;
    flex-flow: row;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    display: flex;
    position: relative;
    inset: 0% 0% 0% auto;
}

.product-circle-slider {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-right-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Owl Carousel 自訂樣式 */
.product-square-slider.owl-carousel,
.product-circle-slider.owl-carousel {
    position: relative;
}

/* 方形輪播 */
.product-square-slider.owl-carousel {
    border-radius: 20px;
    width: 300px;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.product-square-slider .owl-stage-outer,
.product-square-slider .owl-stage,
.product-square-slider .owl-item,
.product-square-slider .item {
    height: 100%;
}

.product-square-slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

/* 輪播導航按鈕 */
.product-square-slider .owl-nav,
.product-circle-slider .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.product-square-slider .owl-nav button.owl-prev,
.product-square-slider .owl-nav button.owl-next,
.product-circle-slider .owl-nav button.owl-prev,
.product-circle-slider .owl-nav button.owl-next {
    width: 40px;
    height: 40px;
    background-color: var(--black-opacity-50);
    color: var(--white) !important;
    border-radius: 50%;
    border: none;
    font-size: var(--fs-2xl);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-square-slider .owl-nav button.owl-prev:hover,
.product-square-slider .owl-nav button.owl-next:hover,
.product-circle-slider .owl-nav button.owl-prev:hover,
.product-circle-slider .owl-nav button.owl-next:hover {
    background-color: var(--brand-primary);
    transform: scale(1.1);
}

.product-square-slider .owl-nav button.owl-prev,
.product-circle-slider .owl-nav button.owl-prev {
    margin-left: 10px;
}

.product-square-slider .owl-nav button.owl-next,
.product-circle-slider .owl-nav button.owl-next {
    margin-right: 10px;
}

.product-square-slider .owl-nav button.owl-prev span,
.product-square-slider .owl-nav button.owl-next span,
.product-circle-slider .owl-nav button.owl-prev span,
.product-circle-slider .owl-nav button.owl-next span {
    font-size: var(--fs-3xl);
    font-weight: bold;
}

/* 輪播圓點 */
.product-square-slider .owl-dots,
.product-circle-slider .owl-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* 圓形輪播 */
.product-circle-slider.owl-carousel {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 100%;
    width: 300px;
    overflow: hidden;
    position: relative;
}

.product-circle-slider .owl-stage-outer,
.product-circle-slider .owl-stage,
.product-circle-slider .owl-item,
.product-circle-slider .item {
    height: 100%;
}

.product-circle-slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100%;
    display: block;
}

/* Product Grid Layout */
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 手機版：上圖下文垂直排列 */
.product-grid-left {
    order: 1;
}

.product-text-left {
    order: 2;
}

.product-grid-right {
    order: 3;
}

.product-text-right {
    order: 4;
}

.product-grid-text {
    display: contents;
}

.product-text-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.product-grid .product-left,
.product-grid .product-right {
    display: flex;
    justify-content: center;
    width: auto;
}

/* 桌面版：三欄式佈局 */
@media (min-width: 992px) {
    .product-grid {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: 1fr;
        align-items: center;
        gap: 2rem;
    }

    .product-grid-left,
    .product-grid-right {
        order: unset;
    }

    .product-grid-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        min-width: 200px;
    }

    .product-text-left,
    .product-text-right {
        order: unset;
    }

    .product-text-item {
        flex-direction: column;
    }

    .product-text-left {
        text-align: left;
        align-items: flex-start;
    }

    .product-text-right {
        text-align: right;
        align-items: flex-end;
    }
}

/* 產品介紹區 RWD */
.product-section {
    flex-flow: column;
}

.product-code-embed-mobile {
    z-index: 0;
}

@media screen and (max-width: 991.98px) {
    .product-code-embed-desktop {
        display: none;
    }

    .product-code-embed-mobile {
        display: block;
    }
}

@media screen and (max-width: 768px) {
    .product-introduce-header {
        margin-bottom: 20px;
    }
    .product-container {
        padding-inline: inherit;
        padding-block: 30px;
    }
}

/* 產品詳細頁輪播 */
.product-detail-slider-wrapper {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px 15px;
    position: relative;
    overflow: visible;
}

.product-detail-slider.owl-carousel {
    position: static;
}

/* 產品詳細輪播 - 讓卡片高度一致 */
.product-detail-slider .owl-stage {
    display: flex;
}

.product-detail-slider .owl-item {
    display: flex;
    height: auto;
}

.product-detail-slider .item {
    display: flex;
    width: 100%;
    padding: 0 5px;
}

.product-detail-slider .item .product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

/* 產品詳細頁輪播導航按鈕 */
.product-detail-slider-wrapper .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.product-detail-slider-wrapper .owl-nav button.owl-prev,
.product-detail-slider-wrapper .owl-nav button.owl-next {
    width: 40px;
    height: 40px;
    background-color: var(--black-opacity-50);
    color: var(--white) !important;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.product-detail-slider-wrapper .owl-nav button.owl-prev:hover,
.product-detail-slider-wrapper .owl-nav button.owl-next:hover {
    background-color: var(--brand-primary);
}

/* 產品詳細頁輪播圓點 */
.product-detail-slider .owl-dots {
    margin-top: 20px;
    text-align: center;
}

.product-detail-slider .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    background-color: var(--gray-300);
    border-radius: 50%;
    display: inline-block;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.product-detail-slider .owl-dots .owl-dot.active span {
    background-color: var(--brand-primary);
}

@media screen and (max-width: 767.98px) {
    .product-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-contant {
        flex-flow: column;
        display: flex;
    }

    .product-right {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }
}

/* ---------- 特色功能區 (Feature Section) ---------- */

.feature-section {
    padding-block: 100px;
}

.feature-content {
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    display: flex;
    text-align: left;
}

.feature-image {
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding-left: 100px;
    display: flex;
    position: relative;
    top: 40px;
}

.feature-img {
    border-radius: 20px;
    width: 300px;
    max-width: 100%;
    position: relative;
}
.feature-labels {
    color: var(--brand-primary);
    font-size: var(--fs-4xl);
    font-weight: var(--fw-regular);
    line-height: 1;
    position: relative;
    flex-flow: wrap;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 30px;
}

.feature-label {
    margin-bottom: 0;
    font-size: var(--fs-4xl);
    font-weight: var(--fw-medium);
}

.feature-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-medium);
}

.feature-body {
    margin-left: 100px;
}

/* 特色區塊 - 簡述 */
.feature-summary {
    margin-top: 20px;
}

.feature-actiove {
    margin-top: 40px;
}

.feature-aside {
    width: 100%;
    position: relative;
}

.feature-aside-img {
    width: 100%;
    border-radius: 20px;
}

.feature-aside-list {
    z-index: 2;
    flex-flow: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 60px;
    display: flex;
    position: absolute;
    inset: 0%;
    width: 100%;
}

.info-card {
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    display: block;
}

.info-card-content {
    gap: 16px;
    grid-template-rows: auto;
    grid-template-columns: 0.4fr 1fr;
    grid-auto-columns: 1fr;
    display: grid;
}

.info-card-number-header {
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    display: flex;
}

.info-card-number {
    color: var(--white);
    font-family:
        Open Sans,
        sans-serif;
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    line-height: 1;
}

.info-card-body {
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
    width: auto;
    display: flex;
}

.info-card-title {
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    color: var(--white);
    margin-top: 0;
}

.info-card-text {
    font-size: var(--fs-sm);
    color: var(--white);
    margin-bottom: 0;
}

@media screen and (max-width: 767.98px) {
    .feature-aside-list {
        padding: 30px;
    }
}

/* ---------- 客戶見證區 (Testimonials Section) ---------- */

.testimonials-section {
    background-color: var(--brand-blue);
    flex-flow: column;
    padding-block: 60px;
    display: block;
}

.testimonials-header {
    flex-flow: column;
    justify-content: center;
    align-items: center;
    display: flex;
}

.div-block-10 {
    margin-top: 40px;
}

.testimonials-list {
    gap: 20px;
    flex-flow: column;
    display: flex;
}

/* ========== 品牌區塊共用樣式 ========== */
.testimonials-block-left,
.testimonials-block-right {
    display: flex;
}

.testimonials-block-left .brand-logo-block,
.testimonials-block-right .brand-logo-block {
    background-color: var(--white);
    flex-flow: row;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 25px 20px;
    display: flex;
}

.testimonials-block-left .brand-logo-wrapper,
.testimonials-block-right .brand-logo-wrapper {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.testimonials-block-left .brand-logo-list,
.testimonials-block-right .brand-logo-list {
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0;
    padding-left: 0;
    list-style-type: none;
    display: flex;
    gap: 10px;
    width: max-content;
    animation: brand-logo-scroll 15s linear infinite;
    animation-play-state: paused;
}

.testimonials-block-left .brand-icon,
.testimonials-block-right .brand-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.testimonials-block-left .brand-icon-title,
.testimonials-block-right .brand-icon-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
    text-align: center;
    min-width: 160px;
    flex-shrink: 0;
    margin: 0;
}

.testimonials-block-left .brand-icon-group,
.testimonials-block-right .brand-icon-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonials-block-left .brand-introduce,
.testimonials-block-right .brand-introduce {
    justify-content: center;
    align-items: center;
    min-width: 320px;
    max-width: 380px;
    padding: 20px 60px;
    display: flex;
    flex-shrink: 0;
}

/* ========== 品牌區塊差異樣式 ========== */
/* Left: 圓角右、內容靠右、分隔線在左 */
.testimonials-block-left .brand-logo-block {
    border-radius: 0 2000px 2000px 0;
    justify-content: flex-end;
}

.testimonials-block-left .brand-icon-group {
    border-left: 1px solid var(--gray-300);
    padding-left: 20px;
    margin-left: 20px;
}

/* Right: 圓角左、內容靠左、分隔線在右 */
.testimonials-block-right .brand-logo-block {
    border-radius: 2000px 0 0 2000px;
    justify-content: flex-start;
}

.testimonials-block-right .brand-icon-group {
    border-right: 1px solid var(--gray-300);
    padding-right: 20px;
    margin-right: 20px;
}

/* ========== 共用樣式 ========== */
.brand-logo-list li img {
    height: 50px;
    width: auto;
}

/* 品牌介紹 - 簡述 */
.brand-introduce-summary {
    color: var(--white);
    margin-bottom: 0;
}

/* ========== 跑馬燈動畫 ========== */
@keyframes brand-logo-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ---------- 跑馬燈 (Marquee) ---------- */

.marquee-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.marquee-track {
    width: 100%;
    display: flex;
}

.marquee-track-list {
    grid-column-gap: 80px;
    grid-row-gap: 80px;
    opacity: 0.75;
    color: var(--white);
    white-space: nowrap;
    margin-bottom: 0;
    padding-left: 0;
    list-style-type: none;
    display: flex;
    width: max-content;
    animation: marquee-scroll 20s linear infinite;
}

.track-list {
    font-size: var(--fs-5xl);
    flex-shrink: 0;
    padding-right: 80px;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

/* 滑鼠 hover 時播放 */
.testimonials-block-left:hover .brand-logo-list,
.testimonials-block-right:hover .brand-logo-list {
    animation-play-state: running;
}

@media screen and (max-width: 767.98px) {
    .testimonials-block-left,
    .testimonials-block-right {
        flex-flow: column;
    }

    .testimonials-block-left .brand-logo-block {
        order: 2;
    }

    .testimonials-block-left .brand-introduce {
        order: 1;
    }

    .testimonials-block-left .brand-introduce,
    .testimonials-block-right .brand-introduce {
        padding: 10px 30px;
    }

    .testimonials-block-left .brand-logo-block,
    .testimonials-block-right .brand-logo-block {
        padding: 10px;
    }

    .testimonials-block-left .brand-icon-title,
    .testimonials-block-right .brand-icon-title {
        min-width: 150px;
    }

    .testimonials-block-left .brand-logo-list,
    .testimonials-block-right .brand-logo-list {
        animation-play-state: running !important;
    }
}

/* ---------- 最新消息區塊 (News Section) ---------- */

.news-section {
    padding-block: 100px;
    background-color: var(--gray-100);
}

.news-inner {
    width: 100%;
}

.news-section .article-simple-wrapper,
.news-section .article-simple-card {
    height: 100%;
}

/* ==================== 內頁共用版面 (Inner Page Layout) ==================== */

/* 頁面外層 */
.page-section {
    flex-flow: column;
    margin-top: var(--nav-height);
    padding-bottom: 100px;
    display: flex;
}

.header-layout {
    gap: 20px;
    flex-flow: column;
    margin-top: 40px;
    display: flex;
}

.content-layout {
    gap: 50px;
    flex-flow: row;
    margin-top: 40px;
    display: block;
}

@media screen and (max-width: 575.98px) {
    .content-layout {
        margin-top: 20px;
    }
}

/* 側邊欄 */
.sidebar {
    width: 100%;
}

.sidebar-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-medium);
    margin-top: 10px;
    /* margin-bottom: 20px; */
}

.accordion-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-item {
    list-style: none;
}

/* 側邊欄手風琴容器 */
.accordion-header {
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    background-color: transparent;
}

.accordion-header.is-open {
    background-color: transparent;
}

/* 標題連結 */
.accordion-title {
    flex: 1;
    text-decoration: none;
    color: inherit;
    padding: 18px 15px;
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
    margin-bottom: 0;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.accordion-title:hover {
    background-color: var(--gray-50);
    color: var(--brand-primary);
}

.accordion-title:active {
    color: var(--brand-primary);
}

.accordion-title.is-active {
    color: var(--brand-primary);
}

/* 箭頭按鈕 */
.accordion-toggle {
    border: none;
    background: transparent;
    padding: 18px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.accordion-toggle:hover {
    background-color: var(--gray-50);
}

.accordion-toggle:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: -2px;
}

.accordion-icon {
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    margin-bottom: 0;
    font-size: var(--fs-xl);
    font-weight: var(--fw-light);
    display: flex;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.accordion-header.is-open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.3s ease-out,
        opacity 0.3s ease-out;
}

.accordion-content.is-open {
    max-height: 500px;
    opacity: 1;
    transition:
        max-height 0.4s ease-in,
        opacity 0.4s ease-in;
}

.accordion-sub-link {
    width: 100%;
    padding: 18px 20px;
    display: block;
    color: var(--gray-600);
    transition:
        background-color 0.2s ease,
        padding-left 0.2s ease;
    border-left: 3px solid transparent;
}

.accordion-sub-link:hover {
    background-color: var(--brand-primary-50);
    padding-left: 24px;
    border-left-color: var(--brand-primary-600);
}

.accordion-sub-link.is-active {
    background-color: var(--brand-primary);
    border-left-color: var(--brand-primary-600);
    color: var(--white);
}

.accordion-sub-link.is-active:hover {
    background-color: var(--brand-primary);
    padding-left: 24px;
}

.accordion-content li {
    list-style: none;
}

/* 主內容區 */
.main-content {
    width: 100%;
}

/* 頁面介紹區塊外層 */
.page-intro-wrapper {
    border-bottom: 1px dashed var(--gray-200);
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

/* 頁面介紹區塊 */
.page-intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 內頁共用版面 RWD */
@media (max-width: 767.98px) {
    .accordion-header {
        padding: 14px 10px;
        min-height: 44px;
    }

    .accordion-sub-link {
        padding: 12px 20px;
        min-height: 44px;
    }

    .accordion-content.is-open {
        max-height: 800px;
    }
}

/* ==================== 各頁面專屬區塊 (Page-Specific Sections) ==================== */

/* ---------- 產品頁面 (product*.html) ---------- */

/* 產品詳情頁 */
.product-info-title-wrap {
    border-bottom: 1px dashed var(--gray-200);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.product-info-header {
    gap: 10px;
    flex-flow: column;
    display: flex;
}
.product-info-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-medium);
}
.product-info-title,
.product-info-subtitle,
.product-info-meta {
    margin-bottom: 0;
}

.product-info-active {
    gap: 20px;
    margin-top: 40px;
    display: flex;
}

.product-description-content {
    margin: 40px 0;
    background: var(--white);
}

.product-description-active {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    width: 100%;
    background-color: var(--gray-100);
}

.product-description-button {
    position: relative;
    background-color: var(--gray-100);
    color: var(--gray-600);
    text-align: center;
    padding: 16px 32px;
    font-weight: var(--fw-medium);
    line-height: 1.5;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.product-description-button:hover {
    color: var(--gray-900);
    background-color: var(--gray-200);
}

.product-description-button.active {
    background-color: var(--white);
    color: var(--gray-900);
    font-weight: var(--fw-medium);
}

.product-description-button.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--brand-primary);
}

.product-description {
    padding: 40px;
}

/* DaisyUI Tabs 樣式覆寫（產品說明頁） */
.product-description-tabs.tabs-lift {
    --tab-border-color: transparent;
}

.product-description-tabs .tab {
    background-color: var(--gray-200);
    color: var(--gray-700);
    font-weight: var(--fw-medium);
    border-radius: 0;
    min-height: 3rem;
    padding-inline: 2rem;
    white-space: nowrap;
}

.product-description-tabs .tab:hover {
    color: var(--gray-900);
    background-color: var(--gray-300);
}

.product-description-tabs .tab:is(:checked),
.product-description-tabs .tab:is([aria-selected="true"]) {
    background-color: var(--white);
    color: var(--gray-900);
    border-color: transparent;
    border-top: 3px solid var(--brand-primary);
    border-radius: 0;
}

.product-description-tabs .tab-content {
    border: none;
}

/* ---------- 新聞頁面 (news*.html) ---------- */

/* 新聞詳情頁 */
.article-detail-header {
    border-bottom: 1px dashed var(--gray-200);
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.news-date {
    justify-content: space-between;
    align-items: center;
    display: flex;
}

.article-detail-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-medium);
    margin-bottom: 0;
}
.article-detail-subtitle {
    color: var(--brand-primary);
    margin-bottom: 0.25rem;
}

.prev-next-nav-wrapper {
    border-top: 1px dashed var(--gray-200);
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
}

.prev-next-nav {
    justify-content: space-between;
    align-items: center;
    display: flex;
}

.prev-next-nav-text {
    font-size: var(--fs-sm);
}

.prev-next-nav-prev {
    border: 1px solid var(--gray-300);
    color: var(--gray-500);
    justify-content: space-between;
    align-items: center;
    width: 140px;
    padding-block: 8px;
    padding-right: 16px;
    display: flex;
}

.prev-next-nav-next {
    border: 1px solid var(--gray-300);
    color: var(--gray-500);
    justify-content: space-between;
    align-items: center;
    width: 140px;
    padding-block: 8px;
    padding-left: 16px;
    display: flex;
}

/* ---------- 分類頁面 (Category Pages) ---------- */

/* 分類導航 */
.category-nav {
    display: block;
}

.category-nav-list {
    gap: 20px;
    flex-flow: wrap;
    justify-content: center;
    align-items: flex-start;
    display: flex;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.category-nav-button {
    display: inline-block;
    background-color: var(--gray-100);
    color: var(--gray-900);
    border-radius: 100px;
    padding: 8px 24px;
    font-weight: var(--fw-medium);
}

.category-nav-button.active,
.category-nav-button:hover {
    background-color: var(--brand-primary);
    color: var(--white);
}

/* 分類盒子布局 */

.category-card {
    border-bottom: 1px solid var(--gray-200);
    width: 100%;
    margin-inline: auto;
    padding: 20px;
}
.category-card-content {
    display: flex;
    gap: 12px;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.category-card-body {
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    display: flex;
    gap: 12px;
}
.category-card-header {
    gap: 4px;
    flex-flow: column;
    display: flex;
}

.category-card-subtitle {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--brand-primary);
    margin-bottom: 0;
}

.category-card-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
    margin-bottom: 0;
}

/* 分類卡片 - 簡述 */
.category-card-summary {
    width: 100%;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: calc(var(--fs-base) * 1.5 * 2);
}

.category-card-image {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}

.category-card-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}
@media screen and (max-width: 575.98px) {
    .category-card {
        padding: 10px 10px 20px 10px;
        margin-bottom: 20px;
    }
    /* .category-card-summary {
    margin-top: 20px;
  } */
}

/* ---------- 解決方案頁 (solutions.html) ---------- */

.media-layout {
    gap: 40px;
    flex-flow: column;
    display: flex;
}

.media-box {
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
}

.media-card {
    width: 100%;
    display: flex;
}

.media-card.reverse {
    flex-flow: row-reverse;
}

.media-card-image {
    aspect-ratio: 1;
    border-radius: 20px;
    width: 52%;
    overflow: hidden;
}

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

.media-card-content {
    z-index: 5;
    justify-content: flex-start;
    align-items: center;
    width: 48%;
    margin-left: -40px;
    display: flex;
    position: relative;
}

.media-card-content.reverse {
    margin-left: 0;
    margin-right: -40px;
}

.media-card-body {
    z-index: 6;
    background-color: var(--gray-opacity-10);
    border-radius: 20px;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50%;
    display: flex;
    padding: 20px;
}

.media-card-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-regular);
}

.media-card-active {
    margin-top: 40px;
}

@media screen and (max-width: 768px) {
    .media-card,
    .media-card.reverse {
        flex-direction: column;
    }

    .media-card-image {
        width: 100%;
    }

    .media-card-content,
    .media-card-content.reverse {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .media-card-active {
        margin-top: 20px;
    }
}

/* ---------- 下載頁面 (downloads.html) ---------- */

.download-card {
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    flex-flow: column;
    padding: 20px;
    display: flex;
    overflow: hidden;
}

.download-image {
    aspect-ratio: 2 / 3;
    object-fit: fill;
    width: 100%;
}

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

.download-content {
    padding-top: 20px;
}

.download-tag {
    margin-bottom: 0;
}

.download-title {
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
}

.download-title.text-clamp-1 {
    min-height: 1.5em;
    margin-top: 5px;
}

.download-active {
    margin-top: 20px;
}

/* ---------- 聯絡我們頁 (contact.html) ---------- */

.contact-info-wrapper {
    margin-bottom: 2rem;
}

.contact-office {
    margin-bottom: 1.75rem;
}

.contact-office:last-child {
    margin-bottom: 0;
}

.contact-office-title {
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    margin-bottom: 0.5rem;
}

.contact-office-info {
    margin: 0;
}

.contact-info-row {
    display: flex;
    margin-bottom: 0.25rem;
}

.contact-info-row dt {
    font-weight: var(--fw-medium);
    color: var(--gray-800);
    font-size: var(--fs-sm);
    flex-shrink: 0;
}

.contact-info-row dd {
    font-size: var(--fs-sm);
    color: var(--gray-600);
    margin-left: 0;
}

/* 地圖區塊 */
.map-wrapper {
    margin-bottom: 2rem;
}

.map-placeholder {
    width: 100%;
}

.map-placeholder iframe {
    aspect-ratio: 4 / 3;
}

/* 營業資訊卡片 */
.business-info-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.5rem;
}

.business-info-item {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.business-info-item:last-child {
    border-bottom: none;
}

.business-info-label {
    font-weight: var(--fw-bold);
    color: var(--gray-800);
    min-width: 120px;
    flex-shrink: 0;
}

.business-info-text {
    color: var(--gray-600);
    line-height: 1.6;
}

@media screen and (max-width: 767.98px) {
    .business-info-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .business-info-label {
        min-width: auto;
    }
}

/* 表單區塊 */
.contact-form-wrapper {
    background-color: var(--gray-50);
    padding: 2rem;
    border-radius: 8px;
}

.contact-form-wrapper .form-label {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.contact-form-wrapper .form-check-label {
    margin-bottom: 0;
}

.company-type-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    align-items: center;
}

.company-type-group .form-check {
    white-space: nowrap;
    flex-shrink: 0;
}

.company-type-group .label {
    white-space: nowrap;
}

.company-type-group .other-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 100%;
    min-width: 200px;
}

/* 平板以上：不換行，輸入框彈性擴展 */
@media (min-width: 768px) {
    .company-type-group {
        flex-wrap: nowrap;
    }

    .company-type-group .other-input-wrapper {
        flex: 1 1 auto;
    }
}

.name-gender-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.gender-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    white-space: nowrap;
}

.other-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.other-input-wrapper .form-control {
    flex: 1 1 auto;
    min-width: 120px;
}

/* 聯絡我們 RWD */
@media (max-width: 575.98px) {
    .contact-form-wrapper {
        padding: 1rem;
    }
}

/* ---------- 搜尋結果頁 (search.html) ---------- */

.search-section {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

@media (max-width: 767.98px) {
    .search-section {
        margin-bottom: 20px;
    }
}

.search-container {
    max-width: 600px;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
}

.search-form-wrapper {
    display: flex;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--gray-300);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: var(--fs-base);
    background-color: var(--white);
    color: var(--gray-900);
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-100);
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background-color: var(--brand-primary);
    color: var(--white);
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-button .material-symbols-outlined {
    font-size: var(--fs-xl);
}
.search-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}
.search-info {
    color: var(--gray-600);
    font-size: var(--fs-lg);
    margin-bottom: 20px;
}

.search-keyword {
    color: var(--brand-primary);
    font-weight: var(--fw-medium);
}

.search-count {
    color: var(--brand-primary);
    font-weight: var(--fw-medium);
}

/* 無搜尋結果 */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: var(--fs-4xl);
    color: var(--gray-300);
    margin-bottom: 20px;
}

.no-results-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-medium);
    color: var(--gray-700);
    margin-bottom: 10px;
}

.no-results-text {
    color: var(--gray-500);
}

/* ==================== 產品詳情頁輪播 (Product Gallery) ==================== */

/* 畫廊容器 - Flexbox 橫向排列 */
.product-gallery {
    display: flex;
    gap: 15px;
    width: 100%;
    align-items: stretch;
}

/* ---------- 左側縮圖區 ---------- */
.product-gallery-thumbs {
    display: flex;
    flex-flow: column;
    align-items: center;
    width: 80px;
    flex-shrink: 0;
}

/* 縮圖 Swiper 容器 - 高度由 JS 動態設定 */
#product-thumb-swiper {
    width: 100%;
    overflow: hidden;
}

/* 縮圖項目 */
#product-thumb-swiper .swiper-slide {
    width: 70px !important;
    height: 70px !important;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.3s ease;
}

#product-thumb-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 縮圖 hover 效果 */
#product-thumb-swiper .swiper-slide:hover {
    opacity: 0.9;
    border-color: var(--gray-400);
}

/* 選中狀態 - 紅框高亮 */
#product-thumb-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--brand-primary);
}

/* ---------- 上下箭頭導航 ---------- */
.product-gallery-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--gray-600);
    transition: color 0.2s ease;
}

.product-gallery-nav:hover {
    color: var(--brand-primary);
}

/* 禁用狀態 */
.product-gallery-nav.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ---------- 右側大圖區 ---------- */
.product-gallery-main {
    flex: 1;
    min-width: 0;
}

#product-main-swiper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--gray-100);
    position: relative;
}

/* 大圖左右箭頭 */
.product-main-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    color: var(--gray-700);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-main-nav:hover {
    background-color: var(--brand-primary);
    color: var(--white);
}

.product-main-nav-prev {
    left: 15px;
}

.product-main-nav-next {
    right: 15px;
}

#product-main-swiper .swiper-slide {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#product-main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---------- 響應式調整 ---------- */
@media screen and (max-width: 767.98px) {
    /* 手機版：改為上下排列（大圖在上、縮圖在下） */
    .product-gallery {
        flex-direction: column;
    }

    .product-gallery-thumbs {
        order: 2;
        flex-direction: row;
        width: 100%;
        height: auto;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    #product-thumb-swiper {
        flex: 1;
        height: 70px !important;
        min-width: 0;
    }

    /* 手機版箭頭改為左右方向 */
    .product-gallery-nav {
        flex-shrink: 0;
    }

    .product-gallery-nav-prev .material-symbols-outlined,
    .product-gallery-nav-next .material-symbols-outlined {
        transform: rotate(-90deg);
    }

    .product-gallery-main {
        order: 1;
    }

    .header-layout {
        margin-top: 30px;
    }
}

/* ---------- 切換顯示方式 ---------- */
.view-container_func ul {
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.view-container_func li {
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background-color: var(--white);
    color: var(--gray-400);
    transition: all 0.2s;
}

.view-container_func li:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary-200);
}

.view-container_func li.active {
    color: var(--white);
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.view-container_func li a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
