/* 1. 基礎 */
:root {
    --red: #8f2433;
    --red-dark: #6d1a26;
    --white: #ffffff;
    --gray: #f3f4f6;
    --line: #e5e7eb;
    --shadow-card: 0 1px 1px rgba(26, 22, 20, 0.035), 0 14px 32px -12px rgba(26, 22, 20, 0.12), 0 32px 56px -20px rgba(26, 22, 20, 0.14);
    --shadow-soft: 0 1px 2px rgba(26, 22, 20, 0.04), 0 10px 24px -12px rgba(26, 22, 20, 0.1);
    --container: 1200px;
    --font: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: #111;
    font-family: var(--font);
    font-size: 17px;
    font-kerning: normal;
    line-height: 1.95;
    letter-spacing: 0.02em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    border: 0;
}

a {
    color: var(--red);
    text-decoration: none;
}

a:hover {
    color: var(--red-dark);
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: "Segoe UI", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: 0.06em;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

section[id] {
    scroll-margin-top: 76px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 80;
    padding: 0.5rem 0.8rem;
    background: var(--white);
    color: #111;
}

.skip-link:focus {
    top: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 2. 頁首 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    box-shadow: 0 8px 22px rgba(26, 22, 20, 0.08);
}

.header-bar {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 64px;
}

.brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.brand-logo {
    display: block;
    width: 111px;
    height: 34px;
}

.site-header .brand-logo {
    width: 104px;
    height: 32px;
}

.site-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px 26px;
    min-width: 0;
    margin-left: auto;
}

.nav-link {
    position: relative;
    padding: 6px 0;
    color: #333333;
    font-size: calc(0.84rem + 3px);
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    white-space: nowrap;
}

.nav-link br {
    display: none;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #000;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    background: #000;
}

.nav-link.is-active {
    color: #d00000;
}

.nav-link.is-active::after {
    background: #d00000;
}

.btn:focus-visible,
.nav-link:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

/* 3. 按鈕 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.7rem 1.45rem;
    border: 1px solid #d00000;
    border-radius: 4px;
    background: #d00000;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.btn:hover {
    background: #a80000;
    border-color: #a80000;
    color: #fff;
}

.btn-arrow {
    width: 0.95em;
    height: 0.95em;
    flex: 0 0 auto;
    margin-right: 0.28em;
}

.btn-box {
    margin-top: 36px;
}

.header-cta {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
}

main .btn {
    min-height: 46px;
    padding: 0 1.55rem;
    border-radius: 10px;
    font-size: 0.92rem;
    letter-spacing: 0.14em;
    line-height: 1;
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#head .btn,
#refer .btn {
    border-color: var(--red);
    background: var(--red);
}

#head .btn:hover,
#refer .btn:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

#head .btn {
    box-shadow: 0 12px 22px -12px rgba(168, 34, 54, 0.85);
}

#refer .btn {
    box-shadow: 0 12px 22px -12px rgba(20, 92, 52, 0.85);
}

/* 4. 首頁主視覺 */
.section {
    padding-block: clamp(76px, 9vw, 120px);
}

.hero-band {
    position: relative;
    overflow: hidden;
    min-height: 780px;
    padding: clamp(76px, 7.5vw, 108px) 0 clamp(48px, 6vw, 78px);
    background: #10080b url("/userfiles/agent/index-hero.jpg") center center / cover no-repeat;
    color: #fff8ef;
}

.hero-band > .container {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 28px));
}

.hero-stars {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.mode > .hero-stars {
    inset: 0 0 auto 0;
    z-index: 1;
}

.hero-star {
    position: absolute;
    width: var(--s, 14px);
    height: var(--s, 14px);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23fff4cc' d='M50 0C51.2 36 64 48.8 100 50C64 51.2 51.2 64 50 100C48.8 64 36 51.2 0 50C36 48.8 48.8 36 50 0Z'/%3E%3Ccircle cx='50' cy='50' r='3.4' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0;
    filter: drop-shadow(0 0 6px rgba(255, 228, 168, 0.55));
    animation: hero-twinkle var(--d, 3.6s) cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s) infinite;
}

.hero-star::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -42%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 250, 230, 0.72) 0%, rgba(243, 212, 138, 0.16) 34%, rgba(243, 212, 138, 0) 70%);
}

.hero-star.is-flare::before {
    content: "";
    position: absolute;
    inset: 14%;
    background: inherit;
    opacity: 0.5;
    transform: rotate(45deg);
}

