/*
 * 檔案名稱：assets/css/site.css
 * 修改日期：2026/08/02 00:14（UTC+8）
 * 檔案用途：嘉鑫國際前台品牌、滾動敘事、固定導覽與響應式樣式
 * 修改說明：修正手機原生 Snap 與 JavaScript 重複作用，並保留頁尾自由捲動
 */

:root {
    --jx-blue: #0b70f5;
    --jx-blue-deep: #074cad;
    --jx-cyan: #25c5c7;
    --jx-navy: #102c47;
    --jx-navy-deep: #071b2d;
    --jx-ink: #17324a;
    --jx-muted: #61768a;
    --jx-line: rgba(18, 54, 83, 0.13);
    --jx-soft: #f4f8fc;
    --jx-warm: #fff6df;
    --jx-gold: #f0b94f;
    --jx-white: #ffffff;
    --jx-header-height: 92px;
    --jx-shadow: 0 22px 70px rgba(20, 58, 92, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;

    color: var(--jx-ink);
    background: var(--jx-white);

    font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
}

body.nav-open {
    overflow: hidden;
}


/*
 * 首頁主題自動定位：
 * JavaScript 會依目前導覽列高度將目標停在正確位置，
 * CSS 提供瀏覽器原生 proximity snap 作為輔助與降級。
 */
html.is-home-snap-enabled {
    scroll-padding-top: 72px;
    scroll-snap-type: y proximity;
}

body.home-page [data-scroll-snap-section] {
    scroll-margin-top: 72px;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

body.home-page.is-scroll-snapping {
    cursor: default;
}

a {
    color: inherit;
}

img,
svg {
    max-width: 100%;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;

    height: var(--jx-header-height);

    color: var(--jx-white);

    transition:
        height 0.35s ease,
        color 0.35s ease,
        background-color 0.35s ease,
        box-shadow 0.35s ease,
        backdrop-filter 0.35s ease;
}

.site-header.is-scrolled,
.site-header.is-light-page {
    height: 72px;

    color: var(--jx-ink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 36px rgba(8, 40, 70, 0.1);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: min(1440px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    min-width: 0;

    color: inherit;
    text-decoration: none;
}

.site-brand__mark {
    width: 48px;
    height: 48px;

    transition: width 0.35s ease, height 0.35s ease;
}

.site-header.is-scrolled .site-brand__mark,
.site-header.is-light-page .site-brand__mark {
    width: 42px;
    height: 42px;
}

.site-brand__text {
    display: grid;
    gap: 0;
}

.site-brand__name {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.site-brand__en {
    opacity: 0.7;

    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 34px);

    margin: 0;
    padding: 0;

    list-style: none;
}

.site-nav__link {
    position: relative;

    display: inline-flex;
    align-items: center;

    min-height: 44px;

    color: inherit;
    text-decoration: none;
    white-space: nowrap;

    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.site-nav__link::after {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;

    height: 2px;

    content: "";
    transform: scaleX(0);
    transform-origin: right;

    background: currentColor;

    transition: transform 0.25s ease;
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.site-nav__link.is-active::after,
.site-nav__link.is-pressed::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-menu-button {
    position: relative;

    display: none;

    width: 48px;
    height: 48px;
    padding: 0;

    color: inherit;
    border: 0;
    border-radius: 50%;
    background: transparent;
}

.mobile-menu-button span {
    position: absolute;
    left: 12px;

    width: 24px;
    height: 2px;

    background: currentColor;

    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-button span:nth-child(1) {
    top: 17px;
}

.mobile-menu-button span:nth-child(2) {
    top: 23px;
}

.mobile-menu-button span:nth-child(3) {
    top: 29px;
}

body.nav-open .mobile-menu-button span:nth-child(1) {
    top: 23px;

    transform: rotate(45deg);
}

body.nav-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
}

body.nav-open .mobile-menu-button span:nth-child(3) {
    top: 23px;

    transform: rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    z-index: 990;
    inset: 0;

    display: grid;
    align-content: center;

    padding: 110px 28px 42px;

    visibility: hidden;
    opacity: 0;
    color: var(--jx-white);
    background:
        radial-gradient(circle at 85% 15%, rgba(37, 197, 199, 0.45), transparent 34%),
        linear-gradient(145deg, #08233b, #0b5fcf 68%, #118da5);

    transition: visibility 0.35s ease, opacity 0.35s ease;
}

body.nav-open .mobile-nav {
    visibility: visible;
    opacity: 1;
}

.mobile-nav__list {
    display: grid;
    gap: 6px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.mobile-nav__item {
    opacity: 0;
    transform: translateY(28px);

    transition: opacity 0.35s ease, transform 0.35s ease;
    transition-delay: calc(var(--menu-index) * 55ms);
}

body.nav-open .mobile-nav__item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 58px;
    padding: 4px 0;

    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    text-decoration: none;

    font-size: clamp(1.35rem, 6vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.mobile-nav__link::after {
    content: "↗";

    opacity: 0.65;

    font-size: 1rem;
}

.mobile-nav__footer {
    margin-top: 34px;

    opacity: 0.68;

    font-size: 0.78rem;
    letter-spacing: 0.12em;
}

.page-curtain {
    position: fixed;
    z-index: 3000;
    inset: auto 0 0;

    height: 100%;

    pointer-events: none;
    transform: translateY(100%);

    background: var(--jx-blue);

    transition: transform 0.38s cubic-bezier(0.72, 0, 0.2, 1);
}

.page-curtain.is-active {
    transform: translateY(0);
}

.hero {
    position: relative;

    display: grid;
    align-items: center;

    min-height: 100svh;
    padding: calc(var(--jx-header-height) + 70px) 0 80px;

    overflow: hidden;
    color: var(--jx-white);
    background:
        radial-gradient(circle at 78% 22%, rgba(45, 221, 208, 0.38), transparent 28%),
        radial-gradient(circle at 28% 88%, rgba(43, 116, 255, 0.38), transparent 32%),
        linear-gradient(135deg, #061a2b 0%, #0a3559 46%, #086fcf 100%);
}

.hero::before {
    position: absolute;
    inset: 0;

    content: "";
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero__inner {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(330px, 0.86fr);
    align-items: center;
    gap: clamp(38px, 7vw, 110px);

    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 24px;

    color: var(--jx-cyan);

    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 42px;
    height: 2px;

    content: "";

    background: currentColor;
}

.hero h1 {
    max-width: 980px;
    margin: 0;

    text-wrap: balance;

    font-size: clamp(3rem, 5vw, 6rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.hero h1 span {
    display: block;
}

.hero-title__primary {
    color: var(--jx-white);
}

.hero-title__secondary {
    color: #9ff8ef;

    font-weight: 800;
    letter-spacing: -0.028em;
    text-shadow: 0 12px 32px rgba(0, 28, 52, 0.28);

    -webkit-text-stroke: 0;
}

.hero__lead {
    max-width: 700px;
    margin: 34px 0 0;

    color: rgba(255, 255, 255, 0.8);

    font-size: clamp(1.03rem, 1.7vw, 1.28rem);
    line-height: 1.9;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 38px;
}

.jx-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 54px;
    padding: 0 26px;

    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;

    font-weight: 800;

    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.jx-button:hover {
    transform: translateY(-3px);
}

.jx-button--light {
    color: var(--jx-blue-deep);
    background: var(--jx-white);
}

.jx-button--outline {
    color: var(--jx-white);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.hero-stage {
    position: relative;

    min-height: 580px;
}

.hero-stage__orb {
    position: absolute;
    top: 50%;
    left: 50%;

    width: min(38vw, 520px);
    aspect-ratio: 1;

    transform: translate(-50%, -50%);

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.3), transparent 23%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.08));
    box-shadow:
        inset 0 0 70px rgba(255, 255, 255, 0.14),
        0 50px 100px rgba(0, 10, 30, 0.28);
    backdrop-filter: blur(16px);
}

.hero-stage__mark {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 36%;
    min-width: 150px;

    transform: translate(-50%, -50%);

    filter: drop-shadow(0 22px 35px rgba(0, 25, 60, 0.32));
}

.floating-tag {
    position: absolute;

    display: grid;
    gap: 2px;

    min-width: 180px;
    padding: 16px 20px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    background: rgba(6, 32, 56, 0.5);
    box-shadow: 0 18px 42px rgba(0, 20, 50, 0.24);
    backdrop-filter: blur(12px);

    animation: floating 5s ease-in-out infinite;
}

.floating-tag strong {
    font-size: 1rem;
}

.floating-tag span {
    opacity: 0.7;

    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.floating-tag--one {
    top: 12%;
    left: 2%;
}

.floating-tag--two {
    right: 0;
    bottom: 16%;

    animation-delay: -1.6s;
}

.floating-tag--three {
    bottom: 4%;
    left: 12%;

    animation-delay: -3.1s;
}

.hero__scroll {
    position: absolute;
    z-index: 3;
    bottom: 24px;
    left: 50%;

    display: grid;
    justify-items: center;
    gap: 10px;

    transform: translateX(-50%);

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.hero__scroll::after {
    width: 1px;
    height: 44px;

    content: "";

    background: linear-gradient(to bottom, currentColor, transparent);
}

.section {
    padding: clamp(90px, 11vw, 170px) 0;
}

.section--soft {
    background: var(--jx-soft);
}

.section--dark {
    color: var(--jx-white);
    background: var(--jx-navy-deep);
}

.section__inner {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    gap: clamp(30px, 7vw, 100px);

    margin-bottom: clamp(52px, 8vw, 110px);
}

.section-heading__label {
    color: var(--jx-blue);

    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-heading h2 {
    max-width: 1000px;
    margin: 0;

    font-size: clamp(2.3rem, 5.2vw, 5.7rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.section-heading p {
    max-width: 760px;
    margin: 28px 0 0;

    color: var(--jx-muted);

    font-size: 1.08rem;
    line-height: 1.9;
}

.scroll-story {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(48px, 8vw, 120px);
}

.scroll-story__intro {
    position: sticky;
    top: 120px;

    align-self: start;
}

.scroll-story__intro h2 {
    margin: 0;

    font-size: clamp(2.25rem, 4.4vw, 4.9rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.scroll-story__intro p {
    max-width: 560px;
    margin: 28px 0 0;

    color: var(--jx-muted);

    font-size: 1.05rem;
}

.story-list {
    display: grid;
    gap: 28px;
}

.story-card {
    position: relative;

    min-height: 430px;
    padding: clamp(32px, 5vw, 72px);

    overflow: hidden;
    border-radius: 36px;
    background: var(--jx-white);
    box-shadow: var(--jx-shadow);
}

.story-card::after {
    position: absolute;
    right: -90px;
    bottom: -120px;

    width: 330px;
    height: 330px;

    content: "";

    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 112, 245, 0.18), transparent 68%);
}

.story-card:nth-child(2)::after {
    background: radial-gradient(circle, rgba(37, 197, 199, 0.22), transparent 68%);
}

.story-card:nth-child(3)::after {
    background: radial-gradient(circle, rgba(240, 185, 79, 0.22), transparent 68%);
}

.story-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    color: var(--jx-blue);
    border: 1px solid rgba(11, 112, 245, 0.24);
    border-radius: 50%;

    font-weight: 900;
}

.story-card h3 {
    max-width: 620px;
    margin: 54px 0 18px;

    font-size: clamp(1.8rem, 3.3vw, 3.3rem);
    font-weight: 900;
    line-height: 1.2;
}

.story-card p {
    position: relative;
    z-index: 1;

    max-width: 660px;
    margin: 0;

    color: var(--jx-muted);

    font-size: 1.02rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 28px;
}

.product-card {
    position: relative;

    grid-column: span 6;

    display: grid;
    grid-template-rows: auto 1fr;

    min-height: 540px;

    overflow: hidden;
    color: var(--jx-ink);
    border: 1px solid var(--jx-line);
    border-radius: 34px;
    background: var(--jx-white);
    text-decoration: none;

    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
    transform: translateY(-8px);

    box-shadow: var(--jx-shadow);
}

.product-card__visual {
    position: relative;

    display: grid;
    place-items: center;

    min-height: 290px;
    padding: 42px;

    overflow: hidden;
    background:
        radial-gradient(circle at 75% 25%, rgba(37, 197, 199, 0.36), transparent 28%),
        linear-gradient(145deg, #eaf4ff, #f6fbff);
}

.product-card:nth-child(even) .product-card__visual {
    background:
        radial-gradient(circle at 25% 70%, rgba(240, 185, 79, 0.35), transparent 30%),
        linear-gradient(145deg, #fff9e8, #f7fbff);
}

.product-card__visual img {
    width: min(74%, 360px);
    max-height: 230px;
    object-fit: contain;

    filter: drop-shadow(0 24px 34px rgba(26, 69, 104, 0.14));
}

.product-card__body {
    display: grid;
    align-content: space-between;
    gap: 32px;

    padding: clamp(28px, 4vw, 50px);
}

.product-card__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.product-card h3 {
    margin: 0;

    font-size: clamp(1.45rem, 2.3vw, 2.3rem);
    font-weight: 900;
}

.product-card p {
    margin: 18px 0 0;

    color: var(--jx-muted);
}

.product-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    color: var(--jx-white);
    border-radius: 50%;
    background: var(--jx-blue);

    transition: transform 0.3s ease;
}

.product-card:hover .product-card__arrow {
    transform: rotate(45deg);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    width: fit-content;
    padding: 8px 13px;

    color: #0d6e4c;
    border-radius: 999px;
    background: #e7f9f1;

    font-size: 0.78rem;
    font-weight: 800;
}

.status-pill::before {
    width: 7px;
    height: 7px;

    content: "";

    border-radius: 50%;
    background: #1ab57a;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;

    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
}

.process-item {
    min-height: 330px;
    padding: 40px 30px;

    background: #0b2338;
}

.process-item__number {
    color: var(--jx-cyan);

    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.process-item h3 {
    margin: 90px 0 18px;

    font-size: 1.4rem;
    font-weight: 900;
}

.process-item p {
    margin: 0;

    color: rgba(255, 255, 255, 0.62);
}

.cta-panel {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 40px;

    padding: clamp(42px, 7vw, 100px);

    overflow: hidden;
    color: var(--jx-white);
    border-radius: 42px;
    background:
        radial-gradient(circle at 82% 20%, rgba(37, 197, 199, 0.42), transparent 26%),
        linear-gradient(135deg, #08315c, #0b70f5);
}

.cta-panel::after {
    position: absolute;
    top: -160px;
    right: -100px;

    width: 420px;
    height: 420px;

    content: "";

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
}

.cta-panel h2 {
    position: relative;
    z-index: 1;

    max-width: 870px;
    margin: 0;

    font-size: clamp(2.1rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.cta-panel p {
    position: relative;
    z-index: 1;

    max-width: 700px;
    margin: 26px 0 0;

    color: rgba(255, 255, 255, 0.74);
}

.site-footer {
    padding: 78px 0 34px;

    color: rgba(255, 255, 255, 0.78);
    background: #061725;
}

.site-footer__inner {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 50px;

    padding-bottom: 54px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-footer__brand img {
    width: 64px;
    height: 64px;
}

.site-footer__brand strong {
    display: block;

    color: var(--jx-white);

    font-size: 1.25rem;
}

.site-footer__brand span {
    opacity: 0.58;

    font-size: 0.72rem;
    letter-spacing: 0.15em;
}

.site-footer__contact {
    display: grid;
    gap: 6px;

    text-align: right;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;

    padding-top: 28px;

    font-size: 0.8rem;
}

.inner-hero {
    padding: calc(var(--jx-header-height) + 92px) 0 88px;

    color: var(--jx-white);
    background:
        radial-gradient(circle at 88% 18%, rgba(37, 197, 199, 0.36), transparent 28%),
        linear-gradient(135deg, #071c2e, #0a4d91);
}

.inner-hero__inner,
.content-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.inner-hero h1 {
    margin: 0;

    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.content-shell {
    padding: 80px 0;
}

.cms-content {
    overflow-wrap: anywhere;

    font-size: 1.04rem;
    line-height: 1.9;
}

.cms-content img {
    max-width: 100%;
    height: auto;
}

.cms-content table {
    display: block;

    max-width: 100%;

    overflow-x: auto;
}

.reveal {
    opacity: 0;
    transform: translateY(34px);

    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floating {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-13px);
    }
}

@media (max-width: 1080px) {
    .site-nav {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

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

    .hero-stage {
        min-height: 430px;
    }

    .hero-stage__orb {
        width: min(78vw, 430px);
    }

    .floating-tag--one {
        left: 5%;
    }

    .floating-tag--two {
        right: 4%;
    }

    .scroll-story {
        grid-template-columns: 1fr;
    }

    .scroll-story__intro {
        position: static;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    :root {
        --jx-header-height: 74px;
    }

    .site-header {
        height: 74px;
    }

    .site-header.is-scrolled {
        height: 64px;
    }

    html.is-home-snap-enabled {
        scroll-padding-top: 64px;

        /*
         * 手機改由 JavaScript 在滑動結束後進行較溫和的主題定位。
         * 關閉瀏覽器原生 Scroll Snap，避免兩套定位互相拉扯。
         */
        scroll-snap-type: none;
    }

    body.home-page [data-scroll-snap-section] {
        scroll-margin-top: 64px;
        scroll-snap-align: none;
    }

    .site-header__inner,
    .hero__inner,
    .section__inner,
    .site-footer__inner,
    .inner-hero__inner,
    .content-shell {
        width: min(100% - 32px, 1320px);
    }

    .site-brand__mark {
        width: 42px;
        height: 42px;
    }

    .site-brand__name {
        font-size: 0.92rem;
    }

    .site-brand__en {
        display: none;
    }

    .hero {
        min-height: 100svh;
        padding-top: 118px;
    }

    .hero h1 {
        font-size: clamp(2.55rem, 11.6vw, 4.15rem);
        line-height: 1.06;
        letter-spacing: -0.04em;
    }

    .hero-stage {
        min-height: 390px;
    }

    .floating-tag {
        min-width: 150px;
        padding: 13px 15px;
    }

    .floating-tag--one {
        top: 7%;
        left: 0;
    }

    .floating-tag--two {
        right: 0;
        bottom: 14%;
    }

    .floating-tag--three {
        bottom: 0;
        left: 2%;
    }

    .section-heading {
        grid-template-columns: 1fr;
    }

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

    .product-card {
        grid-column: auto;

        min-height: 500px;
    }

    .story-card {
        min-height: 390px;
        border-radius: 26px;
    }

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

    .process-item {
        min-height: 260px;
    }

    .process-item h3 {
        margin-top: 58px;
    }

    .cta-panel {
        grid-template-columns: 1fr;
        align-items: start;

        border-radius: 30px;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
    }

    .site-footer__contact {
        text-align: left;
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
        scroll-snap-type: none;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/*
 * 友宮會員與產品試用工作區
 * 修改日期：2026/08/01 20:22（UTC+8）
 */
.temple-access-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.temple-access-intro {
    position: sticky;
    top: 120px;
    padding-top: 24px;
}

.temple-kicker {
    display: inline-flex;
    margin-bottom: 18px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--jx-blue);
}

.temple-access-intro h2,
.temple-dashboard-head h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.temple-access-intro > p {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--jx-muted);
    font-size: 1.05rem;
    line-height: 1.9;
}

.temple-benefit-list {
    display: grid;
    gap: 1px;
    margin-top: 36px;
    border: 1px solid var(--jx-line);
    background: var(--jx-line);
}

.temple-benefit-list > div {
    display: grid;
    gap: 5px;
    padding: 20px 22px;
    background: #fff;
}

.temple-benefit-list strong {
    color: var(--jx-ink);
}

.temple-benefit-list span {
    color: var(--jx-muted);
    font-size: 0.92rem;
}

.temple-access-card,
.temple-dashboard-card,
.temple-dashboard-head {
    border: 1px solid var(--jx-line);
    background: #fff;
    box-shadow: 0 24px 70px rgba(17, 41, 78, 0.08);
}

.temple-access-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--jx-line);
}

.temple-access-tab {
    position: relative;
    min-height: 64px;
    border: 0;
    background: transparent;
    color: var(--jx-muted);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.temple-access-tab::after {
    position: absolute;
    right: 18%;
    bottom: -1px;
    left: 18%;
    height: 3px;
    content: "";
    background: var(--jx-blue);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.temple-access-tab.is-active {
    color: var(--jx-ink);
}

.temple-access-tab.is-active::after {
    transform: scaleX(1);
}

.temple-form {
    display: none;
    padding: clamp(26px, 4vw, 48px);
}

.temple-form.is-active {
    display: block;
    animation: templePanelIn 0.28s ease both;
}

@keyframes templePanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.temple-form__head {
    margin-bottom: 28px;
}

.temple-form__head h3 {
    margin: 0;
    font-size: 1.55rem;
}

.temple-form__head p {
    margin: 8px 0 0;
    color: var(--jx-muted);
}

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

.temple-field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.temple-field--wide {
    grid-column: 1 / -1;
}

.temple-field > span:first-child,
.temple-trial-choice legend {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--jx-ink);
}

.temple-field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #cfdae8;
    border-radius: 8px;
    background: #fff;
    color: var(--jx-ink);
    font: inherit;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.temple-field input:focus {
    border-color: var(--jx-blue);
    box-shadow: 0 0 0 4px rgba(15, 111, 255, 0.1);
}

.temple-password-field {
    display: flex;
    border: 1px solid #cfdae8;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.temple-password-field:focus-within {
    border-color: var(--jx-blue);
    box-shadow: 0 0 0 4px rgba(15, 111, 255, 0.1);
}

.temple-password-field input {
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
}

.temple-password-field button {
    flex: 0 0 48px;
    border: 0;
    border-left: 1px solid #e2e8f0;
    background: #f6f9fd;
    color: var(--jx-ink);
    font-size: 1rem;
    cursor: pointer;
}

.temple-trial-choice {
    margin: 8px 0 26px;
    padding: 0;
    border: 0;
}

.temple-trial-choice legend {
    margin-bottom: 12px;
}

.temple-choice-list {
    display: grid;
    gap: 10px;
}

.temple-choice-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 15px 16px;
    border: 1px solid var(--jx-line);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.temple-choice-card:has(input:checked) {
    border-color: var(--jx-blue);
    background: #f1f7ff;
}

.temple-choice-card input {
    width: 19px;
    height: 19px;
    margin-top: 3px;
    accent-color: var(--jx-blue);
}

.temple-choice-card span {
    display: grid;
    gap: 4px;
}

.temple-choice-card small {
    color: var(--jx-muted);
    line-height: 1.55;
}

.temple-choice-card em {
    color: var(--jx-blue);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
}

.temple-empty-note {
    padding: 14px 16px;
    border-radius: 8px;
    background: #f6f8fb;
    color: var(--jx-muted);
}

.temple-submit {
    width: 100%;
    justify-content: space-between;
}

.temple-dashboard {
    display: grid;
    gap: 24px;
}

.temple-dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: clamp(26px, 4vw, 48px);
}

.temple-dashboard-head h2 {
    margin-top: 4px;
    font-size: clamp(2rem, 4vw, 3.8rem);
}

.temple-dashboard-head p {
    margin: 10px 0 0;
    color: var(--jx-muted);
}

.temple-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    gap: 24px;
}

.temple-dashboard-card {
    min-width: 0;
    padding: clamp(24px, 3.5vw, 38px);
}

.temple-dashboard-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.temple-dashboard-card__head span {
    color: var(--jx-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.temple-dashboard-card__head h3 {
    margin: 6px 0 0;
    font-size: 1.45rem;
}

.temple-dashboard-card__head > strong {
    font-size: 2.4rem;
    line-height: 1;
    color: #cbd7e6;
}

.temple-request-list,
.temple-available-list {
    display: grid;
    gap: 12px;
}

.temple-request-item,
.temple-available-list article {
    padding: 18px;
    border: 1px solid var(--jx-line);
    border-radius: 10px;
    background: #fff;
}

.temple-request-item__main,
.temple-request-delivery,
.temple-available-list article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.temple-request-item h4,
.temple-available-list h4 {
    margin: 0;
    font-size: 1rem;
}

.temple-request-item__main > div > span,
.temple-available-list small {
    display: block;
    margin-top: 5px;
    color: var(--jx-muted);
    font-size: 0.78rem;
}

.temple-status {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 99px;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.temple-status--warning {
    background: #fff4d8;
    color: #8b5d00;
}

.temple-status--info {
    background: #e7f2ff;
    color: #0b5dac;
}

.temple-status--danger {
    background: #ffe9e9;
    color: #a12828;
}

.temple-status--success {
    background: #dcf8ec;
    color: #11704c;
}

.temple-status--muted {
    background: #edf0f4;
    color: #657080;
}

.temple-request-note {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fff7e9;
    color: #76520d;
    font-size: 0.84rem;
}

.temple-request-delivery {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--jx-line);
    color: var(--jx-muted);
    font-size: 0.84rem;
}

.temple-delivery-wait {
    color: var(--jx-muted);
    font-weight: 700;
}

.temple-available-list article > div {
    min-width: 0;
}

.temple-available-list p {
    margin: 7px 0 0;
    color: var(--jx-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.temple-empty-state {
    padding: 28px;
    border: 1px dashed #cad5e2;
    border-radius: 10px;
    color: var(--jx-muted);
    text-align: center;
}

.temple-dashboard .jx-button--outline {
    border: 1px solid var(--jx-line);
    background: #fff;
    color: var(--jx-ink);
}

.jx-button--primary {
    color: #fff;
    background: var(--jx-blue);
}

.jx-button--primary:hover {
    color: #fff;
    background: var(--jx-blue-deep);
}

.jx-button--small {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.temple-process-grid {
    margin-top: clamp(56px, 8vw, 110px);
    border: 1px solid var(--jx-line);
    background: var(--jx-line);
}

.temple-process-grid .process-item {
    background: #fff;
    color: var(--jx-ink);
}

.temple-process-grid .process-item p {
    color: var(--jx-muted);
}

@media (max-width: 1100px) {
    .temple-access-layout,
    .temple-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .temple-access-intro {
        position: static;
    }
}

@media (max-width: 720px) {
    .temple-form-grid {
        grid-template-columns: 1fr;
    }

    .temple-field--wide {
        grid-column: auto;
    }

    .temple-dashboard-head,
    .temple-request-item__main,
    .temple-request-delivery,
    .temple-available-list article {
        align-items: stretch;
        flex-direction: column;
    }

    .temple-dashboard-head .jx-button,
    .temple-available-list .jx-button,
    .temple-request-delivery .jx-button {
        width: 100%;
        justify-content: center;
    }

    .temple-status {
        align-self: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .temple-form.is-active {
        animation: none;
    }
}

/* 首頁輪播與最新消息 */
.hero-slider {
    position: relative;
    width: min(100%, 660px);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 90px rgba(0, 20, 42, 0.34);
}

.hero-slider__track,
.hero-slider__slide,
.hero-slider__slide > a,
.hero-slider__slide img {
    width: 100%;
    height: 100%;
}

.hero-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.025);
    pointer-events: none;
    transition: opacity 0.75s ease, transform 1.1s ease;
}

.hero-slider__slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
}

.hero-slider__slide > a {
    display: block;
}

.hero-slider__slide img {
    display: block;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
}

.hero-slider__controls {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.hero-slider__arrow,
.hero-slider__dot {
    border: 0;
    cursor: pointer;
}

.hero-slider__arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(3, 21, 43, 0.72);
    color: #fff;
    font-size: 1.05rem;
    backdrop-filter: blur(10px);
}

.hero-slider__dots {
    display: flex;
    gap: 7px;
    align-items: center;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 99px;
    background: rgba(3, 21, 43, 0.68);
    backdrop-filter: blur(10px);
}

.hero-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.48);
    transition: width 0.22s ease, border-radius 0.22s ease, background 0.22s ease;
}

.hero-slider__dot.is-active {
    width: 25px;
    border-radius: 99px;
    background: #9ff8ef;
}

.home-news-list {
    border-top: 1px solid var(--jx-line);
}

.home-news-item {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--jx-line);
    color: var(--jx-ink);
    text-decoration: none;
    transition: padding-left 0.24s ease, color 0.24s ease;
}

.home-news-item:hover {
    padding-left: 12px;
    color: var(--jx-blue);
}

.home-news-item__date {
    color: var(--jx-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.home-news-item__category {
    display: inline-flex;
    margin-right: 10px;
    padding: 4px 8px;
    border-radius: 99px;
    background: #edf4ff;
    color: var(--jx-blue);
    font-size: 0.72rem;
    font-weight: 800;
}

.home-news-item__arrow {
    font-size: 1.1rem;
}

@media (max-width: 720px) {
    .hero-slider {
        border-radius: 20px;
    }

    .hero-slider__controls {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .hero-slider__arrow {
        width: 38px;
        height: 38px;
    }

    .home-news-item {
        grid-template-columns: 1fr auto;
        gap: 9px 12px;
    }

    .home-news-item__date {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider__slide,
    .home-news-item {
        transition: none;
    }
}
