/*
Theme Name: Legal Advisory Group Hub
Theme URI: https://legaladvisorygroup.business
Description: Dark Glassmorphism theme for Legal / Business / Advisory. Near-black canvas with frosted glass panels, tech-news layout and a breaking-news ticker.
Style ID: a2529a
Version: 1.0.0
Text Domain: legal-advisory-group
*/

:root {
  --bg: #14131b;
  --bg-alt: #201f28;
  --bg-deep: #0e0d11;
  --text: #ecebef;
  --text-muted: #9997a5;
  --accent: #7a70cd;
  --border: #33313f;
}

* { 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.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景光斑（Glassmorphism 氛围） */
.a2529a-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 420px at 12% 8%, rgba(122,112,205,0.20), transparent 60%),
    radial-gradient(520px 360px at 88% 18%, rgba(122,112,205,0.13), transparent 60%),
    radial-gradient(720px 520px at 50% 95%, rgba(122,112,205,0.11), transparent 65%);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ===== 毛玻璃面板 ===== */
.a2529a-glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
}

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

/* ===== Header ===== */
.a2529a-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20,19,27,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.a2529a-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 14px;
}

.a2529a-logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.a2529a-logo a:hover { color: var(--accent); }

.a2529a-header-date {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.a2529a-header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  min-width: 220px;
}
.a2529a-header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  width: 100%;
}
.a2529a-header-search input::placeholder { color: var(--text-muted); }
.a2529a-header-search button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
}

.a2529a-header-nav {
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.a2529a-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.a2529a-nav li a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.a2529a-nav li a:hover,
.a2529a-nav li.current-menu-item a { color: var(--accent); }

/* ===== 文章卡片 C（图片背景 + 文字叠加） ===== */
.a2529a-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--bg-alt);
  background-size: cover;
  background-position: center;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}
.a2529a-card-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
}
.a2529a-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,13,17,0.05) 0%, rgba(14,13,17,0.55) 55%, rgba(14,13,17,0.92) 100%);
  transition: background .3s ease;
}
.a2529a-card:hover .a2529a-card-overlay {
  background: linear-gradient(180deg, rgba(14,13,17,0.05) 0%, rgba(14,13,17,0.45) 50%, rgba(14,13,17,0.96) 100%);
}
.a2529a-card-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  width: 100%;
}
.a2529a-card-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.a2529a-card-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 10px;
}
.a2529a-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.75);
}
.a2529a-card-dot { color: rgba(255,255,255,0.5); }

/* ===== 归档 / 列表页 ===== */
.a2529a-archive-head {
  padding: 48px 0 28px;
}
.a2529a-archive-head h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.a2529a-archive-head p {
  color: var(--text-muted);
  margin-top: 8px;
}

.a2529a-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-bottom: 56px;
}

/* ===== 单篇文章页 ===== */
.a2529a-single {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.a2529a-single-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.a2529a-single-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
}
.a2529a-single-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}
.a2529a-single-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.a2529a-single-meta-text { line-height: 1.4; }
.a2529a-single-author { font-weight: 600; font-size: 14.5px; }
.a2529a-single-sub { color: var(--text-muted); font-size: 13px; }

.a2529a-single-thumb {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
}
.a2529a-single-thumb img { width: 100%; }

.a2529a-content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}
.a2529a-content p { margin-bottom: 20px; }
.a2529a-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 16px;
  letter-spacing: -0.01em;
}
.a2529a-content h3 {
  font-size: 20px;
  margin: 28px 0 12px;
}
.a2529a-content ul, .a2529a-content ol {
  margin: 0 0 22px 24px;
}
.a2529a-content li { margin-bottom: 8px; }
.a2529a-content a { color: var(--accent); border-bottom: 1px solid rgba(122,112,205,0.4); }
.a2529a-content a:hover { border-bottom-color: var(--accent); }

/* ===== 通用页面 ===== */
.a2529a-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.a2529a-page h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 24px;
}
.a2529a-page .a2529a-content { margin-top: 8px; }

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

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

/* ===== Footer ===== */
.a2529a-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  margin-top: 48px;
}
.a2529a-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 52px 24px 36px;
  max-width: 1200px;
  margin: 0 auto;
}
.a2529a-footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 16px;
}
.a2529a-footer-col p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.a2529a-footer-col ul { list-style: none; }
.a2529a-footer-col ul li { margin-bottom: 9px; }
.a2529a-footer-col ul li a {
  color: var(--text-muted);
  font-size: 14px;
}
.a2529a-footer-col ul li a:hover { color: var(--accent); }

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

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .a2529a-grid { grid-template-columns: repeat(2, 1fr); }
  .a2529a-footer-grid { grid-template-columns: 1fr 1fr; }
  .a2529a-header-top { flex-wrap: wrap; }
  .a2529a-header-search { order: 3; width: 100%; min-width: 0; }
}

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


/* ===== 广告位 ===== */
.a2529a-ad-wide {
  margin: 32px auto 8px;
  max-width: 1200px;
  padding: 20px 24px;
  background: #ffffff;
  border-radius: 12px;
}
.a2529a-ad-wide a { display: block; }
.a2529a-ad-wide img {
  border-radius: 8px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.18);
}
.a2529a-ad-promo {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f8 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.a2529a-ad-promo h3 { font-size: 15px; margin-bottom: 8px; }
.a2529a-ad-promo p { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin-bottom: 12px; }
.a2529a-ad-promo-link {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
}
.a2529a-ad-promo-link:hover { opacity: 0.9; color: #fff; }

.a2529a-ad-wide-text {
  text-align: center;
  margin-bottom: 16px;
}
.a2529a-ad-wide-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b63b5;
  border: 1px solid #d8d4f0;
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.a2529a-ad-wide-title {
  font-size: 20px;
  font-weight: 700;
  color: #1c1b26;
  margin: 0 0 6px;
}
.a2529a-ad-wide-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #55536b;
  max-width: 760px;
  margin: 0 auto 12px;
}
.a2529a-ad-wide-link {
  display: inline-block;
  background: #6b63b5;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
}
.a2529a-ad-wide-link:hover { opacity: 0.9; color: #ffffff !important; }
.a2529a-ad-wide-banner { display: block; }
