/* ==================== 海洋天空全局主题 ==================== */

:root {
  /* 海洋天空色系 */
  --ocean-sky: #87ceeb;
  --ocean-light: #00d4ff;
  --ocean-medium: #0099cc;
  --ocean-deep: #006994;
  --ocean-dark: #003d5c;
  --ocean-night: #0a1931;
  
  /* 渐变色 */
  --ocean-gradient: linear-gradient(135deg, #87ceeb 0%, #00d4ff 30%, #0099cc 70%, #006994 100%);
  --ocean-gradient-vertical: linear-gradient(180deg, #87ceeb 0%, #00d4ff 50%, #006994 100%);
  --wave-gradient: linear-gradient(90deg, rgba(0, 212, 255, 0.3), rgba(0, 153, 204, 0.5), rgba(0, 212, 255, 0.3));
  
  /* 覆盖主题变量 */
  --anzhiyu-main: #00d4ff;
  --anzhiyu-main-op: rgba(0, 212, 255, 0.8);
  --anzhiyu-main-op-deep: rgba(0, 105, 148, 0.9);
  --anzhiyu-main-none: rgba(0, 212, 255, 0);
}

/* 全局背景渐变 */
body {
  background: linear-gradient(180deg, #e6f7ff 0%, #cceeff 50%, #b3e0ff 100%);
  background-attachment: fixed;
}

/* 页面容器背景 */
#page {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

/* 顶部导航栏 */
#nav {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.95), rgba(0, 153, 204, 0.95)) !important;
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

#nav .site-name {
  color: white !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#nav #nav-menu a {
  color: rgba(255, 255, 255, 0.9) !important;
}

#nav #nav-menu a:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.2);
}

/* 文章卡片 */
.post-card,
.recent-post-item {
  background: white;
  border: 2px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.post-card::before,
.recent-post-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ocean-gradient);
}

.post-card:hover,
.recent-post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 212, 255, 0.25);
  border-color: var(--ocean-light);
}

/* 按钮样式 */
.button,
.btn,
button {
  background: var(--ocean-gradient) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
}

.button:hover,
.btn:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

/* 链接颜色 */
a {
  color: var(--ocean-medium);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--ocean-deep);
}

/* 标签样式 */
.tag,
.category {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.15));
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--ocean-deep);
  transition: all 0.3s ease;
}

.tag:hover,
.category:hover {
  background: var(--ocean-gradient);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* 侧边栏 */
#aside-content .card-widget {
  background: white;
  border: 2px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.1);
  position: relative;
  overflow: hidden;
}

#aside-content .card-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ocean-gradient);
}

/* 页脚 */
#footer {
  background: linear-gradient(135deg, rgba(0, 105, 148, 0.95), rgba(0, 61, 92, 0.95));
  color: white;
}

#footer a {
  color: rgba(255, 255, 255, 0.8);
}

#footer a:hover {
  color: white;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 212, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--ocean-gradient);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ocean-medium);
}

/* 添加海洋装饰元素 */
body::before {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,58.7C960,64,1056,64,1152,58.7L1200,53.3L1200,120L0,120Z' fill='rgba(0,212,255,0.1)'/%3E%3C/svg%3E") bottom repeat-x;
  pointer-events: none;
  animation: ocean-wave-move 15s linear infinite;
  z-index: 0;
}

@keyframes ocean-wave-move {
  0% { background-position: 0 bottom; }
  100% { background-position: 1200px bottom; }
}

