@charset "UTF-8";

/* ---------------------------------------------------------
   1. 全域設定
   --------------------------------------------------------- */
:root {
    --ai-primary: #287fc4;
    --ai-primary-dark: #1e5f9c;
    --ai-primary-light: #eaf5ff;
    --ai-secondary: #42bdca;
    --ai-navy: #0f1835;
    --ai-navy-light: #172044;
    --ai-text: #252b36;
    --ai-text-muted: #667085;
    --ai-border: #e4e9f2;
    --ai-bg-light: #f7f9fd;
    --ai-white: #ffffff;
    --ai-shadow-sm: 0 12px 30px rgba(41, 67, 120, 0.08);
    --ai-shadow-md: 0 20px 50px rgba(41, 67, 120, 0.13);
    --ai-radius-sm: 1rem;
    --ai-radius-md: 1.5rem;
    --ai-radius-lg: 2rem;
    --navbar-height: 92px;

    --stamp-ink: #17243f;
    --stamp-muted: #687086;
    --stamp-purple: #6657d9;
    --stamp-purple-dark: #4b3bbd;
    --stamp-coral: #f47664;
    --stamp-mint: #30b9a8;
    --stamp-gold: #f3b84a;
    --stamp-cream: #fff8ee;
    --stamp-lilac: #f3f1ff;
    --stamp-surface: #ffffff;
    --stamp-border: #e9e5f5;
    --stamp-shadow: 0 24px 65px rgba(73, 59, 146, 0.13);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--navbar-height) + 10px);
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--stamp-ink);
    background: var(--stamp-surface);
    font-family:
        "Noto Sans TC",
        "Microsoft JhengHei",
        "PingFang TC",
        Arial,
        sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

a,
button {
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(40, 127, 196, 0.38);
    outline-offset: 3px;
}

section {
    scroll-margin-top: 0;
}

.rounded-4 {
    border-radius: 1.35rem !important;
}

/* ---------------------------------------------------------
   2. 共用按鈕
   --------------------------------------------------------- */
.btn {
    font-weight: 700;
}

.btn-green {
    border: 1px solid var(--ai-primary);
    color: var(--ai-white);
    background: var(--ai-primary);
}

.btn-green:hover,
.btn-green:focus {
    border-color: var(--ai-primary-dark);
    color: var(--ai-white);
    background: var(--ai-primary-dark);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------
   3. 固定導覽列（維持原樣）
   --------------------------------------------------------- */
#mainNav {
    min-height: var(--navbar-height);
    border-bottom: 1px solid rgba(29, 59, 104, 0.08);
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

#mainNav .container {
    min-height: var(--navbar-height);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand img {
    display: block;
    width: auto;
    max-width: 330px;
    height: 58px;
    object-fit: contain;
}

#mainNav .nav-link {
    position: relative;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    color: #5d6471;
    font-weight: 700;
    white-space: nowrap;
}

#mainNav .nav-link::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    bottom: 0.45rem;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--ai-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
    color: var(--ai-primary);
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link:focus::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border: 1px solid rgba(40, 127, 196, 0.3);
    color: var(--ai-primary);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(40, 127, 196, 0.18);
}

.navbar-toggler .bi-list {
    font-size: 1.75rem;
}

/* ---------------------------------------------------------
   4. 共用區塊元件
   --------------------------------------------------------- */
.stamp-kicker,
.stamp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--stamp-purple);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.stamp-kicker::before {
    content: "";
    width: 2rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.stamp-kicker--light {
    color: #d9d3ff;
}

.stamp-section-head {
    max-width: 820px;
    margin-bottom: 3.5rem;
}

.stamp-section-head h2,
.stamp-process__intro h2,
.stamp-case__content h2,
.stamp-npo__copy h2,
.stamp-faq__intro h2 {
    margin: 0.9rem 0 1rem;
    color: var(--stamp-ink);
    font-size: clamp(2.15rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.stamp-section-head p,
.stamp-process__intro>p,
.stamp-case__content>p,
.stamp-faq__intro p {
    margin: 0;
    color: var(--stamp-muted);
    font-size: 1.03rem;
    line-height: 1.9;
}

.stamp-section-head--split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
    align-items: end;
    max-width: none;
}

.stamp-section-head--split p {
    align-self: end;
}

.stamp-section-head--compact {
    margin-bottom: 2.5rem;
}

/* ---------------------------------------------------------
   5. Hero
   --------------------------------------------------------- */
.stamp-hero {
    position: relative;
    overflow: hidden;
    min-height: 760px;
    padding: calc(var(--navbar-height) + 5rem) 0 5rem;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.86) 48%, rgba(243, 241, 255, 0.72) 100%),
        repeating-linear-gradient(90deg, rgba(102, 87, 217, 0.04) 0 1px, transparent 1px 54px),
        repeating-linear-gradient(0deg, rgba(102, 87, 217, 0.035) 0 1px, transparent 1px 54px),
        #fffdf9;
}

.stamp-hero::before {
    content: "";
    position: absolute;
    width: 680px;
    height: 680px;
    right: -220px;
    top: 40px;
    border: 110px solid rgba(102, 87, 217, 0.08);
    border-radius: 50%;
}

.stamp-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.stamp-hero__glow--one {
    width: 300px;
    height: 300px;
    left: -100px;
    bottom: -80px;
    background: rgba(244, 118, 100, 0.12);
}

.stamp-hero__glow--two {
    width: 200px;
    height: 200px;
    left: 44%;
    top: 18%;
    background: rgba(48, 185, 168, 0.09);
}

.stamp-hero .container {
    position: relative;
    z-index: 1;
}

.stamp-eyebrow {
    margin-bottom: 1.3rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(102, 87, 217, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 30px rgba(73, 59, 146, 0.06);
}

.stamp-hero__title {
    margin: 0;
    color: var(--stamp-ink);
    font-size: clamp(3.1rem, 5vw, 5.35rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1.08;
}

.stamp-hero__title strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--stamp-purple);
    font-weight: 900;
}

.stamp-hero__lead {
    max-width: 650px;
    margin: 1.8rem 0 2rem;
    color: var(--stamp-muted);
    font-size: 1.12rem;
    line-height: 1.9;
}

.stamp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.stamp-btn {
    min-width: 160px;
    padding: 0.85rem 1.45rem;
    border-width: 1px;
    font-weight: 800;
}

.stamp-btn--primary {
    border-color: var(--stamp-purple);
    color: #fff;
    background: var(--stamp-purple);
    box-shadow: 0 14px 32px rgba(102, 87, 217, 0.25);
}

.stamp-btn--primary:hover,
.stamp-btn--primary:focus {
    border-color: var(--stamp-purple-dark);
    color: #fff;
    background: var(--stamp-purple-dark);
    transform: translateY(-2px);
}

.stamp-btn--light {
    border-color: rgba(102, 87, 217, 0.25);
    color: var(--stamp-purple-dark);
    background: rgba(255, 255, 255, 0.9);
}

.stamp-btn--light:hover,
.stamp-btn--light:focus {
    border-color: var(--stamp-purple);
    color: var(--stamp-purple-dark);
    background: #fff;
    transform: translateY(-2px);
}

.stamp-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.8rem 0 0;
    padding: 0;
    list-style: none;
}

.stamp-hero__tags li {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: #5c5873;
    background: #f2effb;
    font-size: 0.82rem;
    font-weight: 700;
}

.stamp-visual {
    position: relative;
    width: min(100%, 620px);
    min-height: 610px;
    margin-left: auto;
    isolation: isolate;
}

.stamp-visual::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 55px 15px 25px 75px;
    border-radius: 46px;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.9) 0 5px, transparent 6px),
        radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.6) 0 4px, transparent 5px),
        linear-gradient(145deg, #ece8ff 0%, #dfdaff 46%, #f7e7e2 100%);
    box-shadow: 0 34px 90px rgba(73, 59, 146, 0.16);
}

