:root {
    --ink: #0e132a;
    --navy: #14213d;
    --accent: #e4572e;
    --accent-text: #b33b18;
    --accent-dark: #8a3014;
    --paper: #f6f7f9;
    --canvas: #e6edf5;
    --band-muted: #d5deea;
    --line: #e4e7ee;
    --muted: #4a5366;
    --white: #ffffff;
}

.site-body {
    margin: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--canvas);
    font-family: "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

.site-body main {
    flex: 1;
}

.site-body h1,
.site-body h2,
.site-body h3,
.site-body h4 {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.site-body p {
    color: var(--muted);
    line-height: 1.75;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--ink);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 10px 28px rgba(14, 19, 42, 0.22);
}

.site-header .navbar {
    padding: 0.85rem 0;
}

.site-header .navbar-brand,
.site-header .navbar-brand:hover,
.site-header .navbar-brand:focus {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin-right: 1rem;
    padding: 0;
    color: #fff;
    text-decoration: none;
}

.navbar-brand.is-empty {
    width: 0;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    flex: 0 0 0;
}

.brand-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: min(68vw, 220px);
    object-fit: contain;
}

.site-header .nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 600;
    padding: 0.45rem 0.85rem !important;
    margin: 0 0.1rem;
}

.site-header .nav-link.active,
.site-header .nav-link:hover {
    color: #fff !important;
}

.site-header .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.05rem;
    height: 2px;
    background: var(--accent);
}

.site-header .nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.site-header .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 0.35rem 0.55rem;
}

.site-header .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(228, 87, 46, 0.35);
}