/* 添加漂浮泡泡装饰 */
.ocean-bubbles {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ocean-bubble {
  position: absolute;
  bottom: -100px;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(0, 212, 255, 0.3));
  border-radius: 50%;
  opacity: 0.4;
  animation: bubble-float 10s infinite ease-in;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes bubble-float {
  0% {
    bottom: -100px;
    transform: translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    bottom: 110vh;
    transform: translateX(100px) scale(0.8);
    opacity: 0;
  }
}

.ocean-bubble:nth-child(1) { left: 10%; animation-delay: 0s; }
.ocean-bubble:nth-child(2) { left: 25%; animation-delay: 3s; width: 20px; height: 20px; }
.ocean-bubble:nth-child(3) { left: 40%; animation-delay: 6s; width: 35px; height: 35px; }
.ocean-bubble:nth-child(4) { left: 55%; animation-delay: 2s; width: 25px; height: 25px; }
.ocean-bubble:nth-child(5) { left: 70%; animation-delay: 5s; width: 30px; height: 30px; }
.ocean-bubble:nth-child(6) { left: 85%; animation-delay: 8s; width: 20px; height: 20px; }

/* 云朵装饰 */
.sky-clouds {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px;
  pointer-events: none;
  z-index: 1;
  background-image: 
    radial-gradient(ellipse 200px 80px at 20% 50px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(ellipse 250px 90px at 60% 80px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(ellipse 180px 70px at 85% 60px, rgba(255, 255, 255, 0.4), transparent);
  animation: clouds-drift 60s linear infinite;
}

@keyframes clouds-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-200px); }
}

/* 波光粼粼效果 */
.ocean-shimmer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: 
    linear-gradient(
      45deg,
      transparent 40%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 60%
    );
  background-size: 200% 200%;
  animation: shimmer-move 8s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes shimmer-move {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

/* 代码块样式 */
code,
pre {
  background: rgba(0, 212, 255, 0.05) !important;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

/* 引用块 */
blockquote {
  border-left: 4px solid var(--ocean-light);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.05), transparent);
}

/* 分页按钮 */
.pagination .page-number,
.pagination .extend {
  background: white;
  border: 2px solid rgba(0, 212, 255, 0.3);
  color: var(--ocean-medium);
}

.pagination .page-number:hover,
.pagination .extend:hover {
  background: var(--ocean-gradient);
  color: white;
  border-color: var(--ocean-light);
}

.pagination .page-number.current {
  background: var(--ocean-gradient);
  color: white;
  border-color: var(--ocean-light);
}

/* 目录 */
#aside-content .toc-content .toc-link.active {
  color: var(--ocean-deep);
  border-left-color: var(--ocean-light);
}

/* 标题装饰 */
.post-content h1,
.post-content h2,
.post-content h3 {
  position: relative;
  color: var(--ocean-deep);
}

.post-content h1::before,
.post-content h2::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--ocean-gradient);
  border-radius: 2px;
}

/* 搜索框 */
.search-dialog {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(0, 212, 255, 0.3);
}

.search-input {
  border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.search-input:focus {
  border-bottom-color: var(--ocean-light);
}

/* 加载动画 */
.loading-icon {
  color: var(--ocean-light);
}

/* 回到顶部按钮 */
#go-up {
  background: var(--ocean-gradient) !important;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

#go-up:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

/* 夜间模式适配 */
[data-theme='dark'] {
  --ocean-sky: #0a1931;
  --ocean-light: #00b8e6;
  --ocean-medium: #0099cc;
  --ocean-deep: #006994;
}

[data-theme='dark'] body {
  background: linear-gradient(180deg, #0a1931 0%, #003d5c 50%, #001a2e 100%);
}

[data-theme='dark'] #page {
  background: rgba(10, 25, 49, 0.9);
}

[data-theme='dark'] .post-card,
[data-theme='dark'] .recent-post-item,
[data-theme='dark'] #aside-content .card-widget {
  background: rgba(0, 61, 92, 0.3);
  border-color: rgba(0, 212, 255, 0.3);
}

[data-theme='dark'] .ocean-bubble {
  background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.6), rgba(0, 153, 204, 0.3));
}

/* 鱼群装饰（可选） */
.ocean-fish {
  position: fixed;
  font-size: 20px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
  animation: fish-swim 20s linear infinite;
}

