:root {
    --green-950: #0d2b14;
    --green-900: #123a1c;
    --green-700: #1e5c2b;
    --green-500: #3d8248;
    --green-300: #8ec097;
    --green-100: #dcead9;

    --plum: #6b4a72;
    --gold: #c9a227;
    --gold-soft: #f0dca4;

    --paper: #f3f6ef;
    --ink: #1f3320;
    --ink-soft: #63805f;

    --glass: rgba(255, 255, 255, 0.62);
    --glass-strong: rgba(255, 255, 255, 0.86);
    --hair: rgba(18, 58, 28, 0.10);

    --shadow-sm: 0 2px 10px rgba(13, 43, 20, 0.06);
    --shadow-md: 0 12px 32px -8px rgba(13, 43, 20, 0.16);
    --shadow-lg: 0 40px 80px -32px rgba(13, 43, 20, 0.45);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 44px 18px 30px;

    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(1000px 700px at 6% -8%, rgba(142, 192, 151, 0.45), transparent 58%),
        radial-gradient(780px 560px at 104% 6%, rgba(107, 74, 114, 0.16), transparent 60%),
        linear-gradient(180deg, #f7faf3 0%, #eef3e8 100%);
    overflow-x: hidden;
}

.orb {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(80px);
}

.orb-1 {
    width: 360px;
    height: 360px;
    top: -130px;
    left: -120px;
    background: radial-gradient(circle, rgba(142, 192, 151, 0.85), transparent 70%);
}

.orb-2 {
    width: 440px;
    height: 440px;
    bottom: -180px;
    right: -150px;
    background: radial-gradient(circle, rgba(107, 74, 114, 0.42), transparent 70%);
}

.orb-3 {
    width: 300px;
    height: 300px;
    top: 42%;
    right: -140px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.28), transparent 70%);
}

.leaf {
    position: fixed;
    width: 26px;
    color: rgba(61, 130, 72, 0.22);
    pointer-events: none;
    z-index: 0;
    animation: leafIn 1.4s var(--ease) both;
}

.leaf svg {
    width: 100%;
    display: block;
}

.leaf-1 {
    top: 14%;
    left: 8%;
    animation-delay: 0.2s;
}

.leaf-2 {
    top: 72%;
    left: 12%;
    width: 18px;
    animation-delay: 0.45s;
}

.leaf-3 {
    top: 22%;
    right: 9%;
    width: 20px;
    animation-delay: 0.32s;
}

.leaf-4 {
    bottom: 14%;
    right: 14%;
    width: 30px;
    animation-delay: 0.55s;
}

@keyframes leafIn {
    from {
        opacity: 0;
        transform: translateY(-16px) rotate(-16deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotate(-8deg);
    }
}

.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 54px 28px 30px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 32px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: cardIn 0.9s var(--ease) both;
}

.card::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 24px;
    pointer-events: none;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.logo-wrap {
    position: relative;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    animation: rise 0.8s var(--ease) 0.05s both;
}

.logo-wrap::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            rgba(142, 192, 151, 0.9),
            rgba(240, 220, 164, 0.75),
            rgba(107, 74, 114, 0.5),
            rgba(142, 192, 151, 0.9));
    filter: blur(12px);
    opacity: 0.8;
    animation: haloIn 2.2s var(--ease) both;
}

.logo-wrap::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 39, 0.35);
}

@keyframes haloIn {
    from {
        opacity: 0;
        transform: rotate(-140deg);
    }

    to {
        opacity: 0.8;
        transform: rotate(0deg);
    }
}

.logo {
    position: relative;
    display: block;
    width: 172px;
    height: 172px;
    object-fit: contain;
    border-radius: 50%;
    padding: 13px;
    background: #fff;
    box-shadow: 0 14px 34px -10px rgba(13, 43, 20, 0.4);
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.logo:hover {
    transform: scale(1.055) rotate(-2.5deg);
    box-shadow: 0 22px 48px -12px rgba(13, 43, 20, 0.5);
}

.title {
    text-align: center;
    margin-bottom: 30px;
    animation: rise 0.8s var(--ease) 0.14s both;
}

.eyebrow {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 0.92rem;
    letter-spacing: 0.22em;
    color: var(--gold);
    opacity: 0.9;
    margin-bottom: 6px;
}

.title h1 {
    font-family: "Noto Serif TC", serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 9.5vw, 2.9rem);
    line-height: 1.18;
    margin: 0;
    letter-spacing: 0.16em;
    text-indent: 0.16em;
    background: linear-gradient(100deg,
            var(--green-950) 0%,
            var(--green-700) 30%,
            var(--gold) 50%,
            var(--green-700) 70%,
            var(--green-950) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--green-900);
    animation: sheen 1.8s var(--ease) 0.4s 1 both;
}

@keyframes sheen {
    from {
        background-position: 145% 0;
    }

    to {
        background-position: 50% 0;
    }
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 14px 0 12px;
    color: rgba(201, 162, 39, 0.55);
}

.divider span {
    display: block;
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.7));
}

.divider span:last-child {
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.7), transparent);
}

.divider svg {
    width: 13px;
    height: 13px;
    display: block;
}