@keyframes hero-twinkle {
    0%, 68%, 100% {
        opacity: 0;
        transform: scale(0.22) rotate(var(--r, 0deg));
    }

    16% {
        opacity: var(--o, 0.92);
        transform: scale(1) rotate(calc(var(--r, 0deg) + 8deg));
    }

    34% {
        opacity: calc(var(--o, 0.92) * 0.7);
        transform: scale(0.84) rotate(calc(var(--r, 0deg) + 14deg));
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.82fr;
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
}

.hero-copy {
    transform: translateY(30px);
}

.hero-band h1 {
    max-width: 8em;
    color: #fff;
    font-size: clamp(2.8rem, 4.8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.12;
    background: linear-gradient(180deg, #fff 0%, #fff 34%, #f8e7b4 70%, #d7b15a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.9)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.82));
}

.hero-sub {
    margin-top: 1.15rem;
    color: #f0d48a;
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 8px 18px rgba(0, 0, 0, 0.65);
}

.hero-lead {
    max-width: 34em;
    margin-top: 1rem;
    color: rgba(255, 248, 239, 0.9);
    font-size: 1.02rem;
    letter-spacing: 0.03em;
    line-height: 1.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 8px 16px rgba(0, 0, 0, 0.6);
}

.hero-copy .btn-box {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-copy .btn {
    border-radius: 999px;
    letter-spacing: 0.06em;
}

.hero-copy .btn:not(.btn-line) {
    position: relative;
    overflow: hidden;
}

.hero-copy .btn:not(.btn-line)::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -45%;
    width: 38%;
    height: 160%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
    transform: skewX(-20deg);
    animation: btn-shine 2.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btn-shine {
    0%, 42% { left: -50%; }
    78%, 100% { left: 140%; }
}

.btn-line {
    background: rgba(12, 8, 10, 0.45);
    border-color: rgba(255, 244, 224, 0.72);
    color: #fff8ef;
}

.btn-line:hover {
    background: rgba(255, 248, 239, 0.14);
    border-color: #f0d48a;
    color: #fff;
}

.hero-panel {
    width: calc(100% - 35px);
    justify-self: end;
    transform: translateY(50px);
    padding: clamp(14px, 1.6vw, 18px) clamp(12px, 1.4vw, 16px) 10px;
    border: 1px solid rgba(226, 188, 110, 0.9);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(48, 18, 20, 0.94) 0%, rgba(16, 7, 9, 0.94) 100%);
    color: #fff8ef;
    box-shadow: 0 0 0 1px rgba(255, 226, 160, 0.12) inset, 0 18px 40px rgba(0, 0, 0, 0.38);
}

.hero-panel h2 {
    color: #f3d48a;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-align: center;
}

.hero-reasons {
    margin-top: 10px;
    padding-top: 0;
    border-top: 0;
    list-style: none;
}

.hero-reasons li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 14px;
    column-gap: 12px;
    row-gap: 16px;
    align-items: center;
    margin-top: 10px;
    padding: 11px 12px;
    border: 1px solid rgba(214, 176, 96, 0.42);
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(92, 36, 28, 0.45), rgba(32, 12, 14, 0.2));
    color: rgba(255, 252, 248, 0.82);
}

.hero-reasons li + li {
    border-top: 1px solid rgba(214, 176, 96, 0.42);
}

.hero-reasons li::after {
    content: "";
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: center;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid #f3d48a;
    border-right: 1.5px solid #f3d48a;
    transform: rotate(45deg);
}

.hero-reasons b {
    display: block;
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
    color: #fff6e4;
    font-size: calc(1.05rem + 2px);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.15;
    white-space: normal;
}

.hero-reasons span {
    display: block;
    grid-column: 2;
    grid-row: 2;
    color: rgba(255, 236, 214, 0.82);
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.hero-ico {
    display: block;
    grid-row: 1 / span 2;
    grid-column: 1;
    width: 46px;
    height: 46px;
    padding: 6px;
    border: 1px solid rgba(243, 212, 138, 0.8);
    border-radius: 50%;
    background: rgba(120, 48, 28, 0.28);
    color: #f3d48a;
}

.hero-rest {
    padding-top: 28px;
    padding-bottom: clamp(36px, 5vw, 64px);
}

/* 5. 三大模式 */
#paths h2,
#offers h2,
#faq h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(1.615rem, 2.72vw, 2.295rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.35;
    background: linear-gradient(180deg, #a67c2d 0%, #6e4b16 48%, #3e280c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#paths h2::before,
#offers h2::before,
#faq h2::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #f8e7b4, #c9963e 55%, #8a5a18);
    transform: rotate(45deg);
    box-shadow: 0 0 0 5px rgba(201, 150, 62, 0.16);
}

#paths h2::after,
#offers h2::after,
#faq h2::after {
    content: "";
    display: block;
    width: min(280px, 46%);
    height: 1px;
    margin: 18px auto 0;
    background: linear-gradient(90deg, transparent, #e4c36a 18%, #8a5a18 50%, #e4c36a 82%, transparent);
}

#offers h2 {
    margin-bottom: 36px;
}

#faq h2 {
    margin-bottom: 18px;
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 22px;
    margin-top: 42px;
}

.path-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    padding: 30px 22px 22px;
    overflow: hidden;
    border: 1px solid rgba(226, 188, 110, 0.72);
    border-radius: 20px;
    background:
        radial-gradient(ellipse 90% 48% at 50% 0%, rgba(143, 36, 51, 0.42), transparent 70%),
        linear-gradient(180deg, #3a1614 0%, #14080a 100%);
    color: #fff8ef;
    box-shadow:
        0 18px 40px rgba(20, 8, 10, 0.14),
        inset 0 1px 0 rgba(255, 246, 220, 0.42);
    animation: path-rise 0.9s ease both;
    transition: transform 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

.path-grid > .path-card:nth-child(2) {
    animation-delay: 0.12s;
}

.path-grid > .path-card:nth-child(3) {
    animation-delay: 0.24s;
}

.path-card::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f3d48a, #8f2433, transparent);
}

.path-card::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 8%;
    left: 50%;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 236, 190, 0.34), transparent 68%);
    transform: translateX(-50%);
    animation: path-aura 5.8s ease-in-out infinite;
    pointer-events: none;
}

.path-card:hover {
    transform: translateY(-8px);
    border-color: rgba(243, 212, 138, 0.95);
    box-shadow:
        0 28px 48px rgba(20, 8, 10, 0.28),
        inset 0 1px 0 rgba(255, 246, 220, 0.55);
}

.path-card:focus-visible {
    outline: 2px solid #f3d48a;
    outline-offset: 4px;
}

.path-ico {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border: 1px solid rgba(243, 212, 138, 0.8);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 244, 210, 0.22), rgba(90, 24, 28, 0.35));
    color: #f6e2a8;
}

.path-ico::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 64%, rgba(255, 244, 214, 0.95) 80%, transparent 94%);
    animation: path-ring 7.5s linear infinite;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 0);
}

.path-ico svg {
    width: 42px;
    height: 42px;
    animation: path-ico-float 4.6s ease-in-out infinite;
}

.path-who,
.path-card h3,
.path-figure,
.path-note {
    position: relative;
    z-index: 1;
}

.path-who {
    width: 100%;
    margin-top: 2px;
    color: rgba(255, 244, 214, 0.72);
    font-size: 0.84rem;
    letter-spacing: normal;
    line-height: 1.4;
    text-align: center;
}

.path-card h3 {
    width: 100%;
    margin-top: 8px;
    color: #fff8ef;
    font-size: clamp(1.45rem, 1.8vw, 1.7rem);
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-align: center;
}

.path-card h3::after {
    content: "";
    display: block;
    width: 36px;
    height: 1px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, transparent, rgba(255, 232, 180, 0.9), transparent);
}

.path-figure {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-height: 1.15em;
    margin-top: auto;
    padding-top: 14px;
    background: linear-gradient(180deg, #fff 0%, #fff 38%, #f8e7b4 72%, #d7b15a 100%) center / 100% 240%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: path-figure-shift 6.5s ease-in-out infinite;
    font-size: clamp(3.4rem, 4.2vw, 4.6rem);
    font-weight: 700;
    font-synthesis: none;
    letter-spacing: normal;
    line-height: 0.9;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}

.path-figure span {
    font-size: 0.42em;
}

.path-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 96%;
    margin: 14px auto 8px;
    padding: 10px 16px;
    border: 1px solid rgba(243, 212, 138, 0.72);
    border-radius: 999px;
    background: #8f2433;
    color: #fff6e4;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

.path-note::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff1c2;
    box-shadow: 0 0 8px rgba(255, 228, 160, 0.95);
}

