:root {
    --color-primary: #0f3d73;
    --color-primary-dark: #092844;
    --color-accent: #d6a039;
    --color-text: #172033;
    --color-muted: #667085;
    --color-border: #e4e7ec;
    --color-bg: #f5f7fb;
    --color-white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 61, 115, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--color-text);
    font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    line-height: 1.6;
    background: var(--color-white);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 82px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.brand-logo {
    display: block;
    height: 36px;
    width: auto;
    filter: brightness(0);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--color-primary-dark);
    font-size: 15px;
    font-weight: 700;
}

.main-nav a:hover,
.language-switcher a:hover {
    color: var(--color-accent);
}

.language-switcher {
    display: flex;
    gap: 6px;
}

.language-switcher a {
    padding: 5px 8px;
    color: var(--color-muted);
    font-size: 13px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
}

.language-switcher .is-active {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--color-primary);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0;
    color: var(--color-white);
    background:
        linear-gradient(90deg, rgba(9, 40, 68, 0.48), rgba(9, 40, 68, 0.18) 46%, rgba(9, 40, 68, 0.1)),
        url("../banner/mainbanner.jpg") center / cover no-repeat;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-grid,
.split-grid,
.detail-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 32px;
}

.contact-grid {
    align-items: start;
}

.hero h1 {
    margin: 12px 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

.page-hero h1 {
    margin: 12px 0 18px;
    font-size: clamp(23px, 3.3vw, 39px);
    line-height: 1.2;
}

.hero p {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.eyebrow {
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    font-weight: 800;
    border-radius: 999px;
}

.btn-primary {
    color: var(--color-white);
    background: var(--color-accent);
}

.btn-outline {
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-visual {
    position: relative;
    isolation: isolate;
}

.hero-visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 560px);
    height: auto;
    margin-left: auto;
}

.hero-card {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 8%;
    max-width: 250px;
    padding: 1% 3%;
    background: #ffffff6b;
    text-shadow: 0 3px 14px rgba(8, 28, 52, 0.55);
}

.hero-card strong {
    display: block;
    font-size: clamp(48px, 5vw, 64px);
    line-height: 0.92;
}

.hero-card span {
    display: block;
    margin-top: 6px;
    color: var(--color-accent);
    font-weight: 800;
    font-size: 14px;
}

.hero-card p {
    margin: 8px 0 0;
    max-width: 230px;
    color: var(--color-primary-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    text-shadow: none;
}

.section {
    padding: 78px 0;
}

.section-muted {
    background: var(--color-bg);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-heading h2,
.split-grid h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.25;
}

.section-heading > a,
.text-link {
    color: var(--color-primary);
    font-weight: 800;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.category-grid a {
    display: block;
}

.category-grid article {
    height: 100%;
    padding: 18px;
    color: var(--color-white);
    font-weight: 800;
    border-radius: 18px;
    background: var(--color-primary);
}

.category-grid a:hover article {
    background: var(--color-primary-dark);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-tabs a {
    padding: 8px 14px;
    color: var(--color-primary-dark);
    font-size: 14px;
    font-weight: 800;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-white);
}

.filter-tabs .is-active,
.filter-tabs a:hover {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.product-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card,
.news-card,
.industry-list,
.content-page,
.contact-form {
    padding: 26px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: var(--color-white);
    box-shadow: var(--shadow);
}

a.product-card,
a.news-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.product-card:hover,
a.news-card:hover {
    border-color: var(--color-primary);
}

a.news-card {
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.2s ease;
}

.product-card img,
.news-card img,
.news-article img,
.about-gallery img {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 16px;
    background: var(--color-bg);
}

.product-card img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 12px;
}

.news-card img,
.news-article img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
    align-items: start;
}

.news-aside {
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: var(--color-white);
    box-shadow: var(--shadow);
}

.news-aside h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.news-aside-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--color-border);
}

.news-aside-item:first-of-type {
    border-top: 0;
}

.news-aside-item img {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 10px;
    background: var(--color-bg);
}

.news-aside-item time {
    display: block;
    margin-bottom: 4px;
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 800;
}

