/* ===== 暮蓝配色 ===== */
:root {
  --bg: #f6f7f9;
  --bg-left: #edf0f5;
  --border: #dce0e8;
  --text: #2a3040;
  --text-muted: #6b7794;
  --text-dim: #b0b9cc;
  --text-dark: #111524;
  --accent: #4a6294;
  --w-panel: 640px;
}

/* ===== 基础 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Serif SC', Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== 全屏分屏 ===== */
.layout { display: grid; grid-template-columns: 50% 50%; min-height: 100vh; }

/* ===== 左栏 ===== */
.left {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 56px 48px 40px;
  background: var(--bg-left);
  border-right: 1px solid var(--border);
}

/* 轮播 */
.carousel { flex: 1; position: relative; overflow: hidden; border: 1px solid var(--border); }
.carousel-slide {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0; transition: opacity .8s ease;
  pointer-events: none;
}
.carousel-slide.active { opacity: 1; pointer-events: auto; }
.slide-inner { text-align: center; }
.slide-label { font-size: 12px; letter-spacing: 6px; line-height: 2; }
.slide-hint  { font-size: 9px; letter-spacing: 8px; margin-top: 6px; }

/* 轮播控件 */
.carousel-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 2;
}
.carousel-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bg-left);
  border: 1.5px solid var(--text-dim);
  cursor: pointer; transition: all .3s;
}
.carousel-dots span.active { background: var(--accent); border-color: var(--accent); }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg);
  display: grid; place-items: center;
  cursor: pointer; z-index: 2; transition: all .2s;
  font-size: 14px; color: var(--text-dim); font-family: Georgia, serif;
  opacity: .6;
}
.carousel-arrow:hover { opacity: 1; color: var(--text); border-color: var(--accent); }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }

/* 应用导航 */
.left-apps { padding-top: 28px; display: flex; flex-direction: column; gap: 2px; }
.left-label {
  font-size: 10px; color: var(--text-dim); letter-spacing: 3px;
  margin-bottom: 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.lapp {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 4px;
  text-decoration: none; color: #454f65; transition: all .25s;
  border: 1px solid transparent;
}
.lapp:hover {
  background: var(--bg); border-color: var(--border);
  color: var(--text); padding-left: 18px;
}
.lapp-icon { font-size: 15px; width: 28px; text-align: center; }
.lapp-name {
  font-size: 13px; letter-spacing: 1px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
}
.lapp-num { font-family: Georgia, serif; font-style: italic; font-size: 10px; color: var(--text-dim); width: 16px; }

/* ===== 右栏 ===== */
.right {
  padding: 80px 48px 80px 40px; overflow-y: auto;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
}
.right-inner { max-width: 420px; margin: 0 auto; width: 100%; }

/* 箴言 */
.motto {
  margin-bottom: 72px; position: relative; padding-bottom: 48px;
}
.motto::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 32px; height: 1px; background: var(--accent);
}
.motto p { font-size: 16px; color: var(--text-muted); line-height: 2.2; letter-spacing: 1.5px; }
.motto p em { font-style: normal; color: var(--accent); }

/* 文章列表 */
.articles-sec { }
.art-label {
  font-size: 10px; color: var(--text-dim); letter-spacing: 4px;
  margin-bottom: 32px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.art-list { display: flex; flex-direction: column; gap: 0; }
.art-item {
  padding: 24px 0; border-bottom: 1px solid #e3e6ee;
  cursor: pointer; transition: all .3s ease; position: relative;
}
.art-item:last-child { border-bottom: none; }
.art-item:hover { padding-left: 16px; }
.art-item:hover::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 2px; height: calc(100% - 48px); background: var(--accent);
}
.art-date {
  font-size: 11px; color: var(--text-dim);
  font-family: Georgia, serif; font-style: italic;
  margin-bottom: 8px; display: block;
}
.art-title {
  font-size: 16px; font-weight: 400; color: var(--text);
  letter-spacing: 1px; margin-bottom: 6px; transition: color .3s;
}
.art-item:hover .art-title { color: var(--text-dark); }
.art-excerpt {
  font-size: 12px; color: #808aa0; line-height: 1.8; letter-spacing: .3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-clamp: 2; overflow: hidden;
}
.art-hint {
  display: inline-block; margin-top: 10px;
  font-size: 10px; color: var(--text-dim); letter-spacing: 1px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: color .3s;
}
.art-item:hover .art-hint { color: var(--accent); }

/* ===== 推入面板 ===== */
.overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .3);
  z-index: 100; opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: var(--w-panel); max-width: 100vw;
  background: var(--bg); z-index: 101;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4, 0, .1, 1);
  display: flex; flex-direction: column;
  box-shadow: -4px 0 40px rgba(0, 0, 0, .06);
}
.panel.open { transform: translateX(0); }

.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 40px 56px 0; flex-shrink: 0;
}
.panel-cat {
  font-size: 10px; color: var(--text-dim); letter-spacing: 3px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.panel-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg);
  display: grid; place-items: center;
  cursor: pointer; transition: all .2s;
  font-size: 16px; color: var(--text-dim); font-family: Georgia, serif;
}
.panel-close:hover { background: var(--bg-left); color: var(--text); }

.panel-body {
  flex: 1; overflow-y: auto; padding: 36px 56px 56px;
  -webkit-overflow-scrolling: touch;
}
.panel-date {
  font-size: 11px; color: var(--text-dim);
  font-family: Georgia, serif; font-style: italic;
  margin-bottom: 16px; display: block;
}
.panel-title {
  font-size: 26px; font-weight: 400; color: var(--text-dark);
  letter-spacing: 1.5px; line-height: 1.5; margin-bottom: 40px;
}
.panel-content { font-size: 15px; color: #454f65; line-height: 2.2; letter-spacing: .5px; }
.panel-content p { margin-bottom: 20px; }
.panel-content p:last-child { margin-bottom: 0; }

.panel-foot {
  padding: 24px 56px 40px; flex-shrink: 0;
  border-top: 1px solid #e3e6ee;
}
.panel-foot a {
  font-size: 11px; color: var(--accent); text-decoration: none;
  letter-spacing: 1px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.panel-foot a:hover { color: var(--text-dark); }

/* ===== 底部 ===== */
footer {
  text-align: center; padding: 24px 0 16px;
  font-size: 12px; color: #999;
}
.icp-link {
  color: inherit; text-decoration: none;
}
.icp-link:hover { text-decoration: underline; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; }
  .left {
    position: relative; height: auto;
    padding: 32px 20px;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .carousel { height: 40vh; }
  .right { padding: 40px 20px 60px; display: block; }
  .right-inner { margin: 0; }
  .motto p { font-size: 14px; }
  .panel { width: 100vw; }
  .panel-head  { padding: 32px 24px 0; }
  .panel-body  { padding: 28px 24px 44px; }
  .panel-foot  { padding: 20px 24px 28px; }
}
