:root {
    --star-teal: #4f9aae;
    --deep-ink: #173640;
    --night-line: #2f5660;
    --cloud: #f7fbfc;
    --mist: #e2f0f3;
    --signal: #f0b44d;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(23, 54, 64, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--deep-ink);
    background:
        linear-gradient(120deg, rgba(79, 154, 174, 0.08), transparent 34rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(226, 240, 243, 0.38)),
        var(--cloud);
    font-family: "Microsoft JhengHei", "Noto Sans TC", "PingFang TC", Arial, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.protected-logo {
    user-select: none;
    -webkit-user-drag: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 18px max(16px, calc((100vw - 1120px) / 2));
    background: rgba(247, 251, 252, 0.86);
    backdrop-filter: blur(14px);
}

.brand img {
    width: 164px;
    height: auto;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--star-teal);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: opacity 180ms ease, transform 180ms ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    color: rgba(23, 54, 64, 0.76);
    font-size: 0.95rem;
    font-weight: 700;
}

.site-nav a,
.nav-action,
.button {
    border-radius: 6px;
}

.site-nav a[aria-current="page"] {
    color: var(--star-teal);
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 0.8rem;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 50%;
    z-index: 20;
    display: grid;
    min-width: 148px;
    border: 1px solid rgba(79, 154, 174, 0.24);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(23, 54, 64, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -4px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown-menu a {
    color: rgba(23, 54, 64, 0.76);
    padding: 8px 10px;
    white-space: nowrap;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.site-nav a:focus-visible,
.nav-action:focus-visible,
.nav-toggle:focus-visible,
.button:focus-visible,
.brand:focus-visible {
    outline: 3px solid rgba(240, 180, 77, 0.72);
    outline-offset: 4px;
}

.nav-action {
    border: 1px solid rgba(79, 154, 174, 0.45);
    padding: 10px 14px;
    color: var(--deep-ink);
    font-size: 0.9rem;
    font-weight: 800;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    padding: 12px 18px;
    font: inherit;
    font-weight: 900;
    line-height: 1.2;
    cursor: pointer;
}

.button.primary {
    color: var(--white);
    background: var(--deep-ink);
    box-shadow: 0 14px 34px rgba(23, 54, 64, 0.18);
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--star-teal);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.2rem) 0 clamp(2.4rem, 6vw, 4.2rem);
}

h1 {
    max-width: 10em;
    margin-bottom: 0;
    font-size: clamp(2.65rem, 5.6vw, 5rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
}

.about-logo-title {
    max-width: none;
    line-height: 1;
}

.about-logo-title img {
    width: clamp(260px, 31vw, 360px);
    height: auto;
}

.hero-text {
    margin-bottom: 0;
    color: rgba(23, 54, 64, 0.76);
    font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.section {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 6.5rem) 0;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

h2 {
    max-width: 15ch;
    margin-bottom: 0;
    font-size: clamp(2rem, 4.4vw, 3.65rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
}

.contact-form {
    border: 1px solid rgba(79, 154, 174, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 16px 48px rgba(23, 54, 64, 0.08);
}

.contact-copy p,
.contact-channels span,
.contact-channels a {
    color: rgba(23, 54, 64, 0.72);
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    border-top: 1px solid rgba(79, 154, 174, 0.24);
}

.contact-copy h2 {
    max-width: 13ch;
}

.contact-channels {
    display: grid;
    gap: 0.7rem;
    margin-top: 2rem;
}

.contact-channels p {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1rem;
    margin: 0;
    border-top: 1px solid rgba(79, 154, 174, 0.24);
    padding-top: 0.75rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.contact-form label {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.contact-form span {
    color: var(--deep-ink);
    font-weight: 800;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(79, 154, 174, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 13px;
    color: var(--deep-ink);
    font: inherit;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(79, 154, 174, 0.72);
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(79, 154, 174, 0.18);
}

.contact-form select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--night-line) 50%),
        linear-gradient(135deg, var(--night-line) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 52%,
        calc(100% - 12px) 52%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    padding-right: 42px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .copy-choice {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 24px;
    cursor: pointer;
}

.contact-form .copy-choice input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.copy-dot {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(47, 86, 96, 0.48);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
}

.copy-dot::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg);
}

.contact-form .copy-choice input:checked + .copy-dot {
    border-color: var(--star-teal);
    background: var(--star-teal);
}

.contact-form .copy-choice input:checked + .copy-dot::after {
    opacity: 1;
}

.contact-form .copy-choice input:focus-visible + .copy-dot {
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 154, 174, 0.18);
}

.contact-form small {
    color: #a23a3a;
    font-weight: 700;
}

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

.form-notice.success {
    color: #15533f;
    background: #dff4ea;
}

.form-notice.warning {
    color: #715016;
    background: #fff1cf;
}

.form-notice.error {
    color: #7e2525;
    background: #ffe0e0;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin: 0;
    border-top: 1px solid rgba(79, 154, 174, 0.24);
    padding: 26px max(16px, calc((100vw - 1120px) / 2)) 34px;
    background: rgba(247, 251, 252, 0.58);
    color: rgba(23, 54, 64, 0.66);
    font-size: 0.95rem;
}

@media (hover: hover) {
    .site-nav a:hover,
    .nav-action:hover,
    .contact-channels a:hover {
        color: var(--star-teal);
    }

    .button.primary:hover {
        background: var(--night-line);
    }
}

@media (max-width: 900px) {
    .site-header {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid rgba(79, 154, 174, 0.2);
        padding-top: 0.75rem;
        gap: 0;
        overflow: visible;
    }

    .site-header.nav-open .site-nav {
        display: flex;
    }

    .site-nav > a,
    .nav-dropdown > a {
        padding: 0.7rem 0;
    }

    .nav-dropdown {
        display: block;
    }

    .nav-dropdown-menu {
        position: static;
        display: grid;
        min-width: 0;
        border: 0;
        border-left: 1px solid rgba(79, 154, 174, 0.24);
        border-radius: 0;
        margin: 0 0 0.35rem 0.4rem;
        padding: 0 0 0 0.75rem;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    .about-hero,
    .section-heading,
    .contact-section {
        grid-template-columns: 1fr;
    }

    h1,
    h2 {
        max-width: 100%;
    }

}

@media (max-width: 620px) {
    .brand img {
        width: 136px;
    }

    .nav-action {
        padding: 8px 11px;
    }

    .site-nav {
        font-size: 0.88rem;
    }

    .about-hero {
        padding: 1.55rem 0 2.6rem;
    }

    .contact-channels p {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .button,
    .site-footer {
        width: 100%;
    }

    .site-footer {
        flex-direction: column;
    }
}