.news-aside-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.4;
}

.news-aside .text-link {
    display: inline-block;
    margin-top: 8px;
}

.product-card span,
.news-card time {
    color: var(--color-accent);
    font-weight: 800;
}

.product-card h2,
.product-card h3,
.news-card h2,
.news-card h3 {
    margin: 8px 0;
    line-height: 1.3;
}

.product-card p,
.news-card p,
.content-page p {
    color: var(--color-muted);
}

.industry-list ul,
.site-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.industry-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.page-hero {
    position: relative;
    padding: 72px 0;
    overflow: hidden;
    color: var(--color-white);
    background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary));
}

.page-hero-news {
    color: var(--color-primary-dark);
}

.page-hero-news time {
    color: var(--color-primary);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero-slides {
    position: absolute;
    inset: 0;
}

.page-hero-slides span {
    position: absolute;
    inset: 0;
    background-color: #08356a;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.page-hero-slides .is-active {
    opacity: 1;
}

.news-frost-section {
    position: relative;
    overflow: hidden;
}

.news-section-bg {
    position: absolute;
    inset: -36px;
    z-index: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(18px) saturate(0.9);
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.55s ease;
}

.news-section-bg.is-active {
    opacity: 0.72;
}

.news-frost-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(255, 255, 255, 0.28);
    pointer-events: none;
}

.news-frost-section > .container {
    position: relative;
    z-index: 1;
}

.page-product-detail .page-hero {
    background-color: #08356a;
    background-image: url("../images/background/01.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.detail-grid img {
    width: 100%;
    border-radius: 24px;
    background: var(--color-bg);
    box-shadow: var(--shadow);
}

.content-page {
    max-width: 860px;
}

.video-page {
    max-width: 980px;
}

.video-embed {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-top: 22px;
    border-radius: 18px;
    background: #000;
    box-shadow: var(--shadow);
}

.video-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.content-page .lead {
    color: var(--color-primary-dark);
    font-size: 20px;
    font-weight: 800;
}

.about-layout,
.detail-panels {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: start;
}

.about-gallery,
.client-panel {
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: var(--color-white);
    box-shadow: var(--shadow);
}

.about-gallery img {
    margin-bottom: 16px;
}

.about-gallery img:last-child,
.client-panel img {
    margin-bottom: 0;
}

.client-panel {
    padding: 28px;
    text-align: center;
}

.client-panel img {
    width: min(100%, 920px);
    margin: 0 auto;
}

.feature-list {
    padding-left: 18px;
    color: var(--color-muted);
}

.feature-list li {
    margin-bottom: 8px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.spec-table th {
    width: 38%;
    color: var(--color-primary-dark);
    font-weight: 800;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 6px;
    color: var(--color-primary-dark);
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.contact-map {
    overflow: hidden;
    width: 100%;
    margin-top: 22px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-bg);
    box-shadow: var(--shadow);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: 0;
}

.site-footer {
    color: rgba(255, 255, 255, 0.82);
    background: var(--color-primary-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.7fr 1fr;
    gap: 40px;
    padding: 58px 0;
    font-size: 11px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
}

.footer-logo {
    display: block;
    height: 36px;
    width: auto;
}

.site-footer h2,
.site-footer h3 {
    color: var(--color-white);
}

.site-footer li {
    margin-bottom: 8px;
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 14px;
        padding: 14px 0;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        border: 1px solid var(--color-border);
        border-radius: 18px;
        background: var(--color-white);
    }

    .main-nav.is-open {
        display: flex;
    }

    .language-switcher {
        order: 3;
        width: 100%;
    }

    .hero-visual img {
        margin-left: 0;
        margin-right: auto;
    }

    .hero-grid,
    .hero .hero-grid,
    .split-grid,
    .detail-grid,
    .contact-grid,
    .footer-grid,
    .about-layout,
    .detail-panels,
    .news-detail-layout {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .product-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .hero,
    .section {
        padding: 54px 0;
    }

    .section-heading {
        display: block;
    }

    .category-grid,
    .product-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}
