.nav-bar {
    background: linear-gradient(to bottom, #8b0000, #e60012);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFD700;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    width: auto;
    height: auto;
}

.menu-toggle::before {
    content: '☰';
}

.logo {
    font-size: 1.5rem;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin-right: auto;
    display: inline-block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    color: #FFD700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFD700;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    opacity: 1;
    background-color: #d4363a;
    color: #ffffff;
    text-shadow: none;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* 移动端适配 */
@media (max-width: 1030px) {
    .nav-container {
        padding: 0 1rem;
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .menu-toggle {
        display: inline-block;
        width: auto;
        height: auto;
        margin-right: 1rem;
        padding: 0.5rem;
        font-size: 1.5rem;
    }

    .logo {
        display: inline-block;
        margin: 0;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(to bottom, #d4363a, #b31217);
        flex-direction: column;
        padding: 1rem 0;
        gap: 1rem;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-menu li {
        padding: 0.5rem 0;
    }
}

/* 动画效果 */
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 全局样式 */
:root {
    --primary-red: #e60012;
    --gold: #ffd700;
    --dark-red: #8b0000;
    --text-color: #333;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    background-color: var(--primary-red);
    color: var(--gold);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 标题样式 */
.title {
    font-size: 5rem;
    /* margin: 2rem 0; */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
                 0 0 10px rgba(255, 215, 0, 0.3);
    animation: bounce 3s ease-in-out infinite;
    font-family: "STXingkai", "华文行楷", "Microsoft YaHei", cursive;
    background: linear-gradient(45deg, 
        #ffd700 0%, 
        #ffb700 25%,
        #ffd700 50%, 
        #ffb700 75%,
        #ffd700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    /* letter-spacing: 8px; */
    font-weight: bold;
    text-stroke: 1px #8b0000;
    -webkit-text-stroke: 1px #8b0000;
}

.title::before {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    top: 2px;
    width: 100%;
    height: 100%;
    z-index: -1;
    color: #8b0000;
    -webkit-text-fill-color: #8b0000;
    opacity: 0.3;
}

.title-2025 {
    font-size: 5rem;
    margin: 2rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
                 0 0 10px rgba(255, 215, 0, 0.3);
    font-family: "STXingkai", "华文行楷", "Microsoft YaHei", cursive;
    background: linear-gradient(45deg, 
        #ffd700 0%, 
        #ffb700 25%,
        #ffd700 50%, 
        #ffb700 75%,
        #ffd700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    letter-spacing: 8px;
    font-weight: bold;
    text-stroke: 1px #8b0000;
    -webkit-text-stroke: 1px #8b0000;
}

/* 倒计时样式 */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 2rem 0;
}

.countdown-item {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    min-width: 100px;
}

.countdown-item span {
    font-size: 2rem;
    color: var(--gold);
}

/* 倒计时页面禁用滚动 */
.countdown-page {
    overflow-y: hidden;
}

/* 祝福语卡片样式 */
.blessings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.blessing-card {
    background: linear-gradient(135deg, #8b0000 0%, var(--primary-red) 100%);
    padding: 30px 20px;
    border-radius: 15px;
    border: 2px solid var(--gold);
    font-size: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.blessing-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, rgba(255,215,0,0) 70%);
    transform: scale(0);
    transition: transform 0.6s ease-out;
}

.blessing-card::after {
    content: '福';
    position: absolute;
    right: 10px;
    bottom: 5px;
    font-size: 3rem;
    opacity: 0.1;
    color: var(--gold);
    transform: rotate(15deg);
}

.blessing-card:nth-child(1):hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, #8b0000 0%, #ff4d4d 100%);
}

.blessing-card:nth-child(2):hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, #8b0000 0%, #ff3333 100%);
}

.blessing-card:nth-child(3):hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, #8b0000 0%, #ff6666 100%);
}

.blessing-card:nth-child(4):hover {
    transform: scale(1.05) rotate(-1deg) translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, #8b0000 0%, #ff5555 100%);
}

.blessing-card:hover::before {
    transform: scale(1) rotate(180deg);
}

.blessing-card:hover::after {
    animation: bounce 1s ease infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 添加闪烁的星星 */
.blessing-card .sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    animation: sparkle 1.5s ease-in-out infinite;
}

.blessing-card .sparkle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.blessing-card .sparkle:nth-child(2) { top: 20%; right: 20%; animation-delay: 0.3s; }
.blessing-card .sparkle:nth-child(3) { bottom: 30%; left: 30%; animation-delay: 0.6s; }
.blessing-card .sparkle:nth-child(4) { bottom: 10%; right: 10%; animation-delay: 0.9s; }

/* 红包按钮样式 */
.red-packet-btn {
    background-color: var(--dark-red);
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.red-packet-btn:hover {
    background-color: var(--gold);
    color: var(--dark-red);
    transform: scale(1.05);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-red);
    padding: 30px;
    border-radius: 10px;
    border: 3px solid var(--gold);
    text-align: center;
}

/* 音乐控制样式 */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.music-btn {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-btn:hover {
    background: var(--gold);
    color: var(--primary-red);
}

/* 进入新年按钮样式 */
.enter-newyear {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.enter-btn {
    background: linear-gradient(45deg, #8b0000, var(--primary-red));
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

.enter-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    background: linear-gradient(45deg, var(--primary-red), #8b0000);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
}

/* 灯笼样式 */
.lanterns {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    z-index: -1;
}

.lantern {
    width: 60px;
    height: 80px;
    background: var(--primary-red);
    border-radius: 30px;
    position: relative;
    margin: 20px;
    box-shadow: 0 0 20px rgba(230, 0, 18, 0.6);
    animation: swing 3s ease-in-out infinite;
}

.lantern::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    background: var(--gold);
    border-radius: 5px;
}

/* 动画效果 */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes swing {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

/* 面包屑导航样式 */
.breadcrumb {
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.9), rgba(230, 0, 18, 0.9));
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: var(--gold);
    font-size: 1rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 0.8rem;
    color: var(--gold);
    font-size: 1.2rem;
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--gold);
}

/* 页面内容区域 */
/* .content-sections {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
} */

/* 底部样式 */
.footer {
    background-color: rgba(139, 0, 0, 0.95);
    color: var(--gold);
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links {
    margin-left: 8rem;
}

.footer-icon {
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.friendly-links {
    margin-left: 4rem;
}

.copyright {
    color: rgba(255, 215, 0, 0.7);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .countdown {
        flex-wrap: wrap;
    }
    
    .countdown-item {
        min-width: 80px;
    }
    
    .title {
        font-size: 3rem;
        letter-spacing: 4px;
    }
    
    .blessing-card {
        font-size: 1.2rem;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        margin-left: 0;
    }

    
}

@media (max-width: 1148px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        margin-left: 0;
    }

    .friendly-links {
        margin-left: 0;
    }
}

/* footer-section 相关样式 */
.footer-section h3 {
    margin-bottom: 5px;
    font-size: 1.1em;
}

.footer-section p,
.footer-section address,
.footer-section ul {
    font-size: 0.8em;
    line-height: 1.0;
}

.footer-section p {
    line-height: 1.6;
    margin: 0;
}

.footer-section a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-red);
}

.text-p {
    line-height: 1.2rem; margin-bottom: 1rem;
}

.image-gallery {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
}

.gallery-main {
    margin-bottom: 20px;
}

.gallery-main img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.gallery-item {
    flex: 1;
}

.gallery-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .gallery-row {
        flex-direction: column;
    }
    
    .gallery-item {
        margin-bottom: 15px;
    }
}