@keyframes fish-swim {
  0% {
    left: -50px;
    transform: translateY(0) scaleX(1);
  }
  48% {
    transform: translateY(0) scaleX(1);
  }
  50% {
    transform: translateY(30px) scaleX(-1);
  }
  98% {
    transform: translateY(30px) scaleX(-1);
  }
  100% {
    left: 110vw;
    transform: translateY(0) scaleX(1);
  }
}

/* 海鸥装饰 */
.sky-seagull {
  position: fixed;
  top: 100px;
  left: -50px;
  font-size: 20px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 2;
  animation: seagull-fly 25s linear infinite;
}

@keyframes seagull-fly {
  0% {
    left: -50px;
    transform: translateY(0);
  }
  25% {
    transform: translateY(-20px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-15px);
  }
  100% {
    left: 110vw;
    transform: translateY(0);
  }
}

/* 响应式优化 */
@media screen and (max-width: 768px) {
  .ocean-bubbles,
  .sky-clouds,
  .ocean-shimmer,
  .ocean-fish,
  .sky-seagull {
    display: none;
  }
}

/* 平滑过渡 */
* {
  transition-property: background, border, color, transform, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}


/* ==================== 组件深度海洋化 ==================== */

/* 评论区组件 */
#post-comment {
  background: white;
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

#post-comment::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ocean-gradient);
}

#post-comment .comment-head {
  color: var(--ocean-deep);
  border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

/* 输入框 */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  border: 2px solid rgba(0, 212, 255, 0.3) !important;
  background: rgba(135, 206, 235, 0.05) !important;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: var(--ocean-light) !important;
  background: white !important;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2) !important;
}

/* 分享按钮 */
.share-button,
.post-share {
  background: var(--ocean-gradient) !important;
  color: white !important;
  border-radius: 50px;
  padding: 10px 20px;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.share-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

/* 赞赏按钮 */
.reward-button,
#reward-btn {
  background: var(--ocean-gradient) !important;
  color: white !important;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* 打赏二维码 */
.reward-all {
  background: white;
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

/* 相关文章 */
.relatedPosts {
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(0, 212, 255, 0.1));
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
}

.relatedPosts-list > div {
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
}

.relatedPosts-list > div:hover {
  border-color: var(--ocean-light);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
  transform: translateY(-3px);
}

/* 文章版权信息 */
.post-copyright {
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(0, 212, 255, 0.15));
  border-left: 4px solid var(--ocean-light);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.1);
}

.post-copyright a {
  color: var(--ocean-deep);
  font-weight: 600;
}

/* 文章导航 */
.post-nav {
  border-top: 2px solid rgba(0, 212, 255, 0.2);
  border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

.post-nav .post-nav-item {
  background: white;
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.post-nav .post-nav-item:hover {
  border-color: var(--ocean-light);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
  transform: translateY(-3px);
}

/* 目录TOC */
#aside-content .toc-content {
  background: white;
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.1);
}

#aside-content .toc-content .toc-link {
  color: var(--ocean-medium);
  border-left: 2px solid transparent;
  transition: all 0.3s ease;
}

#aside-content .toc-content .toc-link:hover {
  color: var(--ocean-deep);
  background: rgba(0, 212, 255, 0.1);
  border-left-color: var(--ocean-light);
}

#aside-content .toc-content .toc-link.active {
  color: var(--ocean-deep);
  background: rgba(0, 212, 255, 0.15);
  border-left-color: var(--ocean-light);
  font-weight: 600;
}

/* 作者卡片 */
.author-card,
#card-author {
  background: linear-gradient(135deg, var(--ocean-light), var(--ocean-medium));
  color: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.author-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
  animation: author-glow 8s ease-in-out infinite;
}

@keyframes author-glow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20%, -20%); }
}

.author-card .author-avatar {
  border: 4px solid white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 最新文章 */
#card-newest-posts .item-headline {
  border-left: 4px solid var(--ocean-light);
  padding-left: 12px;
}

#card-newest-posts .aside-list-item {
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
}

#card-newest-posts .aside-list-item:hover {
  background: rgba(0, 212, 255, 0.05);
  padding-left: 8px;
}

