:root {
    --ink: #22110d;
    --muted: #6c625e;
    --paper: #fffdfa;
    --panel: #ffffff;
    --line: #eadfda;
    --red: #ff322b;
    --red-dark: #be001c;
    --violet: #43275f;
    --green: #0d7f66;
    --shadow: 0 24px 70px rgba(67, 39, 95, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;
    padding: 12px clamp(16px, 4vw, 56px);
    background: rgba(255, 253, 250, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 20px;
    font-weight: 700;
    margin-left: auto;
}

.nav a,
.language-switch a {
    text-decoration: none;
}

.language-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    font-size: 0.9rem;
}

.language-switch a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
}

.language-switch a.active {
    border-color: var(--violet);
    color: var(--violet);
    font-weight: 800;
}

.hero {
    position: relative;
    min-height: calc(100vh - 68px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.88fr);
    grid-template-areas:
        "copy photo";
    align-items: center;
    gap: clamp(20px, 5vw, 56px);
    padding: clamp(36px, 7vw, 82px) clamp(16px, 6vw, 86px);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.hero-copy {
    grid-area: copy;
}

.hero-photo {
    grid-area: photo;
    display: block;
    min-height: 440px;
    height: min(58vh, 600px);
    max-height: 640px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: 56% center;
    display: block;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--red-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(2.2rem, 5.5vw, 4.7rem);
    line-height: 1;
    letter-spacing: 0;
}

.intro {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.button.primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 50, 43, 0.25);
}

.button.ghost {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--violet);
}

.hero-logo {
    position: absolute;
    right: clamp(30px, 7vw, 120px);
    bottom: clamp(24px, 5vw, 64px);
    display: grid;
    place-items: center;
    align-self: center;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 44px rgba(34, 17, 13, 0.18);
}

.hero-logo img {
    width: min(19vw, 230px);
    min-width: 150px;
    max-height: 210px;
    object-fit: contain;
    filter: drop-shadow(0 22px 36px rgba(67, 39, 95, 0.12));
}

.services,
.proof,
.warehouse,
.contact {
    padding: clamp(54px, 8vw, 96px) clamp(18px, 6vw, 86px);
}

.section-heading {
    max-width: 820px;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.section-heading p,
.contact-copy p {
    color: var(--muted);
    font-size: 1.08rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.service-card {
    min-height: 190px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.service-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.service-card p {
    margin: 0;
    color: var(--muted);
}

.proof {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
    align-items: center;
    gap: clamp(24px, 5vw, 70px);
    background: #fff;
    border-top: 1px solid var(--line);
}

.proof-media {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.proof-media img,
.warehouse img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.proof-media img {
    aspect-ratio: 4 / 3.15;
    object-position: center 35%;
}

.proof-copy p,
.warehouse-copy p {
    color: var(--muted);
    font-size: 1.08rem;
}

.proof-copy ul {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.proof-copy li {
    padding: 12px 14px;
    border-left: 4px solid var(--green);
    background: #f4faf7;
    border-radius: 8px;
    font-weight: 800;
}

.warehouse {
    position: relative;
    min-height: 540px;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #fff;
    background: #151515;
}

.warehouse img {
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0.72;
}

.warehouse::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.76));
}

.warehouse-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.warehouse-copy p {
    color: rgba(255, 255, 255, 0.86);
}

.contact {
    display: grid;
    grid-template-columns: minmax(240px, 0.75fr) minmax(300px, 1fr);
    gap: clamp(28px, 6vw, 72px);
    background: #f6f1ef;
}

.contact-copy a,
footer a {
    color: var(--violet);
    font-weight: 800;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: clamp(18px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field {
    display: grid;
    gap: 7px;
}

label {
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d8cac4;
    border-radius: 8px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: 3px solid rgba(67, 39, 95, 0.15);
    border-color: var(--violet);
}

.invalid {
    border-color: var(--red-dark);
}

.notice {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.notice.success {
    color: #075f4b;
    background: rgba(13, 127, 102, 0.12);
}

.notice.error {
    color: #8a0015;
    background: rgba(190, 0, 28, 0.1);
}

.privacy {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px clamp(18px, 6vw, 86px);
    color: var(--muted);
    background: #fff;
    border-top: 1px solid var(--line);
}

footer p {
    margin: 0;
}

@media (max-width: 900px) {
    .site-header {
        align-items: start;
    }

    .nav {
        justify-content: flex-start;
        margin-left: 0;
    }

    .language-switch {
        justify-content: flex-start;
    }

    .hero,
    .proof,
    .contact {
        grid-template-columns: 1fr;
    }

    .hero {
        grid-template-areas:
            "photo"
            "copy"
            "logo";
        min-height: auto;
    }

    .hero-logo img {
        width: min(58vw, 220px);
        min-width: 0;
        max-height: none;
    }

    .hero-logo {
        position: static;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .warehouse {
        min-height: 470px;
    }
}

@media (max-width: 560px) {
    .site-header {
        gap: 10px;
        padding: 10px 14px;
    }

    .brand span {
        font-size: 0.98rem;
    }

    .brand img {
        width: 34px;
        height: 34px;
    }

    .nav {
        width: 100%;
        gap: 18px;
        order: 3;
        font-size: 0.95rem;
    }

    .language-switch {
        margin-left: auto;
        gap: 6px;
        font-size: 0.82rem;
    }

    .language-switch a {
        min-height: 32px;
        padding: 5px 8px;
    }

    .hero {
        padding: 14px 14px 42px;
        gap: 22px;
    }

    .hero-photo {
        min-height: 265px;
        max-height: none;
        margin-inline: -14px;
        border-radius: 0;
    }

    .hero-photo img {
        min-height: 265px;
        object-position: 63% center;
    }

    h1 {
        font-size: clamp(1.85rem, 10.5vw, 2.7rem);
        line-height: 1.02;
    }

    .intro {
        margin-top: 16px;
    }

    .actions {
        margin-top: 24px;
    }

    .services,
    .proof,
    .warehouse,
    .contact {
        padding: 44px 14px;
    }

    .proof-media {
        margin-inline: -14px;
        border-radius: 0;
    }

    .proof-media img {
        aspect-ratio: 1 / 0.78;
        object-position: center 42%;
    }

    .service-card {
        min-height: 0;
        padding: 18px;
    }

    .warehouse {
        min-height: 460px;
        padding-top: 150px;
    }

    .warehouse img {
        object-position: 56% center;
    }

    .contact-form {
        padding: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    footer {
        flex-direction: column;
    }
}


/* Login MS button */
.language-switch .ms-login-btn,
.language-switch .ms-login-btn:link,
.language-switch .ms-login-btn:visited {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    margin-left: 8px;
    border: 1px solid #0b5ed7 !important;
    border-radius: 8px;
    background: #0d6efd !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
}

.language-switch .ms-login-btn:hover,
.language-switch .ms-login-btn:focus {
    background: #0b5ed7 !important;
    color: #ffffff !important;
    border-color: #0a58ca !important;
}

.language-switch .ms-login-btn:active {
    background: #0a58ca !important;
    color: #ffffff !important;
}

@media (max-width: 560px) {
    .language-switch .ms-login-btn {
        min-height: 32px;
        padding: 5px 10px;
        margin-left: 4px;
        font-size: 0.82rem;
    }
}