.path-grid > .path-card:first-child {
    border-color: #8d6224;
    background:
        radial-gradient(ellipse 80% 42% at 50% 0%, rgba(255, 236, 190, 0.32), transparent 64%),
        linear-gradient(180deg, #d4a44a 0%, #8a5a18 36%, #4a2e10 100%);
}

.path-grid > .path-card:first-child::before {
    background: linear-gradient(90deg, transparent, #fff6d4, #8a5e1c, transparent);
}

.path-grid > .path-card:first-child .path-ico {
    border-color: rgba(255, 226, 170, 0.72);
    background: radial-gradient(circle at 35% 30%, rgba(255, 244, 210, 0.2), rgba(70, 40, 8, 0.4));
    color: #fff1c2;
}

.path-grid > .path-card:first-child .path-who {
    color: rgba(255, 236, 200, 0.82);
}

.path-grid > .path-card:first-child .path-figure {
    background: linear-gradient(180deg, #fff 0%, #fff 38%, #f8e7b4 72%, #e4c36a 100%) center / 100% 240%;
    -webkit-background-clip: text;
    background-clip: text;
}

.path-grid > .path-card:first-child::after {
    background: radial-gradient(circle, rgba(255, 236, 190, 0.42), transparent 68%);
}

.path-grid > .path-card:first-child .path-note {
    background: #6e4b16;
    border-color: #e4c36a;
    color: #fff6e4;
}

.path-grid > .path-card:nth-child(2) {
    border-color: rgba(208, 0, 0, 0.72);
    background:
        radial-gradient(ellipse 100% 62% at 50% 18%, rgba(176, 24, 32, 0.4), transparent 68%),
        linear-gradient(180deg, #a3121a 0%, #7a1016 52%, #3a0a0e 100%);
}

.path-grid > .path-card:nth-child(2)::before {
    background: linear-gradient(90deg, transparent, #ffd0a8, #d00000, transparent);
}

.path-grid > .path-card:nth-child(2) .path-ico {
    border-color: rgba(255, 196, 160, 0.85);
    background: radial-gradient(circle at 35% 30%, rgba(255, 220, 180, 0.24), rgba(160, 16, 20, 0.4));
    color: #ffe1b0;
}

.path-grid > .path-card:nth-child(2) .path-figure {
    background: linear-gradient(180deg, #fff 0%, #fff 36%, #ffc2a8 70%, #d00000 100%) center / 100% 240%;
    -webkit-background-clip: text;
    background-clip: text;
    animation-delay: -2.2s;
}

.path-grid > .path-card:nth-child(2)::after {
    background: radial-gradient(circle, rgba(255, 180, 140, 0.34), transparent 68%);
    animation-delay: -1.8s;
}

.path-grid > .path-card:nth-child(2) .path-ico::before {
    animation-delay: -2.4s;
}

.path-grid > .path-card:nth-child(2) .path-note {
    border-color: rgba(255, 214, 150, 0.8);
    background: #d00000;
}

.path-grid > .path-card:nth-child(3) {
    border-color: rgba(212, 184, 106, 0.85);
    background:
        radial-gradient(ellipse 78% 42% at 50% 0%, rgba(232, 196, 110, 0.24), transparent 64%),
        linear-gradient(180deg, #1f7a48 0%, #14633a 48%, #0c2a1c 100%);
}

.path-grid > .path-card:nth-child(3)::before {
    background: linear-gradient(90deg, transparent, #f3d48a, #1b7a45, transparent);
}

.path-grid > .path-card:nth-child(3) .path-ico {
    border-color: rgba(243, 212, 138, 0.8);
    background: radial-gradient(circle at 35% 30%, rgba(220, 255, 230, 0.2), rgba(16, 80, 42, 0.4));
    color: #f6e7b4;
}

.path-grid > .path-card:nth-child(3) .path-figure {
    background: linear-gradient(180deg, #fff 0%, #fff 36%, #b7ebc8 70%, #1b7a45 100%) center / 100% 240%;
    -webkit-background-clip: text;
    background-clip: text;
    animation-delay: -4.1s;
}

.path-grid > .path-card:nth-child(3)::after {
    background: radial-gradient(circle, rgba(190, 236, 170, 0.32), transparent 68%);
    animation-delay: -3.2s;
}

.path-grid > .path-card:nth-child(3) .path-ico::before {
    animation-delay: -4.6s;
}

.path-grid > .path-card:nth-child(3) .path-note {
    border-color: rgba(243, 212, 138, 0.75);
    background: #14633a;
}

.path-grid > .path-card:nth-child(3) .path-tip {
    transform-origin: center;
    animation: path-tip 2.2s ease-in-out infinite;
}

@keyframes path-rise {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes path-aura {
    0%, 100% { transform: translateX(-50%) scale(0.9); opacity: 0.45; }
    50% { transform: translateX(-50%) scale(1.12); opacity: 1; }
}

@keyframes path-ring {
    to { transform: rotate(360deg); }
}

@keyframes path-ico-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes path-figure-shift {
    0%, 100% { background-position: center 0%; }
    50% { background-position: center 100%; }
}

@keyframes path-tip {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

/* 6. 內頁共用：背景、標題、白卡片 */
.page-agent,
.page-head,
.page-refer {
    background: #fff;
}

.page-agent {
    color: #fff8ef;
}

.mode {
    position: relative;
    overflow: hidden;
}

#agent,
#head,
#refer {
    background: linear-gradient(180deg, #000 0%, #000 35%, #fff 50%, #fff 100%);
    padding-top: calc(clamp(76px, 9vw, 120px) - 50px);
}

#agent {
    --red: #6e4b16;
    --red-dark: #54380f;
    background: linear-gradient(180deg, #000 0%, #000 43.2%, #fff 61.7%, #fff 100%);
}

#head {
    --red: #d12f45;
    --red-dark: #a82236;
}

#refer {
    --red: #1b7a45;
    --red-dark: #145c34;
}

#agent::before,
#head::before,
#refer::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.18) 78%, #000 100%),
        var(--banner) center top / 100% auto no-repeat;
}

#agent::before,
#head::before {
    aspect-ratio: 2000 / 724;
}

#agent::before {
    --banner: url("/userfiles/agent/banner-agent.jpg");
}

#head::before {
    --banner: url("/userfiles/agent/banner-head.jpg");
}

#refer::before {
    aspect-ratio: 1627 / 703;
    --banner: url("/userfiles/agent/banner-refer.jpg");
}

.mode .container,
.mode-head {
    position: relative;
    z-index: 1;
}

.mode-head {
    max-width: 20em;
    margin: 0 auto 28px;
    text-align: center;
}

#refer .mode-head {
    max-width: 34em;
}

#agent .mode-head h1,
#head .mode-head h1,
#refer .mode-head h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.25;
    background: linear-gradient(180deg, #fff8ef 0%, #f3d48a 46%, #c9963e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.9)) drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55));
}

#agent .mode-head h1::before,
#head .mode-head h1::before,
#refer .mode-head h1::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #f8e7b4, #c9963e 55%, #8a5a18);
    transform: rotate(45deg);
    box-shadow: 0 0 0 5px rgba(201, 150, 62, 0.28);
}

#agent .mode-head h1::after,
#head .mode-head h1::after,
#refer .mode-head h1::after {
    content: "";
    display: block;
    width: min(220px, 68%);
    height: 1px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, transparent, #e4c36a 18%, #f8e7b4 50%, #e4c36a 82%, transparent);
}

.mode-kicker {
    display: inline-block;
    margin-top: 18px;
    color: #f3d48a;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.45;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

#refer .mode-kicker {
    color: #d7f5c4;
}

#agent .mode-card,
#head .mode-card,
#refer .mode-card {
    position: relative;
    z-index: 1;
    padding: clamp(32px, 4vw, 44px) clamp(28px, 4vw, 56px) clamp(36px, 4vw, 52px);
    border-radius: 20px;
    background: #fff;
    color: #111;
}

