﻿/* =========================================================
   傑出貿易企業獎－企業介紹頁
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #252525;
    background: #f5f3ee;
    font-family: "Noto Sans TC", Arial, sans-serif;
    line-height: 1.8;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.award-detail-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   固定選單
========================================================= */

.award-detail-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0b0b0b !important;
    border-bottom: 1px solid rgba(214, 189, 135, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(10px);
}

.award-detail-nav-inner {
    width: min(1280px, calc(100% - 48px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.award-detail-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

    .award-detail-logo img {
        width: 190px;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

.award-detail-nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.award-detail-back,
.award-detail-ieat {
    min-width: 126px;
    padding: 10px 22px;
    border-radius: 999px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.award-detail-back {
    color: #71521f;
    background: #f5ebd5;
    border: 1px solid #d6bd87;
}

.award-detail-ieat {
    color: #ffffff;
    background: #8a682b;
    border: 1px solid #8a682b;
}

    .award-detail-back:hover,
    .award-detail-ieat:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(70, 49, 17, 0.16);
    }


/* =========================================================
   頁面主體
========================================================= */

.award-detail-page {
    overflow: hidden;
}


/* =========================================================
   公司主視覺
========================================================= */

.award-company-hero {
    position: relative;
    padding: 76px 0 72px;
    background: radial-gradient( circle at 5% 15%, rgba(202, 169, 105, 0.22), transparent 30% ), linear-gradient( 135deg, #f7f2e8 0%, #eee3cf 100% );
}

    .award-company-hero::after {
        content: "";
        position: absolute;
        right: -160px;
        bottom: -220px;
        width: 460px;
        height: 460px;
        border: 1px solid rgba(139, 104, 43, 0.20);
        border-radius: 50%;
    }

.award-company-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: 58px;
}

.award-company-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.award-company-logo-card {
    width: min(100%, 560px);
    margin-bottom: 12px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.award-company-logo-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: left center;
}

.award-company-title {
    max-width: 560px;
}

.award-company-category {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 16px;
    color: #72531f;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(138, 104, 43, 0.26);
    border-radius: 999px;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.award-company-name {
    margin: 0;
    color: #382817;
    font-family: "Noto Serif TC", serif;
    font-size: clamp(30px, 3.3vw, 48px);
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: 0.02em;
}

.award-company-name-en {
    margin: 10px 0 0;
    color: #886b3c;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.award-company-photo-card {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    background: #d9d0c0;
    border: 8px solid rgba(255, 255, 255, 0.82);
    border-radius: 24px;
    box-shadow: 0 26px 60px rgba(76, 51, 17, 0.18);
}

    .award-company-photo-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to top, rgba(45, 31, 14, 0.18), transparent 42% );
        pointer-events: none;
    }

.award-company-photo {
    width: 100%;
    height: 100%;
    min-height: 424px;
    object-fit: cover;
}


/* =========================================================
   區塊標題
========================================================= */

.award-section-heading {
    margin-bottom: 34px;
    text-align: center;
}

    .award-section-heading span {
        display: block;
        margin-bottom: 8px;
        color: #9b7a41;
        font-size: 13px;
        font-weight: 900;
        letter-spacing: 0.18em;
    }

    .award-section-heading h2 {
        margin: 0;
        color: #3d2c18;
        font-family: "Noto Serif TC", serif;
        font-size: 36px;
        font-weight: 900;
        letter-spacing: 0.08em;
    }


/* =========================================================
   公司資料
========================================================= */

.award-company-info-section {
    padding: 88px 0 96px;
    background: #ffffff;
}

.award-company-info-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 32px;
    align-items: stretch;
}

.award-company-info-card,
.award-company-description-card {
    background: #ffffff;
    border: 1px solid #e5dccb;
    border-radius: 20px;
    box-shadow: 0 16px 42px rgba(72, 49, 20, 0.08);
}

.award-company-info-card {
    padding: 12px 36px;
}

.award-company-info-list {
    margin: 0;
}

.award-company-info-item {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid #eee7da;
}

    .award-company-info-item:last-child {
        border-bottom: 0;
    }

    .award-company-info-item dt {
        margin: 0;
        color: #80602b;
        font-size: 20px;
        font-weight: 900;
        letter-spacing: 0.03em;
    }

    .award-company-info-item dd {
        min-width: 0;
        margin: 0;
        color: #3e3e3e;
        font-size: 19px;
        font-weight: 500;
        word-break: break-word;
    }

.award-company-website {
    color: #855f1e;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(133, 95, 30, 0.35);
    text-underline-offset: 5px;
}

    .award-company-website:hover {
        color: #4e3712;
    }

.award-company-description-card {
    position: relative;
    overflow: hidden;
    padding: 38px 40px;
    background: linear-gradient( 145deg, rgba(250, 246, 238, 0.98), rgba(242, 232, 212, 0.94) );
}

    .award-company-description-card::before {
        content: "";
        position: absolute;
        top: -90px;
        right: -90px;
        width: 220px;
        height: 220px;
        border: 1px solid rgba(137, 103, 45, 0.18);
        border-radius: 50%;
    }

.award-company-description-title {
    position: relative;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(126, 91, 34, 0.22);
}

    .award-company-description-title span {
        display: block;
        margin-bottom: 6px;
        color: #9b7a41;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.16em;
    }

    .award-company-description-title h3 {
        margin: 0;
        color: #3d2c18;
        font-family: "Noto Serif TC", serif;
        font-size: 30px;
        font-weight: 900;
    }

.award-company-description {
    position: relative;
    color: #4a443c;
    font-size: 17px;
    line-height: 2;
    text-align: justify;
}

    .award-company-description p {
        margin: 0 0 18px;
    }

        .award-company-description p:last-child {
            margin-bottom: 0;
        }


/* =========================================================
   返回得獎企業
========================================================= */

.award-detail-bottom {
    padding: 58px 0;
    background: #342719;
}

.award-detail-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.award-detail-bottom h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-family: "Noto Serif TC", serif;
    font-size: 30px;
    font-weight: 900;
}

.award-detail-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
}