.stamp-visual__orbit {
    position: absolute;
    z-index: -1;
    border: 1px dashed rgba(102, 87, 217, 0.23);
    border-radius: 50%;
}

.stamp-visual__orbit--one {
    width: 430px;
    height: 430px;
    right: 0;
    top: 110px;
}

.stamp-visual__orbit--two {
    width: 260px;
    height: 260px;
    left: 80px;
    bottom: 5px;
}

.stamp-phone {
    position: absolute;
    z-index: 3;
    top: 30px;
    left: 50%;
    width: 310px;
    height: 590px;
    padding: 13px;
    border: 5px solid #21253b;
    border-radius: 42px;
    background: #21253b;
    box-shadow:
        0 34px 70px rgba(38, 31, 80, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: translateX(-42%) rotate(3deg);
}

.stamp-phone__speaker {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 50%;
    width: 82px;
    height: 20px;
    border-radius: 999px;
    background: #21253b;
    transform: translateX(-50%);
}

.stamp-phone__screen {
    height: 100%;
    overflow: hidden;
    border-radius: 29px;
    background: linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
}

.stamp-phone__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 31px 22px 13px;
    color: #fff;
    background: var(--stamp-purple);
    font-size: 0.88rem;
    font-weight: 800;
}

.stamp-phone__welcome {
    padding: 19px 22px 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--stamp-purple) 0%, #8073e8 100%);
}

.stamp-phone__small {
    display: block;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.stamp-phone__welcome strong {
    display: block;
    font-size: 1.02rem;
    line-height: 1.5;
}

.stamp-progress {
    margin: 15px 17px 12px;
    padding: 12px 14px;
    border: 1px solid #ece8f8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(73, 59, 146, 0.06);
}

.stamp-progress>div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--stamp-muted);
    font-size: 0.72rem;
}

.stamp-progress strong {
    color: var(--stamp-purple);
    font-size: 0.85rem;
}

.stamp-progress__track {
    height: 6px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eeeaf8;
}

.stamp-progress__track span {
    display: block;
    width: 60%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--stamp-coral), var(--stamp-gold));
}

.stamp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 17px;
}

.stamp-badge {
    display: grid;
    place-items: center;
    min-height: 80px;
    border-radius: 19px;
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 24px rgba(50, 45, 90, 0.1);
}

.stamp-badge i {
    font-size: 1.35rem;
}

.stamp-badge span {
    font-size: 0.65rem;
    font-weight: 800;
}

.stamp-badge--coral {
    background: linear-gradient(145deg, #fa8a77, var(--stamp-coral));
}

.stamp-badge--mint {
    background: linear-gradient(145deg, #55cdbd, var(--stamp-mint));
}

.stamp-badge--gold {
    background: linear-gradient(145deg, #f8ca6d, var(--stamp-gold));
}

.stamp-badge--gift {
    background: linear-gradient(145deg, #7f72e8, var(--stamp-purple));
}

.stamp-badge--empty {
    border: 1px dashed #c9c3dd;
    color: #aea7c5;
    background: #f5f3fa;
    box-shadow: none;
}

.stamp-phone__notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 17px 0;
    padding: 11px 13px;
    border-radius: 14px;
    color: #2f675f;
    background: #e7f8f4;
}

.stamp-phone__notice>i {
    color: var(--stamp-mint);
    font-size: 1.25rem;
}

.stamp-phone__notice strong,
.stamp-phone__notice span {
    display: block;
}

.stamp-phone__notice strong {
    font-size: 0.75rem;
}

.stamp-phone__notice span {
    color: #64857f;
    font-size: 0.62rem;
}

.stamp-floating-card {
    position: absolute;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--stamp-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.stamp-floating-card--qr {
    top: 80px;
    left: 0;
    width: 170px;
    padding: 16px;
    border-radius: 23px;
    transform: rotate(-7deg);
}

.stamp-floating-card__label {
    display: block;
    margin-bottom: 10px;
    color: var(--stamp-purple);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.stamp-floating-card--qr strong {
    display: block;
    margin-top: 9px;
    color: var(--stamp-ink);
    font-size: 0.8rem;
    text-align: center;
}

.stamp-qr {
    position: relative;
    display: block;
    aspect-ratio: 1;
    padding: 6px;
    overflow: hidden;
    border: 1px solid #ece8f8;
    border-radius: 13px;
    color: #201d34;
    background: #ffffff;
}

.stamp-qr__svg {
    display: block;
    width: 100%;
    height: 100%;
}

.stamp-floating-card--data {
    right: -5px;
    bottom: 55px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
    padding: 14px 16px;
    border-radius: 20px;
    transform: rotate(4deg);
}

.stamp-floating-card__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, var(--stamp-mint), #239b8d);
}

.stamp-floating-card--data span,
.stamp-floating-card--data strong {
    display: block;
}

.stamp-floating-card--data span {
    color: var(--stamp-muted);
    font-size: 0.66rem;
}

.stamp-floating-card--data strong {
    color: var(--stamp-ink);
    font-size: 0.86rem;
}

/* ---------------------------------------------------------
   6. 電子集章價值
   --------------------------------------------------------- */
.stamp-overview {
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
    background:
        radial-gradient(circle at 8% 16%, rgba(102, 87, 217, 0.055), transparent 19rem),
        radial-gradient(circle at 92% 82%, rgba(48, 185, 168, 0.05), transparent 20rem),
        linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
}

.stamp-value-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem;
}

.stamp-value-card {
    position: relative;
    grid-column: span 2;
    overflow: hidden;
    min-height: 300px;
    padding: 1.75rem;
    border: 1px solid var(--stamp-border);
    border-radius: 1.75rem;
    background: #fff;
    box-shadow: 0 18px 48px rgba(73, 59, 146, 0.07);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.stamp-value-card::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -45px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(102, 87, 217, 0.05);
}

.stamp-value-card:hover {
    transform: translateY(-7px);
    border-color: rgba(102, 87, 217, 0.25);
    box-shadow: var(--stamp-shadow);
}

.stamp-value-card--wide {
    grid-column: 2 / span 4;
    min-height: 245px;
}

.stamp-value-card__number {
    position: absolute;
    top: 1.4rem;
    right: 1.55rem;
    color: rgba(102, 87, 217, 0.16);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
}

.stamp-value-card__icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 1.4rem;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg, var(--stamp-purple), #8479e8);
    box-shadow: 0 14px 28px rgba(102, 87, 217, 0.2);
    font-size: 1.55rem;
}

.stamp-value-card:nth-child(2) .stamp-value-card__icon {
    background: linear-gradient(145deg, var(--stamp-coral), #fb9a87);
    box-shadow: 0 14px 28px rgba(244, 118, 100, 0.2);
}

.stamp-value-card:nth-child(3) .stamp-value-card__icon {
    background: linear-gradient(145deg, var(--stamp-mint), #5ccdbf);
    box-shadow: 0 14px 28px rgba(48, 185, 168, 0.2);
}

.stamp-value-card:nth-child(4) .stamp-value-card__icon {
    background: linear-gradient(145deg, #58a980, #7fc19e);
    box-shadow: 0 14px 28px rgba(88, 169, 128, 0.2);
}

.stamp-value-card:nth-child(5) .stamp-value-card__icon {
    background: linear-gradient(145deg, var(--stamp-gold), #f8cb72);
    box-shadow: 0 14px 28px rgba(243, 184, 74, 0.2);
}

.stamp-value-card h3 {
    margin-bottom: 0.8rem;
    color: var(--stamp-ink);
    font-size: 1.35rem;
    font-weight: 850;
}

.stamp-value-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--stamp-muted);
    line-height: 1.85;
}

/* ---------------------------------------------------------
   7. 挑戰與加速器
   --------------------------------------------------------- */
.stamp-feature {
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
    background:
        radial-gradient(circle at 8% 10%, rgba(244, 118, 100, 0.1), transparent 18rem),
        radial-gradient(circle at 90% 85%, rgba(48, 185, 168, 0.1), transparent 20rem),
        var(--stamp-cream);
}

.stamp-feature .stamp-section-head {
    max-width: 820px;
}

.stamp-challenge-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 2rem;
    align-items: stretch;
}

.stamp-challenge {
    padding: 2.2rem;
    border-radius: 2rem;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.16), transparent 15rem),
        linear-gradient(145deg, #342c73, #6657d9);
    box-shadow: 0 28px 64px rgba(73, 59, 146, 0.24);
}

.stamp-challenge__eyebrow {
    display: inline-block;
    margin-bottom: 1.8rem;
    color: #dcd7ff;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.06em;
}

.stamp-challenge__item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 1.1rem;
    align-items: start;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stamp-challenge__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    font-size: 1.4rem;
}

.stamp-challenge h3 {
    margin: 0 0 0.45rem;
    font-size: 1.25rem;
    font-weight: 850;
}

.stamp-challenge p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
}