.site-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-banner,
.page-banner {
    position: relative;
    color: white;
    background:
        linear-gradient(115deg, rgba(8, 12, 28, 0.2) 0%, rgba(8, 12, 28, 0.05) 42%, transparent 42%),
        linear-gradient(180deg, rgba(14, 19, 42, 0.25), rgba(14, 19, 42, 0.55)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 84px),
        linear-gradient(135deg, #1b2744 0%, #0e132a 58%, #3a2a28 100%);
    overflow: hidden;
}

.hero-banner {
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: 5rem 0 4rem;
}

.page-banner {
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    padding: 4.5rem 0 2.4rem;
}

.site-body .hero-banner h1,
.site-body .page-banner h1,
.site-body .hero-banner p,
.site-body .page-banner p {
    color: #fff;
}

.hero-banner h1,
.page-banner h1 {
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 1.05;
    margin: 0.35rem 0;
}

.eyebrow {
    display: inline-block;
    color: var(--accent-text);
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-banner .eyebrow {
    color: #ffd5c8;
}

.hero-outline {
    margin: 0;
    color: #fff;
    -webkit-text-fill-color: #fff;
    -webkit-text-stroke: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
}

.hero-link {
    display: inline-block;
    margin-top: 2.2rem;
    color: white !important;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.2rem;
    text-decoration: none;
}

.hero-banner .hero-line {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-banner .hero-line {
        animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .hero-banner .hero-line:nth-child(1) { animation-delay: 0.12s; }
    .hero-banner .hero-line:nth-child(2) { animation-delay: 0.32s; }
    .hero-banner .hero-line:nth-child(3) { animation-delay: 0.58s; }
    .hero-banner .hero-line:nth-child(4) { animation-delay: 0.82s; }
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.banner-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

.banner-crumb a {
    color: white;
    text-decoration: none;
}

.site-body section {
    padding: 4.5rem 0;
}

.band-white {
    background: var(--white);
}

.section-muted {
    background: var(--band-muted);
}

.section-heading {
    position: relative;
    margin-bottom: 2.2rem;
    min-height: 4.5rem;
}

.section-heading-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.watermark {
    position: absolute;
    left: 0;
    top: -1.4rem;
    z-index: 0;
    color: transparent;
    -webkit-text-stroke: 1px rgba(14, 19, 42, 0.13);
    font-size: clamp(3.4rem, 9vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.03em;
    pointer-events: none;
    user-select: none;
}

.section-heading h2 {
    position: relative;
    z-index: 1;
    margin: 1.3rem 0 0;
    color: var(--ink);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.project-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    justify-content: flex-end;
}

.project-tabs a,
.project-tabs button {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 0.35rem 0;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.project-tabs .active {
    color: var(--ink);
    border-bottom-color: var(--accent);
}

.service-card,
.news-card {
    background: white;
    height: 100%;
    border: 1px solid rgba(14, 19, 42, 0.1);
    box-shadow: 0 10px 24px rgba(14, 19, 42, 0.08);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.service-visual,
.news-visual,
.case-fallback,
.detail-photo-empty {
    background:
        linear-gradient(160deg, rgba(228, 87, 46, 0.9), rgba(20, 33, 61, 0.2)),
        linear-gradient(135deg, #1d2b4a, #0e132a);
}

.service-tone-1 { background: linear-gradient(145deg, #243656, #0e132a); }
.service-tone-2 { background: linear-gradient(145deg, #3d4d73, #18243f); }
.service-tone-3 { background: linear-gradient(145deg, #8a4636, #1a2238); }
.service-tone-4 { background: linear-gradient(145deg, #355c68, #142033); }

.service-visual,
.news-visual {
    aspect-ratio: 3 / 2;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.15rem;
    color: white;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.media-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #e4e8f0;
}

.media-frame::before {
    content: "";
    position: absolute;
    inset: -10%;
    background-image: var(--frame-image);
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.12);
    opacity: 0;
}

.media-frame.is-contain::before {
    opacity: 1;
}

.media-frame > img {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-frame.is-cover > img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.service-card .card-copy,
.news-card .card-copy {
    padding: 1.15rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.service-card h3,
.news-card h3,
.case-card strong {
    font-size: 1.15rem;
    margin: 0;
}

.more-link {
    margin-top: auto;
    color: var(--accent-text);
    font-weight: 700;
    text-decoration: none;
}

.case-card {
    position: relative;
    display: block;
    overflow: hidden;
    color: white;
    text-decoration: none;
    background: #d5dae3;
}

.case-fallback {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
}

.case-card .plus {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-text);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    line-height: 1;
}

.case-cap {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.4rem 1.1rem 1.1rem;
    background: linear-gradient(transparent, rgba(8, 12, 24, 0.88));
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.case-cap small,
.case-cap strong {
    color: white;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    min-width: 180px;
    border: 1px solid var(--line);
    background: white;
    padding: 0.45rem 0.75rem;
}

.detail-photo-link {
    display: flex;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    cursor: zoom-in;
}

.detail-photo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.detail-photo-empty {
    width: 100%;
    min-height: 360px;
    aspect-ratio: 3 / 2;
    background-color: var(--paper);
}

.photo-lightbox {
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
    max-width: none;
    max-height: none;
}

.photo-lightbox::backdrop {
    background: rgba(8, 12, 24, 0.86);
}

.photo-lightbox img {
    display: block;
    width: auto;
    height: auto;
    max-width: 92vw;
    max-height: 90vh;
}

.photo-lightbox button {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: rgba(8, 12, 24, 0.72);
    color: white;
    font-size: 1.4rem;
    line-height: 1;
}

.detail-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 0.4rem 0 1rem;
}

.meta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
}

.meta-list li {
    display: flex;
    gap: 0.8rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
}

.meta-list span {
    width: 3.5rem;
    color: var(--muted);
    font-weight: 700;
}

.lead-copy,
.rich-copy,
.plain-copy {
    white-space: pre-line;
}

.lead-copy,
.rich-copy {
    color: var(--muted);
    line-height: 1.85;
}

.about-intro-image {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    margin-bottom: 1.25rem;
}

.empty-panel {
    padding: 3rem 1rem;
    text-align: center;
    background: white;
    border: 1px solid rgba(14, 19, 42, 0.06);
    box-shadow: 0 12px 30px rgba(14, 19, 42, 0.06);
}

.site-footer {
    background: #f7f9fc;
    color: var(--ink);
    padding: 3.2rem 0 1.2rem;
    margin-top: auto;
    border-top: 1px solid rgba(14, 19, 42, 0.08);
}

.site-footer h2 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 0.85rem;
    line-height: 0;
}

.site-footer a.footer-brand {
    display: inline-block;
}

.footer-logo {
    display: block;
    height: 46px;
    width: auto;
    max-width: 100%;
}

.site-footer a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 0.35rem;
}

.site-footer a:hover,
.more-link:hover {
    color: var(--accent-dark);
}

.hero-link:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.site-body .btn {
    border-radius: 0;
    font-weight: 700;
    padding: 0.7rem 1.3rem;
}

.site-body .btn-primary,
.site-body .btn-accent {
    background: var(--accent-text);
    border-color: var(--accent-text);
    color: white;
}

.site-body .btn-primary:hover,
.site-body .btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: white;
}

.site-body .btn-outline {
    background: transparent;
    border: 1px solid var(--ink);
    color: var(--ink);
}

.site-body .btn-outline:hover {
    background: var(--ink);
    color: white;
}

.site-body .form-control:focus {
    border-color: var(--accent-text);
    box-shadow: 0 0 0 0.2rem rgba(179, 59, 24, 0.18);
}

.site-body .form-control::placeholder,
.search-form input::placeholder {
    color: var(--muted);
    opacity: 1;
}

.pager {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 2rem;
}

.pager a {
    min-width: 2.2rem;
    text-align: center;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.pager .active {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}

@media (max-width: 991.98px) {
    .site-header .navbar-brand,
    .site-header .navbar-brand:hover,
    .site-header .navbar-brand:focus {
        min-height: 32px;
    }

    .brand-logo {
        height: 32px;
    }

    .hero-banner {
        min-height: 70vh;
        padding-top: 3.5rem;
    }

    .project-tabs {
        justify-content: flex-start;
    }

    .site-header .navbar-collapse {
        flex-grow: 1;
    }

    .site-header .navbar-nav {
        padding: 0.4rem 0 0.5rem;
    }

    .site-header .nav-link {
        padding: 0.75rem 0.2rem !important;
    }

    .site-header .nav-link.active::after {
        left: 0.2rem;
        right: auto;
        width: 2.2rem;
        bottom: 0.35rem;
    }
}

@media (max-width: 575.98px) {
    .page-banner {
        min-height: 210px;
    }

    .site-body section {
        padding: 3rem 0;
    }

    .search-form,
    .search-form input {
        width: 100%;
    }
}