.award-detail-bottom-button {
    flex: 0 0 auto;
    min-width: 164px;
    padding: 13px 28px;
    color: #3a2a16;
    background: #e5c887;
    border: 1px solid #e5c887;
    border-radius: 999px;
    text-align: center;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

    .award-detail-bottom-button:hover {
        transform: translateY(-2px);
        background: #f2d99e;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    }


/* =========================================================
   頁尾
========================================================= */

.award-detail-footer {
    padding: 26px 24px;
    color: rgba(255, 255, 255, 0.72);
    background: #211a13;
    text-align: center;
}

    .award-detail-footer p {
        margin: 0;
        font-size: 14px;
        line-height: 1.8;
    }


/* =========================================================
   平板
========================================================= */

@media (max-width: 960px) {

    .award-company-hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .award-company-identity {
        align-items: center;
        text-align: center;
    }

    .award-company-logo-card {
        justify-content: center;
    }

    .award-company-logo-image {
        object-position: center center;
    }

    .award-company-title {
        max-width: 680px;
    }

    .award-company-photo-card {
        min-height: 390px;
    }

    .award-company-photo {
        min-height: 374px;
    }

    .award-company-info-layout {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   手機
========================================================= */

@media (max-width: 680px) {

    .award-detail-container {
        width: min(calc(100% - 28px), 1180px);
    }


    /* -------------------------
       手機版上方選單
    ------------------------- */

    .award-detail-nav-inner {
        width: calc(100% - 24px);
        min-height: 68px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .award-detail-logo {
        flex: 0 1 145px;
        min-width: 0;
        width: auto;
        justify-content: flex-start;
    }

        .award-detail-logo img {
            width: 145px;
            max-width: 100%;
            height: auto;
            object-fit: contain;
        }

    .award-detail-nav-links {
        flex: 0 0 auto;
        width: auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 7px;
        white-space: nowrap;
    }

    .award-detail-back,
    .award-detail-ieat {
        min-width: 0;
        padding: 7px 11px;
        font-size: 13px;
        line-height: 1.5;
    }


    /* -------------------------
       公司主視覺
    ------------------------- */

    .award-company-hero {
        padding: 48px 0 50px;
    }

    /*
       原本手機版只有 190px，
       再加 padding 後圖片會變得很小。
       改為依手機寬度等比例縮放。
    */
    .award-company-logo-card {
        width: min(82%, 420px);
        min-height: 0;
        margin-bottom: 20px;
        padding: 0;
        justify-content: center;
    }

    .award-company-logo-image {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
        object-position: center center;
    }

    .award-company-name {
        font-size: 34px;
    }

    .award-company-name-en {
        font-size: 14px;
        letter-spacing: 0.06em;
    }

    .award-company-photo-card {
        min-height: 260px;
        border-width: 5px;
        border-radius: 18px;
    }

    .award-company-photo {
        min-height: 250px;
    }


    /* -------------------------
       公司資料
    ------------------------- */

    .award-company-info-section {
        padding: 62px 0 68px;
    }

    .award-section-heading {
        margin-bottom: 26px;
    }

        .award-section-heading h2 {
            font-size: 30px;
        }

    .award-company-info-card {
        padding: 6px 22px;
    }

    .award-company-info-item {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 18px 0;
    }

        .award-company-info-item dt {
            font-size: 14px;
        }

        .award-company-info-item dd {
            font-size: 16px;
        }

    .award-company-description-card {
        padding: 30px 25px;
    }

    .award-company-description-title h3 {
        font-size: 27px;
    }

    .award-company-description {
        font-size: 16px;
        line-height: 1.9;
        text-align: left;
    }


    /* -------------------------
       下方返回區塊
    ------------------------- */

    .award-detail-bottom {
        padding: 44px 0;
    }

    .award-detail-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .award-detail-bottom h2 {
        font-size: 26px;
    }

    .award-detail-bottom-button {
        width: 100%;
    }
}


/* =========================================================
   小尺寸手機
========================================================= */

@media (max-width: 430px) {

    /*
       不再換成上下兩排，
       維持 Logo + 兩顆按鈕同一列
    */
    .award-detail-nav-inner {
        width: calc(100% - 20px);
        min-height: 64px;
        padding: 0;
        gap: 6px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .award-detail-logo {
        width: auto;
        flex: 0 1 125px;
        min-width: 0;
        justify-content: flex-start;
    }

        .award-detail-logo img {
            width: 125px;
            max-width: 100%;
            height: auto;
        }

    .award-detail-nav-links {
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-end;
        gap: 5px;
    }

    .award-detail-back,
    .award-detail-ieat {
        padding: 6px 9px;
        font-size: 12px;
        line-height: 1.4;
    }

    .award-company-logo-card {
        width: min(86%, 360px);
        margin-bottom: 18px;
    }

    .award-company-name {
        font-size: 30px;
    }
}


/* =========================================================
   極小尺寸手機
   避免 320～375px 裝置按鈕擠壓 Logo
========================================================= */

@media (max-width: 370px) {

    .award-detail-nav-inner {
        width: calc(100% - 16px);
        gap: 4px;
    }

    .award-detail-logo {
        flex-basis: 105px;
    }

        .award-detail-logo img {
            width: 105px;
        }

    .award-detail-nav-links {
        gap: 4px;
    }

    .award-detail-back,
    .award-detail-ieat {
        padding: 6px 7px;
        font-size: 11px;
    }

    .award-company-name {
        font-size: 28px;
    }

    .award-company-name-en {
        font-size: 13px;
    }
}