.tags {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.tag {
    padding: 6px 15px;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-indent: 0.14em;
    color: var(--green-700);
    background: var(--glass-strong);
    border: 1px solid var(--hair);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.nav-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 17px;
    text-decoration: none;
    color: var(--ink);
    background: var(--glass-strong);
    border: 1px solid var(--hair);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
        border-color 0.35s ease;
    animation: rise 0.7s var(--ease) both;
}

.link-item:nth-of-type(1) {
    animation-delay: 0.22s;
}

.link-item:nth-of-type(2) {
    animation-delay: 0.3s;
}

.link-item:nth-of-type(3) {
    animation-delay: 0.38s;
}

.link-item:hover,
.link-item:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px -12px rgba(13, 43, 20, 0.35);
    border-color: rgba(61, 130, 72, 0.3);
}

.link-item:focus-visible {
    outline: 2px solid var(--green-700);
    outline-offset: 3px;
}

.link-item:active {
    transform: translateY(-1px) scale(0.992);
}

.link-item .icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(140deg, var(--green-500), var(--green-700));
    box-shadow: 0 6px 14px -4px rgba(13, 43, 20, 0.45);
    transition: transform 0.35s var(--ease);
}

.link-item:hover .icon {
    transform: scale(1.06) rotate(-4deg);
}

.link-item .icon svg {
    width: 21px;
    height: 21px;
    display: block;
}

.link-item .text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.link-item .label {
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.06em;
}

.link-item .sub {
    font-size: 0.73rem;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}

.link-item .arrow {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    color: var(--ink-soft);
    opacity: 0.6;
    transition: transform 0.35s var(--ease), opacity 0.35s ease;
}

.link-item:hover .arrow,
.link-item:focus-visible .arrow {
    transform: translateX(5px);
    opacity: 1;
}

.link-item.line .icon {
    background: linear-gradient(140deg, #06c755, #00a844);
}

.link-item.fb .icon {
    background: linear-gradient(140deg, #4c8ff0, #1877f2);
}

.link-item.primary {
    color: #f4faf3;
    background: linear-gradient(135deg, var(--green-700) 0%, var(--green-950) 100%);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 34px -12px rgba(13, 43, 20, 0.75);
    padding: 18px 17px;
}

.link-item.primary .sub {
    color: rgba(244, 250, 243, 0.72);
}

.link-item.primary .arrow {
    color: #f4faf3;
}

.link-item.primary .icon {
    color: var(--green-950);
    background: linear-gradient(140deg, #fdf3d0, var(--gold-soft));
    box-shadow: 0 6px 16px -4px rgba(201, 162, 39, 0.6);
}

.link-item.primary:hover {
    box-shadow: 0 24px 44px -14px rgba(13, 43, 20, 0.8);
    border-color: rgba(240, 220, 164, 0.45);
}

.link-item.primary::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -70%;
    width: 45%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    animation: shine 1.5s ease-in-out 0.9s 1 both;
}

@keyframes shine {
    from {
        transform: translateX(0) rotate(18deg);
    }

    to {
        transform: translateX(444%) rotate(18deg);
    }
}

.badge {
    position: absolute;
    top: 10px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--green-950);
    background: linear-gradient(135deg, #fdf3d0, var(--gold-soft));
    border-radius: 999px;
}

.badge i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1e5c2b;
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(0.75);
    }
}

.link-item.alert {
    color: #fff5f5;
    background: linear-gradient(135deg, #a73a3a 0%, #741d1d 100%);
    border-color: rgba(255, 255, 255, 0.16);
}

.link-item.alert .sub {
    color: rgba(255, 245, 245, 0.75);
}

.link-item.alert .arrow {
    color: #fff5f5;
}

.link-item.alert .icon {
    background: linear-gradient(140deg, #e08a8a, #c04a4a);
}

footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
    animation: rise 0.7s var(--ease) 0.46s both;
}

footer .brand {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 0.86rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    display: block;
    margin-bottom: 5px;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #e8f1e6;
        --ink-soft: #9db99a;
        --glass: rgba(20, 32, 22, 0.6);
        --glass-strong: rgba(24, 38, 26, 0.78);
        --hair: rgba(255, 255, 255, 0.09);
        --gold: #e0c060;
    }

    body {
        background-color: #0b130c;
        background-image:
            radial-gradient(1000px 700px at 6% -8%, rgba(61, 130, 72, 0.34), transparent 58%),
            radial-gradient(780px 560px at 104% 6%, rgba(107, 74, 114, 0.32), transparent 60%),
            radial-gradient(900px 760px at 50% 116%, rgba(30, 92, 43, 0.3), transparent 62%),
            linear-gradient(180deg, #0d170e 0%, #08110a 100%);
    }

    .leaf {
        color: rgba(142, 192, 151, 0.16);
    }

    .card {
        background: linear-gradient(160deg, rgba(26, 42, 29, 0.94), rgba(16, 27, 18, 0.86));
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .card::after {
        border-color: rgba(224, 192, 96, 0.18);
    }

    .title h1 {
        background: linear-gradient(100deg, #cfe8cd 0%, #8ec097 30%, #e0c060 50%, #8ec097 70%, #cfe8cd 100%);
        background-size: 250% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .tag {
        color: var(--green-300);
    }

    .link-item.primary {
        background: linear-gradient(135deg, #1e5c2b 0%, #0b2612 100%);
    }

    .link-item:focus-visible {
        outline-color: var(--green-300);
    }
}

@media (max-width: 400px) {
    .card {
        padding: 42px 18px 24px;
        border-radius: 26px;
    }

    .card::after {
        inset: 6px;
        border-radius: 20px;
    }

    .logo {
        width: 146px;
        height: 146px;
    }

    .leaf {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}
