/**
 * 博客园现代化UI - 适配WhaleRoc博客
 * 核心：1200px宽屏适配 + 现代渐变风格 + 细腻交互
 */
:root {
  /* 色彩系统 - 清新蓝绿渐变（贴合博客背景） */
  --primary: #4facfe;
  --primary-light: #00f2fe;
  --secondary: #43e97b;
  --secondary-light: #38f9d7;
  --bg-main: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-sidebar: rgba(21, 203, 112, 0.15);
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: url(https://img2024.cnblogs.com/blog/2086929/202602/2086929-20260228162036532-842491078.jpg) top center fixed;
  background-size: cover;
  color: var(--text-primary);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 页面容器 - 统一1200px宽度，居中显示 */
#home, #navigator, .modern-footer .footer-container {
  width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

/* 主内容区 */
#main {
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
  margin-top: 60px;
}
.dayTitle{
  display: none;
}

#mainContent {
  background: transparent;
}

/* ========== 导航栏重构 ========== */
/* 隐藏原导航 */
#header {
  display: none !important;
}

/* 自定义顶部导航容器 */
.custom-nav-wrapper {
  width: 100%;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.9), rgba(0, 242, 254, 0.9));
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-nav {
  width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  margin-top: 110px;
}

/* 导航菜单核心样式 */
.test11 {
  display: flex;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

.dropdown {
  position: relative;
  margin: 0;
}

.dropbtn {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 16px 20px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

/* 导航hover效果 */
.dropdown:hover .dropbtn {
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 3px solid white;
}
.custom-nav

/* 下拉菜单样式 */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 1000;
  overflow: hidden;
}

.dropdown-content a {
  color: var(--text-primary);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  transition: var(--transition);
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: var(--bg-secondary);
  padding-left: 20px;
  color: var(--primary);
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* 淡化默认博客园/我的首页文字 */
.dropbtn span {
  opacity: 0.7 !important;
  font-size: 16px !important;
}

/* ========== 侧边栏优化 ========== */
#sideBar {
  background: var(--bg-sidebar);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-block, .sidebar-news, .sidebar-profile, .newsItem {
  width: 100% !important;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: none;
}

/* 侧边栏标题 */
#sidebar_topcommentedposts, #sidebar_topdiggedposts, #sidebar_recentcomments{
  display: none;
}

.sidebar-block h3, .sidebar-news h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

/* 搜索框优化 */
#sidebar_search input[type="text"] {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 14px;
}

#sidebar_search input[type="button"] {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  /* padding: 10px; */
  font-weight: 600;
  border: none;
  color: white;
}

/* 日历样式优化 */
#calendar {
  width: 100%;
}

#calendar td.today {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 50%;
}

/* ========== 文章列表优化 ========== */
.postTitle {
  margin-top: 30px;
}

.postTitle a {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.postTitle a:hover {
  color: var(--primary);
  text-decoration: none;
}

.postCon {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 15px 0;
}

/* ========== 页脚优化 ========== */
#footer {
  display: none !important;
}

.modern-footer {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.9), rgba(0, 242, 254, 0.9));
  color: white;
  padding: 60px 0 30px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-container {
  width: 1200px !important;
}

.footer-column-title {
  color: white;
  border-bottom: none !important;
}

.footer-column-title::before {
  background: white !important;
}

.footer-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.footer-link:hover {
  color: white !important;
}

.footer-stat-value {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, white 0%, #f0f9ff 100%);
}

.footer-stat-label {
  color: rgba(255, 255, 255, 0.8);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.8) !important;
}

.footer-copyright a {
  color: white !important;
}

.social-link {
  background: rgba(255, 255, 255, 0.15) !important;
  color: white !important;
  border: none !important;
}

.social-link:hover {
  background: white !important;
  color: var(--primary) !important;
}

.back-to-top {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
}

/* ========== 加载进度条优化 ========== */
#loading {
  height: 4px !important;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

/* ========== 通用动画 ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== 响应式适配 ========== */
@media (max-width: 1200px) {
  #home, #navigator, .custom-nav, .modern-footer .footer-container {
    width: 100% !important;
  }
  
  .test11 {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  #main {
    padding: 20px;
  }
  
  .dropbtn {
    padding: 14px 12px;
    font-size: 14px;
  }
  
  .dropdown-content {
    min-width: 180px;
  }
}

@media (max-width: 640px) {
  .custom-nav {
    padding: 0 10px;
  }
  
  .dropbtn {
    padding: 12px 8px;
    font-size: 13px;
  }
  
  .modern-footer {
    padding: 40px 0 20px;
  }
}