@charset "utf-8";
/* ============================================
   httoao.com - 玻璃拟态 + 马卡龙风格
   风格: G(玻璃拟态) + C(三栏瀑布流) + 色彩9(马卡龙)
   ============================================ */

:root {
  --primary: #6ec5ff;
  --primary-dark: #4db8e8;
  --accent: #ffb6d9;
  --accent2: #fff5cd;
  --bg-light: #fef9f9;
  --bg-white: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --text-dark: #3d3d3d;
  --text-muted: #7a7a7a;
  --text-light: #aaaaaa;
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 4px 20px rgba(110, 197, 255, 0.15);
  --shadow-md: 0 8px 40px rgba(110, 197, 255, 0.2);
  --shadow-lg: 0 16px 60px rgba(110, 197, 255, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: linear-gradient(135deg, #fef9f9 0%, #f0f4ff 50%, #fff5f8 100%);
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, li { list-style: none; }
img { max-width: 100%; height: auto; }

/* 通用 */
.section-container { max-width: 1200px; margin: 0 auto; padding: 70px 24px; }
.section-header { text-align: center; margin-bottom: 45px; }
.section-tag { display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--primary-dark); font-weight: 600; margin-bottom: 10px; }
.section-title { font-size: 32px; font-weight: 700; color: var(--text-dark); }

/* ============================================
   头部
   ============================================ */
.header {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.top_header { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: center; }
.top_header a#logo { display: flex; flex-direction: column; align-items: center; } .top_header a#logo img { height: 100px; width: 100px; object-fit: cover; border-radius: 8px; } .top_header a#logo .site-name { display: block; text-align: center; color: #1a1a1a; font-size: 1.25rem; font-weight: 700; margin-top: 8px; }

.nav-warp {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; gap: 6px; padding: 10px 24px; }
.nav-item { padding: 10px 22px; border-radius: 50px; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: var(--transition); }
.nav-item:hover, .nav-item.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }

/* ============================================
   玻璃拟态头部
   ============================================ */
.glass-header {
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--accent2) 100%);
  overflow: hidden;
}
.glass-overlay {
  position: absolute;
  inset: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
}
.glass-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
}
.glass-content h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(255,255,255,0.5);
}
.glass-content p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
}

/* ============================================
   三栏瀑布流
   ============================================ */
.masonry-section { padding: 70px 24px; background: var(--bg-white); }
.masonry-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.masonry-item {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.6);
  transition: var(--transition);
}
.masonry-item:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: var(--shadow-lg);
}
.masonry-img { height: 200px; background-size: cover; background-position: center; }
.masonry-info { padding: 20px; }
.masonry-cat { display: inline-block; padding: 4px 12px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-radius: 50px; font-size: 11px; margin-bottom: 10px; }
.masonry-info h3 { font-size: 16px; color: var(--text-dark); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.masonry-info h3 a:hover { color: var(--primary-dark); }
.masonry-info p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.masonry-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-light); }
.masonry-meta span { display: flex; align-items: center; gap: 4px; }

/* ============================================
   标签云
   ============================================ */
.tags-cloud-section { background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%); }
.tags-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tag-item {
  padding: 10px 20px;
  background: var(--bg-white);
  color: var(--text-muted);
  border-radius: 50px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(110, 197, 255, 0.2);
  transition: var(--transition);
}
.tag-item:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* ============================================
   堆叠卡片
   ============================================ */
