* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fafafa;
  --bg-soft: #f0f0f0;
  --card-bg: #ffffff;
  --text: #2d2d2d;
  --text-sub: #888888;
  --border: #eeeeee;
  --primary: #e63946;
  --primary-soft: rgba(230, 57, 70, .1);
  --header-bg: rgba(255, 255, 255, .92);
  --footer-bg: linear-gradient(135deg, #ff8c42 0%, #ff6b35 50%, #e63946 100%);
  --footer-text: rgba(255, 255, 255, .92);
}

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--primary); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 页眉 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(230, 57, 70, .08);
  transition: box-shadow .3s, background .3s, border-color .3s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 2px 16px rgba(230, 57, 70, .08);
  border-bottom-color: rgba(230, 57, 70, .12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: height .3s;
}

.site-header.scrolled .header-inner {
  height: 58px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .5px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8c42, #e63946);
  box-shadow: 0 0 8px rgba(230, 57, 70, .6);
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(230, 57, 70, .6);
  }
  50% {
    transform: scale(1.3);
    box-shadow: 0 0 16px rgba(230, 57, 70, .8);
  }
}

.logo-text {
  background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 50%, #e63946 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 导航 */
.nav { display: flex; gap: 8px; }

.nav a {
  position: relative;
  font-size: 15px;
  color: #666;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.nav a:hover {
  color: var(--primary);
  background: rgba(230, 57, 70, .06);
}

.nav a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav a.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, #ff8c42, #e63946);
  border-radius: 2px;
  animation: navUnderline .3s ease;
}

@keyframes navUnderline {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* 移动端汉堡 */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 主视觉轮播（无毛玻璃） ===== */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* 遮罩：上下渐变，无毛玻璃 */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, .25) 0%,
    rgba(0, 0, 0, .1) 40%,
    rgba(0, 0, 0, .35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
  letter-spacing: 1px;
}

.hero-sub {
  font-size: 17px;
  opacity: .95;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
  letter-spacing: .5px;
}

/* 箭头：深色半透明，无毛玻璃 */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .25);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s, background .2s, transform .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(0, 0, 0, .45); }
.hero-arrow:active { transform: translateY(-50%) scale(.92); }

.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: all .3s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, .7); }
.hero-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #fff;
}

/* ===== 主内容 ===== */
.main-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 40px 24px 60px;
}

.post-list { display: flex; flex-direction: column; gap: 24px; }

.post-card {
  display: flex;
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.post-cover {
  flex: 0 0 180px;
  background-size: cover;
  background-position: center;
}

.post-body { flex: 1; padding: 22px 24px; min-width: 0; }

.post-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.post-tag {
  color: var(--primary);
  background: var(--primary-soft);
  padding: 1px 8px;
  border-radius: 10px;
}

.post-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--primary); }

.post-excerpt {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-more {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

/* ===== 侧边栏 ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.widget {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.widget-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.widget-text {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  font-size: 12px;
  padding: 3px 10px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 12px;
  transition: background .2s;
}
.tag:hover { background: var(--primary); color: #fff; }

.links { list-style: none; }
.links li { padding: 6px 0; font-size: 13px; color: var(--text-sub); }
.links a { color: var(--text-sub); }
.links a:hover { color: var(--primary); }

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 28px 0;
  font-size: 13px;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
}

.site-footer p {
  margin: 0;
  letter-spacing: .5px;
}

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .main-content { grid-template-columns: 1fr; gap: 30px; }
  .sidebar { order: 2; }
  .hero { height: 340px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 15px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid rgba(230, 57, 70, .1);
    box-shadow: 0 8px 24px rgba(230, 57, 70, .08);
    padding: 8px 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    padding: 12px 24px;
    border-radius: 0;
  }

  .nav a.active::after { display: none; }

  .nav a.active {
    background: rgba(230, 57, 70, .08);
    border-left: 3px solid var(--primary);
  }
}

@media (max-width: 600px) {
  .hero { height: 280px; }
  .hero-title { font-size: 22px; }
  .hero-sub { font-size: 13px; }
  .hero-arrow { width: 36px; height: 36px; font-size: 22px; opacity: .7; }
  .hero-prev { left: 10px; }
  .hero-next { right: 10px; }

  .post-card { flex-direction: column; }
  .post-cover { flex: 0 0 140px; }
  .container { padding: 0 16px; }
  .main-content { padding: 24px 16px 40px; }
}
.icp{
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 10px
}
.icp img{
	width: 1rem;
	height: 1rem;
	vertical-align: top;
	opacity: 1;
	object-fit: contain
}
.icp a{
	text-decoration: none;
	line-height: 1.2;
}