
*,
*:before,
*:after {
  box-sizing: inherit;
}


.heading {
  font-size: 1.5em;
  margin-bottom: 12px;
}

.card {
  background: #fff;
  /*background-image: linear-gradient(48deg, #fff 0%, #e5efe9 100%);*/
  background-image: linear-gradient(228deg, #fff 0%, #5da2bd 100%);
  border-top-right-radius: 16px;
  border-bottom-left-radius: 16px;
  box-shadow: -20px 20px 35px 1px rgba(10, 49, 86, 0.18);
  display: flex;
  flex-direction: column;
  padding: 32px;
  margin: 40px;
  max-width: 400px;
  width: 100%;
      color: #000;
}

.content-wrapper {
  font-size: 1.1em;
  margin-bottom: 24px;
}
.content-wrapper:last-child {
  margin-bottom: 0;
}

.button {
  align-items: center;
  background: #e5efe9;
  border: 1px solid #5a72b5;
  border-radius: 4px;
  color: #121943;
  cursor: pointer;
  display: flex;
  font-size: 1em;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  width: 150px;
}
.button:focus {
  border: 2px solid transparent;
  box-shadow: 0px 0px 0px 2px #121943;
  outline: solid 4px transparent;
}

.link {
  color: #121943;
}
.link:focus {
  box-shadow: 0px 0px 0px 2px #121943;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
}
.input-wrapper .label {
  align-items: baseline;
  display: flex;
  font-weight: 700;
  justify-content: space-between;
  margin-bottom: 8px;
}
.input-wrapper .optional {
  color: #5a72b5;
  font-size: 0.9em;
}
.input-wrapper .input {
  border: 1px solid #5a72b5;
  border-radius: 4px;
  height: 40px;
  padding: 8px;
}

code {
  background: #e5efe9;
  border: 1px solid #5a72b5;
  border-radius: 4px;
  padding: 2px 4px;
}

.modal-header {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.close {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  height: 16px;
  text-decoration: none;
  width: 16px;
        animation: glow 5s ease-in-out infinite alternate;
      transition: transform 0.5s ease;
      /* 添加过渡效果，控制旋转时的过渡时间和缓动方式 */
    }
    /* 添加鼠标悬停时旋转的效果 */
  .close:hover {
      transform: rotate(180deg);
      /* 鼠标悬停时应用旋转动画，旋转一圈（360度） */
    }

.close svg {
  width: 16px;
}

.modal-wrapper {
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
   top: 0px;
    bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;

}

#modalA,
#modalC,
#modalvx,
#modalpay,
#modalB {
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  visibility: hidden;
}
#modalA:target,
#modalC:target,
#modalvx:target,
#modalpay:target,
#modalB:target {
  opacity: 1;
  visibility: visible;
}
#modalA:target .modal-body,
#modalC:target .modal-body,
#modalvx:target .modal-body,
#modalpay:target .modal-body,
#modalB:target .modal-body {
  opacity: 1;
  transform: translateY(1);
      color: #ffffff;
}
#modalA .modal-body,
#modalC .modal-body,
#modalvx .modal-body,
#modalpay .modal-body,
#modalB .modal-body {
  max-width: 500px;
  opacity: 0;
  transform: translateY(-100px);
  transition: opacity 0.25s ease-in-out;
  width: 100%;
  z-index: 1;
      background: rgb(181 181 181 / 63%);
    background-color: rgb(255 255 255 / 37%);
    backdrop-filter: blur(6px);
}

.outside-trigger {
  bottom: 0;
  cursor: default;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
}

.button__link {
  text-decoration: none;
}

.modal-body.card a {
       color:#78ec6e;
       text-decoration: none;
}
.modal-body.card a:hover {
      color: #f96537; /* 鼠标悬停时的字体颜色 */
}


    /* 输入框样式 */
