/* ============================================================
   阳摆摆成长营 · 首页样式
   作用域：仅在 front-page.php 包裹的 .ybb-page 内生效
   类名统一 ybb- 前缀，避免与父主题 / Bootstrap 冲突
   ============================================================ */

.ybb-page {
  /* 品牌主色（天青） */
  --brand: #0ea5e9;
  --brand-strong: #0284c7;
  --brand-deep: #0369a1;
  --brand-light: #38bdf8;
  --brand-bg: #e0f2fe;
  --brand-bg-soft: #eaf6fe;
  --brand-border: #bae6fd;

  /* 金色（会员） */
  --gold: #fbbf24;
  --gold-strong: #f59e0b;
  --gold-ink: #1f2937;
  --gold-bg: #fef3c7;
  --gold-border: #fde68a;
  --gold-text: #b45309;

  /* 中性 */
  --ink: #334155;
  --ink-2: #64748b;
  --ink-3: #94a3b8;
  --ink-4: #a8b4c4;
  --line: #edf2f7;
  --line-2: #dbe7f1;
  --white: #fff;

  /* 圆角 / 阴影（Claymorphism） */
  --r-xl: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow-card: 0 2px 4px rgba(51, 65, 85, .03), 0 8px 20px rgba(51, 65, 85, .06);
  --shadow-card-hover: 0 6px 14px rgba(2, 132, 199, .10), 0 20px 40px rgba(2, 132, 199, .16);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, .7);
  --shadow-gold: 0 10px 26px rgba(245, 158, 11, .32), inset 0 1px 0 rgba(255, 255, 255, .35);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .24s;

  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--ink);
  font-family: "Source Han Sans CN", "Noto Sans CJK SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
}

.ybb-page a { text-decoration: none; color: inherit; }
.ybb-page .ybb-ic { display: inline-block; flex-shrink: 0; }

/* ===== Hero ===== */
.ybb-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  margin-top: 24px;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(56, 189, 248, .16), transparent 60%),
    linear-gradient(160deg, var(--brand-bg-soft) 0%, #f2f9fe 55%, #f4f8fc 100%);
  padding: 64px 56px 72px;
}
.ybb-hero__deco { position: absolute; border-radius: 50%; pointer-events: none; }
.ybb-hero__deco--a {
  width: 380px; height: 380px; top: -140px; right: -100px;
  background: radial-gradient(circle at 30% 30%, rgba(125, 211, 252, .5), rgba(125, 211, 252, .15) 70%);
}
.ybb-hero__deco--b {
  width: 220px; height: 220px; bottom: -90px; left: 26%;
  background: radial-gradient(circle at 40% 40%, rgba(186, 230, 253, .7), transparent 70%);
}
.ybb-hero__inner { position: relative; z-index: 2; max-width: 640px; }

.ybb-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--brand-strong);
  background: var(--white); border: 1px solid var(--brand-border);
  padding: 6px 14px; border-radius: 20px; box-shadow: var(--shadow-inset);
  margin-bottom: 20px;
}
.ybb-eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  animation: ybb-pulse 2s ease-in-out infinite;
}
@keyframes ybb-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.4); }
}

.ybb-hero__title { font-size: 44px; font-weight: 800; line-height: 1.22; letter-spacing: -.5px; margin: 0; }
.ybb-hero__accent {
  background: linear-gradient(100deg, var(--brand-strong) 0%, var(--brand) 55%, var(--brand-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ybb-hero__desc { margin-top: 18px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }

.ybb-search {
  margin-top: 30px; display: flex; max-width: 470px;
  background: var(--white); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 8px 24px rgba(51, 65, 85, .08), var(--shadow-inset);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ybb-search:focus-within { border-color: var(--brand-border); box-shadow: 0 8px 24px rgba(2, 132, 199, .14), var(--shadow-inset); }
.ybb-search input {
  flex: 1; padding: 15px 20px; border: none; outline: none;
  font-size: 14.5px; color: var(--ink); background: transparent; font-family: inherit;
}
.ybb-search input::placeholder { color: var(--ink-4); }
.ybb-search button {
  padding: 15px 28px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-strong));
  color: var(--white); font-size: 14.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  transition: filter var(--dur) var(--ease);
}
.ybb-search button:hover { filter: brightness(1.06); }
.ybb-search .ybb-ic { width: 16px; height: 16px; }

/* ===== 功能导航卡 ===== */
.ybb-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: -46px auto 0; position: relative; z-index: 3;
}
.ybb-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px;
  box-shadow: var(--shadow-card), var(--shadow-inset);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ybb-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover), var(--shadow-inset);
  border-color: var(--brand-border);
}
.ybb-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-bg), var(--brand-border));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 4px 10px rgba(2, 132, 199, .12);
  color: var(--brand-strong);
  transition: transform var(--dur) var(--ease);
}
.ybb-card:hover .ybb-card__icon { transform: scale(1.06); }
.ybb-card__icon .ybb-ic { width: 24px; height: 24px; }
.ybb-card__title { font-size: 15.5px; font-weight: 700; margin: 0; }
.ybb-card__desc { font-size: 12.5px; color: var(--ink-3); margin: 4px 0 0; }

