﻿.home-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px 96px;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
    overflow-x: hidden;
}

.home-container {
    width: 100%;
    max-width: 480px;
}

.home-header {
    text-align: center;
    margin-bottom: 28px;
}

.home-header h1 {
    margin: 0 0 6px;
    color: #1f2d3d;
    --title-ic: #1f5fae;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.home-subtitle {
    margin: 0;
    color: #7a8699;
    font-size: 18px;
}

.home-invite-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 0 26px;
    padding: 20px 18px 18px;
    background: linear-gradient(180deg, #fffdf9 0%, #fff6e9 100%);
    border: 1px solid #ffe0b2;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(230, 126, 34, 0.12);
    color: #7a4a12;
    text-decoration: none;
    line-height: 1.55;
    transition: filter 0.18s ease, box-shadow 0.18s ease;
}

.home-invite-badge {
    position: absolute;
    top: -13px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: linear-gradient(135deg, #fb8c00 0%, #ef6c00 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(239, 108, 0, 0.30);
    white-space: nowrap;
}

.home-invite-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #fb8c00 0%, #ef6c00 100%);
    box-shadow: 0 4px 10px rgba(239, 108, 0, 0.28);
}

.home-invite-icon .rh-ico {
    width: 24px;
    height: 24px;
}

.home-invite-text {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
}

.home-invite-arrow {
    flex-shrink: 0;
    color: #ef8c3a;
    font-size: 18px;
    line-height: 1;
}

.home-section {
    margin-bottom: 22px;
}

.home-section:last-child {
    margin-bottom: 0;
}

.home-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 2px;
    color: #1f2d3d;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.home-section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2563eb 0%, #4f46e5 100%);
}

.home-section-title.section-title-with-icon::before {
    display: none;
}

.home-nav {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(30, 45, 61, 0.06);
}

.home-item {
    --accent: #2563eb;
    --accent-soft: #eef4ff;
    --accent-line: #c9dbfb;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 14px 18px;
    border-bottom: 1px solid #eef2f6;
    color: #243447;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s ease, color 0.12s ease;
}

.home-item:last-child {
    border-bottom: none;
}

@media (hover: hover) and (pointer: fine) {
    .home-item:hover {
        background: var(--accent-soft);
        color: var(--accent);
    }

    .home-item:hover .home-item-icon {
        color: #ffffff;
        background: var(--accent);
        border-color: transparent;
    }

    .home-item:hover::after {
        color: var(--accent);
        transform: translateX(3px);
    }

    .home-invite-card:hover {
        filter: brightness(1.02);
        box-shadow: 0 8px 22px rgba(230, 126, 34, 0.18);
    }
}

.home-item:active {
    background: var(--accent-soft);
    color: var(--accent);
}

.home-item:active .home-item-icon {
    color: #ffffff;
    background: var(--accent);
    border-color: transparent;
    transform: scale(0.94);
}

.home-invite-card:active {
    filter: brightness(0.98);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.16);
}

.home-item-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    box-shadow: 0 3px 8px color-mix(in srgb, var(--accent) 20%, transparent);
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.home-item-icon .rh-ico {
    width: 22px;
    height: 22px;
}

.home-item-text {
    flex: 1;
}

.home-item::after {
    content: "›";
    flex-shrink: 0;
    color: #b0bac7;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    transition: color 0.15s ease, transform 0.15s ease;
}

@media (max-width: 480px) {
    .home-page {
        padding: 32px 12px 96px;
    }

    .home-item {
        min-height: 56px;
        padding: 13px 16px;
    }
}