/* 标签云 */
.card-tag-cloud a {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.15));
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--ocean-deep);
  border-radius: 20px;
  padding: 6px 14px;
  transition: all 0.3s ease;
}

.card-tag-cloud a:hover {
  background: var(--ocean-gradient);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* 归档时间轴 */
.article-sort-item {
  border-left: 3px solid var(--ocean-light);
  padding-left: 20px;
  position: relative;
}

.article-sort-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 8px;
  width: 13px;
  height: 13px;
  background: var(--ocean-light);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
  animation: timeline-pulse 2s ease-in-out infinite;
}

@keyframes timeline-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.article-sort-item:hover::before {
  background: var(--ocean-deep);
  box-shadow: 0 0 0 8px rgba(0, 212, 255, 0.3);
}

/* 归档年份标题 */
.article-sort-title {
  background: var(--ocean-gradient);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
  display: inline-block;
}

/* 分类/标签页面 */
.category-list,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.category-list-item,
.tag-cloud-item {
  background: white;
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  padding: 15px 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.1);
}

.category-list-item:hover,
.tag-cloud-item:hover {
  background: var(--ocean-gradient);
  color: white;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

/* 友链卡片 */
.flink-list > .flink-list-item {
  background: white;
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.flink-list > .flink-list-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ocean-gradient);
}

.flink-list > .flink-list-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 212, 255, 0.25);
  border-color: var(--ocean-light);
}

.flink-list > .flink-list-item .flink-item-icon img {
  border: 3px solid rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
}

.flink-list > .flink-list-item:hover .flink-item-icon img {
  border-color: var(--ocean-light);
  transform: scale(1.1) rotate(5deg);
}

/* 搜索弹窗 */
.search-dialog {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 3px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.search-dialog .search-input-wrapper {
  border-bottom: 3px solid rgba(0, 212, 255, 0.3);
}

.search-dialog .search-input {
  color: var(--ocean-deep);
}

.search-dialog .search-input:focus {
  border-bottom-color: var(--ocean-light);
}

.search-dialog .search-result-item:hover {
  background: rgba(0, 212, 255, 0.1);
}

/* 通知提示 */
.snackbar,
.notification {
  background: var(--ocean-gradient) !important;
  color: white !important;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* Loading加载 */
.loading,
.loader {
  border-top-color: var(--ocean-light) !important;
  border-right-color: var(--ocean-medium) !important;
  border-bottom-color: var(--ocean-deep) !important;
}

/* 图片灯箱 */
.fancybox-container {
  background: rgba(10, 25, 49, 0.95);
}

.fancybox-button {
  background: var(--ocean-gradient);
  color: white;
  border-radius: 50%;
}

.fancybox-button:hover {
  background: var(--ocean-deep);
  transform: scale(1.1);
}

/* 代码复制按钮 */
.highlight-tools {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.9), rgba(0, 153, 204, 0.9));
  border-radius: 8px 8px 0 0;
}

.copy-button {
  background: white;
  color: var(--ocean-deep);
  border: 2px solid white;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.copy-button:hover {
  background: var(--ocean-light);
  color: white;
  transform: scale(1.05);
}

/* 表格样式 */
table {
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.1);
}

table thead {
  background: var(--ocean-gradient);
  color: white;
}

table tbody tr:hover {
  background: rgba(0, 212, 255, 0.1);
}

table tbody tr:nth-child(even) {
  background: rgba(135, 206, 235, 0.05);
}

/* 徽章Badge */
.badge,
.label {
  background: var(--ocean-gradient);
  color: white;
  border-radius: 12px;
  padding: 4px 10px;
  box-shadow: 0 3px 10px rgba(0, 212, 255, 0.3);
}

/* 提示框Note */
.note {
  border-left: 4px solid var(--ocean-light);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.05), transparent);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 212, 255, 0.1);
}

.note.info {
  border-left-color: var(--ocean-light);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.1), transparent);
}