#agent .mode-card {
    border: 1px solid rgba(201, 150, 62, 0.45);
}

#head .mode-card {
    border: 1px solid rgba(209, 47, 69, 0.32);
}

#refer .mode-card {
    border: 1px solid rgba(27, 122, 69, 0.32);
}

.plan-table {
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 1.45fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.plan-table article {
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.plan-table h4,
.plan-table p {
    margin: 0;
    text-align: center;
}

.plan-num,
.plan-rate {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 108px;
    padding: 18px 12px;
}

.plan-num {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1;
    font-synthesis: none;
}

.plan-rate {
    font-weight: 700;
    line-height: 1.4;
}

.plan-rate b {
    color: var(--red);
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 0.9;
    font-synthesis: none;
}

.plan-rate b span {
    font-size: 0.55em;
}

.plan-note {
    margin-top: 20px;
    color: var(--red);
    font-size: clamp(1.05rem, 1.8vw, 1.22rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.8;
    text-align: center;
}

/* 7. 品牌代理 */
#agent .steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    overflow: hidden;
    border: 1px solid rgba(201, 150, 62, 0.38);
    border-radius: 14px;
    background:
        radial-gradient(ellipse 80% 90% at 50% 0%, rgba(255, 236, 190, 0.7), transparent 68%),
        linear-gradient(180deg, #fff8ee 0%, #f4e4c6 100%);
}

#agent .steps li {
    position: relative;
    padding: 26px 16px 24px;
    text-align: center;
}

#agent .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 48px;
    left: calc(50% + 32px);
    width: calc(100% - 64px);
    height: 2px;
    background: linear-gradient(90deg, rgba(228, 195, 106, 0.2), #c9963e 40%, #6e4b16 60%, rgba(228, 195, 106, 0.2));
}

#agent .steps li::before {
    content: "1";
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, #f3d48a 0%, #c9963e 42%, #6e4b16 100%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    box-shadow:
        0 8px 16px -8px rgba(110, 75, 22, 0.75),
        inset 0 1px 0 rgba(255, 248, 230, 0.7);
}

#agent .steps li:nth-child(2)::before {
    content: "2";
}

#agent .steps li:nth-child(3)::before {
    content: "3";
}

#agent .steps strong {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#agent .steps span {
    display: block;
    color: #111;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

#agent .plan {
    margin-top: 36px;
    padding-top: 8px;
}

#agent .plan h3,
#head .plan h3,
#refer .plan h3 {
    margin: 0 0 16px;
    font-size: clamp(1.28rem, 2vw, 1.5rem);
    letter-spacing: 0.08em;
    text-align: center;
}

#agent .plan h3 {
    margin-bottom: 22px;
    color: #6e4b16;
    letter-spacing: 0.14em;
}

#agent .plan h3::before,
#head .plan h3::before,
#refer .plan h3::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    margin: 0 auto 12px;
    background: #c9963e;
    transform: rotate(45deg);
    box-shadow: 0 0 0 4px rgba(201, 150, 62, 0.16);
}

#agent .plan-table {
    overflow: hidden;
    border: 1px solid rgba(201, 150, 62, 0.5);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px -18px rgba(110, 75, 22, 0.45);
}

#agent .plan-table h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(201, 150, 62, 0.35);
    background: #faf4ea;
    color: #3e280c;
    font-size: 0.98rem;
    letter-spacing: 0.04em;
    line-height: 1.45;
}

#agent .plan-table article + article h4,
#agent .plan-table article + article .plan-num,
#agent .plan-table article + article .plan-rate {
    box-shadow: inset 1px 0 0 rgba(201, 150, 62, 0.28);
}

#agent .plan-num,
#agent .plan-rate {
    min-height: 96px;
}

#agent .plan-num,
#agent .plan-rate b {
    color: #6e4b16;
}

#agent .plan-rate {
    display: block;
    flex: 0 0 auto;
    min-height: 0;
    margin-top: auto;
    margin-bottom: auto;
    line-height: 1;
    text-align: center;
}

#agent .plan-rate b {
    vertical-align: baseline;
}

#agent .plan-note {
    max-width: 36em;
    margin: 18px auto 0;
    padding: 12px 18px;
    border-radius: 12px;
    background: #faf4ea;
    color: #6e4b16;
}

#agent .rule-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
}

#agent .rule-card {
    padding: 28px 26px 24px;
    background: #f7f7f8;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

#agent .rule-card h3 {
    margin: 0 0 16px;
    color: var(--red);
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-align: left;
}

#agent .rule-card > p {
    margin: 0;
    color: #111;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.9;
}

#agent .rule-card.rule-card-calc {
    border: 0;
    background: #8a5a18;
    box-shadow: 0 18px 32px -16px rgba(84, 56, 15, 0.7);
}

#agent .rule-card.rule-card-calc h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #fff;
    font-size: 1.45rem;
    text-align: center;
}

#agent .rule-card.rule-card-calc h3::before,
#agent .rule-card.rule-card-calc h3::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

#agent .rule-card.rule-card-calc .calc-line {
    display: block;
    margin: 6px 0 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.8;
    text-align: center;
}

#agent .rule-card.rule-card-fee {
    border: 1px solid rgba(201, 150, 62, 0.4);
    background: #faf4ea;
}

#agent .rule-card-fee h3 {
    font-size: 1.45rem;
}

