* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #9d252c;
    --secondary-color: #b89555;
    --accent-color: #d2ad6d;
    --text-color: #2f2720;
    --light-text: #806f61;
    --bg-light: #f8f1e8;
    --white: #fff;
    --dark: #2b2119;
    --card-bg: #fffdf8;
    --border-soft: #eadfce;
    --shadow: 0 14px 34px rgba(89, 59, 32, 0.12);
    --site-header-height: 79px;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background:
        radial-gradient(circle at 12% 0%, rgba(157, 37, 44, 0.08), transparent 30%),
        linear-gradient(180deg, #fffaf3 0%, #f8f1e8 100%);
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img,
video,
canvas,
iframe {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.section-header p {
    color: var(--light-text);
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #555555;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.btn-link:hover {
    color: var(--secondary-color);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(139, 0, 0, 0.98);
}

.header-top {
    background: #f8f8f8;
    color: var(--text-color);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info i {
    color: var(--secondary-color);
}

.navbar {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-color);
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: var(--site-header-height);
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.slide-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.slide-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease;
}

.slide-content p {
    font-size: 24px;
    letter-spacing: 4px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.slider-nav button {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
}

.slider-nav button:hover {
    background: var(--primary-color);
}

.about-section {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--light-text);
    margin-bottom: 20px;
    text-align: justify;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}

.news-section {
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    cursor: pointer;
}

.news-image {
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    font-size: 12px;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.4;
}

.news-content p {
    font-size: 13px;
    color: var(--light-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    text-align: center;
    margin-top: 40px;
}

.halls-section {
    background: var(--white);
}

.halls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.hall-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.hall-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hall-item-active {
    outline: 3px solid rgba(157, 37, 44, 0.24);
    box-shadow: 0 18px 42px rgba(157, 37, 44, 0.18) !important;
}

.hall-image {
    height: 200px;
    overflow: hidden;
}

.hall-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    background: #f0f0f0;
}

.hall-card:hover .hall-image img {
    transform: scale(1.1);
}

.hall-info {
    padding: 20px;
    text-align: center;
}

.hall-info h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.hall-info p {
    font-size: 13px;
    color: var(--light-text);
}

.video-section {
    background: var(--bg-light);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: #333;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(139, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    transition: all 0.3s;
}

.video-card:hover .play-icon {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

.culture-section {
    background: var(--white);
    padding: 40px 0;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.culture-card {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 8px;
    transition: all 0.3s;
}

.culture-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.culture-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--white);
}

.culture-card h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.culture-card p {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.8;
}

.footer {
    background: #f8f8f8;
    color: var(--text-color);
    padding: 50px 0 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section p {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section p i {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: var(--light-text);
}

.footer-bottom p {
    margin: 0;
    line-height: 1.8;
}

.footer-bottom p + p {
    margin-top: 6px;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .news-grid,
    .halls-grid,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 100px;
        left: -100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transition: left 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .nav-menu a {
        display: block;
        padding: 15px;
        color: var(--text-color);
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .news-grid,
    .halls-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .culture-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* APP-style visual refresh */
.header {
    background: rgba(255, 250, 243, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(89, 59, 32, 0.12);
}

.header-top {
    background: linear-gradient(90deg, #8f1f26, #b57b3e);
    color: #fff7ec;
    border-bottom: none;
}

.contact-info i {
    color: #f4d18a;
}

.navbar {
    background: rgba(255, 253, 248, 0.94);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: none;
    padding: 12px 0;
}

.logo img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 20px rgba(157, 37, 44, 0.16);
}

.logo-text {
    color: var(--primary-color);
    text-shadow: none;
    letter-spacing: 1px;
}

.nav-menu {
    gap: 8px;
}

.nav-menu a {
    color: #5f4a39;
    padding: 9px 14px;
    border-radius: 999px;
}

.nav-menu a::after {
    display: none;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #fff2e4;
    color: var(--primary-color);
}

.hamburger span {
    background: var(--primary-color);
}

.hero {
    min-height: 620px;
    background: var(--bg-light);
}

.slide::before {
    background: linear-gradient(180deg, rgba(47, 31, 23, 0.22), rgba(47, 31, 23, 0.58));
}

.slide-content {
    max-width: 780px;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.slide-content p {
    font-size: clamp(18px, 2vw, 25px);
    color: #fff4de;
    text-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);
}

.slider-nav button {
    background: rgba(255, 253, 248, 0.88);
    color: var(--primary-color);
    box-shadow: 0 10px 24px rgba(47, 31, 23, 0.22);
}

.slider-nav button:hover {
    background: var(--primary-color);
    color: #fff;
}

.section {
    padding: 72px 0;
}

.about-section,
.halls-section,
.culture-section {
    background: #fffaf3;
}

.news-section,
.video-section,
.history-section,
.abbot-section,
.overview-section,
.map-section,
.faq-section {
    background: var(--bg-light) !important;
}

.section-header h2 {
    color: var(--text-color);
    font-weight: 800;
}

.section-header h2::after {
    width: 44px;
    height: 4px;
    border-radius: 99px;
    background: var(--primary-color);
}

.section-header p {
    color: var(--secondary-color);
}

.btn,
.search-btn,
.submit-btn {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 22px rgba(157, 37, 44, 0.18);
}

.btn:hover,
.search-btn:hover,
.submit-btn:hover {
    background: #821d24 !important;
    transform: translateY(-2px);
}

.btn-outline {
    background: #fffdf8 !important;
    color: var(--primary-color) !important;
    border-color: var(--border-soft) !important;
}

.btn-outline:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.about-image,
.news-card,
.hall-card,
.video-card,
.culture-card,
.news-main,
.news-sidebar,
.news-item,
.overview-card,
.contact-card,
.info-item,
.map-container,
.faq-item,
.detail-content,
.related-card,
.video-card-info {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-soft);
    border-radius: 14px !important;
    box-shadow: var(--shadow) !important;
}

.news-card,
.hall-card,
.video-card,
.culture-card,
.overview-card,
.contact-card,
.info-item,
.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover,
.hall-card:hover,
.video-card:hover,
.culture-card:hover,
.overview-card:hover,
.contact-card:hover,
.info-item:hover,
.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(89, 59, 32, 0.16) !important;
}

.about-image img,
.hall-image img,
.video-thumbnail img,
.news-item-image img {
    background: #f3eadf;
}

.about-text h3,
.hall-info h3,
.history-text h3,
.abbot-info h3,
.philosophy-content h3,
.contact-card h3,
.info-item h3,
.faq-item h3,
.news-item-title:hover,
.hot-news-list a:hover,
.btn-link,
.news-item-readmore {
    color: var(--primary-color) !important;
}

.news-date,
.category-list a:hover,
.category-list a.active,
.pagination a:hover,
.pagination a.active {
    background: #fff2e4 !important;
    color: var(--primary-color) !important;
    border-color: #f0d9ba !important;
}

.news-date {
    font-weight: 600;
}

.home-news-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-news-card .news-image {
    height: 250px;
}

.home-news-card .news-date {
    background: rgba(31, 31, 31, 0.94) !important;
    color: #fff !important;
    border: 0 !important;
    padding: 11px 18px;
    font-size: 14px;
    line-height: 1.2;
}

.home-news-card .news-content {
    min-height: 92px;
    padding: 24px 24px 26px;
}

.home-news-card .news-content h3 {
    display: -webkit-box;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.play-icon,
.culture-icon,
.value-item i,
.overview-card i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: #fff !important;
}

.about-banner,
.news-banner,
.halls-banner,
.contact-banner,
.video-banner {
    min-height: 380px;
    background-color: #8d2328 !important;
}

.about-banner,
.news-banner,
.halls-banner,
.contact-banner,
.video-banner,
.hero {
    color: #fff;
}

.about-banner h1,
.news-banner h1,
.halls-banner h1,
.contact-banner h1,
.video-banner h1 {
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.search-input,
input,
textarea,
select {
    border-color: var(--border-soft) !important;
    border-radius: 10px !important;
    background: #fffdf8 !important;
}

.search-input:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 3px rgba(184, 149, 85, 0.16);
}

.footer {
    background: linear-gradient(135deg, #3a241b 0%, #7e2027 100%);
    color: #fff7ec;
    border-top: none;
}

.footer-section h3 {
    color: #fff;
}

.footer-section p,
.footer-bottom {
    color: rgba(255, 247, 236, 0.82);
}

.footer-section p i {
    color: #f1c978;
}

.footer-qrcodes {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-qrcode-item {
    width: 112px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 14px 32px rgba(38, 16, 12, 0.18);
    text-align: center;
}

.footer-qrcode-item img,
.wechat-qrcode {
    width: 92px;
    height: 92px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.footer-qrcode-item span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.2;
    color: #7e2027;
    font-weight: 600;
}

.social-links a {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.social-links a:hover {
    background: #f1c978;
    color: #7e2027;
}

.footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 768px) {
    .hero {
        height: 74vh;
        min-height: 520px;
        margin-top: var(--site-header-height);
    }

    .nav-menu {
        top: var(--site-header-height);
        background: #fffdf8;
        border-bottom: 1px solid var(--border-soft);
        box-shadow: 0 18px 38px rgba(89, 59, 32, 0.16);
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-soft);
    }

    .nav-menu a {
        border-radius: 10px;
    }

    .about-banner,
    .news-banner,
    .halls-banner,
    .contact-banner,
    .video-banner {
        min-height: 300px;
        margin-top: var(--site-header-height) !important;
    }

    .section {
        padding: 48px 0;
    }

    .slide-content h1 {
        font-size: 34px;
    }

    .slide-content p {
        font-size: 17px;
        letter-spacing: 2px;
    }
}

.mobile-menu-backdrop {
    display: none;
}

@media (max-width: 768px) {
    body.mobile-menu-open {
        overflow: hidden;
    }

    .hamburger {
        position: relative;
        z-index: 1202;
        display: flex !important;
        width: 54px;
        height: 54px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        border: 1px solid #f0d9ba;
        border-radius: 16px;
        background: #fffdf8;
        box-shadow: 0 10px 24px rgba(89, 59, 32, 0.14);
        -webkit-tap-highlight-color: transparent;
    }

    .hamburger span {
        display: none !important;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        left: 50%;
        width: 26px;
        height: 3px;
        border-radius: 999px;
        background: #9d252c;
        transform-origin: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .hamburger::before {
        transform: translate(-50%, -10px);
        box-shadow: 0 10px 0 #9d252c;
    }

    .hamburger::after {
        transform: translate(-50%, 10px);
    }

    .hamburger.active::before {
        transform: translate(-50%, 0) rotate(45deg);
        box-shadow: none;
    }

    .hamburger.active::after {
        transform: translate(-50%, 0) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: calc(var(--site-header-height) + 10px);
        left: 12px;
        right: 12px;
        z-index: 1201;
        width: auto;
        max-height: calc(100vh - var(--site-header-height) - 26px);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 12px;
        border: 1px solid var(--border-soft);
        border-radius: 18px;
        background: #fffdf8;
        box-shadow: 0 22px 48px rgba(38, 16, 12, 0.2);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px) scale(0.98);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .nav-menu.active {
        left: 12px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-menu li {
        border-bottom: 0;
    }

    .nav-menu a {
        display: block;
        padding: 14px 16px;
        border-radius: 12px;
        color: #4a3728;
        font-size: 16px;
        font-weight: 600;
    }

    .nav-menu a.active,
    .nav-menu a:hover {
        background: #fff2e4;
        color: var(--primary-color);
    }

    .mobile-menu-backdrop {
        position: fixed;
        top: var(--site-header-height);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 999;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    body.mobile-menu-open .mobile-menu-backdrop {
        display: block;
    }
}