.note.success {
  border-left-color: #00d4aa;
  background: linear-gradient(90deg, rgba(0, 212, 170, 0.1), transparent);
}

.note.warning {
  border-left-color: #ffaa00;
  background: linear-gradient(90deg, rgba(255, 170, 0, 0.1), transparent);
}

.note.danger {
  border-left-color: #ff4444;
  background: linear-gradient(90deg, rgba(255, 68, 68, 0.1), transparent);
}

/* 面包屑导航 */
.breadcrumb {
  background: rgba(0, 212, 255, 0.1);
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.breadcrumb a {
  color: var(--ocean-medium);
}

.breadcrumb a:hover {
  color: var(--ocean-deep);
}

/* 选项卡Tabs */
.tabs .tab-button {
  background: white;
  border: 2px solid rgba(0, 212, 255, 0.3);
  color: var(--ocean-medium);
  transition: all 0.3s ease;
}

.tabs .tab-button:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--ocean-light);
}

.tabs .tab-button.active {
  background: var(--ocean-gradient);
  color: white;
  border-color: var(--ocean-light);
}

/* 进度条 */
progress,
.progress-bar {
  background: rgba(0, 212, 255, 0.2);
  border-radius: 50px;
}

progress::-webkit-progress-value,
.progress-bar-fill {
  background: var(--ocean-gradient);
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
}

/* 模态框Modal */
.modal,
.dialog {
  background: white;
  border: 3px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.modal-header {
  background: var(--ocean-gradient);
  color: white;
  border-radius: 17px 17px 0 0;
}

/* 下拉菜单 */
.dropdown-menu {
  background: white;
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.dropdown-item:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--ocean-deep);
}

/* 工具提示Tooltip */
.tooltip {
  background: var(--ocean-gradient);
  color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* 阅读进度条 */
.reading-progress {
  height: 3px;
  background: var(--ocean-gradient);
  box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
  z-index: 10000;
}

/* Live2D看板娘 */
#live2d-widget {
  filter: drop-shadow(0 10px 20px rgba(0, 212, 255, 0.2));
}

/* 音乐播放器 */
.aplayer {
  background: white;
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
}

.aplayer .aplayer-bar-wrap .aplayer-bar .aplayer-played {
  background: var(--ocean-gradient);
}

.aplayer .aplayer-icon {
  color: var(--ocean-light);
}

.aplayer .aplayer-icon:hover {
  color: var(--ocean-deep);
}

/* 暗色模式下的组件适配 */
[data-theme='dark'] #post-comment,
[data-theme='dark'] .post-nav .post-nav-item,
[data-theme='dark'] #aside-content .toc-content,
[data-theme='dark'] .category-list-item,
[data-theme='dark'] .tag-cloud-item,
[data-theme='dark'] .flink-list > .flink-list-item,
[data-theme='dark'] .search-dialog,
[data-theme='dark'] .modal,
[data-theme='dark'] .dropdown-menu,
[data-theme='dark'] .aplayer {
  background: rgba(0, 61, 92, 0.5);
  border-color: rgba(0, 212, 255, 0.4);
}

[data-theme='dark'] .author-card,
[data-theme='dark'] #card-author {
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-dark));
}

[data-theme='dark'] table thead {
  background: var(--ocean-deep);
}

/* 添加水波纹到更多元素 */
.button,
.btn,
button,
.post-card,
.flink-list-item,
.category-list-item,
.tag-cloud-item {
  position: relative;
  overflow: hidden;
}

.button::after,
.btn::after,
button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.button:active::after,
.btn:active::after,
button:active::after {
  width: 300px;
  height: 300px;
}


/* ==================== 强制覆盖所有蓝紫色为海洋色 ==================== */

