/*
Theme Name: NextGen Cloud Service Portal
Theme URI: https://nextgencloudservice.online
Description: Magazine layout with a light palette and dark-cinematic accents (wide letter-spacing, thin accent rules, dimmed imagery) for cloud hosting content. Typographic cards, generous whitespace.
Style ID: ae60b2
Version: 1.0.0
Text Domain: nextgen-cloud-servic
*/

:root {
  --bg: #f6f7f8;
  --bg-alt: #ebedef;
  --bg-deep: #e0e3e5;
  --text: #1d2026;
  --text-muted: #6b717b;
  --accent: #3462a2;
  --border: #dde0e4;
  /* 视觉密度：宽松 —— 大留白、段落间距大 */
  --spacing: 28px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { max-width: 100%; height: auto; display: block; }

/* Dark Cinematic：标题字距加大 + 细 accent 线点缀 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--text);
}

/* ===== 布局容器 ===== */
.ae60b2-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Header（现代极简：Logo | 分类导航 | 搜索 + 暗黑切换） ===== */
.ae60b2-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,247,248,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.ae60b2-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.ae60b2-logo {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ae60b2-logo a:hover { color: var(--accent); }
.ae60b2-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.ae60b2-nav li a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}
.ae60b2-nav li a:hover,
.ae60b2-nav li.current-menu-item a { color: var(--accent); }

.ae60b2-header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ae60b2-dark-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
}
.ae60b2-header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  background: #fff;
}
.ae60b2-header-search input {
  border: none;
  outline: none;
  font-size: 13px;
  width: 130px;
  background: transparent;
  color: var(--text);
}

/* ===== 卡片 D（无图纯文本 Typographic Card） ===== */
.ae60b2-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ae60b2-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(52,98,162,0.08);
}
.ae60b2-card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.ae60b2-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.ae60b2-card-title a:hover { color: var(--accent); }
.ae60b2-card-rule {
  height: 1px;
  background: var(--border);
  margin-bottom: 14px;
}
.ae60b2-card-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ===== 归档 / 列表页 ===== */
.ae60b2-archive-head { padding: 56px 0 32px; }
.ae60b2-archive-head h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding-bottom: 14px;
  position: relative;
}
.ae60b2-archive-head h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--accent);
}
.ae60b2-archive-head p { color: var(--text-muted); margin-top: 16px; }

.ae60b2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 64px;
}

/* ===== 文章页：带右侧栏（正文 70% + 右侧相关文章/目录 30%） ===== */
.ae60b2-single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  padding: 48px 0 72px;
  align-items: start;
}
.ae60b2-single-main { min-width: 0; }
.ae60b2-single-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.ae60b2-single-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.18;
  margin-bottom: 18px;
}
.ae60b2-single-meta {
  color: var(--text-muted);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.ae60b2-single-thumb {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
  position: relative;
}
/* Dark Cinematic：大图整体压暗 */
.ae60b2-single-thumb img {
  width: 100%;
  filter: brightness(0.86) contrast(1.05);
}

.ae60b2-content {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
}
.ae60b2-content p { margin-bottom: 24px; }
.ae60b2-content h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 40px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.ae60b2-content h3 { font-size: 20px; margin: 30px 0 14px; }
.ae60b2-content ul, .ae60b2-content ol { margin: 0 0 26px 26px; }
.ae60b2-content li { margin-bottom: 10px; }
.ae60b2-content a { color: var(--accent); border-bottom: 1px solid rgba(52,98,162,0.35); }
.ae60b2-content a:hover { border-bottom-color: var(--accent); }

/* 右侧栏 */
.ae60b2-single-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ae60b2-side-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.ae60b2-side-widget h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.ae60b2-side-widget ul { list-style: none; }
.ae60b2-side-widget ul li {
  margin-bottom: 12px;
  padding-left: 14px;
  position: relative;
}
.ae60b2-side-widget ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.ae60b2-side-widget ul li a {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.ae60b2-side-widget ul li a:hover { color: var(--accent); }

/* ===== 通用页面 ===== */
.ae60b2-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 28px 72px;
}
.ae60b2-page h1 { font-size: 34px; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 24px; }

/* ===== 404 ===== */
.ae60b2-404 { text-align: center; padding: 120px 28px; }
.ae60b2-404 h1 { font-size: 90px; font-weight: 800; letter-spacing: 0.04em; color: var(--accent); }
.ae60b2-404 p { color: var(--text-muted); margin: 16px 0 28px; }
.ae60b2-404 a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
}
.ae60b2-404 a:hover { opacity: 0.9; color: #fff; }

/* ===== 搜索表单 ===== */
.ae60b2-searchform { display: flex; gap: 8px; }
.ae60b2-searchform input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: var(--text);
}
.ae60b2-searchform button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-weight: 600;
  cursor: pointer;
}

/* ===== Footer ===== */
.ae60b2-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  margin-top: 48px;
}
.ae60b2-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 28px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.ae60b2-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.ae60b2-footer-col p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.ae60b2-footer-col ul { list-style: none; }
.ae60b2-footer-col ul li { margin-bottom: 10px; }
.ae60b2-footer-col ul li a { color: var(--text-muted); font-size: 14px; }
.ae60b2-footer-col ul li a:hover { color: var(--accent); }

.ae60b2-footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 28px;
}
.ae60b2-footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ae60b2-footer-copy { color: var(--text-muted); font-size: 13px; }
.ae60b2-footer-bottom a { color: var(--text-muted); font-size: 13px; margin-left: 16px; }
.ae60b2-footer-bottom a:hover { color: var(--accent); }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .ae60b2-grid { grid-template-columns: repeat(2, 1fr); }
  .ae60b2-footer-grid { grid-template-columns: 1fr 1fr; }
  .ae60b2-single-layout { grid-template-columns: 1fr; gap: 40px; }
  .ae60b2-single-side { position: static; }
  .ae60b2-header-inner { flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .ae60b2-grid { grid-template-columns: 1fr; }
  .ae60b2-footer-grid { grid-template-columns: 1fr; }
  .ae60b2-single-title { font-size: 28px; }
  .ae60b2-logo { font-size: 20px; }
}
