.main-landing {
    position: relative;
    min-height: 100vh;
    overflow: visible;
    background: transparent;
}

.main-top-bar {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 20;
}

.main-login-link,
.main-icon-link {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 246, 238, 0.94) 100%);
    border: 1px solid #f2dbc8;
    color: #8b5b38;
    box-shadow:
            5px 7px 16px rgba(207, 161, 120, 0.14),
            inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.main-login-link:hover,
.main-icon-link:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #fffdfb 0%, #fff0e0 100%);
}

.main-logout-button {
    background: linear-gradient(180deg, #fff1f1 0%, #ffd9d9 100%);
    border: 1px solid #efb3b3;
    color: #bb3f3f;
    box-shadow:
            5px 7px 16px rgba(214, 120, 120, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.main-logout-button:hover {
    background: linear-gradient(180deg, #fff7f7 0%, #ffcaca 100%);
    color: #a93232;
}

.main-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.main-icon-link {
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.person-icon {
    position: relative;
    display: inline-block;
    color: #ffffff;
}

.person-icon::before,
.person-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: currentColor;
}

.person-icon::before {
    border-radius: 50%;
}

.person-icon::after {
    border-radius: 999px 999px 14px 14px;
}

.person-icon-small {
    width: 20px;
    height: 24px;
}

.person-icon-small::before {
    top: 0;
    width: 10px;
    height: 10px;
}

.person-icon-small::after {
    bottom: 0;
    width: 18px;
    height: 12px;
}

.main-icon-link {
    background: linear-gradient(180deg, #ffd5ad 0%, #ffbb7a 52%, #f4a152 100%);
    border: 1px solid #eeaf6a;
    box-shadow:
            6px 8px 18px rgba(232, 164, 98, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.main-icon-link:hover {
    background: linear-gradient(180deg, #ffddb9 0%, #ffc485 52%, #f0a45a 100%);
}

.main-center-wrap {
    min-height: calc(100vh - 140px);
    padding: 110px 20px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.main-logo-circle {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 28%, #ffe0bf 0%, #ffc98f 38%, #ffb56e 70%, #f39f4e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
            0 0 0 10px rgba(249, 228, 205, 0.92),
            8px 12px 26px rgba(232, 164, 98, 0.2),
            inset 0 3px 8px rgba(255, 255, 255, 0.22);
    border: none;
    margin-bottom: 30px;
}

.main-logo-text {
    font-size: 64px;
    font-weight: 900;
    color: #6e4324;
    letter-spacing: 1px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.main-sub-text {
    margin: 0;
    max-width: 760px;
    color: #896752;
    font-size: 19px;
    line-height: 1.8;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.main-search-box {
    width: 100%;
    max-width: 760px;
    display: flex;
    gap: 12px;
    margin-top: 28px;
    align-items: center;
    justify-content: center;
}

.main-search-input {
    flex: 1;
    min-height: 54px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fffefe 0%, #fff8f1 100%);
    border: 1px solid #ecd7c5;
    box-shadow:
            inset 0 2px 4px rgba(205, 176, 148, 0.06),
            4px 6px 12px rgba(210, 180, 150, 0.06);
}

.main-search-button {
    min-width: 112px;
    min-height: 54px;
}

.main-action-row {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 30px;
}

.main-action-row .primary-button {
    min-width: 170px;
    padding: 13px 22px;
}

.main-info-card-row {
    width: 100%;
    max-width: 980px;
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.main-mini-card {
    padding: 30px 24px;
    transform: translateY(0);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.main-mini-card:hover {
    transform: translateY(-2px);
    box-shadow:
            10px 12px 24px rgba(209, 167, 124, 0.14),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.main-mini-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(180deg, #ffd5ad 0%, #ffbb7a 52%, #f4a152 100%);
    box-shadow:
            5px 7px 16px rgba(232, 164, 98, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.main-mini-card h3 {
    margin: 0 0 10px;
    color: #70482c;
    font-size: 21px;
}

.main-mini-card p {
    margin: 0;
    color: #8a6a54;
    line-height: 1.7;
}

.main-latest-section {
    max-width: 1600px;
    margin: -8px auto 0;
    padding: 0 20px 90px;
}

.main-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.main-section-title {
    margin: 0;
    font-size: 34px;
    color: #70482c;
}

.main-section-desc {
    margin: 8px 0 0;
    color: #8d6d58;
    line-height: 1.7;
}

.main-latest-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.main-latest-card {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 248, 241, 0.96) 100%);
    border: 1px solid #f1dfcf;
    box-shadow:
            8px 10px 24px rgba(209, 167, 124, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.main-latest-card:hover {
    transform: translateY(-2px);
    box-shadow:
            10px 12px 26px rgba(209, 167, 124, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.main-latest-image-wrap {
    position: relative;
    height: 220px;
    background: #fff5ec;
    overflow: hidden;
}

.main-latest-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-latest-content {
    padding: 18px 16px 18px;
}

.main-latest-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff4e6 0%, #ffe6c9 100%);
    color: #b86d2b;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid #f1cfaa;
}

.main-latest-name {
    margin: 12px 0 10px;
    font-size: 18px;
    color: #70482c;
    line-height: 1.45;
}

.main-latest-desc {
    margin: 0;
    color: #8a6a54;
    line-height: 1.7;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
}

.main-latest-meta {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #9a7963;
    font-size: 13px;
    font-weight: 700;
}

.main-latest-empty {
    padding: 34px 28px;
    border-radius: 28px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 249, 243, 0.96) 100%);
    border: 1px solid #f1dfcf;
    box-shadow:
            8px 10px 24px rgba(209, 167, 124, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);
    color: #8c6b55;
    line-height: 1.8;
}

@media (max-width: 1500px) {
    .main-latest-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .main-info-card-row,
    .main-latest-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .main-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .main-top-bar {
        left: 16px;
        right: 16px;
        top: 16px;
    }

    .main-center-wrap,
    .main-latest-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .main-center-wrap {
        min-height: auto;
        padding-top: 110px;
        padding-bottom: 28px;
    }

    .main-logo-circle {
        width: 190px;
        height: 190px;
    }

    .main-logo-text {
        font-size: 52px;
    }

    .main-sub-text {
        font-size: 17px;
    }

    .main-info-card-row,
    .main-latest-grid {
        grid-template-columns: 1fr;
    }

    .main-search-box {
        flex-direction: column;
        max-width: 100%;
    }

    .main-search-input,
    .main-search-button {
        width: 100%;
    }

    .main-action-row {
        max-width: 100%;
        gap: 12px;
    }

    .main-action-row .primary-button {
        width: 100%;
        min-width: 100%;
    }

    .main-section-header {
        align-items: stretch;
    }

    .main-section-title {
        font-size: 29px;
    }

    .main-latest-section {
        margin-top: 8px;
    }
}