/* 强制覆盖主题主色调 */
:root,
[data-theme='light'] {
  /* 主色调强制覆盖 */
  --anzhiyu-main: #00d4ff !important;
  --anzhiyu-main-op: rgba(0, 212, 255, 0.8) !important;
  --anzhiyu-main-op-deep: rgba(0, 105, 148, 0.9) !important;
  --anzhiyu-main-none: rgba(0, 212, 255, 0) !important;
  
  /* 链接颜色 */
  --anzhiyu-hovertext: #006994 !important;
  --anzhiyu-alink: #00d4ff !important;
  --anzhiyu-lighttext: #0099cc !important;
  
  /* 边框和分割线 */
  --anzhiyu-border-color: rgba(0, 212, 255, 0.2) !important;
  --anzhiyu-sep-color: rgba(0, 212, 255, 0.15) !important;
  
  /* 背景色 */
  --anzhiyu-secondbg: rgba(135, 206, 235, 0.05) !important;
  --anzhiyu-background: linear-gradient(180deg, #e6f7ff, #cceeff, #b3e0ff) !important;
  
  /* 代码高亮 */
  --anzhiyu-code-stress: rgba(0, 212, 255, 0.1) !important;
  
  /* 滚动条 */
  --anzhiyu-scrollbar: linear-gradient(135deg, #00d4ff, #0099cc) !important;
  
  /* 遮罩 */
  --anzhiyu-maskbg: rgba(0, 105, 148, 0.8) !important;
  --anzhiyu-maskbgdeep: rgba(0, 61, 92, 0.9) !important;
}

/* 所有可能的紫色覆盖 */
*[style*="425AEF"],
*[style*="667eea"],
*[style*="764ba2"],
*[style*="purple"],
*[style*="violet"] {
  color: var(--ocean-light) !important;
  background: var(--ocean-gradient) !important;
  border-color: var(--ocean-light) !important;
}

/* 文章页面所有元素 */
.post-content,
#article-container {
  /* 链接 */
  a {
    color: var(--ocean-medium) !important;
    border-bottom-color: rgba(0, 212, 255, 0.3) !important;
  }
  
  a:hover {
    color: var(--ocean-deep) !important;
    border-bottom-color: var(--ocean-light) !important;
  }
  
  /* 标题 */
  h1, h2, h3, h4, h5, h6 {
    color: var(--ocean-deep) !important;
    border-bottom-color: rgba(0, 212, 255, 0.3) !important;
  }
  
  /* 代码 */
  code {
    background: rgba(0, 212, 255, 0.1) !important;
    color: var(--ocean-deep) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
  }
  
  /* 引用 */
  blockquote {
    border-left-color: var(--ocean-light) !important;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1), transparent) !important;
  }
  
  /* 列表标记 */
  ul li::marker,
  ol li::marker {
    color: var(--ocean-light) !important;
  }
}

/* 时间轴页面强制覆盖 */
#archive,
.timeline,
.article-sort {
  /* 年份标题 */
  .article-sort-title,
  .year-title {
    background: var(--ocean-gradient) !important;
    color: white !important;
  }
  
  /* 时间线 */
  .article-sort-item {
    border-left-color: var(--ocean-light) !important;
  }
  
  .article-sort-item::before {
    background: var(--ocean-light) !important;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2) !important;
  }
  
  /* 文章链接 */
  a {
    color: var(--ocean-medium) !important;
  }
  
  a:hover {
    color: var(--ocean-deep) !important;
  }
  
  /* 日期 */
  time,
  .article-sort-item-time {
    color: var(--ocean-medium) !important;
  }
}

/* 项目展示页面强制覆盖 */
.projects-container,
#projects {
  /* 项目卡片 */
  .project-card,
  .tech-tag {
    border-color: rgba(0, 212, 255, 0.3) !important;
    background: white !important;
  }
  
  .project-card::before {
    background: var(--ocean-gradient) !important;
  }
  
  .project-card:hover {
    border-color: var(--ocean-light) !important;
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.25) !important;
  }
  
  /* 技术标签 */
  .tech-tag {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.15)) !important;
    color: var(--ocean-deep) !important;
  }
  
  .tech-tag:hover {
    background: var(--ocean-gradient) !important;
    color: white !important;
  }
  
  /* 按钮 */
  .btn-primary,
  .project-links .btn {
    background: var(--ocean-gradient) !important;
    color: white !important;
    border-color: transparent !important;
  }
  
  .btn-secondary {
    border-color: var(--ocean-light) !important;
    color: var(--ocean-deep) !important;
  }
  
  .btn-secondary:hover {
    background: var(--ocean-gradient) !important;
    color: white !important;
  }
}