#agent .rule-card-fee h3,
#agent .rule-card-fee > p {
    text-align: center;
}

#agent .fee-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 20px 0 0;
    list-style: none;
}

#agent .fee-row li {
    padding: 18px 14px 16px;
    background: #fff;
    border: 1px solid rgba(201, 150, 62, 0.32);
    border-radius: 12px;
    text-align: center;
    box-shadow: inset 0 3px 0 #c9963e;
}

#agent .rule-card b {
    display: block;
    margin-bottom: 2px;
    color: var(--red);
    font-size: 0.92rem;
    letter-spacing: 0.06em;
}

#agent .rule-card span {
    display: block;
    color: #111;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.7;
}

#agent .btn-box,
#head .btn-box,
#refer .btn-box {
    margin-top: 40px;
    text-align: center;
}

#agent .btn {
    border-color: #6e4b16;
    background: #8a5a18;
    box-shadow: 0 12px 22px -12px rgba(110, 75, 22, 0.85);
}

#agent .btn:hover {
    border-color: #54380f;
    background: #6e4b16;
    color: #fff;
}

/* 8. 推廣人頭、好友推薦 */
#head .mode-intro,
#refer .mode-intro {
    margin: 0;
    padding: 22px 28px;
    border: 1px solid rgba(209, 47, 69, 0.18);
    border-radius: 12px;
    background: #faf2f3;
    color: #111;
    letter-spacing: 0.03em;
    line-height: 1.9;
    text-align: center;
}

#refer .mode-intro {
    border-color: rgba(27, 122, 69, 0.18);
    background: #f2f7f4;
}

#head .plan,
#refer .plan {
    margin-top: 36px;
    padding-top: 8px;
}

#head .plan h3 {
    color: #d12f45;
}

#refer .plan h3,
#refer .rule-card > h3 {
    color: #1b7a45;
}

#head .plan h3::before {
    background: #d12f45;
    box-shadow: 0 0 0 4px rgba(209, 47, 69, 0.16);
}

#refer .plan h3::before {
    background: #1b7a45;
    box-shadow: 0 0 0 4px rgba(27, 122, 69, 0.16);
}

#head .act-copy,
#refer .act-copy {
    max-width: 40em;
    margin: 0 auto 18px;
    color: #111;
    letter-spacing: 0.03em;
    line-height: 1.9;
    text-align: center;
}

#refer .act-note {
    display: block;
    max-width: 36em;
    margin: 0 auto 18px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #f3f8f4;
    color: #1b7a45;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.8;
    text-align: center;
}

#head .rule-card,
#refer .rule-card {
    margin-top: 32px;
    padding: 24px 26px 12px;
    border: 1px solid rgba(209, 47, 69, 0.28);
    border-radius: 14px;
    background: #faf2f3;
}

#refer .rule-card {
    margin-top: 36px;
    padding: 28px 26px 24px;
    border-color: rgba(27, 122, 69, 0.28);
    border-radius: 12px;
    background: #f3f8f4;
}

#head .rule-card > h3,
#refer .rule-card > h3 {
    margin: 0 0 14px;
    color: #d12f45;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    text-align: center;
}

#refer .rule-card > h3 {
    margin-bottom: 18px;
    color: #1b7a45;
    font-size: 1.45rem;
    letter-spacing: 0.08em;
}

#head .rule-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: rule;
}

#head .rule-list > li {
    position: relative;
    padding: 11px 0 11px 1.8rem;
    color: #111;
    counter-increment: rule;
    letter-spacing: 0.02em;
    line-height: 1.75;
}

#head .rule-list > li + li {
    border-top: 1px solid #ead8dc;
}

#head .rule-list > li::before {
    content: counter(rule) ".";
    position: absolute;
    top: 11px;
    left: 0;
    color: var(--red);
    font-weight: 700;
}

#head .rule-list ul {
    margin: 6px 0 2px;
    padding: 0;
    list-style: none;
}

#head .rule-list ul li {
    position: relative;
    padding: 3px 0 3px 0.9rem;
    color: #333;
    line-height: 1.7;
}

#head .rule-list ul li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d12f45;
}

#refer .flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 0 8px;
    padding: 6px 0 2px;
    border: 1px solid rgba(27, 122, 69, 0.28);
    border-radius: 14px;
    background:
        radial-gradient(ellipse 80% 90% at 50% 0%, rgba(190, 232, 206, 0.75), transparent 68%),
        linear-gradient(180deg, #f4fbf6 0%, #d9f0e3 100%);
    list-style: none;
}

#refer .flow li {
    position: relative;
    padding: 22px 12px 18px;
    color: var(--red);
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.8;
    text-align: center;
}

#refer .flow b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(180deg, #8ed4aa 0%, #1b7a45 46%, #145c34 100%);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    box-shadow:
        0 8px 16px -8px rgba(20, 92, 52, 0.75),
        inset 0 1px 0 rgba(244, 255, 248, 0.7);
}

#refer .flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 44px;
    left: calc(50% + 32px);
    width: calc(100% - 64px);
    height: 2px;
    background: linear-gradient(90deg, rgba(142, 212, 170, 0.2), #1b7a45 40%, #145c34 60%, rgba(142, 212, 170, 0.2));
}

#refer .rule-card .act-copy {
    margin-top: 18px;
}

/* 9. 表格 */
.table-box {
    margin-top: 18px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.table th,
.table td {
    letter-spacing: 0.02em;
}

#head .table,
#refer .table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
}

#refer .plan:first-of-type .table {
    min-width: 760px;
}

#head .table-box,
#refer .table-box {
    overflow: hidden;
    border: 1px solid rgba(209, 47, 69, 0.28);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px -18px rgba(168, 34, 54, 0.35);
}

#refer .table-box {
    border-color: rgba(27, 122, 69, 0.28);
    box-shadow: 0 12px 28px -18px rgba(20, 92, 52, 0.35);
}

#head .table th,
#head .table td,
#refer .table th,
#refer .table td {
    padding: 9px 18px;
    border-bottom: 0;
    line-height: 1.3;
    text-align: right;
}

#head .table th,
#head .table td {
    padding: 9px 28px;
}

#refer .plan:nth-of-type(2) .table th,
#refer .plan:nth-of-type(2) .table td {
    padding: 9px 28px;
}

#head .table th:first-child,
#head .table td:first-child,
#refer .plan:nth-of-type(2) .table th:first-child,
#refer .plan:nth-of-type(2) .table td:first-child {
    width: 22%;
    text-align: center;
}

#head .table th:nth-child(2),
#head .table td:nth-child(2),
#refer .plan:nth-of-type(2) .table th:nth-child(2),
#refer .plan:nth-of-type(2) .table td:nth-child(2) {
    width: 48%;
}