/* ===== 分类板块 ===== */
.ybb-section { margin-top: 72px; }
.ybb-cat-head { text-align: center; margin-bottom: 30px; }
.ybb-cat-title { font-size: 27px; font-weight: 800; margin: 0; letter-spacing: -.3px; }
.ybb-cat-desc { font-size: 15px; color: var(--ink-3); margin: 10px 0 0; }
.ybb-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.ybb-tab {
  padding: 8px 20px; border-radius: 22px; cursor: pointer;
  background: var(--white); border: 1px solid var(--line-2);
  color: var(--ink-2); font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-inset); transition: all var(--dur) var(--ease);
  display: inline-block;
}
.ybb-tab:hover { color: var(--brand); border-color: var(--brand-border); transform: translateY(-1px); }
.ybb-tab.is-active {
  color: var(--white); border-color: transparent;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-strong));
  box-shadow: 0 6px 16px rgba(2, 132, 199, .30), inset 0 1px 0 rgba(255, 255, 255, .30);
}

/* ===== 文章卡片 ===== */
.ybb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ybb-post {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card), var(--shadow-inset);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ybb-post:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover), var(--shadow-inset);
  border-color: var(--brand-border);
}
.ybb-post__thumb {
  position: relative; height: 138px; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-bg), #f0f9ff);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-strong);
}
.ybb-post__thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ybb-post__thumb .ybb-ic { width: 46px; height: 46px; position: relative; z-index: 2; opacity: .9; transition: transform .3s var(--ease); }
.ybb-post:hover .ybb-post__thumb .ybb-ic { transform: scale(1.1) rotate(-3deg); }
.ybb-post__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.ybb-badge {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 11px; font-weight: 700; color: var(--brand-strong);
  background: var(--brand-bg); padding: 3px 10px; border-radius: 6px; margin-bottom: 10px;
}
.ybb-badge .ybb-ic { width: 12px; height: 12px; }
.ybb-badge--vip { color: var(--gold-text); background: var(--gold-bg); }

.ybb-post__title {
  font-size: 14px; font-weight: 600; line-height: 1.55; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ybb-post__meta {
  margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--ink-4);
  display: flex; align-items: center; justify-content: space-between;
}
.ybb-post__meta .ybb-author { display: inline-flex; align-items: center; gap: 6px; }
.ybb-post__meta .ybb-ic { width: 13px; height: 13px; }

/* ===== 查看更多 ===== */
.ybb-more { text-align: center; margin-top: 30px; }
.ybb-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 34px; border-radius: 24px;
  background: var(--white); color: var(--ink);
  font-size: 14px; font-weight: 600; border: 1px solid var(--line-2);
  box-shadow: var(--shadow-card), var(--shadow-inset);
  transition: all var(--dur) var(--ease);
}
.ybb-more-btn:hover {
  color: var(--brand); border-color: var(--brand-border);
  transform: translateY(-2px); box-shadow: var(--shadow-card-hover), var(--shadow-inset);
}

