:root {
    --bg: #fff8fb;
    --surface: #ffffff;
    --surface-soft: #fff0f5;
    --text: #2f2630;
    --muted: #725f6d;
    --line: #ead8e0;
    --accent: #e56f9a;
    --accent-dark: #b83c70;
    --accent-soft: #ffe0ea;
    --shadow: 0 18px 44px rgba(180, 74, 113, 0.13);
    --radius: 8px;
    --font-sans: "Noto Sans TC", "Yu Gothic UI", "Segoe UI", sans-serif;
    --font-display: "Noto Serif TC", "Yu Mincho", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.65;
    background:
        linear-gradient(rgba(255, 248, 251, 0.94), rgba(255, 248, 251, 0.94)),
        repeating-linear-gradient(90deg, transparent 0 47px, rgba(184, 60, 112, 0.07) 48px),
        repeating-linear-gradient(0deg, transparent 0 47px, rgba(184, 60, 112, 0.05) 48px);
}

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

button {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav-shell {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    font-weight: 700;
    color: var(--accent-dark);
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(184, 60, 112, 0.16);
}

.main-nav {
    display: flex;
    gap: 20px;
    color: var(--muted);
}

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

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 700;
}

.nav-cta,
.button-primary {
    color: #fff;
    background: var(--accent-dark);
    box-shadow: 0 10px 20px rgba(184, 60, 112, 0.18);
}

.button-secondary {
    background: var(--surface);
    border: 1px solid var(--line);
}

.button-plain {
    color: var(--accent-dark);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
    border-radius: 999px;
}

.mobile-nav {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.mobile-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius);
}

.mobile-nav a:hover {
    background: var(--accent-soft);
}

.hero {
    background:
        radial-gradient(circle at 83% 30%, rgba(229, 111, 154, 0.18), transparent 26%),
        linear-gradient(90deg, rgba(255, 248, 251, 0.98), rgba(255, 241, 246, 0.78));
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    align-items: center;
    padding: 72px 0 88px;
}

.hero-content {
    max-width: 680px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 4.25rem;
    line-height: 1.08;
}

.hero-copy {
    max-width: 620px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-visual {
    display: grid;
    justify-items: center;
    gap: 20px;
}

.hero-icon {
    width: 232px;
    height: 232px;
    border: 8px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    background: var(--surface);
    object-fit: cover;
    box-shadow:
        0 18px 48px rgba(184, 60, 112, 0.2),
        0 0 0 1px var(--line);
    animation: gentle-float 5.8s ease-in-out infinite;
}

.hero-note {
    display: grid;
    gap: 2px;
    width: min(100%, 260px);
    padding: 14px 16px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-note strong {
    color: var(--text);
}

.section {
    padding: 72px 0;
}

.section-tint {
    background: rgba(255, 240, 245, 0.72);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    max-width: 720px;
    margin-bottom: 30px;
}

.section-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 2.35rem;
    line-height: 1.18;
}

.section-head p:not(.eyebrow) {
    margin: 16px 0 0;
    color: var(--muted);
}

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

.feature-card {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.feature-card p,
.management-card p,
.management-band p,
.protection-item p {
    margin: 0;
    color: var(--muted);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 40px;
    align-items: start;
}

.protection-list {
    display: grid;
    gap: 12px;
}

.protection-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.protection-item span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #fff;
    background: var(--accent);
    border-radius: var(--radius);
    font-weight: 800;
}

.management-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
    gap: 34px;
    align-items: start;
}

.management-copy {
    position: sticky;
    top: 104px;
    margin-bottom: 0;
}

.management-panel {
    padding: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 245, 0.78));
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 6px);
    box-shadow: var(--shadow);
}

.panel-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.management-card {
    min-height: 176px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.management-card span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    color: #fff;
    background: var(--accent-dark);
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 800;
}

.management-card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.management-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 14px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-shell {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
}

.footer-shell p {
    margin: 0;
}

.footer-shell div {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.legal-page {
    min-height: calc(100vh - 132px);
}

.legal-hero {
    padding: 72px 0 46px;
    background:
        radial-gradient(circle at 18% 12%, rgba(229, 111, 154, 0.18), transparent 30%),
        linear-gradient(120deg, rgba(255, 248, 251, 0.98), rgba(255, 224, 234, 0.68));
    border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 3.25rem;
    line-height: 1.1;
}

.legal-hero p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
}

.legal-section {
    padding: 56px 0 76px;
}

.legal-content {
    max-width: 860px;
    display: grid;
    gap: 18px;
}

.legal-content article {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.legal-content h2 {
    margin: 0 0 10px;
    font-size: 1.18rem;
}

.legal-content p {
    margin: 0;
    color: var(--muted);
}

.legal-content p + p {
    margin-top: 10px;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 420ms ease, transform 420ms ease;
}

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

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

    .hero-icon,
    .reveal {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
}

@keyframes gentle-float {
    0%,
    100% {
        transform: translateY(0);
    }

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

@media (max-width: 920px) {
    .main-nav,
    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 56px 0 64px;
    }

    .hero-visual {
        order: -1;
        justify-items: start;
    }

    .hero-icon {
        width: 156px;
        height: 156px;
        border-width: 6px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .feature-grid,
    .split-layout,
    .management-layout {
        grid-template-columns: 1fr;
    }

    .management-copy {
        position: static;
    }

    .management-band,
    .footer-shell {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .container,
    .mobile-nav {
        width: min(100% - 22px, 1120px);
    }

    .hero h1,
    .legal-hero h1 {
        font-size: 2.45rem;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .management-panel {
        padding: 12px;
    }

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

    .management-card {
        min-height: auto;
    }

    .section {
        padding: 52px 0;
    }

    .section-head h2,
    .management-band h2 {
        font-size: 1.8rem;
    }

    .legal-hero {
        padding: 48px 0 34px;
    }
}