/* GitHub统计强制覆盖 */
.github-stats-section,
.github-card,
.github-charts {
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(0, 212, 255, 0.15)) !important;
  border-color: rgba(0, 212, 255, 0.2) !important;
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15) !important;
}

/* 所有卡片元素 */
.card,
.card-widget,
.recent-post-item,
.post-card,
#aside-content .card-widget {
  border-color: rgba(0, 212, 255, 0.2) !important;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.1) !important;
}

.card::before,
.card-widget::before,
.recent-post-item::before,
.post-card::before {
  background: var(--ocean-gradient) !important;
}

/* 所有标题 */
h1, h2, h3, h4, h5, h6,
.title,
.heading,
.post-title,
.section-title {
  color: var(--ocean-deep) !important;
}

/* 所有链接 */
a:not(.button):not(.btn) {
  color: var(--ocean-medium) !important;
}

a:not(.button):not(.btn):hover {
  color: var(--ocean-deep) !important;
}

/* 所有按钮 */
.button,
.btn,
button:not(.close):not(.search-close),
input[type="button"],
input[type="submit"] {
  background: var(--ocean-gradient) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3) !important;
}

.button:hover,
.btn:hover,
button:hover {
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4) !important;
}

/* 所有徽章和标签 */
.badge,
.tag,
.label,
.category-badge {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.15)) !important;
  color: var(--ocean-deep) !important;
  border: 1px solid rgba(0, 212, 255, 0.3) !important;
}

.badge:hover,
.tag:hover,
.label:hover {
  background: var(--ocean-gradient) !important;
  color: white !important;
}

/* 分页按钮 */
.pagination .page-number,
.pagination .extend,
.page-number {
  border-color: rgba(0, 212, 255, 0.3) !important;
  color: var(--ocean-medium) !important;
}

.pagination .page-number:hover,
.pagination .extend:hover {
  background: var(--ocean-gradient) !important;
  color: white !important;
  border-color: var(--ocean-light) !important;
}

.pagination .page-number.current {
  background: var(--ocean-gradient) !important;
  color: white !important;
  border-color: var(--ocean-light) !important;
}

/* 顶部图片遮罩 */
#page-header,
.top-img {
  background: linear-gradient(180deg, rgba(135, 206, 235, 0.8), rgba(0, 212, 255, 0.9)) !important;
}

/* 文章元信息 */
.post-meta,
.post-info,
.meta-item {
  color: var(--ocean-medium) !important;
}

.post-meta a,
.post-info a {
  color: var(--ocean-medium) !important;
}

.post-meta a:hover,
.post-info a:hover {
  color: var(--ocean-deep) !important;
}

/* 图标颜色 */
.fa,
.fas,
.far,
.fab,
[class*="icon-"],
i {
  color: var(--ocean-light) !important;
}

/* Hover状态图标 */
*:hover > .fa,
*:hover > .fas,
*:hover > i {
  color: var(--ocean-deep) !important;
}

/* 高亮文本 */
::selection {
  background: rgba(0, 212, 255, 0.3) !important;
  color: var(--ocean-deep) !important;
}

::-moz-selection {
  background: rgba(0, 212, 255, 0.3) !important;
  color: var(--ocean-deep) !important;
}

/* 焦点状态 */
*:focus {
  outline-color: var(--ocean-light) !important;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3) !important;
}

/* 所有边框 */
hr,
.hr,
.divider {
  border-color: rgba(0, 212, 255, 0.2) !important;
  background: var(--ocean-gradient) !important;
}

/* 所有阴影 */
.shadow,
[class*="shadow"] {
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2) !important;
}