.stack-section { background: var(--bg-light); }
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.stack-card {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.stack-card:nth-child(2) { transform: translateY(20px); }
.stack-card:nth-child(3) { transform: translateY(40px); }
.stack-card:hover { transform: translateY(0) scale(1.05); z-index: 10; }
.stack-img { height: 180px; background-size: cover; background-position: center; }
.stack-info { padding: 24px; }
.stack-info h3 { font-size: 17px; color: var(--text-dark); margin-bottom: 10px; }
.stack-info p { font-size: 13px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================
   夸父追日
   ============================================ */
.kuafu-section { background: var(--bg-white); }
.kuafu-list { display: flex; flex-direction: column; gap: 20px; }
.kuafu-item {
  display: flex;
  gap: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid;
  border-image: linear-gradient(to bottom, var(--primary), var(--accent)) 1;
  transition: var(--transition);
}
.kuafu-item:hover { transform: translateX(8px); box-shadow: var(--shadow-md); }
.kuafu-img { width: 280px; height: 180px; background-size: cover; background-position: center; flex-shrink: 0; }
.kuafu-content { padding: 24px; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.kuafu-cat { display: inline-block; font-size: 12px; color: var(--primary-dark); margin-bottom: 8px; }
.kuafu-content h3 { font-size: 20px; color: var(--text-dark); margin-bottom: 10px; }
.kuafu-content p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kuafu-meta { display: flex; gap: 20px; font-size: 12px; color: var(--text-light); }
.kuafu-meta span { display: flex; align-items: center; gap: 4px; }

/* ============================================
   抽屉卡片
   ============================================ */
.drawer-section { background: var(--bg-light); }
.drawer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.drawer-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.drawer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}
.drawer-header h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.drawer-count { font-size: 12px; background: rgba(255,255,255,0.2); padding: 4px 10px; border-radius: 50px; }
.drawer-content { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.drawer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.drawer-item:hover { background: linear-gradient(135deg, rgba(110,197,255,0.1), rgba(255,182,217,0.1)); padding-left: 16px; }
.drawer-dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; flex-shrink: 0; }
.drawer-title { font-size: 13px; color: var(--text-dark); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================
   底部横幅
   ============================================ */
.footer-banner { position: relative; height: 280px; overflow: hidden; }
.footer-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.footer-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(110,197,255,0.85) 0%, rgba(255,182,217,0.85) 100%); }
.footer-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 2; }
.footer-content h2 { font-size: 32px; color: #fff; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.footer-content p { font-size: 15px; color: rgba(255,255,255,0.9); }

/* ============================================
   底部
   ============================================ */
.footer { background: var(--bg-white); border-top: 1px solid rgba(110,197,255,0.2); padding: 40px 24px; text-align: center; }
.footer-bottom { max-width: 1200px; margin: 0 auto; font-size: 13px; color: var(--text-muted); }
.footer-bottom a { color: var(--primary-dark); margin: 0 8px; }
.footer-bottom a:hover { text-decoration: underline; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
  .masonry-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-card:nth-child(2), .stack-card:nth-child(3) { transform: translateY(0); }
  .drawer-grid { grid-template-columns: repeat(2, 1fr); }
  .kuafu-img { width: 220px; height: 160px; }
}
@media (max-width: 768px) {
  .glass-content h1 { font-size: 28px; }
  .masonry-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .kuafu-item { flex-direction: column; }
  .kuafu-img { width: 100%; height: 200px; }
  .drawer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
}
/* ============================================
   文章详情页 & 列表页
   ============================================ */
.page-header { background: var(--bg-white); border-bottom: 1px solid rgba(110,197,255,0.2); padding: 40px 0; margin-bottom: 40px; }
.page-header .container, .content-wrapper .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page-title { font-size: 28px; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; }
.page-breadcrumb { font-size: 13px; color: var(--text-muted); }
.page-breadcrumb a { color: var(--primary-dark); }
.content-wrapper { padding: 0 24px 60px; }
.article-detail { background: var(--bg-white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); margin-bottom: 40px; }
.detail-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.detail-category { display: inline-block; padding: 6px 16px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-radius: 50px; font-size: 12px; margin-bottom: 14px; }
.detail-title { font-size: 26px; font-weight: 700; color: var(--text-dark); margin-bottom: 14px; line-height: 1.4; }
.detail-meta { display: flex; gap: 24px; font-size: 13px; color: var(--text-muted); }
.detail-meta span { display: flex; align-items: center; gap: 6px; }
.detail-content { font-size: 15px; line-height: 1.9; color: var(--text-dark); }
.detail-content p { margin-bottom: 18px; }
.detail-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 20px 0; }
.detail-content h2, .detail-content h3, .detail-content h4 { margin: 24px 0 14px; color: var(--text-dark); }
.detail-content ul, .detail-content ol { margin: 16px 0; padding-left: 24px; }
.detail-content li { margin-bottom: 8px; list-style: disc; }
.detail-content blockquote { margin: 20px 0; padding: 20px 24px; background: var(--bg-light); border-left: 4px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--text-muted); }
.detail-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.08); font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-tags a { display: inline-block; padding: 4px 12px; background: var(--bg-light); color: var(--text-muted); border-radius: 50px; font-size: 12px; }
.detail-tags a:hover { background: var(--primary); color: #fff; }
.related-title { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); display: flex; align-items: center; gap: 10px; }
.related-title i { color: var(--primary); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { display: block; background: var(--bg-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.related-img { height: 140px; background-size: cover; background-position: center; }
.related-info { padding: 16px; }
.related-info h4 { font-size: 14px; color: var(--text-dark); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-info span { font-size: 12px; color: var(--text-light); }
.related-info span i { margin-right: 4px; }
.list-page-grid { display: flex; gap: 30px; }
.list-page-grid .main-content { flex: 1; min-width: 0; }
.list-sidebar { width: 280px; flex-shrink: 0; }
.list-articles { display: flex; flex-direction: column; gap: 20px; }
.list-article-item { display: flex; gap: 20px; background: var(--bg-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.list-article-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.list-article-img { width: 200px; height: 150px; background-size: cover; background-position: center; flex-shrink: 0; }
.list-article-info { padding: 20px; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.list-article-info h3 { font-size: 17px; color: var(--text-dark); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-article-info h3 a:hover { color: var(--primary-dark); }
.list-article-info p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-article-meta { display: flex; gap: 20px; font-size: 12px; color: var(--text-light); }
.list-article-meta span { display: flex; align-items: center; gap: 4px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span { padding: 10px 16px; background: var(--bg-white); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-dark); box-shadow: var(--shadow-sm); transition: var(--transition); }
.pagination a:hover { background: var(--primary); color: #fff; }
.pagination .active { background: var(--primary); color: #fff; }
.sidebar-card { background: var(--bg-white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.sidebar-card .card-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: flex; align-items: center; gap: 8px; }
.sidebar-card .card-title i { color: var(--primary); }
.sidebar-nav-list { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav-list li { padding: 10px 14px; background: var(--bg-light); border-radius: var(--radius-sm); transition: var(--transition); }
.sidebar-nav-list li:hover { background: var(--primary); }
.sidebar-nav-list li:hover a { color: #fff; }
.sidebar-nav-list a { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dark); }
.sidebar-nav-list .count { font-size: 11px; color: var(--text-light); background: rgba(0,0,0,0.06); padding: 2px 8px; border-radius: 50px; }
.sidebar-nav-list li:hover .count { background: rgba(255,255,255,0.2); color: #fff; }
@media (max-width: 900px) { .list-page-grid { flex-direction: column; } .list-sidebar { width: 100%; } .related-grid { grid-template-columns: repeat(2, 1fr); } .list-article-img { width: 160px; height: 130px; } }
@media (max-width: 600px) { .article-detail { padding: 24px; } .detail-title { font-size: 22px; } .list-article-item { flex-direction: column; } .list-article-img { width: 100%; height: 180px; } .related-grid { grid-template-columns: 1fr; } }