.stamp-accelerators {
    display: grid;
    gap: 1rem;
}

.stamp-accelerator {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 1.2rem;
    align-items: center;
    padding: 1.45rem 1.6rem;
    border: 1px solid rgba(102, 87, 217, 0.12);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 38px rgba(73, 59, 146, 0.08);
}

.stamp-accelerator__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    color: var(--stamp-purple);
    background: var(--stamp-lilac);
    font-size: 1.75rem;
}

.stamp-accelerator:nth-child(2) .stamp-accelerator__icon {
    color: #c55b4b;
    background: #fff0ed;
}

.stamp-accelerator:nth-child(3) .stamp-accelerator__icon {
    color: #258e82;
    background: #e8f8f5;
}

.stamp-accelerator span {
    color: rgba(102, 87, 217, 0.45);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.stamp-accelerator h3 {
    margin: 0.2rem 0 0.35rem;
    color: var(--stamp-ink);
    font-size: 1.25rem;
    font-weight: 850;
}

.stamp-accelerator p {
    margin: 0;
    color: var(--stamp-muted);
}

/* ---------------------------------------------------------
   8. 運作方式
   --------------------------------------------------------- */
.stamp-process {
    padding: 7rem 0;
    background: #fff;
}

.stamp-process__layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
    gap: 4.5rem;
    align-items: start;
}

.stamp-process__intro {
    position: sticky;
    top: calc(var(--navbar-height) + 2rem);
}

.stamp-process__note {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 1.5rem;
    padding: 1.2rem 1.3rem;
    border-left: 4px solid var(--stamp-mint);
    border-radius: 0 1rem 1rem 0;
    color: #3c5f5a;
    background: #eefaf8;
    font-weight: 700;
}

.stamp-process__note i {
    margin-top: 0.12rem;
    color: var(--stamp-mint);
    font-size: 1.25rem;
}

.stamp-process__steps {
    position: relative;
    display: grid;
    gap: 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stamp-process__steps::before {
    content: "";
    position: absolute;
    top: 2.3rem;
    bottom: 2.3rem;
    left: 3.2rem;
    width: 2px;
    background: linear-gradient(180deg, var(--stamp-purple), var(--stamp-coral), var(--stamp-mint), var(--stamp-gold));
}

.stamp-process__steps li {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    min-height: 130px;
    padding: 1.45rem 1.5rem 1.45rem 1.2rem;
    border: 1px solid var(--stamp-border);
    border-radius: 1.55rem;
    background: #fff;
    box-shadow: 0 16px 40px rgba(73, 59, 146, 0.07);
}

.stamp-process__step-number {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    color: rgba(102, 87, 217, 0.16);
    font-size: 1.3rem;
    font-weight: 900;
}

.stamp-process__step-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border: 7px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--stamp-purple);
    box-shadow: 0 12px 26px rgba(102, 87, 217, 0.22);
    font-size: 1.45rem;
}

.stamp-process__steps li:nth-child(2) .stamp-process__step-icon {
    background: var(--stamp-coral);
    box-shadow: 0 12px 26px rgba(244, 118, 100, 0.22);
}

.stamp-process__steps li:nth-child(3) .stamp-process__step-icon {
    background: var(--stamp-mint);
    box-shadow: 0 12px 26px rgba(48, 185, 168, 0.22);
}

.stamp-process__steps li:nth-child(4) .stamp-process__step-icon {
    background: var(--stamp-gold);
    box-shadow: 0 12px 26px rgba(243, 184, 74, 0.22);
}

.stamp-process__steps h3 {
    margin: 0 0 0.45rem;
    color: var(--stamp-ink);
    font-size: 1.25rem;
    font-weight: 850;
}

.stamp-process__steps p {
    margin: 0;
    padding-right: 2rem;
    color: var(--stamp-muted);
    line-height: 1.8;
}

/* ---------------------------------------------------------
   9. 大傳案例
   --------------------------------------------------------- */
.stamp-case {
    padding: 7rem 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(48, 185, 168, 0.12), transparent 18rem),
        var(--stamp-lilac);
}

.stamp-case__card {
    display: grid;
    grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.1fr);
    overflow: hidden;
    border: 1px solid rgba(102, 87, 217, 0.12);
    border-radius: 2.4rem;
    background: #fff;
    box-shadow: var(--stamp-shadow);
}

.stamp-case__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 3rem;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.18), transparent 12rem),
        linear-gradient(145deg, #302869 0%, #6657d9 65%, #7a70e5 100%);
}

.stamp-case__visual::before,
.stamp-case__visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.stamp-case__visual::before {
    width: 260px;
    height: 260px;
    right: -110px;
    top: -80px;
    border: 45px solid rgba(255, 255, 255, 0.08);
}

.stamp-case__visual::after {
    width: 180px;
    height: 180px;
    left: -70px;
    bottom: -50px;
    background: rgba(244, 118, 100, 0.2);
}

.stamp-case__year {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.85);
    font-size: 4.8rem;
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 1;
}

.stamp-case__route {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 330px;
    margin: 2rem 0 1.4rem;
}

.stamp-case__route>span:not(.stamp-case__route-line) {
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border: 6px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: var(--stamp-purple-dark);
    background: #fff;
    font-size: 1.35rem;
}

.stamp-case__route-line {
    flex: 1 1 auto;
    height: 2px;
    border-top: 2px dashed rgba(255, 255, 255, 0.45);
}

.stamp-case__visual strong {
    position: relative;
    z-index: 1;
    max-width: 360px;
    font-size: 1.15rem;
    line-height: 1.65;
}

.stamp-case__gift {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.7rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    font-size: 0.82rem;
    font-weight: 750;
}

.stamp-case__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem;
}

.stamp-case__result {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 0.7rem;
    padding: 1.2rem 1.3rem;
    border-radius: 1.1rem;
    color: #38675f;
    background: #eaf8f5;
    font-weight: 750;
    line-height: 1.75;
}

.stamp-case__result i {
    margin-top: 0.15rem;
    color: var(--stamp-mint);
    font-size: 1.3rem;
}

/* ---------------------------------------------------------
   10. 新春應用
   --------------------------------------------------------- */
.stamp-scenarios {
    padding: 7rem 0;
    background: #fff;
}

.stamp-scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.stamp-scenario {
    position: relative;
    overflow: hidden;
    padding: 1.7rem;
    border: 1px solid var(--stamp-border);
    border-radius: 1.8rem;
    background: #fff;
    box-shadow: 0 18px 46px rgba(73, 59, 146, 0.07);
}

.stamp-scenario::after {
    content: "";
    position: absolute;
    right: -52px;
    bottom: -52px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(244, 118, 100, 0.06);
}

.stamp-scenario__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