/* 所有渐变背景 */
[class*="gradient"],
.bg-gradient {
  background: var(--ocean-gradient) !important;
  color: white !important;
}

/* 覆盖行内样式中的颜色 */
*[style*="color: #425AEF"],
*[style*="color: #667eea"],
*[style*="color:#425AEF"],
*[style*="color:#667eea"] {
  color: var(--ocean-light) !important;
}

*[style*="background: #425AEF"],
*[style*="background: #667eea"],
*[style*="background:#425AEF"],
*[style*="background:#667eea"],
*[style*="background-color: #425AEF"],
*[style*="background-color: #667eea"] {
  background: var(--ocean-gradient) !important;
}

*[style*="border-color: #425AEF"],
*[style*="border-color: #667eea"],
*[style*="border-color:#425AEF"],
*[style*="border-color:#667eea"] {
  border-color: var(--ocean-light) !important;
}

/* SVG颜色覆盖 */
svg [fill="#425AEF"],
svg [fill="#667eea"],
svg [fill="#764ba2"] {
  fill: var(--ocean-light) !important;
}

svg [stroke="#425AEF"],
svg [stroke="#667eea"],
svg [stroke="#764ba2"] {
  stroke: var(--ocean-light) !important;
}

/* 覆盖JS动态添加的样式 */
.tippy-box,
.tippy-content {
  background: var(--ocean-gradient) !important;
  color: white !important;
}

/* 评论系统颜色 */
.waline,
.valine,
.twikoo,
#comment {
  --waline-theme-color: #00d4ff !important;
  --waline-active-color: #006994 !important;
}

.waline .wl-btn,
.valine .vbtn {
  background: var(--ocean-gradient) !important;
  border-color: var(--ocean-light) !important;
}

/* 音乐播放器 */
.aplayer {
  --theme-color: #00d4ff !important;
}

.aplayer .aplayer-bar-wrap .aplayer-bar .aplayer-played {
  background: var(--ocean-gradient) !important;
}

/* Live2D看板娘背景 */
#live2d-widget,
#waifu {
  filter: drop-shadow(0 10px 20px rgba(0, 212, 255, 0.3)) !important;
}

/* 代码高亮主题覆盖 */
.highlight,
pre[class*="language-"],
code[class*="language-"] {
  background: rgba(0, 212, 255, 0.05) !important;
  border-color: rgba(0, 212, 255, 0.2) !important;
}

.highlight .line-number,
.highlight .line-numbers {
  color: var(--ocean-medium) !important;
  border-right-color: rgba(0, 212, 255, 0.2) !important;
}

/* 确保所有主题切换后也是海洋色 */
[data-theme='dark'] {
  --anzhiyu-main: #00b8e6 !important;
  --anzhiyu-main-op: rgba(0, 184, 230, 0.8) !important;
  
  background: linear-gradient(180deg, #0a1931, #003d5c, #001a2e) !important;
}

[data-theme='dark'] .button,
[data-theme='dark'] .btn,
[data-theme='dark'] button {
  background: linear-gradient(135deg, #00b8e6, #006994) !important;
}

/* 关键帧动画颜色覆盖 */
@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 确保伪元素也使用海洋色 */
*::before,
*::after {
  border-color: inherit !important;
}

/* 特殊页面元素 */
.flink-list-item:hover {
  border-color: var(--ocean-light) !important;
  box-shadow: 0 12px 30px rgba(0, 212, 255, 0.25) !important;
}

.category-list-item:hover,
.tag-cloud-item:hover {
  background: var(--ocean-gradient) !important;
  color: white !important;
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3) !important;
}

/* 确保所有图表也使用海洋色 */
canvas,
.chart {
  filter: hue-rotate(-30deg) saturate(1.2) !important;
}

/* 最后的兜底规则 - 移除所有可能的紫色 */
* {
  /* 移除紫色调 */
  --purple: var(--ocean-light) !important;
  --indigo: var(--ocean-medium) !important;
  --violet: var(--ocean-light) !important;
}