.login_dvi input[type="text"],
.login_dvi input[type="password"],
.login_dvi input[type="email"],
.login_dvi input[type="submit"] {
 width:100%;
    padding: 10px 10px;
    margin-bottom: 15px;
    border: 1px solid #f8754d;
    border-radius: 3px;
    font-size: 16px;
    box-shadow: none;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
    background-color: rgb(10 10 10);
    color: #fff;
}

/* 设置文本框和密码框透明度 */
.login_dvi input[type="text"],
.login_dvi input[type="password"] {
       /* opacity: 0.45;/* 设置透明度为0.75 */
}
.login_dvi input[type="submit"] :hover {
background-color: rgba(255, 255, 255, 0.15);    
}

/* 输入框聚焦样式 */
.login_dvi input[type="text"]:focus,
.login_dvi input[type="password"]:focus,
.login_dvi input[type="email"]:focus {
border-color: #f8754d;
    box-shadow: 0 0 10px#ff7043;
    outline: none;
}
/* 按钮样式 */
.login_dvi input[type="submit"] {
    background-color: #f96c40bf; /* 按钮背景颜色 */
    color: white; /* 按钮文本颜色 */
    cursor: pointer; /* 鼠标悬停时显示手势 */
    border: none; /* 移除按钮边框 */
 border-radius: 3px; /* 设置圆角 */
 margin-bottom: 15px;
}

.login_dvi input[type="submit"]:hover {
    background-color: #f96c40; /* 悬停时按钮背景颜色变深 */
}


.swiper-pagination {
    display: none; /* 隐藏 Swiper 分页器小点点 */
}

.img_list{
margin-bottom:80px;
}

@media (max-width: 768px) {
.index-banner{
    display: none;
}

    .img_list{
margin-bottom:10px;
}
}




/* --- 基础布局 --- */
html { scroll-behavior: smooth; height: 100%; }
body { 
    margin: 0; padding: 0; 
    background-color: #cbdae4; 
    display: flex; flex-direction: column;
    min-height: 100vh;
}
body::-webkit-scrollbar { display: none; }