#refer .plan:first-of-type .table th:first-child {
    text-align: center;
}

#head .table th,
#refer .table th {
    background: #d12f45;
    color: #fff;
    font-size: calc(0.84rem + 1px);
    font-weight: 600;
    letter-spacing: 0.16em;
}

#refer .table th {
    background: #1b7a45;
    letter-spacing: 0.08em;
}

#refer .plan:nth-of-type(2) .table th {
    letter-spacing: 0.16em;
}

#head .table td,
#refer .table td {
    background: #fff;
    color: #1a1a1a;
    font-weight: 500;
}

#head .table tbody tr:nth-child(even) td {
    background: #faf6f6;
}

#refer .table tbody tr:nth-child(even) td {
    background: #f7fbf8;
}

#refer .table td[rowspan] {
    background: #fff;
    text-align: center;
    vertical-align: middle;
}

#head .table .is-accent {
    color: #d12f45;
    font-weight: 700;
    letter-spacing: 0.03em;
}

#refer .table .is-accent {
    color: #1b7a45;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* 10. 常見問題 */
.faq-item ul {
    padding-left: 1.25rem;
}

.faq-item li + li {
    margin-top: 0.55em;
}

#faq {
    padding-block: clamp(48px, 5vw, 68px);
    background: linear-gradient(165deg, #1a1614 0%, #6d1a26 46%, #1a1614 100%);
    color: #fff;
}

#faq .container {
    width: min(980px, calc(100% - 32px));
}

