:root {
    --ink: #18202b;
    --muted: #607083;
    --line: #d8e0e8;
    --bg: #f6f8fa;
    --panel: #ffffff;
    --blue: #1d5f99;
    --teal: #16847c;
    --gold: #b78024;
}

* {
    box-sizing: border-box;
}

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

a {
    color: var(--blue);
    text-decoration: none;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 5vw, 72px);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    min-width: 220px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    color: var(--ink);
    font-size: 15px;
}

.site-nav a.active {
    color: var(--teal);
    font-weight: 700;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-left: 8px;
    border-left: 1px solid var(--line);
}

.language-switcher a {
    padding: 4px 7px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 13px;
}

.language-switcher a.active {
    background: #e8f4f2;
    color: var(--teal);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 36px;
    align-items: center;
    min-height: 560px;
    padding: clamp(56px, 8vw, 112px) clamp(20px, 5vw, 72px);
    background:
        linear-gradient(120deg, rgba(24, 32, 43, 0.88), rgba(29, 95, 153, 0.78)),
        url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1800&q=80");
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.08;
}

.hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #ffd27a;
}

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

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    font: inherit;
    cursor: pointer;
}

.button.primary,
button {
    background: var(--teal);
    color: #fff;
}

.button.secondary {
    background: #fff;
    color: var(--ink);
}

.hero-panel {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.hero-panel span,
.hero-panel strong {
    display: block;
}

.hero-panel strong {
    margin: 8px 0 12px;
    font-size: 28px;
    line-height: 1.2;
}

.section,
.service-band,
.page-hero,
.detail {
    padding: clamp(44px, 6vw, 82px) clamp(20px, 5vw, 72px);
}

.page-hero {
    background: #eaf0f5;
}

.page-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-heading h2,
.service-band h2,
.two-column h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.18;
}

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

.card,
.list-item,
.contact-form,
.contact-info {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.card h3,
.list-item h2 {
    margin: 10px 0;
}

.tag {
    display: inline-flex;
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
}

.service-band {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    gap: 28px;
    background: #18202b;
    color: #fff;
}

.process-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-list li,
.feature-list div {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.listing {
    display: grid;
    gap: 18px;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.category-filter a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
}

.category-filter a.active {
    border-color: var(--teal);
    background: #e8f4f2;
    color: var(--teal);
    font-weight: 700;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 28px;
}

.feature-list {
    display: grid;
    gap: 12px;
}

.feature-list div {
    background: #fff;
    color: var(--ink);
}

.feature-list span {
    display: block;
    color: var(--muted);
}

.detail {
    max-width: 980px;
    margin: 0 auto;
}

.detail h1 {
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.12;
}

.lead {
    color: var(--muted);
    font-size: 20px;
}

.rich-text {
    color: #334155;
    font-size: 17px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
}

.product-detail {
    padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 72px);
}

.product-hero {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(26px, 5vw, 60px);
    align-items: start;
    margin-bottom: 44px;
}

.product-gallery {
    display: grid;
    gap: 14px;
}

.product-main-image {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--teal) #dbe4ec;
}

.product-thumbs button {
    flex: 0 0 86px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #fff;
    aspect-ratio: 1 / 1;
}

.product-thumbs button.active {
    border-color: var(--teal);
}

.product-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-summary {
    padding-top: 10px;
}

.product-summary h1 {
    margin: 10px 0 16px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.1;
}

.key-features,
.content-list {
    display: grid;
    gap: 10px;
    padding-left: 20px;
    color: #334155;
}

.key-features {
    margin: 22px 0;
}

.product-tabs {
    border-top: 1px solid var(--line);
}

.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    position: sticky;
    top: 79px;
    z-index: 4;
}

.tab-list button {
    min-height: 54px;
    padding: 12px 18px;
    border-radius: 0;
    border-right: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.tab-list button.active {
    background: var(--teal);
    color: #fff;
}

.tab-panel {
    display: none;
    padding: clamp(24px, 4vw, 48px) 0;
}

.tab-panel.active {
    display: block;
}

.download-list {
    display: grid;
    gap: 12px;
    max-width: 720px;
}

.download-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}

.download-list a::after {
    content: "Download";
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(8, 15, 26, 0.86);
    z-index: 100;
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: min(1120px, 92vw);
    max-height: 86vh;
    object-fit: contain;
    background: #fff;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
}

.has-lightbox {
    overflow: hidden;
}

.contact-form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 32px clamp(20px, 5vw, 72px);
    background: #101722;
    color: #fff;
}

.site-footer p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-link {
    color: #ffd27a;
}

@media (max-width: 820px) {
    .site-header,
    .site-footer,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .hero,
    .service-band,
    .two-column,
    .product-hero {
        grid-template-columns: 1fr;
    }

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

    .tab-list {
        position: static;
    }

    .tab-list button {
        flex: 1 1 50%;
    }
}
