/* ===== 全局重置与基础样式 ===== */
*,*::before,*::after{box-sizing:border-box;margin:0}
body{
  background:#0B0D0C;
  color:#D8D8D0;
  font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  line-height:1.8;
}
a{color:#2E8B57;text-decoration:none}
a:hover{color:#fff}
img{max-width:100%;display:block}
html{overflow-x:hidden}

/* 去掉移动端点击高亮 */
* {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

/* ===== 隐藏原生顶栏与多余元素 ===== */
#header,#top_nav,.pageTop,#navigator,#blogTitle,#navList{display:none!important}
[id^="ad_"],[id^="under_post"],.c_ad_block{display:none!important}

/* ===== Hero 首屏区域（固定底层，滚动被内容覆盖） ===== */
#hero-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  /* 纯净墨黑底 + 极淡全局柔光 */
  background: 
    radial-gradient(circle at 30% 20%, rgba(46,139,87,0.06) 0%, transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(82,183,136,0.04) 0%, transparent 60%),
    #0B0D0C;
  pointer-events: none;
}

/* 荷花容器：整体悬浮+呼吸动画 */
.hero-flower-wrapper {
  position: relative;
  width: 680px;
  max-width: 85%;
  aspect-ratio: 1 / 1;
  /* 沿花瓣轮廓的柔白光，盈透感更强 */
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.12)) 
          drop-shadow(0 0 65px rgba(240, 200, 220, 0.06));
  animation: flowerFloat 7s ease-in-out infinite, flowerBreath 10s ease-in-out infinite;
}
@keyframes flowerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes flowerBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* 荷花SVG */
.flower-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hero文字内容：绝对定位居中在花心上 */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 70%;
  opacity:0;
  animation:heroFadeIn 1.2s ease-out forwards;
  animation-delay:0.5s;
  pointer-events: auto;
}

@keyframes heroFadeIn {
  to { opacity:1; }
}

.hero-title {
  font-size:42px;
  font-weight:700;
  color:#fff;
  margin-bottom:10px;
  letter-spacing:2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-title::after {
  content: "|";
  color:#2E8B57;
  animation: blink 1s step-end infinite;
  margin-left:4px;
}
@keyframes blink {
  50% { opacity:0; }
}

.hero-subtitle {
  font-size:14px;
  color:#d0d0c8;
  margin-bottom:40px;
  letter-spacing:1.5px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  opacity:0;
  animation: subtitleFadeIn 0.8s ease-out forwards;
  animation-delay:1.8s;
}
@keyframes subtitleFadeIn {
  to { opacity:1; }
}

/* 滚动引导 */
.hero-scroll-down {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  color:#d0d0c8;
  font-size:12px;
  letter-spacing:1px;
  cursor: pointer;
  opacity:0;
  animation: scrollBounce 2s ease-in-out infinite, fadeIn 0.8s ease-out forwards;
  animation-delay: 2.5s, 2.5s;
  transition: color .2s;
}
.hero-scroll-down:hover {
  color:#fff;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@keyframes fadeIn {
  to { opacity:1; }
}

/* ===== 主页内容区 ===== */
#home{
  max-width:880px;
  margin:0 auto;
  /* 关键：用外边距撑出首屏高度，外边距透明，不会盖住Hero */
  margin-top: 100vh;
  padding: 0 70px 80px 40px;
  min-height:100vh;
  position: relative;
  z-index: 2;
  background: #0B0D0C;
}
#main{width:100%}

.day{
  border-bottom:1px solid rgba(46,139,87,.12);
  padding:28px 0;
}
.day:last-child{border-bottom:none}

.postTitle{
  font-size:20px;
  font-weight:600;
  margin-bottom:8px;
  line-height:1.4;
}
.postTitle a{color:#E0E0D8}
.postTitle a:hover{color:#2E8B57}

.postCon{color:#8A8A82;font-size:14px;margin-bottom:6px}
.postDesc{color:#666;font-size:12px}

#pager{text-align:center;padding:24px 0}
#pager a{
  display:inline-block;
  padding:5px 12px;
  margin:0 4px;
  border:1px solid #222;
  color:#8A8A82;
  border-radius:3px;
  font-size:12px;
  transition:all .2s;
}
#pager a:hover{border-color:#2E8B57;color:#2E8B57}

/* ===== 侧边栏抽屉导航 ===== */
#sideBar{
  position:fixed!important;
  top:0;
  right:0;
  height:100vh;
  width:300px!important;
  transform: translateX(258px)!important; /* 默认露出42px触发条 */
  transition:transform .35s cubic-bezier(0.4, 0, 0.2, 1)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  background:#111413!important;
  border-left:1px solid rgba(46,139,87,.2);
  padding:0!important;
  margin:0!important;
  float:none!important;
  z-index:999;
}

/* hover时展开抽屉 */
#sideBar:hover{
  transform:translateX(0)!important;
}

/* 左侧触发条（露出的42px） */
#sideBar::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:42px;
  height:100%;
  background:#111413;
  border-right:1px solid rgba(46,139,87,.15);
  pointer-events:none;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* 触发条上的菜单图标 */
#sideBar::after {
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:42px;
  height:20px;
  transform:translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232E8B57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='21' y2='18'%3E%3C/line%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:center;
  pointer-events:none;
}

/* 公告内容区，避开左侧触发条 */
#blog-news{
  margin-left:42px!important;
  padding:0!important;
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  color:#e0e0e0;
}
#blog-news h3,#blog-news .catListTitle{display:none!important}

/* 隐藏原生资料卡和杂项 */
#profile_block { display: none !important; }
#sideBar .catListBlogRank,
#sideBar .catListFeedback,
#sideBar .catListComment,
#sideBar .catListPostCategory,
#sideBar .catListArticleCategory,
#sideBar .catListLink { display: none !important; }

/* ===== 特效画布层级 ===== */
#shuicheCanvas {
  z-index: 99998 !important;
}

/* ===== 移动端适配 ===== */
@media screen and (max-width: 768px) {
    /* Hero荷花移动端适配 */
  .hero-flower-wrapper {
    width: 90%;
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.1)) 
            drop-shadow(0 0 32px rgba(240, 168, 192, 0.06));
  }
  .hero-title {
    font-size:28px;
    letter-spacing:1px;
  }
  .hero-subtitle {
    font-size:13px;
    margin-bottom:30px;
  }
  #home {
    margin-top: 100vh !important;
    padding: 0 15px 60px !important;
    width: 100% !important;
  }
  /* 侧边栏改为平铺展示 */
  #sideBar {
    transform: translateX(0) !important;
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    margin-bottom: 30px;
    border-left: none;
    border-bottom: 1px solid rgba(46,139,87,.2);
    padding-bottom: 20px !important;
    overflow: visible !important;
    clip: auto !important;
  }
  #sideBar::before,
  #sideBar::after {
    display: none !important;
  }
  #blog-news {
    margin-left: 0 !important;
    padding: 20px !important;
  }

  /* 导航项移动端优化 */
  #blog-news a {
    color: #B8B8B0 !important;
    text-decoration: none !important;
    padding: 12px 8px !important;
    font-size: 15px !important;
    transition: all 0.2s;
  }
  #blog-news a:hover,
  #blog-news a:active {
    color: #2E8B57 !important;
    background: rgba(46,139,87,0.06);
  }

  /* 主页边距适配 */
  #home {
    padding: 0 15px 60px !important;
    width: 100% !important;
  }
}