* {
    box-sizing: border-box;
}

:root {
    --sn-red: #e21d2d;
    --sn-red-deep: #b8121f;
    --sn-gold: #e6b85c;
    --text: #1f2937;
    --text-soft: #4b5563;
    --line: #e5e7eb;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, "Noto Sans SC", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff 0%, #f6f8fc 100%);
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

/* ---------------- Header ---------------- */
.home-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.home-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.home-logo img {
    height: 44px;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.home-nav a {
    color: var(--text-soft);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.home-nav a:hover {
    color: var(--sn-red);
}

.home-lang {
    display: inline-flex;
    padding: 4px;
    background: #eef2f7;
    border-radius: 999px;
}

.home-lang button {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.2s ease;
}

.home-lang button.active {
    background: #fff;
    color: var(--sn-red);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* ---------------- Hero ---------------- */
.home-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(226, 29, 45, 0.10) 0, transparent 45%),
        radial-gradient(circle at 90% 0%, rgba(230, 184, 92, 0.18) 0, transparent 50%),
        linear-gradient(135deg, #fdfdff 0%, #f2f5fb 100%);
}

.home-hero__inner {
    padding: 88px 0 104px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 52px;
}

.home-hero__kick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(226, 29, 45, 0.08);
    color: var(--sn-red-deep);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.home-hero__title {
    margin: 20px 0 18px;
    font-size: clamp(32px, 4.4vw, 56px);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.home-hero__title strong {
    color: var(--sn-red);
}

.home-hero__desc {
    margin: 0 0 28px;
    font-size: 17px;
    color: var(--text-soft);
    max-width: 580px;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: linear-gradient(135deg, var(--sn-red) 0%, var(--sn-red-deep) 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(226, 29, 45, 0.22);
}

.btn--primary:hover {
    box-shadow: 0 18px 32px rgba(226, 29, 45, 0.28);
}

.btn--ghost {
    background: #fff;
    color: var(--text);
    border-color: var(--line);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.btn--ghost:hover {
    border-color: var(--sn-red);
    color: var(--sn-red);
}

.home-hero__media {
    position: relative;
}

.home-hero__media::before {
    content: "";
    position: absolute;
    inset: -18px -28px auto auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(230, 184, 92, 0.45) 0, transparent 60%);
    filter: blur(24px);
    z-index: 0;
}

.home-hero__card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow);
    transform: rotate(-1.2deg);
}

.home-hero__card img {
    border-radius: 16px;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.home-hero__stats {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 12px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.stat b {
    display: block;
    font-size: 20px;
    color: var(--sn-red);
    line-height: 1.1;
}

.stat span {
    display: block;
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 12px;
}

/* ---------------- Section shell ---------------- */
.section {
    padding: 90px 0;
}

.section__head {
    text-align: center;
    margin-bottom: 44px;
}

.section__eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sn-red);
}

.section__title {
    margin: 10px 0 14px;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.01em;
}

.section__desc {
    margin: 0 auto;
    max-width: 720px;
    color: var(--text-soft);
    font-size: 16px;
}

/* ---------------- Exhibition grid ---------------- */
.exhibitions {
    background: var(--bg-soft);
}

.exhibitions--upcoming .section__eyebrow {
    color: var(--sn-red);
}

.exhibitions--past {
    background: linear-gradient(180deg, #f1f5fb 0%, #f8fafc 100%);
}

.exhibitions--past .section__eyebrow {
    color: #64748b;
}

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

.exhibit-card {
    position: relative;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
    overflow: hidden;
}

.exhibit-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 0 rgba(226, 29, 45, 0.18);
    transition: box-shadow 0.25s ease;
}

.exhibit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(226, 29, 45, 0.28);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}

.exhibit-card:hover::after {
    box-shadow: inset 0 0 0 2px rgba(226, 29, 45, 0.22);
}

.exhibit-card--past {
    background: rgba(255, 255, 255, 0.72);
    filter: saturate(0.72) opacity(0.92);
}

.exhibit-card--past,
.exhibit-card--past:hover {
    transform: none;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    border-color: rgba(148, 163, 184, 0.45);
}

.exhibit-card--past::after,
.exhibit-card--past:hover::after {
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.exhibit-card__cover {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 180px;
}

.exhibit-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.25s ease;
}

.exhibit-card:hover .exhibit-card__cover img {
    transform: scale(1.05);
}

.exhibit-card--past .exhibit-card__cover img {
    filter: grayscale(0.35) brightness(0.96);
}

.exhibit-card__tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(135deg, var(--sn-red) 0%, var(--sn-red-deep) 100%);
    box-shadow: 0 6px 14px rgba(226, 29, 45, 0.28);
}

.exhibit-card--past .exhibit-card__tag {
    background: linear-gradient(135deg, #64748b 0%, #334155 100%);
    box-shadow: 0 6px 14px rgba(100, 116, 139, 0.24);
}

.exhibit-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.exhibit-card__title {
    margin: 0 0 6px;
    font-size: 19px;
    line-height: 1.25;
}

.exhibit-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 12px 0 18px;
    color: var(--text-soft);
    font-size: 13.5px;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.meta-item i {
    margin-top: 3px;
    color: var(--sn-red);
    width: 16px;
    text-align: center;
    flex: none;
}

.meta-item span {
    word-break: break-word;
}

.exhibit-card__foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.exhibit-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sn-red);
    font-weight: 700;
    font-size: 14px;
}

.exhibit-card__link i {
    transition: transform 0.2s ease;
}

.exhibit-card:hover .exhibit-card__link i {
    transform: translateX(3px);
}

.exhibit-card__cta {
    padding: 9px 16px;
    font-size: 13px;
}

/* ---------------- Quick links ---------------- */
.quick-links__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.quick-card {
    position: relative;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff 0%, #f5f7fb 100%);
    border: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.quick-card--primary {
    background: linear-gradient(135deg, #fff5f6 0%, #ffefd9 100%);
    border-color: rgba(226, 29, 45, 0.18);
}

.quick-card--gold {
    background: linear-gradient(135deg, #fffaf0 0%, #fdf5e1 100%);
    border-color: rgba(230, 184, 92, 0.42);
}

.quick-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #fff;
    color: var(--sn-red);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
}

.quick-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.quick-card p {
    margin: 0 0 22px;
    color: var(--text-soft);
}

/* ---------------- Footer ---------------- */
.home-footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.82);
    padding: 48px 0 24px;
    margin-top: 20px;
}

.home-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-footer h4 {
    color: #fff;
    margin: 0 0 14px;
    font-size: 15px;
    letter-spacing: 0.04em;
}

.home-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.home-footer a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.home-footer a:hover {
    color: #fff;
}

.home-footer__brand img {
    height: 40px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.home-footer__copy {
    padding-top: 24px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 13px;
    text-align: center;
}

/* ---------------- Back to top ---------------- */
.home-back {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--sn-red) 0%, var(--sn-red-deep) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(226, 29, 45, 0.28);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 40;
}

.home-back.is-show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
    .home-hero__inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 72px 0 88px;
    }

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

    .home-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .home-header__inner {
        min-height: 64px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .home-logo img {
        height: 38px;
    }

    .home-hero__inner {
        padding: 56px 0 72px;
    }

    .home-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero__actions .btn {
        width: 100%;
    }

    .exhibit-card {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .exhibit-card__cover {
        min-height: 200px;
    }

    .exhibit-card__meta {
        grid-template-columns: 1fr;
    }

    .quick-links__grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }

    .home-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