/* ===== 会员区 ===== */
.ybb-vip-zone { margin-top: 72px; }
.ybb-vip {
  position: relative; overflow: hidden;
  display: flex; gap: 44px; align-items: center;
  padding: 48px 52px; border-radius: var(--r-xl);
  border: 1px solid rgba(251, 191, 36, .22);
  background: radial-gradient(600px 400px at 90% -10%, rgba(251, 191, 36, .20), transparent 60%),
              linear-gradient(125deg, #241f14 0%, #3a3120 100%);
  box-shadow: 0 24px 60px rgba(36, 31, 20, .35), inset 0 1px 0 rgba(255, 255, 255, .10);
}
.ybb-vip::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, .05) 45%, transparent 55%);
  background-size: 220% 100%;
  animation: ybb-shimmer 5s ease-in-out infinite;
}
@keyframes ybb-shimmer {
  0%, 100% { background-position: 0 0; }
  50% { background-position: -120% 0; }
}
.ybb-vip::after {
  content: ""; position: absolute; right: -70px; top: -70px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, .28), transparent 65%);
}
.ybb-vip__intro { flex: 1; position: relative; z-index: 2; }
.ybb-vip__badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 800; color: var(--gold-ink);
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  padding: 6px 16px; border-radius: 20px; margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(245, 158, 11, .40), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.ybb-vip__badge .ybb-ic { width: 14px; height: 14px; }
.ybb-vip__title { font-size: 28px; font-weight: 800; color: var(--white); margin: 0; letter-spacing: -.3px; }
.ybb-vip__desc { font-size: 14.5px; color: #d8cdb0; margin: 12px 0 0; }

.ybb-perks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ybb-perk {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  color: #f5efd9; background: rgba(251, 191, 36, .12);
  border: 1px solid rgba(251, 191, 36, .28); padding: 8px 16px; border-radius: 22px;
}
.ybb-perk .ybb-ic { width: 14px; height: 14px; color: var(--gold); }

.ybb-vip__action {
  flex-shrink: 0; text-align: center; position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
/* 会员价：入口页不显示金额，仅标签；结算页必须显示明确金额 */
.ybb-vip__price {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 800; color: var(--gold);
  background: rgba(251, 191, 36, .12);
  border: 1.5px dashed rgba(251, 191, 36, .55);
  padding: 13px 30px; border-radius: var(--r-sm);
}
.ybb-vip__price .ybb-ic { width: 17px; height: 17px; }
.ybb-vip__cta {
  display: inline-block; padding: 15px 46px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: var(--gold-ink); font-size: 15.5px; font-weight: 800;
  box-shadow: var(--shadow-gold);
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ybb-vip__cta:hover {
  transform: translateY(-2px); filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(245, 158, 11, .42), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.ybb-vip-list-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 18.5px; font-weight: 700; margin: 36px 0 -6px;
}
.ybb-vip-list-title::before {
  content: ""; width: 5px; height: 19px; border-radius: 4px;
  background: linear-gradient(180deg, var(--gold), var(--gold-strong));
}

/* 空状态 */
.ybb-empty {
  grid-column: 1 / -1; text-align: center; padding: 48px 0;
  color: var(--ink-3); font-size: 14px;
  background: var(--white); border: 1px dashed var(--line-2); border-radius: var(--r-md);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .ybb-hero__title { font-size: 38px; }
  .ybb-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .ybb-page { padding: 0 16px; }
  .ybb-hero { padding: 44px 28px 52px; border-radius: var(--r-md); }
  .ybb-hero__title { font-size: 32px; }
  .ybb-cards { grid-template-columns: repeat(2, 1fr); margin-top: -36px; }
  .ybb-grid { grid-template-columns: repeat(2, 1fr); }
  .ybb-vip { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .ybb-vip__action { flex-direction: row; width: 100%; justify-content: space-between; }
}
@media (max-width: 480px) {
  .ybb-hero__title { font-size: 27px; }
  .ybb-hero { padding: 36px 20px 44px; }
  .ybb-cards { grid-template-columns: 1fr; }
  .ybb-grid { grid-template-columns: 1fr; }
  .ybb-vip__action { flex-direction: column; align-items: stretch; text-align: center; }
  .ybb-search button { padding: 15px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .ybb-page *, .ybb-page *::before, .ybb-page *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   顶栏 / 页脚 / 基础变量（从定稿预览同步）
   ============================================================ */

:root {
--brand: #0ea5e9;
      --brand-strong: #0284c7;
      --brand-deep: #0369a1;
      --brand-light: #38bdf8;
      --brand-tint: #7dd3fc;
      --brand-bg: #e0f2fe;
      --brand-bg-soft: #eaf6fe;
      --brand-border: #bae6fd;

      
      --gold: #fbbf24;
      --gold-strong: #f59e0b;
      --gold-ink: #1f2937;
      --gold-bg: #fef3c7;
      --gold-border: #fde68a;
      --gold-text: #b45309;

      
      --ink: #334155;
      --ink-2: #64748b;
      --ink-3: #94a3b8;
      --ink-4: #a8b4c4;
      --ink-5: #cbd5e1;
      --line: #edf2f7;
      --line-2: #dbe7f1;
      --page-bg: #f4f8fc;
      --white: #ffffff;

      
      --vip-bg-1: #241f14;
      --vip-bg-2: #3a3120;
      --vip-text: #d8cdb0;
      --vip-text-2: #f5efd9;
      --vip-text-3: #b3a787;

      
      --r-xl: 28px;
      --r-lg: 22px;
      --r-md: 18px;
      --r-sm: 12px;

      
      --shadow-card: 0 2px 4px rgba(51, 65, 85, 0.03), 0 8px 20px rgba(51, 65, 85, 0.06);
      --shadow-card-hover: 0 6px 14px rgba(2, 132, 199, 0.10), 0 20px 40px rgba(2, 132, 199, 0.16);
      --shadow-inset-light: inset 0 1px 0 rgba(255, 255, 255, 0.7);
      --shadow-gold: 0 10px 26px rgba(245, 158, 11, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);

      
      --ease: cubic-bezier(0.22, 1, 0.36, 1);
      --dur: 0.24s;
}

body {
font-family: "Source Han Sans CN", "Noto Sans CJK SC", "Microsoft YaHei",
        -apple-system, "Segoe UI", sans-serif;
      background: var(--page-bg);
      color: var(--ink);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
}

.wrap {
max-width: 1180px; margin: 0 auto; padding: 0 24px;
}

.site-header {
position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(255, 255, 255, 0.82);
      backdrop-filter: saturate(180%) blur(14px);
      -webkit-backdrop-filter: saturate(180%) blur(14px);
      border-bottom: 1px solid var(--line);
}

.site-header__inner {
display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      height: 68px;
}

.site-logo {
display: flex;
      align-items: center;
      gap: 10px;
      font-size: 18px;
      font-weight: 800;
      letter-spacing: 0.2px;
      color: var(--ink);
}

.site-logo__mark {
width: 36px;
      height: 36px;
      border-radius: 11px;
      background: linear-gradient(135deg, var(--brand-light), var(--brand-strong));
      box-shadow: 0 6px 14px rgba(2, 132, 199, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--white);
}

.site-logo__mark svg {
width: 19px; height: 19px;
}

.main-nav {
display: flex; gap: 30px; font-size: 14px; font-weight: 500; color: var(--ink-2);
}

.main-nav__link {
position: relative; padding: 6px 2px; transition: color var(--dur) var(--ease);
}

.main-nav__link:hover,
    .main-nav__link.is-active {
color: var(--brand);
}

.site-header__actions {
display: flex; gap: 10px;
}

.header-btn {
font-size: 13.5px;
      font-weight: 600;
      color: var(--brand-strong);
      border: 1.5px solid var(--brand-border);
      background: var(--brand-bg);
      padding: 8px 20px;
      border-radius: 22px;
      box-shadow: var(--shadow-inset-light);
      transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.header-btn:hover {
transform: translateY(-1px); background: #cbeafd;
}

.header-btn:active {
transform: translateY(0); box-shadow: none;
}

.header-btn--vip {
color: var(--gold-text);
      border-color: var(--gold-border);
      background: var(--gold-bg);
}

.header-btn--vip:hover {
background: #fdecc8;
}

.site-footer {
text-align: center;
      padding: 68px 0 46px;
      color: var(--ink-5);
      font-size: 12.5px;
}

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

@media (max-width: 375px) {
  .wrap {
    padding: 0 16px;
  }
  .site-header__actions .header-btn:first-child {
    display: none;
  }
}

/* ============================================================
   独立整页接管
   本模板不再调用 get_header()/get_footer()，需自行接管
   body 背景与布局，避免父主题 .row / .body-background 干扰
   ============================================================ */
body.ybb-body {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  background: var(--page-bg) !important;
  font-family: "Source Han Sans CN", "Noto Sans CJK SC", "Microsoft YaHei",
    -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body.ybb-body *,
body.ybb-body *::before,
body.ybb-body *::after { box-sizing: border-box; }

.site-logo { text-decoration: none; }
.site-logo__mark svg { width: 19px; height: 19px; }

.main-nav__link { text-decoration: none; }
.main-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.site-header__actions .header-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* 管理员登录时，WP 工具栏不遮挡吸顶导航 */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* ============================================================
   图片 logo
   assets/logo.png      整条 logo（图形+文字都在图里）
   assets/logo-mark.png 只有图形，文字用站点标题排在后面
   两个文件都不存在时，自动回退到内置图标 + 站点标题
   ============================================================ */
.site-logo__img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.site-logo__mark-img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
  border-radius: 11px;
}

.site-logo__text { white-space: nowrap; }

@media (max-width: 768px) {
  .site-logo__img { height: 34px; }
  .site-logo__mark-img { width: 30px; height: 30px; }
}