.stamp-scenario__number {
    color: rgba(102, 87, 217, 0.19);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.stamp-scenario__icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(145deg, var(--stamp-coral), #fb9a87);
    box-shadow: 0 14px 28px rgba(244, 118, 100, 0.2);
    font-size: 1.5rem;
}

.stamp-scenario:nth-child(2) .stamp-scenario__icon {
    background: linear-gradient(145deg, var(--stamp-gold), #f7cb70);
    box-shadow: 0 14px 28px rgba(243, 184, 74, 0.2);
}

.stamp-scenario:nth-child(3) .stamp-scenario__icon {
    background: linear-gradient(145deg, var(--stamp-mint), #5ccdbf);
    box-shadow: 0 14px 28px rgba(48, 185, 168, 0.2);
}

.stamp-scenario__label {
    display: inline-flex;
    margin-bottom: 0.8rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    color: var(--stamp-purple-dark);
    background: var(--stamp-lilac);
    font-size: 0.74rem;
    font-weight: 800;
}

.stamp-scenario h3 {
    margin-bottom: 1.2rem;
    color: var(--stamp-ink);
    font-size: 1.4rem;
    font-weight: 900;
}

.stamp-scenario dl,
.stamp-scenario dl>div {
    margin: 0;
}

.stamp-scenario dl {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.9rem;
}

.stamp-scenario dl>div {
    padding-top: 0.9rem;
    border-top: 1px solid var(--stamp-border);
}

.stamp-scenario dt {
    margin-bottom: 0.3rem;
    color: var(--stamp-purple);
    font-size: 0.78rem;
    font-weight: 850;
}

.stamp-scenario dd {
    margin: 0;
    color: var(--stamp-muted);
    line-height: 1.8;
}

.stamp-scenarios__closing {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 940px;
    margin: 2.2rem auto 0;
    padding: 1.3rem 1.5rem;
    border-radius: 1.2rem;
    color: #6b504a;
    background: #fff3ef;
}

.stamp-scenarios__closing i {
    color: var(--stamp-coral);
    font-size: 1.5rem;
}

.stamp-scenarios__closing p {
    margin: 0;
    font-weight: 700;
    line-height: 1.8;
}

/* ---------------------------------------------------------
   11. NPO 公益應用
   --------------------------------------------------------- */
.stamp-npo {
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
    background: #f7f6fb;
}

.stamp-npo__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 2rem;
    padding: 2.4rem;
    border-radius: 2.2rem;
    color: #fff;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.16), transparent 15rem),
        linear-gradient(125deg, #302869 0%, #5142b6 56%, #6657d9 100%);
    box-shadow: 0 30px 75px rgba(73, 59, 146, 0.24);
}

.stamp-npo__copy {
    padding: 1.2rem;
}

.stamp-npo__copy h2 {
    color: #fff;
}

.stamp-npo__copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.03rem;
    line-height: 1.9;
}

.stamp-npo__problems {
    padding: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.stamp-npo__problems>span {
    display: block;
    margin-bottom: 1rem;
    color: #ddd8ff;
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.05em;
}

.stamp-npo__problems ul {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stamp-npo__problems li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.88);
}

.stamp-npo__problems li i {
    margin-top: 0.2rem;
    color: #ffb1a5;
}

.stamp-npo__problems p {
    margin: 1.2rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

.stamp-npo__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.4rem 0 5rem;
}

.stamp-npo__benefits article {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 1.4rem;
    border: 1px solid var(--stamp-border);
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 14px 35px rgba(73, 59, 146, 0.06);
}

.stamp-npo__benefits i {
    flex: 0 0 auto;
    color: var(--stamp-purple);
    font-size: 1.65rem;
}

.stamp-npo__benefits h3 {
    margin: 0;
    color: var(--stamp-ink);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.55;
}

.stamp-npo-case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.stamp-npo-case {
    position: relative;
    overflow: hidden;
    padding: 1.7rem;
    border: 1px solid var(--stamp-border);
    border-radius: 1.7rem;
    background: #fff;
    box-shadow: 0 16px 42px rgba(73, 59, 146, 0.07);
}

.stamp-npo-case__number {
    position: absolute;
    top: 1.35rem;
    right: 1.45rem;
    color: rgba(102, 87, 217, 0.15);
    font-size: 2.3rem;
    font-weight: 900;
}

.stamp-npo-case__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1.3rem;
    border-radius: 18px;
    color: #fff;
    background: var(--stamp-purple);
    font-size: 1.45rem;
}

.stamp-npo-case:nth-child(2) .stamp-npo-case__icon {
    background: var(--stamp-coral);
}

.stamp-npo-case:nth-child(3) .stamp-npo-case__icon {
    background: var(--stamp-mint);
}

.stamp-npo-case h3 {
    min-height: 3.4em;
    margin-bottom: 1rem;
    padding-right: 1rem;
    color: var(--stamp-ink);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.65;
}

.stamp-npo-case ul {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stamp-npo-case li {
    padding-top: 0.65rem;
    border-top: 1px solid var(--stamp-border);
    color: var(--stamp-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.stamp-npo-case strong {
    color: var(--stamp-purple-dark);
}

.stamp-npo__summary {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.5rem;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1.6rem 1.8rem;
    border-radius: 1.4rem;
    color: #fff;
    background: linear-gradient(115deg, #263450, #344565);
}

.stamp-npo__summary>span {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.7;
}

.stamp-npo__summary ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stamp-npo__summary li {
    padding: 0.48rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.78rem;
    font-weight: 700;
}

/* ---------------------------------------------------------
   12. FAQ
   --------------------------------------------------------- */
.stamp-faq {
    padding: 7rem 0;
    background: #fff;
}

.stamp-faq__layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
    gap: 4.5rem;
    align-items: start;
}

.stamp-faq__intro {
    position: sticky;
    top: calc(var(--navbar-height) + 2rem);
}

.stamp-faq .accordion-item {
    overflow: hidden;
    margin-bottom: 0.9rem;
    border: 1px solid var(--stamp-border);
    border-radius: 1rem !important;
    background: #fff;
}

.stamp-faq .accordion-button {
    padding: 1.25rem 1.4rem;
    color: var(--stamp-ink);
    background: #fff;
    box-shadow: none;
    font-weight: 850;
    line-height: 1.6;
}

.stamp-faq .accordion-button:not(.collapsed) {
    color: var(--stamp-purple-dark);
    background: var(--stamp-lilac);
}

.stamp-faq .accordion-button:focus {
    border-color: transparent;
    box-shadow: 0 0 0 0.25rem rgba(102, 87, 217, 0.13);
}

.stamp-faq .accordion-body {
    padding: 1.4rem 1.35rem;
    color: var(--stamp-muted);
    line-height: 1.85;
}

/* ---------------------------------------------------------
   13. 聯絡我們
   --------------------------------------------------------- */
.contact-section {
    position: relative;
    overflow: hidden;
    color: var(--stamp-ink);
    background:
        radial-gradient(circle at 9% 12%, rgba(244, 118, 100, 0.10), transparent 19rem),
        radial-gradient(circle at 90% 18%, rgba(48, 185, 168, 0.12), transparent 17rem),
        linear-gradient(122deg, #f5f2ff 0%, #eeeaff 48%, #eaf8f5 100%);
}

.contact-section::before,
.contact-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.contact-section::before {
    width: 320px;
    height: 320px;
    right: -120px;
    bottom: -180px;
    border: 54px solid rgba(102, 87, 217, 0.08);
}

.contact-section::after {
    width: 170px;
    height: 170px;
    left: 14%;
    bottom: -110px;
    background: rgba(48, 185, 168, 0.10);
}

.contact-section>.container {
    position: relative;
    z-index: 1;
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.contact-title,
.contact-text {
    color: var(--stamp-ink);
}

.contact-text {
    color: var(--stamp-muted) !important;
}

.contact-section a {
    display: block;
    color: var(--stamp-ink);
}

.contact-section a:hover,
.contact-section a:focus {
    color: var(--stamp-purple-dark);
    transform: translateY(-3px);
}

.icon-box {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
}

.icon-feature {
    font-size: 2.3rem;
    line-height: 1;
}

.contact-icon-box {
    margin: 0 auto 1rem;
    border: 1px solid rgba(102, 87, 217, 0.12);
    color: var(--stamp-purple);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 32px rgba(73, 59, 146, 0.12);
}

.contact-icon {
    color: var(--stamp-purple);
    -webkit-text-fill-color: initial;
    background: none;
}

.contact-section .text-center:nth-child(2) .contact-icon {
    color: var(--stamp-mint);
}

.contact-section .text-center:nth-child(3) .contact-icon {
    color: var(--stamp-coral);
}

.contact-item-title {
    margin-bottom: 0.35rem;
    color: var(--stamp-ink);
    font-size: 1.1rem;
    font-weight: 800;
}

.contact-item-text {
    color: var(--stamp-muted);
}

/* ---------------------------------------------------------
   14. Footer
   --------------------------------------------------------- */
footer.bg-black {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    background:
        radial-gradient(circle at 88% 0%, rgba(48, 185, 168, 0.12), transparent 18rem),
        linear-gradient(118deg, #28234f 0%, #302a5b 48%, #233f49 100%) !important;
}

footer.bg-black .text-white-50 {
    color: rgba(255, 255, 255, 0.76) !important;
}

/* ---------------------------------------------------------
   15. RWD：大型桌機以下
   --------------------------------------------------------- */
@media (max-width: 1399.98px) {
    .navbar-brand img {
        max-width: 285px;
        height: 52px;
    }

    #mainNav .nav-link {
        padding-right: 0.45rem;
        padding-left: 0.45rem;
        font-size: 0.94rem;
    }

    .stamp-phone {
        width: 295px;
        height: 565px;
    }

    .stamp-visual {
        min-height: 590px;
    }
}

/* ---------------------------------------------------------
   16. RWD：小型桌機／橫向平板
   --------------------------------------------------------- */
@media (max-width: 1199.98px) {
    :root {
        --navbar-height: 82px;
    }

    #mainNav .container {
        padding-right: 1.5rem !important;
        padding-left: 1.5rem !important;
    }

    .navbar-brand img {
        max-width: 240px;
        height: 47px;
    }

    #mainNav .navbar-nav {
        margin-right: 0.75rem !important;
    }

    #mainNav .nav-link {
        margin-right: 0.35rem !important;
        padding-right: 0.3rem;
        padding-left: 0.3rem;
        font-size: 0.88rem;
    }

    .stamp-hero {
        min-height: 720px;
        padding-top: calc(var(--navbar-height) + 4rem);
    }

    .stamp-hero__title {
        font-size: clamp(2.8rem, 5vw, 4.4rem);
    }

    .stamp-phone {
        left: 53%;
        width: 275px;
        height: 535px;
    }

    .stamp-visual {
        min-height: 560px;
    }

    .stamp-floating-card--qr {
        width: 150px;
    }

    .stamp-floating-card--data {
        min-width: 190px;
    }

    .stamp-process__layout,
    .stamp-faq__layout {
        gap: 3rem;
    }

    .stamp-npo-case h3 {
        min-height: 4.8em;
    }
}

/* ---------------------------------------------------------
   17. RWD：平板直向
   --------------------------------------------------------- */
@media (max-width: 991.98px) {
    :root {
        --navbar-height: 76px;
    }

    #mainNav,
    #mainNav .container {
        min-height: var(--navbar-height);
    }

    #mainNav .container {
        padding-right: 1.25rem !important;
        padding-left: 1.25rem !important;
    }

    .navbar-brand img {
        max-width: 230px;
        height: 45px;
    }

    #navbarResponsive {
        max-height: calc(100vh - var(--navbar-height));
        margin-top: 0.5rem;
        padding: 0.5rem 0 1rem;
        overflow-y: auto;
        border-top: 1px solid var(--ai-border);
        background: rgba(255, 255, 255, 0.99);
    }

    #mainNav .navbar-nav {
        margin: 0 !important;
    }

    #mainNav .nav-link {
        margin-right: 0 !important;
        padding: 0.72rem 0.4rem;
        font-size: 1rem;
    }

    #mainNav .nav-link::after {
        display: none;
    }

    #mainNav .btn-green {
        display: inline-flex;
        margin-top: 0.35rem;
    }

    .stamp-hero {
        padding: calc(var(--navbar-height) + 3.5rem) 0 4rem;
    }

    .stamp-hero__content {
        max-width: 760px;
        margin: 0 auto;
    }

    .stamp-hero__lead {
        margin-right: auto;
        margin-left: auto;
    }

    .stamp-hero__actions,
    .stamp-hero__tags {
        justify-content: center;
    }

    .stamp-visual {
        width: min(100%, 650px);
        min-height: 600px;
        margin: 2rem auto 0;
    }

    .stamp-phone {
        left: 50%;
        width: 300px;
        height: 575px;
        transform: translateX(-50%) rotate(2deg);
    }

    .stamp-floating-card--qr {
        left: 4%;
        width: 165px;
    }

    .stamp-floating-card--data {
        right: 3%;
    }

    .stamp-section-head--split,
    .stamp-challenge-layout,
    .stamp-process__layout,
    .stamp-case__card,
    .stamp-npo__hero,
    .stamp-faq__layout {
        grid-template-columns: 1fr;
    }

    .stamp-section-head--split {
        gap: 1.25rem;
        align-items: start;
    }

    .stamp-value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stamp-value-card,
    .stamp-value-card--wide {
        grid-column: auto;
    }

    .stamp-value-card--wide {
        grid-column: 1 / -1;
    }

    .stamp-process__intro,
    .stamp-faq__intro {
        position: static;
    }

    .stamp-case__visual {
        min-height: 400px;
    }

    .stamp-scenario-grid,
    .stamp-npo-case-grid {
        grid-template-columns: 1fr;
    }

    .stamp-scenario,
    .stamp-npo-case {
        min-height: 0;
    }

    .stamp-npo__benefits {
        grid-template-columns: 1fr;
        margin-bottom: 4rem;
    }

    .stamp-npo-case h3 {
        min-height: 0;
    }

    .stamp-npo__summary {
        grid-template-columns: 1fr;
    }

    .stamp-npo__summary ul {
        justify-content: flex-start;
    }

    .contact-section .col-lg-8>.d-flex {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* ---------------------------------------------------------
   18. RWD：大型手機／小型平板
   --------------------------------------------------------- */
@media (max-width: 767.98px) {
    :root {
        --navbar-height: 72px;
    }

    html {
        scroll-padding-top: calc(var(--navbar-height) + 8px);
    }

    .navbar-brand img {
        max-width: 205px;
        height: 41px;
    }

    .stamp-hero,
    .stamp-overview,
    .stamp-feature,
    .stamp-process,
    .stamp-case,
    .stamp-scenarios,
    .stamp-npo,
    .stamp-faq {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .stamp-hero {
        padding-top: calc(var(--navbar-height) + 2.8rem);
    }

    .stamp-hero .container,
    .stamp-overview .container,
    .stamp-feature .container,
    .stamp-process .container,
    .stamp-case .container,
    .stamp-scenarios .container,
    .stamp-npo .container,
    .stamp-faq .container,
    .contact-section .container,
    footer .container {
        padding-right: 1.15rem !important;
        padding-left: 1.15rem !important;
    }

    .stamp-hero__title {
        font-size: clamp(2.45rem, 10vw, 3.5rem);
    }

    .stamp-hero__lead {
        font-size: 1rem;
        line-height: 1.8;
    }

    .stamp-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .stamp-btn {
        width: min(100%, 300px);
    }

    .stamp-visual {
        min-height: 545px;
    }

    .stamp-visual::before {
        inset: 45px 0 15px;
        border-radius: 32px;
    }

    .stamp-phone {
        top: 22px;
        width: 270px;
        height: 515px;
    }

    .stamp-floating-card--qr {
        top: 80px;
        left: -1%;
        width: 137px;
        padding: 12px;
    }

    .stamp-floating-card--data {
        right: -2%;
        bottom: 35px;
        min-width: 175px;
        padding: 11px 13px;
    }

    .stamp-floating-card__icon {
        width: 40px;
        height: 40px;
    }

    .stamp-section-head {
        margin-bottom: 2.5rem;
    }

    .stamp-section-head h2,
    .stamp-process__intro h2,
    .stamp-case__content h2,
    .stamp-npo__copy h2,
    .stamp-faq__intro h2 {
        font-size: clamp(2rem, 8vw, 2.65rem);
    }

    .stamp-value-grid {
        grid-template-columns: 1fr;
    }

    .stamp-value-card,
    .stamp-value-card--wide {
        grid-column: auto;
        min-height: 0;
    }

    .stamp-challenge,
    .stamp-case__content,
    .stamp-npo__hero {
        padding: 1.5rem;
    }

    .stamp-accelerator {
        grid-template-columns: 62px minmax(0, 1fr);
        padding: 1.2rem;
    }

    .stamp-accelerator__icon {
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }

    .stamp-process__steps::before {
        display: none;
    }

    .stamp-process__steps li {
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 1.25rem 1.1rem;
    }

    .stamp-process__step-icon {
        width: 54px;
        height: 54px;
        border-width: 5px;
        font-size: 1.2rem;
    }

    .stamp-process__steps p {
        padding-right: 0;
    }

    .stamp-case__visual {
        min-height: 350px;
        padding: 2rem 1.2rem;
    }

    .stamp-case__year {
        font-size: 4rem;
    }

    .stamp-case__content {
        padding: 2rem 1.4rem;
    }

    .stamp-scenarios__closing {
        align-items: flex-start;
    }

    .stamp-npo__copy {
        padding: 0.5rem;
    }

    .stamp-npo__summary ul {
        display: grid;
        grid-template-columns: 1fr;
    }

    .stamp-faq .accordion-button {
        padding: 1.05rem 1.1rem;
        font-size: 0.96rem;
    }

    .stamp-faq .accordion-body {
        padding: 1.1rem 1.15rem;
    }

    .contact-section>.container {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .contact-section .col-lg-8>.d-flex {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .contact-section .text-center.mb-3 {
        margin-bottom: 0 !important;
    }

    .contact-section a {
        padding: 1rem;
        border: 1px solid rgba(102, 87, 217, 0.12);
        border-radius: 1.2rem;
        background: rgba(255, 255, 255, 0.68);
        box-shadow: 0 10px 26px rgba(73, 59, 146, 0.08);
    }

    .contact-item-text {
        overflow-wrap: anywhere;
    }

    footer {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* ---------------------------------------------------------
   19. RWD：手機
   --------------------------------------------------------- */
@media (max-width: 575.98px) {
    :root {
        --navbar-height: 68px;
    }

    #mainNav .container {
        padding-right: 0.85rem !important;
        padding-left: 0.85rem !important;
    }

    .navbar-brand img {
        max-width: 185px;
        height: 38px;
    }

    .navbar-toggler {
        padding: 0.32rem 0.55rem;
    }

    .stamp-hero {
        padding-top: calc(var(--navbar-height) + 2.2rem);
    }

    .stamp-eyebrow {
        font-size: 0.66rem;
        letter-spacing: 0.08em;
    }

    .stamp-hero__tags {
        justify-content: center;
    }

    .stamp-visual {
        min-height: 480px;
    }

    .stamp-phone {
        width: 240px;
        height: 460px;
        border-radius: 35px;
    }

    .stamp-phone__screen {
        border-radius: 24px;
    }

    .stamp-phone__topbar {
        padding-right: 17px;
        padding-left: 17px;
    }

    .stamp-phone__welcome {
        padding: 16px 17px 13px;
    }

    .stamp-progress {
        margin: 12px 13px 10px;
        padding: 10px 11px;
    }

    .stamp-grid {
        gap: 7px;
        padding: 0 13px;
    }

    .stamp-badge {
        min-height: 68px;
        border-radius: 15px;
    }

    .stamp-badge i {
        font-size: 1.15rem;
    }

    .stamp-phone__notice {
        margin: 11px 13px 0;
        padding: 9px 10px;
    }

    .stamp-floating-card--qr {
        top: 72px;
        width: 118px;
        padding: 10px;
    }

    .stamp-floating-card__label {
        display: none;
    }

    .stamp-floating-card--qr strong {
        font-size: 0.7rem;
    }

    .stamp-floating-card--data {
        right: 0;
        bottom: 26px;
        min-width: 155px;
    }

    .stamp-floating-card--data span {
        display: none;
    }

    .stamp-floating-card--data strong {
        font-size: 0.76rem;
    }

    .stamp-challenge__item {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .stamp-challenge__icon {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .stamp-accelerator {
        grid-template-columns: 1fr;
    }

    .stamp-process__steps li {
        grid-template-columns: 1fr;
    }

    .stamp-process__step-number {
        top: 1.1rem;
    }

    .stamp-case__route>span:not(.stamp-case__route-line) {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .stamp-npo__problems {
        padding: 1.2rem;
    }

    .stamp-npo__benefits article {
        align-items: flex-start;
    }

    .contact-title {
        font-size: 1.75rem;
    }

    .contact-text {
        font-size: 1rem !important;
    }

    .contact-icon-box {
        width: 72px;
        height: 72px;
    }

    .contact-icon {
        font-size: 2rem;
    }
}

/* ---------------------------------------------------------
   20. RWD：窄螢幕手機
   --------------------------------------------------------- */
@media (max-width: 389.98px) {
    .navbar-brand img {
        max-width: 158px;
        height: 34px;
    }

    .stamp-hero__title {
        font-size: 2.2rem;
    }

    .stamp-visual {
        min-height: 440px;
    }

    .stamp-phone {
        width: 220px;
        height: 425px;
    }

    .stamp-floating-card--qr {
        left: -5%;
        width: 103px;
    }

    .stamp-floating-card--data {
        right: -5%;
        min-width: 140px;
        padding: 9px 10px;
    }

    .stamp-floating-card__icon {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    .stamp-kicker {
        font-size: 0.66rem;
        letter-spacing: 0.08em;
    }

    .stamp-section-head h2,
    .stamp-process__intro h2,
    .stamp-case__content h2,
    .stamp-npo__copy h2,
    .stamp-faq__intro h2 {
        font-size: 1.85rem;
    }
}

/* ---------------------------------------------------------
   21. 橫向手機
   --------------------------------------------------------- */
@media (max-width: 991.98px) and (orientation: landscape) and (max-height: 575px) {
    #navbarResponsive {
        max-height: calc(100vh - var(--navbar-height));
        overflow-y: auto;
    }
}

/* ---------------------------------------------------------
   22. 觸控裝置
   --------------------------------------------------------- */
@media (hover: none) {

    .stamp-value-card:hover,
    .stamp-btn:hover,
    .contact-section a:hover {
        transform: none;
    }
}

/* ---------------------------------------------------------
   23. 減少動畫偏好
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------------------------------------------------------
   24. 導覽列對應的中間內容結構
   --------------------------------------------------------- */
.stamp-value-challenges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.stamp-context-panel {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border: 1px solid rgba(102, 87, 217, 0.13);
    border-radius: 1.8rem;
    color: var(--stamp-ink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 46px rgba(73, 59, 146, 0.075);
}

.stamp-context-panel::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -80px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(102, 87, 217, 0.045);
    pointer-events: none;
}

.stamp-context-panel--npo {
    border-color: rgba(48, 185, 168, 0.16);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 46px rgba(48, 118, 112, 0.07);
}

.stamp-context-panel--npo::after {
    background: rgba(48, 185, 168, 0.05);
}

.stamp-context-panel__label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-bottom: 0.8rem;
    padding: 0.38rem 0.68rem;
    border: 1px solid rgba(102, 87, 217, 0.11);
    border-radius: 999px;
    color: var(--stamp-purple-dark);
    background: var(--stamp-lilac);
    font-size: 0.72rem;
    font-weight: 800;
}

.stamp-context-panel--npo .stamp-context-panel__label {
    border-color: rgba(48, 185, 168, 0.13);
    color: #277f75;
    background: #eaf8f5;
}

.stamp-context-panel h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 1.25rem;
    color: var(--stamp-ink);
    font-size: 1.45rem;
    font-weight: 900;
}

.stamp-context-panel ul {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stamp-context-panel li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--stamp-border);
}

.stamp-context-panel li i {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.45rem;
    height: 2.45rem;
    margin-top: 0.05rem;
    border-radius: 0.8rem;
    color: var(--stamp-purple);
    background: var(--stamp-lilac);
    font-size: 1.05rem;
}

.stamp-context-panel--npo li i {
    color: #278d81;
    background: #e8f8f5;
}

.stamp-context-panel li strong,
.stamp-context-panel li span {
    display: block;
}

.stamp-context-panel li strong {
    margin-bottom: 0.25rem;
    color: var(--stamp-ink);
    font-size: 1rem;
}

.stamp-context-panel li span {
    color: var(--stamp-muted);
    line-height: 1.75;
}

.stamp-context-panel>p {
    position: relative;
    z-index: 1;
    margin: 1.2rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--stamp-border);
    color: var(--stamp-muted);
    font-size: 0.9rem;
}

.stamp-core-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.stamp-core-card {
    position: relative;
    overflow: hidden;
    min-height: 285px;
    padding: 1.7rem;
    border: 1px solid rgba(102, 87, 217, 0.13);
    border-radius: 1.7rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(73, 59, 146, 0.07);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.stamp-core-card::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -48px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(102, 87, 217, 0.05);
}

.stamp-core-card:hover {
    transform: translateY(-6px);
    border-color: rgba(102, 87, 217, 0.27);
    box-shadow: var(--stamp-shadow);
}

.stamp-core-card__number {
    position: absolute;
    top: 1.35rem;
    right: 1.45rem;
    color: rgba(102, 87, 217, 0.15);
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
}

.stamp-core-card__icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 1.35rem;
    border-radius: 19px;
    color: #fff;
    background: linear-gradient(145deg, var(--stamp-purple), #8479e8);
    box-shadow: 0 14px 28px rgba(102, 87, 217, 0.2);
    font-size: 1.5rem;
}

.stamp-core-card:nth-child(2) .stamp-core-card__icon,
.stamp-core-card:nth-child(5) .stamp-core-card__icon {
    background: linear-gradient(145deg, var(--stamp-coral), #fb9a87);
    box-shadow: 0 14px 28px rgba(244, 118, 100, 0.2);
}

.stamp-core-card:nth-child(3) .stamp-core-card__icon,
.stamp-core-card:nth-child(6) .stamp-core-card__icon {
    background: linear-gradient(145deg, var(--stamp-mint), #5ccdbf);
    box-shadow: 0 14px 28px rgba(48, 185, 168, 0.2);
}

.stamp-core-card:nth-child(4) .stamp-core-card__icon {
    background: linear-gradient(145deg, var(--stamp-gold), #f7cb70);
    box-shadow: 0 14px 28px rgba(243, 184, 74, 0.2);
}

.stamp-core-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 0.75rem;
    color: var(--stamp-ink);
    font-size: 1.25rem;
    font-weight: 900;
}

.stamp-core-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--stamp-muted);
    line-height: 1.82;
}

.stamp-feature-scenes {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
    padding: 1.3rem 1.5rem;
    border: 1px solid rgba(102, 87, 217, 0.12);
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.82);
}

.stamp-feature-scenes>span {
    color: var(--stamp-purple-dark);
    font-weight: 900;
    white-space: nowrap;
}

.stamp-feature-scenes ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stamp-feature-scenes li {
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    color: #5f5a72;
    background: #f1eef9;
    font-size: 0.8rem;
    font-weight: 750;
}

.stamp-operation {
    background: #fff;
}

.stamp-operation-group {
    padding: 7rem 0;
}

.stamp-operation-group--case {
    background:
        radial-gradient(circle at 15% 15%, rgba(48, 185, 168, 0.12), transparent 18rem),
        var(--stamp-lilac);
}

.stamp-operation-group--newyear {
    background: #fff;
}

.stamp-operation-group--npo {
    background: #f7f6fb;
}

.stamp-operation-heading {
    max-width: 850px;
    margin-bottom: 3rem;
}

.stamp-operation-heading h2 {
    margin: 0.9rem 0 1rem;
    color: var(--stamp-ink);
    font-size: clamp(2.15rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.stamp-operation-heading p {
    margin: 0;
    color: var(--stamp-muted);
    font-size: 1.03rem;
    line-height: 1.9;
}

.stamp-operation-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
    align-items: end;
    max-width: none;
}

.stamp-case__content h3 {
    margin: 0.9rem 0 1rem;
    color: var(--stamp-ink);
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

/* ---------------------------------------------------------
   25. 導覽結構調整後的 RWD
   --------------------------------------------------------- */
@media (max-width: 991.98px) {

    .stamp-value-challenges,
    .stamp-operation-heading--split {
        grid-template-columns: 1fr;
    }

    .stamp-operation-heading--split {
        gap: 1.25rem;
        align-items: start;
    }

    .stamp-core-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {

    .stamp-value-challenges,
    .stamp-core-grid {
        grid-template-columns: 1fr;
    }

    .stamp-context-panel,
    .stamp-core-card {
        min-height: 0;
        padding: 1.4rem;
    }

    .stamp-feature-scenes {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .stamp-feature-scenes ul {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
        width: 100%;
    }

    .stamp-feature-scenes li {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 2.75rem;
        padding: 0.5rem 0.55rem;
        text-align: center;
        line-height: 1.35;
    }

    .stamp-operation-group {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .stamp-operation-heading {
        margin-bottom: 2.25rem;
    }

    .stamp-operation-heading h2 {
        font-size: clamp(2rem, 8vw, 2.65rem);
    }
}

@media (max-width: 575.98px) {
    .stamp-context-panel {
        padding: 1.25rem;
        border-radius: 1.4rem;
    }

    .stamp-context-panel li {
        gap: 0.65rem;
    }

    .stamp-feature-scenes ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stamp-feature-scenes li {
        width: auto;
        font-size: 0.76rem;
    }

    .stamp-case__content h3 {
        font-size: 1.75rem;
    }
}

@media (hover: none) {
    .stamp-core-card:hover {
        transform: none;
    }
}

/* ---------------------------------------------------------
   26. 互動與動態效果（效能優化版）
   --------------------------------------------------------- */

/*
   所有持續動畫僅使用 transform / opacity，避免修改 margin、top、left、
   filter 與 box-shadow 所造成的版面重算和大量重繪。
*/
.stamp-visual {
    transform: none;
}

.stamp-phone,
.stamp-floating-card--qr,
.stamp-floating-card--data,
.stamp-visual__orbit--one,
.stamp-qr::after,
.stamp-progress__track span::after {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 手機主體：保留原本定位與旋轉，只做小幅度上下位移 */
.stamp-phone {
    --phone-translate-x: -42%;
    --phone-rotate: 3deg;
    transform: translate3d(var(--phone-translate-x), 0, 0) rotate(var(--phone-rotate));
    animation: stampPhoneFloatOptimized 6.4s ease-in-out infinite;
    will-change: transform;
}

@keyframes stampPhoneFloatOptimized {

    0%,
    100% {
        transform: translate3d(var(--phone-translate-x), 0, 0) rotate(var(--phone-rotate));
    }

    50% {
        transform: translate3d(var(--phone-translate-x), -8px, 0) rotate(calc(var(--phone-rotate) - 0.5deg));
    }
}

/* QR 與數據卡錯開漂浮，避免同時到達動畫峰值 */
.stamp-floating-card--qr {
    --floating-rotate: -7deg;
    transform: translate3d(0, 0, 0) rotate(var(--floating-rotate));
    animation: stampQrCardFloatOptimized 7.2s ease-in-out infinite;
    will-change: transform;
}

.stamp-floating-card--data {
    --floating-rotate: 4deg;
    transform: translate3d(0, 0, 0) rotate(var(--floating-rotate));
    animation: stampDataCardFloatOptimized 7.8s ease-in-out infinite;
    animation-delay: -3.4s;
    will-change: transform;
}

@keyframes stampQrCardFloatOptimized {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(var(--floating-rotate));
    }

    50% {
        transform: translate3d(0, -6px, 0) rotate(calc(var(--floating-rotate) + 0.8deg));
    }
}

@keyframes stampDataCardFloatOptimized {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(var(--floating-rotate));
    }

    50% {
        transform: translate3d(0, 6px, 0) rotate(calc(var(--floating-rotate) - 0.8deg));
    }
}

/* 只保留一個大型圓環緩慢旋轉，第二個圓環維持靜態 */
.stamp-visual__orbit--one {
    animation: stampOrbitRotateOptimized 36s linear infinite;
    will-change: transform;
}

.stamp-visual__orbit--two {
    animation: none;
}

@keyframes stampOrbitRotateOptimized {
    to {
        transform: rotate(360deg);
    }
}

/* QR 掃描線：固定定位，僅用 translateY 移動 */
.stamp-qr::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 9px;
    right: 9px;
    left: 9px;
    height: 8px;
    border-radius: 999px;
    opacity: 0;
    background: linear-gradient(180deg,
            rgba(48, 185, 168, 0),
            rgba(48, 185, 168, 0.68),
            rgba(102, 87, 217, 0));
    transform: translate3d(0, -18px, 0);
    animation: stampQrScanOptimized 4.8s ease-in-out infinite;
    will-change: transform, opacity;
    pointer-events: none;
}

@keyframes stampQrScanOptimized {

    0%,
    18% {
        opacity: 0;
        transform: translate3d(0, -18px, 0);
    }

    28% {
        opacity: 0.9;
    }

    68% {
        opacity: 0.9;
        transform: translate3d(0, 860%, 0);
    }

    78%,
    100% {
        opacity: 0;
        transform: translate3d(0, 860%, 0);
    }
}

/* 進度條流光同樣只使用 transform */
.stamp-progress__track {
    position: relative;
}

.stamp-progress__track span {
    position: relative;
    overflow: hidden;
}

.stamp-progress__track span::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 34%;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
    transform: translate3d(-130%, 0, 0) skewX(-18deg);
    animation: stampProgressShineOptimized 4.2s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes stampProgressShineOptimized {

    0%,
    28% {
        opacity: 0;
        transform: translate3d(-130%, 0, 0) skewX(-18deg);
    }

    38% {
        opacity: 1;
    }

    68% {
        opacity: 1;
        transform: translate3d(360%, 0, 0) skewX(-18deg);
    }

    78%,
    100% {
        opacity: 0;
        transform: translate3d(360%, 0, 0) skewX(-18deg);
    }
}

/* 僅讓兩枚重點印章輕微回饋，降低同時動畫數量 */
.stamp-badge--gold,
.stamp-badge--gift {
    animation: stampBadgeLiftOptimized 6.8s ease-in-out infinite;
}

.stamp-badge--gift {
    animation-delay: -3.4s;
}

@keyframes stampBadgeLiftOptimized {

    0%,
    72%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    80% {
        transform: translate3d(0, -3px, 0) scale(1.025);
    }

    88% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* 集章成功圖示只做縮放，不再動畫化陰影 */
.stamp-phone__notice>i {
    animation: stampNoticeCheckOptimized 6.8s ease-in-out infinite;
}

@keyframes stampNoticeCheckOptimized {

    0%,
    68%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    76% {
        opacity: 0.82;
        transform: scale(1.12);
    }

    84% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero 按鈕與標籤回饋 */
.stamp-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.stamp-btn::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -80%;
    left: -35%;
    width: 28%;
    height: 260%;
    background: rgba(255, 255, 255, 0.34);
    transform: rotate(24deg) translate3d(-220%, 0, 0);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.stamp-btn:hover::after,
.stamp-btn:focus-visible::after {
    transform: rotate(24deg) translate3d(650%, 0, 0);
}

.stamp-hero__tags li {
    transition:
        color 0.22s ease,
        background-color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.stamp-hero__tags li:hover {
    color: var(--stamp-purple-dark);
    background: #ebe7fb;
    box-shadow: 0 8px 20px rgba(73, 59, 146, 0.1);
    transform: translateY(-3px);
}

/* 中段卡片互動只在使用者操作時發生，不持續消耗資源 */
.stamp-context-panel,
.stamp-process__steps li,
.stamp-faq .accordion-item,
.contact-section a {
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        background-color 0.28s ease;
}

.stamp-context-panel:hover {
    border-color: rgba(102, 87, 217, 0.25);
    box-shadow: 0 24px 58px rgba(73, 59, 146, 0.12);
    transform: translateY(-6px);
}

.stamp-context-panel--npo:hover {
    border-color: rgba(48, 185, 168, 0.3);
    box-shadow: 0 24px 58px rgba(48, 118, 112, 0.11);
}

.stamp-context-panel li i,
.stamp-core-card__icon,
.stamp-process__step-icon,
.contact-icon-box {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.stamp-context-panel:hover li i {
    transform: translateY(-2px) rotate(-4deg);
}

.stamp-core-card:hover .stamp-core-card__icon {
    transform: translateY(-4px) rotate(-5deg) scale(1.04);
}

.stamp-process__steps li:hover {
    border-color: rgba(102, 87, 217, 0.23);
    box-shadow: 0 22px 54px rgba(73, 59, 146, 0.12);
    transform: translateX(8px);
}

.stamp-process__steps li:hover .stamp-process__step-icon {
    transform: scale(1.08);
}

.stamp-feature-scenes li {
    transition:
        color 0.22s ease,
        background-color 0.22s ease,
        transform 0.22s ease;
}

.stamp-feature-scenes li:hover {
    color: var(--stamp-purple-dark);
    background: #e8e4f8;
    transform: translateY(-2px);
}

.stamp-faq .accordion-item:hover {
    border-color: rgba(102, 87, 217, 0.22);
    box-shadow: 0 12px 30px rgba(73, 59, 146, 0.07);
}

.contact-section a:hover .contact-icon-box,
.contact-section a:focus-visible .contact-icon-box {
    box-shadow: 0 18px 38px rgba(73, 59, 146, 0.16);
    transform: translateY(-4px) scale(1.05);
}

/* 平板與手機降低動畫位移，並停用大型圓環旋轉 */
@media (max-width: 991.98px) {
    .stamp-phone {
        --phone-translate-x: -50%;
        --phone-rotate: 2deg;
    }

    .stamp-visual__orbit--one {
        animation: none;
    }

    .stamp-process__steps li:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 767.98px) {
    .stamp-phone {
        animation-duration: 7.4s;
    }

    .stamp-floating-card--qr,
    .stamp-floating-card--data {
        animation-duration: 8.8s;
    }

    .stamp-progress__track span::after {
        animation: none;
    }
}

/* 觸控裝置移除 hover 位移 */
@media (hover: none) {

    .stamp-context-panel:hover,
    .stamp-process__steps li:hover,
    .stamp-hero__tags li:hover,
    .stamp-feature-scenes li:hover {
        transform: none;
    }

    .stamp-context-panel:hover li i,
    .stamp-core-card:hover .stamp-core-card__icon,
    .stamp-process__steps li:hover .stamp-process__step-icon,
    .contact-section a:hover .contact-icon-box {
        transform: none;
    }
}

/* 尊重使用者的減少動畫設定 */
@media (prefers-reduced-motion: reduce) {

    .stamp-phone,
    .stamp-floating-card--qr,
    .stamp-floating-card--data,
    .stamp-visual__orbit,
    .stamp-qr::after,
    .stamp-progress__track span::after,
    .stamp-badge--gold,
    .stamp-badge--gift,
    .stamp-phone__notice>i {
        animation: none !important;
    }

    .stamp-context-panel:hover,
    .stamp-core-card:hover,
    .stamp-process__steps li:hover,
    .contact-section a:hover {
        transform: none !important;
    }
}