#faq .faq-card {
    display: grid;
    padding: 22px 36px 16px;
    border-radius: 18px;
    background: rgba(6, 3, 4, 0.82);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.faq-item summary {
    padding: 0.72rem 1.4rem 0.72rem 0;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary h3 {
    display: inline;
    color: #fff;
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

.faq-item summary::after {
    content: "+";
    float: right;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p,
.faq-item ul {
    padding-bottom: 1.15rem;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.03em;
    line-height: 2;
}

.faq-item:last-child {
    border-bottom: 0;
}

/* 11. 頁尾與浮動 */
.site-footer {
    background: #fff;
    color: #333;
    letter-spacing: 0.04em;
    line-height: 1;
}

.site-footer::before {
    content: "";
    display: block;
    height: 1px;
    background: #e5e7eb;
}

.footer-bar {
    display: flex;
    align-items: center;
    gap: 18px 26px;
    min-height: 68px;
    padding-block: 12px;
}

.footer-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.footer-brand .brand-logo {
    width: 104px;
    height: 32px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    margin-left: auto;
}

.footer-nav a {
    color: #333;
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: #111;
}

.to-top {
    position: fixed;
    right: 25px;
    bottom: 22px;
    z-index: 45;
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    border: 1px solid #e4e4e4;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 0 3px #666;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.to-top.is-on {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.to-top:hover,
.to-top:focus-visible {
    background: #f4f4f4;
    color: #111;
}

.page-agent .to-top {
    border-color: rgba(228, 195, 106, 0.7);
    background: #000;
    color: #f3d48a;
    box-shadow: 0 0 0 1px rgba(228, 195, 106, 0.15);
}

.page-agent .to-top:hover,
.page-agent .to-top:focus-visible {
    background: #000;
    color: #f3d48a;
}

.contact-dock {
    position: fixed;
    right: 23px;
    bottom: 75px;
    z-index: 45;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-dock a {
    display: block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-dock img {
    display: block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.contact-dock a:hover,
.contact-dock a:focus-visible {
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.ticker {
    overflow: hidden;
    width: min(var(--container), calc(100% - 40px));
    margin: 22px auto 0;
    border: 1px solid #e4dcc8;
    border-radius: 999px;
    background: #fff;
    color: #1c1814;
    box-shadow: 0 10px 24px -18px rgba(26, 22, 20, 0.28);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.ticker-track p {
    display: flex;
    flex: none;
    align-items: center;
    margin: 0 72px 0 0;
    padding: 10px 8px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
    white-space: nowrap;
}

.ticker-track p::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 12px;
    background: #8a5a18;
    transform: rotate(45deg);
}

.ticker-track b {
    margin-left: 0.35em;
    color: #1c1814;
    font-weight: 700;
    letter-spacing: normal;
    font-synthesis: none;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.promo-home {
    width: 100%;
    padding: calc(clamp(48px, 6vw, 96px) - 30px) 0 clamp(48px, 6vw, 96px);
    background: #f7f3ea;
}

.mode .promo-home {
    width: auto;
    margin-top: 36px;
    padding: 0;
    background: transparent;
}

.promo-home .promo-grid {
    width: 100%;
    max-width: none;
    gap: 18px;
}

.promo-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 208px;
    overflow: hidden;
    border: 1px solid #c6a15a;
    border-radius: 16px;
    background: #fff;
    color: inherit;
}

.promo-card:hover,
.promo-card:focus-visible {
    color: inherit;
    border-color: #8a5a18;
}

.promo-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    height: 100%;
    padding: 22px 18px 28px 22px;
}

.promo-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.promo-tag,
.promo-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.06em;
}

.promo-tag {
    background: #1b7a45;
    color: #fff;
}

.promo-tag::before {
    content: "";
    width: 11px;
    height: 11px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='5' r='2.2' fill='%23fff'/%3E%3Cpath d='M3.2 13.2c.6-2.8 2.2-4 4.8-4s4.2 1.2 4.8 4' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}

.promo-ribbon {
    border: 1px solid #c6a15a;
    background: transparent;
    color: #8a5a18;
}

.promo-title,
.promo-sub {
    margin: 0;
    line-height: 1.3;
}

.promo-title {
    color: #1c1814;
    font-size: calc(clamp(1.35rem, 1.9vw, 2rem) - 2px);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.promo-title strong {
    color: #c4161c;
    font-weight: 700;
    letter-spacing: normal;
    white-space: nowrap;
    font-synthesis: none;
}

.promo-sub {
    color: #6e6256;
    font-size: clamp(0.84rem, 0.95vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    font-synthesis: none;
}

.promo-art {
    display: block;
    width: 100%;
    height: 176px;
    object-fit: contain;
    object-position: center;
}

.promo-more {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 5px 12px 5px 14px;
    border-top-left-radius: 12px;
    background: #8a5a18;
    color: #fffaf0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.14em;
}

.promo-more::after {
    content: " ›";
}

/* 12. 手機 */
@media (max-width: 860px) {
    .container {
        width: calc(100% - 16px);
    }

    .site-header {
        width: 100%;
        max-width: 100%;
    }

    section[id] {
        scroll-margin-top: 96px;
    }

    .site-header .header-bar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        column-gap: 8px;
        row-gap: 4px;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
        padding: 8px 12px 6px;
        overflow: visible;
    }

    .site-header .brand {
        grid-column: 1;
        grid-row: 1;
        height: auto;
    }

    .site-header .brand-logo {
        width: 78px;
        height: 24px;
    }

    .site-header .header-cta {
        grid-column: 3;
        grid-row: 1;
        min-height: 28px;
        padding: 0 10px;
        font-size: 0.72rem;
        letter-spacing: 0.02em;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: start;
        gap: 0 2px;
        width: 100%;
        min-width: 0;
        height: auto;
        margin: 4px 0 0;
        overflow: visible;
    }

    .nav-link {
        min-width: 0;
        padding: 2px 1px 4px;
        font-size: 12px;
        letter-spacing: 0;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
    }

    .nav-link br {
        display: initial;
    }

    .nav-link::after {
        content: none;
    }

    .nav-link:hover,
    .nav-link:focus-visible,
    .nav-link.is-active {
        text-decoration: underline;
        text-underline-offset: 3px;
        text-decoration-thickness: 1px;
    }

    .hero-grid,
    .path-grid {
        grid-template-columns: 1fr;
    }

    .hero-band {
        min-height: 0;
        padding: 52px 0 24px;
        background: #10080b;
    }

    .hero-band > .container {
        z-index: auto;
    }

    .hero-stars {
        z-index: 2;
    }

    .hero-grid::before {
        content: "";
        position: relative;
        z-index: 1;
        order: 2;
        width: calc(100% + 28px);
        margin: 10px -14px 0;
        aspect-ratio: 1100 / 880;
        background: url("/userfiles/agent/index-hero.jpg") center center / cover no-repeat;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 5%, #000 90%, transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 5%, #000 90%, transparent 100%);
    }

    .hero-grid,
    .hero-copy,
    .hero-lead {
        min-width: 0;
        max-width: 100%;
    }

    .hero-grid {
        gap: 16px;
    }

    .hero-panel {
        order: 3;
        width: 100%;
        justify-self: center;
        transform: none;
        margin-inline: auto;
        padding: 12px 10px 8px;
        border-radius: 16px;
        text-align: left;
    }

    .hero-copy,
    .hero-panel {
        position: relative;
        z-index: 3;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-band h1,
    .hero-sub,
    .hero-lead {
        margin-inline: auto;
    }

    .hero-band h1 {
        max-width: none;
        font-size: clamp(2.15rem, 8.6vw, 2.55rem);
        line-height: 1.18;
        letter-spacing: 0.06em;
    }

    .hero-sub {
        max-width: 18em;
        margin-top: 0.7rem;
        font-size: 0.94rem;
        letter-spacing: 0.1em;
        line-height: 1.6;
    }

    .hero-lead {
        width: calc(100vw - 30px);
        max-width: none;
        margin-top: 0.95rem;
        margin-left: calc(15px - (100vw - 100%) / 2);
        margin-right: calc(15px - (100vw - 100%) / 2);
        padding-inline: 0;
        font-size: 0.84rem;
        letter-spacing: 0.04em;
        line-height: 1.75;
        text-align: center;
    }

    .hero-copy .btn-box {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        margin-top: 1.5rem;
        gap: 10px;
    }

    .hero-copy .btn {
        flex: 0 0 auto;
        width: auto;
        padding-inline: 1.15rem;
        font-size: 0.86rem;
        letter-spacing: 0.06em;
    }

    .hero-panel h2 {
        font-size: 1.16rem;
        letter-spacing: 0.03em;
        line-height: 1.45;
    }

    .hero-reasons {
        margin-top: 10px;
        padding-top: 2px;
    }

    .hero-reasons b {
        margin-bottom: 0;
        font-size: calc(1rem + 4px);
        letter-spacing: 0.04em;
        line-height: 1.2;
    }

    .hero-reasons span {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    #paths h2,
    #offers h2,
    #faq h2 {
        font-size: clamp(1.12rem, 3.83vw, 1.57rem);
        letter-spacing: 0.03em;
        line-height: 1.35;
    }

    .path-card {
        min-height: 0;
    }

    #agent,
    #head {
        padding-top: calc(100vw * 724 / 2000 * 2 - 188px);
    }

    #refer {
        padding-top: calc(100vw * 703 / 1627 * 2 - 188px);
    }

    #agent::before,
    #head::before {
        width: 100%;
        height: auto;
        aspect-ratio: 2000 / 1303.2;
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.2) 72%, #000 100%),
            var(--banner) left top / 180% auto no-repeat;
    }

    #refer::before {
        width: 100%;
        height: auto;
        aspect-ratio: 1627 / 1265.4;
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.2) 72%, #000 100%),
            var(--banner) right top / 180% auto no-repeat;
    }

    #agent .mode-head,
    #head .mode-head,
    #refer .mode-head {
        max-width: none;
    }

    #refer .mode-kicker {
        font-size: 0.86rem;
        letter-spacing: 0;
    }

    #agent .mode-card,
    #head .mode-card,
    #refer .mode-card {
        padding: 18px 8px 16px;
    }

    #head .mode-intro {
        padding: 14px 12px;
    }

    #agent .plan-table {
        grid-template-columns: 1fr;
        border-left: 1px solid rgba(110, 75, 22, 0.55);
        border-right: 1px solid rgba(110, 75, 22, 0.55);
    }

    #agent .plan-table h4,
    #agent .plan-num,
    #agent .plan-rate {
        min-height: 0;
        padding: 8px 4px;
    }

    #agent .plan-table h4 {
        font-size: calc(0.72rem + 2px);
        line-height: 1.35;
    }

    #agent .plan-num {
        font-size: calc(1.35rem + 2px);
    }

    #agent .plan-rate {
        font-size: 1rem;
    }

    #agent .plan-table article + article h4,
    #agent .plan-table article + article .plan-num,
    #agent .plan-table article + article .plan-rate {
        box-shadow: inset 0 1px 0 rgba(201, 150, 62, 0.28);
    }

    #agent .plan-note {
        border-radius: 18px;
        line-height: 1.6;
    }

    #agent .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    #agent .steps li {
        display: block;
        padding: 20px 4px 16px;
        text-align: center;
    }

    #agent .steps li::before {
        width: 36px;
        height: 36px;
        margin: 0 auto 10px;
        font-size: 1rem;
    }

    #agent .steps li:not(:last-child)::after {
        top: 37px;
        left: calc(50% + 24px);
        width: calc(100% - 48px);
        height: 2px;
    }

    #agent .steps span {
        font-size: 0.92rem;
        letter-spacing: 0.04em;
        text-align: center;
    }

    #agent .fee-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 12px;
    }

    #agent .rule-card,
    #head .rule-card,
    #refer .rule-card {
        padding: 14px 10px 12px;
    }

    #agent .rule-card-fee h3 {
        margin-bottom: 8px;
    }

    #agent .fee-row li {
        padding: 10px 8px 8px;
    }

    #head .table-box,
    #refer .table-box,
    #refer .plan:first-of-type .table-box {
        overflow: hidden;
    }

    #head .table,
    #refer .table,
    #refer .plan:first-of-type .table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    #head .table th:first-child,
    #head .table td:first-child,
    #head .table th:nth-child(2),
    #head .table td:nth-child(2),
    #refer .plan:nth-of-type(2) .table th:first-child,
    #refer .plan:nth-of-type(2) .table td:first-child,
    #refer .plan:nth-of-type(2) .table th:nth-child(2),
    #refer .plan:nth-of-type(2) .table td:nth-child(2) {
        width: auto;
    }

    #head .table th:nth-child(1) { width: 28%; }
    #head .table th:nth-child(2) { width: 42%; }
    #head .table th:nth-child(3) { width: 30%; }

    #refer .plan:nth-of-type(2) .table th:nth-child(1) { width: 28%; }
    #refer .plan:nth-of-type(2) .table th:nth-child(2) { width: 40%; }
    #refer .plan:nth-of-type(2) .table th:nth-child(3) { width: 32%; }

    #refer .plan:first-of-type .table th:nth-child(1) { width: 16%; }
    #refer .plan:first-of-type .table th:nth-child(2) { width: 22%; }
    #refer .plan:first-of-type .table th:nth-child(3) { width: 20%; }
    #refer .plan:first-of-type .table th:nth-child(4) { width: 18%; }
    #refer .plan:first-of-type .table th:nth-child(5) { width: 24%; }

    #head .table th,
    #head .table td,
    #refer .table th,
    #refer .table td,
    #refer .plan:first-of-type .table th,
    #refer .plan:first-of-type .table td,
    #refer .plan:nth-of-type(2) .table th,
    #refer .plan:nth-of-type(2) .table td {
        width: auto;
        padding: 7px 3px;
        font-size: calc(0.72rem + 2px);
        letter-spacing: 0;
        line-height: 1.3;
        white-space: normal;
        word-break: break-word;
    }

    #head .table th,
    #refer .table th,
    #refer .plan:first-of-type .table th,
    #refer .plan:nth-of-type(2) .table th {
        font-size: calc(0.66rem + 3px);
        line-height: 1.3;
        letter-spacing: 0;
        text-align: center;
        overflow-wrap: anywhere;
    }

    #head .table-box {
        border-left-color: #d12f45;
        border-right-color: #d12f45;
    }

    #refer .table-box {
        border-left-color: #1b7a45;
        border-right-color: #1b7a45;
    }

    #head .table th + th {
        border-left: 1px solid rgba(255, 255, 255, 0.45);
    }

    #refer .table th:not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.45);
    }

    #head .table td + td {
        border-left: 1px solid rgba(209, 47, 69, 0.35);
    }

    #refer .table td:not(:last-child) {
        border-right: 1px solid rgba(27, 122, 69, 0.35);
    }

    #refer .flow {
        grid-template-columns: repeat(3, 1fr);
    }

    #refer .flow li {
        padding: 18px 4px 14px;
        font-size: 0.82rem;
    }

    #refer .flow b {
        width: 36px;
        height: 36px;
        margin-bottom: 10px;
        font-size: 1rem;
    }

    #refer .flow li:not(:last-child)::after {
        top: 35px;
        left: calc(50% + 24px);
        width: calc(100% - 48px);
    }

    #faq {
        padding-block: 36px;
    }

    #faq .container {
        width: calc(100% - 20px);
    }

    #faq .faq-card {
        padding: 16px 14px 12px;
        border-radius: 14px;
    }

    #faq h2 {
        margin-bottom: 10px;
    }

    .faq-item summary {
        padding: 0.62rem 1.5rem 0.62rem 0;
    }

    .faq-item summary h3 {
        font-size: 0.94rem;
        letter-spacing: 0.02em;
        line-height: 1.45;
    }

    .faq-item summary::after {
        font-size: 1.2rem;
    }

    .faq-item p,
    .faq-item ul {
        font-size: 0.86rem;
        line-height: 1.7;
        padding-bottom: 0.75rem;
    }

    .footer-bar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 12px;
        row-gap: 8px;
        min-height: 0;
        padding-block: 10px 8px;
    }

    .footer-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .footer-brand .brand-logo {
        width: 86px;
        height: 26px;
    }

    .footer-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-wrap: nowrap;
        gap: 0 16px;
        margin-left: 0;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .footer-nav::-webkit-scrollbar {
        display: none;
    }

    .footer-nav a {
        font-size: 0.78rem;
    }

    .to-top {
        right: 19px;
        bottom: 14px;
        width: 37px;
        height: 37px;
    }

    .contact-dock {
        right: 17px;
        bottom: 63px;
    }

    .contact-dock a,
    .contact-dock img {
        width: 40px;
        height: 40px;
    }

    .ticker {
        width: calc(100% - 16px);
        margin-top: 14px;
    }

    .ticker-track p {
        padding: 8px 4px;
        font-size: 0.82rem;
    }

    .promo-home {
        padding: 0 0 22px;
    }

    .mode .promo-home {
        margin-top: 22px;
        padding: 0;
    }

    .promo-card {
        grid-template-columns: 1fr 1fr;
        min-height: 156px;
    }

    .promo-copy {
        gap: 6px;
        padding: 14px 10px 20px 12px;
    }

    .promo-tag,
    .promo-ribbon,
    .promo-more {
        font-size: 10px;
        letter-spacing: 0.04em;
    }

    #offers h2 {
        margin-bottom: 22px;
    }

    .promo-title {
        font-size: calc(1.28rem - 2px);
    }

    .promo-sub {
        font-size: 0.86rem;
        letter-spacing: 0.02em;
    }

    .promo-art {
        height: 132px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .nav-link::after,
    .to-top,
    .contact-dock a,
    main .btn,
    .hero-copy .btn:not(.btn-line)::after,
    .hero-star,
    .path-card,
    .path-card::after,
    .path-ico::before,
    .path-ico svg,
    .path-figure,
    .path-tip {
        transition: none;
        animation: none;
    }
}