/* --- 大图轮播 --- */
.index-banner { position: relative; width: 100%; height: 100vh; flex-shrink: 0; }
.mySwiper { width: 100%; height: 100%; background: #000; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; }

.fullscreen-overlay {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center; color: white; z-index: 5;
    width: 90%; max-width: 900px;
}
.fullscreen-overlay h1 { font-size: 3.8em; margin-bottom: 25px; text-shadow: 2px 2px 10px rgba(0,0,0,0.7); font-weight: 400; }
.fullscreen-overlay p { font-size: 1.4em; line-height: 1.6; text-shadow: 1px 1px 5px rgba(0,0,0,0.7); font-weight: 300; }

/* --- 顶部固定菜单 --- */
.Nv_title {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(6px);
    background-color: rgba(255, 255, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* 让动画更平滑 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box; /* 防止 padding 撑开宽度 */
    
    /* 默认隐藏状态 (针对所有端，但后面会被手机端 Media Query 覆盖) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%); 
}

/* PC端显示逻辑：当拥有 .show 类时显示 */
@media (min-width: 769px) {
    .Nv_title.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        background-color: rgb(255 255 255 / 18%);
    }
}

/* 手机端始终显示逻辑 */
@media (max-width: 768px) {
    .Nv_title { 
        transform: translateY(0) !important; 
        opacity: 1 !important; 
        visibility: visible !important; 
        background-color: #f8f5ff; 
        height: 60px;
    }
}

/* 保持你的字体样式 */
.Nv_title .ll a {     padding: 8px 15px;font-weight: bold; font-size: 36px; color: #ff5722d9; text-decoration: none; font-family: cursive; }
.rr {
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.2em;
        padding-top: 5px;
}
.Nv_title .rr {
    display: flex;
    gap: 20px;
    align-items: center;
}
.Nv_title .rr a {     padding: 8px 15px;color: #555; font-size: 20px; text-decoration: none; font-weight: 500; transition: 0.2s; font-family: cursive; }
.Nv_title .rr a:hover { color: #ff5722; }

/* --- 手机端抽屉及遮罩 (修复重点) --- */
.mobile-menu-toggle { display: none; cursor: pointer; padding: 5px; z-index: 1001; }
.mobile-menu-toggle svg { width: 28px; height: 28px; color: #333; display: block; }

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 80px 30px;
    box-sizing: border-box;
}

/* 激活状态强制位移 */
.mobile-drawer.active { transform: translateX(0) !important; }

.drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 2000; 
    display: none; /* 由 JS 切换为 block */
}
.drawer-overlay.active { display: block !important; }

.drawer-content { display: flex; flex-direction: column; gap: 15px; }
a.mobile-link.album-category:hover {
    background-color: rgb(230 230 230 / 28%);
    color: #ff5722d9;
    backdrop-filter: blur(4px);
    border-radius: 2px;
    padding: 10px 8px;
}
.mobile-link {
    font-size: 20px;
    color: #0000009e;
    text-decoration: none;
    padding: 10px 8px;
    border-bottom: 2px solid #d2c8c824;
    font-weight: 500;
    font-family: cursive;
}
/* --- 内容网格 --- */
main { flex: 1; background-color: #f4f7f900; }
.album-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(243px, 1fr));
    gap: 25px; padding: 40px 20px; max-width: 1900px; margin: 65px auto; 
    box-sizing: border-box; min-height: calc(100vh - 60px);
}

/* --- 响应式适配 --- */
@media (max-width: 768px) {
    .Nv_title { transform: translateY(0) !important; opacity: 1 !important; visibility: visible !important; background-color: #f8f5ff; height: 60px; padding: 0 15px; }
    .desktop-menu { display: none !important; }
    .mobile-menu-toggle { display: block; margin-left: auto; }
    .album-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 15px 10px; margin-top: 65px; margin-bottom: 99px;}
}

/* 卡片样式保持原样 */
/* --- 卡片容器基础样式 --- */
.post-card {
    background: #fff;
    border-radius: 8px; /* 增加圆角，更现代 */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: fit-content; 
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0,0,0,0.03); /* 极细边框增加质感 */
}

.post-card:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

/* --- 缩略图区域：确保 3:4 比例 --- */
.post-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 140%; /* 保持纵向比例 */
    overflow: hidden;
    background-color: #f0f0f0;
}

.post-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 核心：确保图片铺满不变形 */
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumb img {
    transform: scale(1.08); /* 悬停缩放效果 */
}

/* --- 内容区域 --- */
.post-content {
    padding: 12px 15px;
    background: #fff;
    flex-grow: 1;
}

/* 分类标签样式 */
.post-source {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.cat-dot {
    width: 6px;
    height: 6px;
    background-color: #ff5722; /* 实心圆点更清晰 */
    border-radius: 50%;
    margin-right: 6px;
}

/* 标题样式：解决下划线和溢出 */
.title-link {
    text-decoration: none !important;
    display: block;
}

.post-title {
    font-size: 22px;
    font-weight: 400;
    color: #0000009c;
    line-height: 1.4;
    margin: 6px 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.title-link:hover .post-title {
    color: #ff5722 !important;
}

/* 元数据：时间与访问量 */
.post-meta {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 12px;
    margin-top: 8px;
    gap: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
        font-size: 12px;
}

.meta-item svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    fill: currentColor;
    opacity: 0.7;
}

/* --- 手机端微调 --- */
@media (max-width: 768px) {
    .post-content {
        padding: 10px;
    }
    .post-title {
        font-size: 14px;
    }
    .post-meta {
        gap: 8px;
        font-size: 11px;
    }
    .Nv_title .ll a {
    font-weight: bold;
    font-size: 28px;
    color: #ff5722d9;
    text-decoration: none;
    font-family: cursive;
}
}

footer { text-align: center; padding: 20px 0; background: #fff; border-top: 1px solid #eee; margin-top: 50px; }