*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
    user-select: none; /*禁止用户选中*/
}

.head {
    background: linear-gradient(135deg, #e63946, #c1121f);
    border-bottom: none;
    padding: 20px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.hline {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hleft {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hleft span:first-child {
    font-size: 32px;
    font-weight: 800;
    color: #fff3cd;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    font-family: 'Arial Black', 'Microsoft YaHei', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #fff3cd, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hleft span:last-child {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    font-family: 'Microsoft YaHei', 'Arial', sans-serif;
    letter-spacing: 3px;
    padding: 5px 15px;
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
}



.hright {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.hright a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 25px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    font-family: 'Microsoft YaHei', 'Arial', sans-serif;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.hright a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.hright a:hover::before {
    left: 100%;
}

.hright a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    color: #fff3cd;
}

.header-banner{
    background-image: url("../img/2.jpg");
    width: 100%;
    height: 100vh;
    background-size: 100% 100%;
    position: relative; /* 添加这一行 */
}
/* 倒计时整体容器 */
.countdown-wrapper {
    width: 40vw; /* 固定宽度，不随屏幕缩放 */
    max-width: 40vw;
    height: 150px;
    margin: 40px auto;
    text-align: center;
    position: absolute; /* 改为绝对定位 */
    z-index: 10;
    top: 80%;
    left: 50%; /* 水平居中 */
    transform: translateX(-50%); /* 水平居中修正 */
    margin: 0; /* 移除原来的margin */
}

/* 倒计时数字容器 */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* 禁止换行 */
    gap: 10px;
    padding: 10px;
    background: rgba(0,0,0,0,0); /* 透明背景 */
    border: 3px solid rgba(0,0,0,0,0); 
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative; width: 100%; /* 占满容器宽度 */
    }



/* 每个时间方框 */
.time-box {
    background: linear-gradient(145deg, #fff9c4, #ffecb3); /* 浅黄色渐变 */
    width: 9vw; /* 固定宽度 */
    height: 150px; /* 高度使用视口高度单位，随背景图片缩放 */
    max-height: 150px; /* 最小高度限制 */
    max-width: 10vw;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
    border: 2px solid #ffecb3;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* 禁止缩小 */
}

.time-box:hover {
  transform: translateY(-5px);
}

/* 数字样式 */
.time-box .number {
  font-size: clamp(30px, 4vw, 60px); /* 自适应字体大小 */
  font-weight: bold;
  color: #d32f2f;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  line-height: 1;
  margin-top: 10px;
  height: 60px; /* 固定高度确保对齐 */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* 单位样式 */
.time-box .unit {
  font-size: clamp(20px, 2.5vw, 32px);
  color: #d32f2f;
  margin-top: 10px;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}



.countdown-wrapper::before {
  left: -40px;
}

.countdown-wrapper::after {
  right: -40px;
}


.countdown-wrapper::before::after,
.countdown-wrapper::after::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 30px;
  background: #ffd700;
  border-radius: 50%;
}

/* 响应式调整 */
@media (max-width: 1000px) {
    .countdown-wrapper {
        width: 90%; /* 小屏幕时适当缩小容器宽度 */
        max-width: 50vw; /* 但不超过最大宽度 */
    }
    
    .time-box {
        width: 130px; /* 稍微缩小方框宽度 */
        height: 18vh; /* 保持相对高度 */
    }
}

@media (max-width: 768px) {
    .countdown-wrapper {
        width: 95%;
    }
    
    .countdown-container {
        gap: 15px;
        padding: 15px;
    }
    
    .time-box {
        width: 120px;
        height: 16vh;
        min-height: 100px;
    }
    
    .time-box .number {
        font-size: clamp(25px, 3vw, 50px);
        height: 50px;
    }
}

/* 适配平板设备 */
@media (max-width: 1024px) {
    /* 平板端导航栏调整 - 与其他页面保持一致 */
    .head {
        padding: 8px 0;
    }
    
    .hline {
        padding: 0 12px;
    }
    
    .hleft {
        gap: 10px;
    }
    
    .hleft span:first-child {
        font-size: 24px;
    }
    
    .hleft span:last-child {
        font-size: 17px;
        padding: 3px 10px;
    }
    
    .hright {
        gap: 8px;
    }
    
    .hright a {
        font-size: 13px;
        padding: 4px 10px;
    }
    
    /* 平板端语言切换按钮调整 */
    .lang-switch {
        gap: 4px;
    }
    
    .lang-switch button {
        padding: 3px 6px;
        font-size: 11px;
    }
    
    /* 背景图片高度变为屏幕高度的1/2 */
    .header-banner {
        height: 45vh;
    }
    
    /* 倒计时高度变为现在的1/2 */
    .countdown-wrapper {
        height: 28px;
        top: 70%;
    }
    
    .time-box {
        height: 28px;
        max-height: 28px;
    }
    
    /* 视频高度变为现在的1/4 */
    .video-player {
        height: 120px;
    }
}

/* 适配手机设备 */
@media (max-width: 768px) {
    /* 手机端导航栏调整 - 与其他页面保持一致 */
    .head {
        padding: 6px 0;
    }
    
    .hline {
        flex-direction: column;
        gap: 6px;
        padding: 0 8px;
        align-items: center;
    }
    
    .hleft {
        justify-content: center;
        gap: 6px;
    }
    
    .hleft span:first-child {
        font-size: 20px;
    }
    
    .hleft span:last-child {
        font-size: 14px;
        padding: 2px 8px;
    }
    
    .hright {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        width: 100%;
        max-width: 360px;
    }
    
    .hright a {
        font-size: 12px;
        padding: 3px 8px;
        border-radius: 12px;
        flex: 1 1 70px;
        text-align: center;
    }
    
    /* 手机端语言切换按钮调整 */
    .lang-switch {
        margin-left: 0 !important;
        margin-top: 5px;
        justify-content: center;
        width: 100%;
    }
    
    .lang-switch button {
        padding: 2px 6px;
        font-size: 9px;
        flex: 1 1 50px;
    }
    
    /* 背景图片高度变为屏幕高度的1/2 */
    .header-banner {
        height: 40vh;
    }
    
    /* 倒计时高度变为现在的1/2 */
    .countdown-wrapper {
        height: 24px;
        top: 70%;
    }
    
    .time-box {
        height: 24px;
        max-height: 24px;
        min-height: 24px;
    }
    
    /* 视频高度变为现在的1/4 */
    .video-player {
        height: 100px;
    }
}

@media (max-width: 576px) {
    .countdown-wrapper {
        width: 98%;
    }
    
    .time-box {
        width: 100px;
        height: 14vh;
        min-height: 80px;
    }
    
    .time-box .number {
        font-size: clamp(20px, 2.5vw, 40px);
        height: 40px;
    }
    
    .time-box .unit {
        font-size: clamp(14px, 1.5vw, 24px);
    }
}

.content{
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    /* background-color: red; */
}
.titile-wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    gap:40px;
}

.title-icon-left{
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../img/m1.jpg") no-repeat center center;
    background-size: 100% 100%;
}
.title-icon-right{
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../img/m.jpg") no-repeat center center;
    background-size: 100% 100%;
}

.section-title{
    color: #c23a04;
    font-size: 48px;
    text-shadow: 2px 2px 4px #000 ;  
    /* #向右2px 向下2px 模糊4px  */
    margin-bottom: 10px;

}
/* 2. 调整卡片网格布局，避免遮挡 */
.card-grid{
    width: 100%;
    height: auto; /* 改为自动高度 */
    display: flex;
    justify-content: center; /* 居中排列 */
    flex-wrap: wrap;
    gap: 30px; /* 减小间距 */
    padding: 0 20px; /* 调整内边距 */
    margin-bottom: 40px;
}
.card{
    flex:1;
    min-width: 280px;
    max-width: 400px;
    background-image: url("../img/1.png");
    background-size: cover;
    position: relative;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: red;
    box-shadow: 0  4px 8px rgb(0,0,0,0.1) ;
}

.card h3{
    color: #f0380a;
    font-size: 36px;
    margin-bottom: 15px;
}

.card p{
    color: black;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 卡片按钮 */
.card .btn{
    display: inline-block;
    padding: 10px 25px;
    background: #ffd700;
    color: #e6221e;
    text-decoration:none;
    border-radius: 20px;
    font-size:14px;

}
.footer-blessing{
    text-align: center;
    font-size: 70px;
    color: #fff;
    position: relative;
    width: 100%;
    min-width: 100%;
    background: #e6221e;
    padding: 20px 0 40px 0;
    left: 0;
    right: 0;
    margin-top: 0;

}

/* 3. 调整视频预览部分 */
.video-preview{
    max-width: 1000px;
    margin: 60px auto 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    border: 3px solid #ffd700;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgb(0,0,0,0.2);
    position: relative;
    z-index: 10; /* 提高层级 */
}
.video-player{
    width: 100%;
    height: 50vh;
    max-height: 600px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;

}
.video-player video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 底部祝福语 */
/* 4. 修正footer布局 */
.footer-blessing{
    text-align: center;
    font-size: 70px;
    color: #fff;
    width: 100%;
    background: #e6221e;
    padding: 20px 0 40px 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
}
.footer-blessing h2{
    font-size: 36px;
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgb(0,0,0,0.3);

}

.footer-blessing p{
    font-size: 18px;
    margin-bottom: 15px;

}

.footer-blessing .contact{
    font-size: 16px;
    line-height: 1.8;
}

/* ========================================================================
   首页移动端紧凑化样式（覆盖 index.html 内联样式）
   ======================================================================== */
@media (max-width: 768px) {
    /* 内容区域更紧凑 */
    .content {
        padding: 15px 8px !important;
    }

    .titile-wrapper {
        gap: 12px !important;
        flex-wrap: wrap !important;
    }

    .title-icon-left,
    .title-icon-right {
        width: 100px !important;
        height: 100px !important;
    }

    .section-title {
        font-size: 22px !important;
        margin-bottom: 6px !important;
    }

    /* 卡片网格更紧凑 */
    .card-grid {
        gap: 10px !important;
        padding: 0 5px !important;
        margin-bottom: 15px !important;
    }

    .card {
        min-width: 0 !important;
        padding: 12px !important;
    }

    .card h3 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }

    .card p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 10px !important;
    }

    /* 卡片按钮紧凑化 */
    .card .btn {
        padding: 6px 14px !important;
        font-size: 13px !important;
        border-radius: 14px !important;
    }

    /* 视频预览紧凑化 */
    .video-preview {
        margin: 20px auto 15px !important;
        padding: 12px !important;
    }

    /* 底部祝福语紧凑化 */
    .footer-blessing {
        font-size: 32px !important;
        padding: 12px 0 18px !important;
    }

    .footer-blessing h2 {
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }

    .footer-blessing p {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    .footer-blessing .contact {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
}

/* 超小屏幕进一步紧凑化 */
@media (max-width: 480px) {
    .content {
        padding: 10px 5px !important;
    }

    .title-icon-left,
    .title-icon-right {
        width: 70px !important;
        height: 70px !important;
    }

    .section-title {
        font-size: 18px !important;
    }

    .card h3 {
        font-size: 15px !important;
    }

    .card p {
        font-size: 13px !important;
    }

    .footer-blessing {
        font-size: 24px !important;
    }
}

