/*
Theme Name: MaoYou Daily
Theme URI: https://github.com/paopao233/baolog
Author: MaoYou
Author URI: https://github.com/paopao233/baolog
Description: 猫友线报 —— 一个现代杂志风的线报 / 福利资源主题。自带 VIP 会员体系、用户中心、前端注册登录、论坛（自定义文章类型）、RSS 订阅采集与后台管理面板。灵感来自 baolog 主题。
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: maoyou
Tags: 线报, 博客, 论坛, 会员, 两栏, 自定义配色
*/

/* ==========================================================================
   1. Design Tokens
   ========================================================================== */
:root {
  --my-paper: #fbf9f6;
  --my-card: #ffffff;
  --my-ink: #23201c;
  --my-ink-soft: #4a443c;
  --my-muted: #8a8377;
  --my-line: #e9e4db;
  --my-brand: #e8722a;
  --my-brand-soft: #fdf1e8;
  --my-vip: #d5a03c;
  --my-vip-soft: #fdf6e7;
  --my-green: #2f9e6e;
  --my-red: #d0463a;
  --my-radius: 12px;
  --my-radius-lg: 18px;
  --my-shadow-sm: 0 1px 2px rgba(35, 32, 28, 0.05);
  --my-shadow: 0 2px 10px rgba(35, 32, 28, 0.07);
  --my-shadow-lg: 0 12px 34px rgba(35, 32, 28, 0.11);
  --my-serif: "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "PingFang SC", "Microsoft YaHei", Georgia, serif;
  --my-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --my-max: 1200px;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--my-paper);
  color: var(--my-ink);
  font-family: var(--my-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--my-brand); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--my-serif);
  color: var(--my-ink);
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: rgba(232, 114, 42, 0.2); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.my-wrap { max-width: var(--my-max); margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   3. Header
   ========================================================================== */
.my-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251, 249, 246, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--my-line);
}

.my-header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
}

.my-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.my-logo__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--my-ink);
  color: var(--my-paper);
  border-radius: 11px;
  font-family: var(--my-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  position: relative;
  transition: transform 0.2s ease;
}
.my-logo:hover .my-logo__mark { transform: rotate(-6deg); }
.my-logo__mark::after {
  content: "";
  position: absolute;
  top: -3px; right: -3px;
  width: 9px; height: 9px;
  background: var(--my-brand);
  border-radius: 50%;
  border: 2px solid var(--my-paper);
}

.my-logo__text { display: flex; flex-direction: column; line-height: 1; }
.my-logo__name { font-family: var(--my-serif); font-size: 17px; font-weight: 700; color: var(--my-ink); }
.my-logo__sub {
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--my-muted); margin-top: 5px;
}

.my-nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.my-nav a {
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--my-muted);
}
.my-nav a:hover { color: var(--my-ink); background: rgba(35, 32, 28, 0.04); }
.my-nav .current-menu-item > a,
.my-nav .current_page_item > a { color: var(--my-ink); font-weight: 600; }

.my-header__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.my-search { display: flex; }
.my-search__box {
  display: flex; align-items: center; gap: 7px;
  height: 36px; width: 200px;
  padding: 0 13px;
  background: var(--my-card);
  border: 1px solid var(--my-line);
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}
.my-search__box:focus-within {
  width: 240px;
  border-color: rgba(232, 114, 42, 0.5);
  box-shadow: 0 0 0 3px rgba(232, 114, 42, 0.1);
}
.my-search__box svg { flex-shrink: 0; color: var(--my-muted); }
.my-search__box input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none;
  font-size: 13px;
}
.my-search__box input::placeholder { color: #b5aea3; }

.my-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px;
  border: 0; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: var(--my-ink); color: var(--my-paper);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.my-btn:hover { color: var(--my-paper); background: #35302a; box-shadow: var(--my-shadow); }
.my-btn:active { transform: scale(0.98); }
.my-btn--brand { background: var(--my-brand); }
.my-btn--brand:hover { background: #d9661f; }
.my-btn--ghost {
  background: transparent; color: var(--my-ink-soft);
  border: 1px solid var(--my-line);
}
.my-btn--ghost:hover { background: var(--my-card); color: var(--my-ink); border-color: #d8d2c7; }
.my-btn--sm { height: 30px; padding: 0 12px; font-size: 12px; }
.my-btn--block { width: 100%; }
.my-btn[disabled] { opacity: 0.5; pointer-events: none; }

/* 会员徽标 */
.my-vip-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10px; font-weight: 700;
  background: linear-gradient(112deg, #f3d08a, #d9a13f 45%, #f0cf8b);
  color: #5c4415;
  vertical-align: middle;
}

/* 频道条 */
.my-channels {
  border-top: 1px solid rgba(233, 228, 219, 0.6);
  background: transparent;
}
.my-channels__inner {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto;
  padding: 6px 0;
  scrollbar-width: none;
}
.my-channels__inner::-webkit-scrollbar { display: none; }
.my-channels__label {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--my-muted);
  margin-right: 4px; flex-shrink: 0;
}
.my-channels a {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--my-muted);
}
.my-channels a:hover { background: rgba(35, 32, 28, 0.05); color: var(--my-ink); }
.my-channels a.is-active { background: var(--my-ink); color: var(--my-paper); }
.my-channels a .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

/* 用户区 */
.my-user { position: relative; }
.my-user__trigger {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px 0 4px;
  background: var(--my-card);
  border: 1px solid var(--my-line);
  border-radius: 999px;
}
.my-user__trigger img { width: 27px; height: 27px; border-radius: 50%; object-fit: cover; }
.my-user__trigger span { font-size: 12px; font-weight: 500; }

.my-dropdown {
  position: absolute; top: 44px; right: 0;
  width: 210px;
  background: var(--my-card);
  border: 1px solid var(--my-line);
  border-radius: 14px;
  box-shadow: var(--my-shadow-lg);
  padding: 6px;
  display: none;
  z-index: 100;
}
.my-user:hover .my-dropdown,
.my-user.is-open .my-dropdown { display: block; }
.my-dropdown a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--my-ink-soft);
}
.my-dropdown a:hover { background: rgba(35, 32, 28, 0.05); color: var(--my-ink); }
.my-dropdown__head {
  padding: 9px 10px 10px;
  border-bottom: 1px solid var(--my-line);
  margin-bottom: 5px;
}
.my-dropdown__head strong { display: block; font-size: 13px; }
.my-dropdown__head small { color: var(--my-muted); font-size: 11px; }

/* ==========================================================================
   4. Layout
   ========================================================================== */
.my-main { padding: 24px 0 40px; }
.my-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.my-content-area { min-width: 0; }
.my-layout--single { grid-template-columns: minmax(0, 1fr) 300px; }

.my-page-head { margin-bottom: 20px; }
.my-page-head__kicker {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--my-brand);
  margin-bottom: 8px;
}
.my-page-head h1 { font-size: 30px; font-weight: 700; }
.my-page-head p { margin: 6px 0 0; color: var(--my-muted); font-size: 14px; }

/* Tab 切换 */
.my-tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--my-line);
  margin-bottom: 18px;
}
.my-tabs button {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  background: none; border: 0;
  font-size: 14px; font-weight: 500;
  color: var(--my-muted);
}
.my-tabs button:hover { color: var(--my-ink); }
.my-tabs button.is-active { color: var(--my-ink); }
.my-tabs button.is-active::after {
  content: "";
  position: absolute; left: 10px; right: 10px; bottom: -1px;
  height: 2px; border-radius: 2px;
  background: var(--my-brand);
}
.my-tabpanel { display: none; }
.my-tabpanel.is-active { display: block; }

/* ==========================================================================
   5. Post Cards
   ========================================================================== */
.my-hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 320px;
  padding: 26px;
  border-radius: 22px;
  background: var(--my-ink);
  color: var(--my-paper);
  overflow: hidden;
  box-shadow: var(--my-shadow-lg);
}
.my-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.my-hero::after {
  content: "";
  position: absolute;
  top: -70px; right: -70px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(232, 114, 42, 0.55), transparent 68%);
  filter: blur(28px);
  transition: transform 0.6s ease;
}
.my-hero:hover::after { transform: scale(1.3); }
.my-hero > * { position: relative; z-index: 1; }
.my-hero:hover { color: var(--my-paper); }
.my-hero h2 {
  color: var(--my-paper);
  font-size: 27px;
  margin: 10px 0 8px;
}
.my-hero p {
  color: rgba(251, 249, 246, 0.65);
  font-size: 13.5px;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.my-hero__meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: rgba(251, 249, 246, 0.55);
}
.my-hero__meta span { display: flex; align-items: center; gap: 5px; }
.my-hero__more { color: #f0cf8b; font-weight: 600; }

.my-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }

.my-card {
  display: flex; flex-direction: column;
  padding: 18px;
  background: var(--my-card);
  border: 1px solid var(--my-line);
  border-radius: var(--my-radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.my-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 114, 42, 0.35);
  box-shadow: var(--my-shadow);
  color: inherit;
}
.my-card h3 {
  font-size: 16px;
  margin: 9px 0 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.my-card:hover h3 { color: var(--my-brand); }
.my-card__excerpt {
  flex: 1;
  font-size: 13px;
  color: var(--my-muted);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.my-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 11px;
  border-top: 1px solid var(--my-line);
  font-size: 11px;
  color: var(--my-muted);
}
.my-card__foot span { display: flex; align-items: center; gap: 5px; }
.my-card__author img { width: 16px; height: 16px; border-radius: 50%; }

.my-list {
  margin-top: 16px;
  background: var(--my-card);
  border: 1px solid var(--my-line);
  border-radius: var(--my-radius-lg);
  padding: 2px 18px;
}
.my-list__item {
  display: flex; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--my-line);
}
.my-list__item:last-child { border-bottom: 0; }
.my-list__date {
  flex-shrink: 0; width: 46px;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 2px;
}
.my-list__date b { font-family: var(--my-serif); font-size: 18px; line-height: 1; font-weight: 700; }
.my-list__date small { font-size: 10px; color: var(--my-muted); margin-top: 3px; text-transform: uppercase; }
.my-list__body { min-width: 0; flex: 1; }
.my-list__body h3 {
  font-size: 16.5px;
  margin: 5px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.my-list__item:hover h3 { color: var(--my-brand); }
.my-list__excerpt {
  font-size: 13px; color: var(--my-muted); margin: 0 0 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.my-list__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-size: 11px; color: var(--my-muted);
}
.my-list__meta span { display: flex; align-items: center; gap: 4px; }
.my-list__meta img { width: 16px; height: 16px; border-radius: 50%; }

/* 分类标签 */
.my-cat {
  display: inline-flex; align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px; font-weight: 600;
  background: var(--my-brand-soft);
  color: var(--my-brand);
}

/* 分页 */
.my-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 26px; }
.my-pagination .page-numbers {
  display: grid; place-items: center;
  min-width: 34px; height: 34px;
  padding: 0 8px;
  border: 1px solid var(--my-line);
  border-radius: 9px;
  background: var(--my-card);
  font-size: 13px; font-weight: 500;
  color: var(--my-muted);
}
.my-pagination .page-numbers:hover { border-color: rgba(232, 114, 42, 0.4); color: var(--my-ink); }
.my-pagination .page-numbers.current {
  background: var(--my-ink); border-color: var(--my-ink); color: var(--my-paper);
}
.my-pagination .dots { border: 0; background: none; }

/* 空状态 */
.my-empty {
  padding: 60px 20px;
  text-align: center;
  background: var(--my-card);
  border: 1px dashed var(--my-line);
  border-radius: var(--my-radius-lg);
}
.my-empty h3 { font-size: 16px; margin-bottom: 6px; }
.my-empty p { color: var(--my-muted); font-size: 13.5px; margin: 0; }

/* ==========================================================================
   6. Sidebar
   ========================================================================== */
.my-sidebar { display: flex; flex-direction: column; gap: 18px; }
.my-widget {
  padding: 18px;
  background: var(--my-card);
  border: 1px solid var(--my-line);
  border-radius: var(--my-radius-lg);
}
.my-widget__title {
  display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700;
  margin-bottom: 12px;
}
.my-widget__title svg { color: var(--my-brand); }
.my-widget ul li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(233, 228, 219, 0.7);
  font-size: 13px;
}
.my-widget ul li:last-child { border-bottom: 0; padding-bottom: 0; }
.my-widget ul li:first-child { padding-top: 0; }

.my-rank { display: flex; gap: 9px; }
.my-rank__num {
  flex-shrink: 0; width: 16px;
  font-family: var(--my-serif); font-size: 14px; font-weight: 700;
  color: #c9c2b6; text-align: center;
}
.my-rank:nth-child(-n+3) .my-rank__num { color: var(--my-brand); }
.my-rank__title {
  font-size: 13px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.my-rank__meta { font-size: 11px; color: var(--my-muted); margin-top: 4px; }

/* VIP 推广卡 */
.my-promo {
  position: relative;
  display: block;
  padding: 20px;
  border-radius: var(--my-radius-lg);
  background: var(--my-ink);
  color: var(--my-paper);
  overflow: hidden;
}
.my-promo:hover { color: var(--my-paper); }
.my-promo::after {
  content: "";
  position: absolute; top: -40px; right: -40px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(213, 160, 60, 0.35), transparent 70%);
  filter: blur(20px);
}
.my-promo__kicker {
  display: flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: #f0cf8b;
}
.my-promo h3 { color: var(--my-paper); font-size: 17px; margin: 9px 0 7px; }
.my-promo p { color: rgba(251, 249, 246, 0.6); font-size: 12px; margin: 0 0 14px; }
.my-promo__cta {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #f0cf8b;
  color: #4d3b12;
  font-size: 12px; font-weight: 700;
}

/* ==========================================================================
   7. Single Post
   ========================================================================== */
.my-article {
  padding: 28px;
  background: var(--my-card);
  border: 1px solid var(--my-line);
  border-radius: 20px;
}
.my-article__head { margin-bottom: 20px; }
.my-article__title { font-size: 28px; margin: 10px 0 14px; line-height: 1.3; }
.my-article__summary {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid rgba(232, 114, 42, 0.4);
  font-size: 14.5px;
  color: var(--my-muted);
  line-height: 1.75;
}
.my-article__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
  padding: 14px 0;
  border-top: 1px solid var(--my-line);
  border-bottom: 1px solid var(--my-line);
}
.my-article__author { display: flex; align-items: center; gap: 10px; }
.my-article__author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.my-article__author strong { display: block; font-size: 13.5px; }
.my-article__author small { font-size: 11px; color: var(--my-muted); }

.my-actions { display: flex; align-items: center; gap: 6px; }
.my-action {
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 12px;
  background: transparent;
  border: 1px solid var(--my-line);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--my-muted);
}
.my-action:hover { border-color: rgba(232, 114, 42, 0.4); color: var(--my-ink); }
.my-action.is-on { border-color: rgba(232, 114, 42, 0.4); background: var(--my-brand-soft); color: var(--my-brand); }
.my-action.is-on.is-like { border-color: rgba(208, 70, 58, 0.35); background: rgba(208, 70, 58, 0.07); color: var(--my-red); }

/* 正文排版 */
.my-content { font-size: 16.5px; line-height: 1.9; color: var(--my-ink-soft); }
.my-content > *:first-child { margin-top: 0; }
.my-content h2, .my-content h3, .my-content h4 {
  margin: 30px 0 12px;
  font-weight: 700;
}
.my-content h2 { font-size: 21px; }
.my-content h3 { font-size: 18px; padding-left: 12px; border-left: 3px solid var(--my-brand); }
.my-content h4 { font-size: 16px; }
.my-content p { margin: 0 0 18px; }
.my-content a { color: var(--my-brand); text-decoration: underline; text-underline-offset: 3px; }
.my-content ul, .my-content ol { margin: 0 0 20px; padding-left: 0; }
.my-content ul li { position: relative; padding-left: 18px; margin-bottom: 9px; }
.my-content ul li::before {
  content: "";
  position: absolute; left: 0; top: 0.72em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--my-brand); opacity: 0.7;
}
.my-content ol { counter-reset: mylist; }
.my-content ol li { position: relative; padding-left: 22px; margin-bottom: 9px; counter-increment: mylist; }
.my-content ol li::before {
  content: counter(mylist) ".";
  position: absolute; left: 0;
  color: var(--my-brand); font-weight: 700; font-size: 14px;
}
.my-content blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--my-brand);
  background: rgba(232, 114, 42, 0.055);
  border-radius: 0 10px 10px 0;
  color: #5c5449;
}
.my-content blockquote p:last-child { margin-bottom: 0; }
.my-content img { border-radius: 10px; margin: 18px 0; }
.my-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.my-content th, .my-content td { padding: 9px 12px; border-bottom: 1px solid var(--my-line); text-align: left; }
.my-content th { background: #f7f4ef; font-weight: 600; color: var(--my-ink); }
.my-content code {
  padding: 2px 6px; border-radius: 5px;
  background: #f4f1eb; font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.my-content pre {
  padding: 16px; border-radius: 10px;
  background: #26231f; color: #e8e3da;
  overflow-x: auto; font-size: 13.5px;
}
.my-content pre code { background: none; padding: 0; color: inherit; }

/* VIP 锁定 */
.my-locked { position: relative; margin: 24px 0; }
.my-locked__blur {
  max-height: 160px;
  overflow: hidden;
  filter: blur(4px);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}
.my-locked__mask {
  display: flex; flex-direction: column; align-items: center;
  margin-top: -60px;
  position: relative;
  padding: 0 10px;
}
.my-locked__box {
  max-width: 380px; width: 100%;
  padding: 26px 22px;
  text-align: center;
  background: var(--my-card);
  border: 1px solid rgba(213, 160, 60, 0.45);
  border-radius: 18px;
  box-shadow: var(--my-shadow-lg);
}
.my-locked__icon {
  width: 46px; height: 46px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(112deg, #f3d08a, #d9a13f 45%, #f0cf8b);
  color: #57400f;
}
.my-locked__box h3 { font-size: 16.5px; margin-bottom: 6px; }
.my-locked__box p { font-size: 13px; color: var(--my-muted); margin: 0 0 16px; }
.my-locked__box .my-btn { margin-top: 8px; }

/* 标签 */
.my-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--my-line); }
.my-tags a {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5f2ec;
  font-size: 11.5px; font-weight: 500;
  color: var(--my-muted);
}
.my-tags a:hover { background: var(--my-brand-soft); color: var(--my-brand); }

/* 相关文章 */
.my-related { margin-top: 22px; }
.my-related__title { font-size: 17px; margin-bottom: 14px; }

/* ==========================================================================
   8. Comments
   ========================================================================== */
.my-comments { margin-top: 22px; padding: 26px 28px; background: var(--my-card); border: 1px solid var(--my-line); border-radius: 20px; }
.my-comments__title { display: flex; align-items: center; gap: 7px; font-size: 17px; margin-bottom: 18px; }
.my-comments__title span { font-size: 13px; font-weight: 400; color: var(--my-muted); font-family: var(--my-sans); }

.comment-form { display: flex; gap: 12px; margin-bottom: 22px; }
.comment-form img { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.comment-form__body { flex: 1; }
.comment-form textarea {
  width: 100%; min-height: 84px; resize: vertical;
  padding: 11px 14px;
  background: var(--my-paper);
  border: 1px solid var(--my-line);
  border-radius: 11px;
  outline: none; font-size: 14px; line-height: 1.7;
}
.comment-form textarea:focus { border-color: rgba(232, 114, 42, 0.5); background: var(--my-card); }
.comment-form__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.comment-form__foot small { font-size: 11.5px; color: var(--my-muted); }
.form-submit { margin: 0; }
.form-submit input[type="submit"] {
  height: 32px; padding: 0 16px;
  border: 0; border-radius: 999px;
  background: var(--my-ink); color: var(--my-paper);
  font-size: 12px; font-weight: 600; cursor: pointer;
}

.comment-list { margin: 0; padding: 0; list-style: none; }
.my-comment { display: block; list-style: none; }
.comment-list ol.children { margin: 14px 0 0 46px; padding: 0; list-style: none; }
.comment-body {
  display: flex; gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--my-line);
}
.my-comments > .comment-list > .comment:first-child > .comment-body { border-top: 0; padding-top: 0; }
.comment-author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.comment-content { flex: 1; min-width: 0; }
.comment-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--my-muted);
  margin-bottom: 5px;
}
.comment-meta .fn { font-style: normal; font-weight: 600; color: var(--my-ink); font-size: 13px; }
.comment-content p { font-size: 13.5px; line-height: 1.75; margin: 0 0 6px; color: var(--my-ink-soft); }
.comment-reply-link { font-size: 11.5px; color: var(--my-muted); }
.comment-reply-link:hover { color: var(--my-brand); }
.comment-respond { margin-top: 20px; }
.comment-reply-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }

/* ==========================================================================
   9. Forum
   ========================================================================== */
.my-forum-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 14px; padding-bottom: 20px; margin-bottom: 20px;
  border-bottom: 1px solid var(--my-line);
}
.my-forum-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--my-card);
  border: 1px solid var(--my-line);
  border-radius: var(--my-radius);
  padding: 16px 10px;
  margin-bottom: 18px;
  text-align: center;
}
.my-forum-stats div + div { border-left: 1px solid var(--my-line); }
.my-forum-stats b { display: block; font-family: var(--my-serif); font-size: 21px; line-height: 1.15; }
.my-forum-stats small { font-size: 11.5px; color: var(--my-muted); }

.my-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.my-board {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px;
  background: var(--my-card);
  border: 1px solid var(--my-line);
  border-radius: var(--my-radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.my-board:hover { border-color: rgba(232, 114, 42, 0.35); transform: translateX(2px); color: inherit; }
.my-board__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--my-brand-soft);
  color: var(--my-brand);
}
.my-board__body { flex: 1; min-width: 0; }
.my-board__body h3 { font-size: 15px; font-family: var(--my-sans); font-weight: 600; }
.my-board__body p { font-size: 12.5px; color: var(--my-muted); margin: 2px 0 0; }
.my-board__count { flex-shrink: 0; text-align: right; font-size: 11.5px; color: var(--my-muted); }
.my-board__count b { display: block; font-size: 14px; color: var(--my-ink); }

.my-thread {
  display: flex; gap: 13px;
  padding: 15px 18px;
  background: var(--my-card);
  border: 1px solid var(--my-line);
  border-radius: var(--my-radius);
  margin-bottom: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.my-thread:hover { border-color: rgba(232, 114, 42, 0.3); box-shadow: var(--my-shadow-sm); color: inherit; }
.my-thread__avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.my-thread__body { flex: 1; min-width: 0; }
.my-thread__flags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 5px; }
.my-flag {
  padding: 1px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
}
.my-flag--pin { background: var(--my-brand-soft); color: var(--my-brand); }
.my-flag--essence { background: var(--my-vip-soft); color: #9a7420; }
.my-thread__title {
  font-family: var(--my-sans);
  font-size: 14.5px; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.my-thread:hover .my-thread__title { color: var(--my-brand); }
.my-thread__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px; font-size: 11.5px; color: var(--my-muted); }
.my-thread__nums {
  display: flex; gap: 16px; align-items: center;
  flex-shrink: 0; font-size: 11px; color: var(--my-muted); text-align: center;
}
.my-thread__nums b { display: block; font-size: 13px; color: var(--my-ink); }

/* 论坛表单 */
.my-form-card {
  padding: 26px;
  background: var(--my-card);
  border: 1px solid var(--my-line);
  border-radius: 20px;
}
.my-field { margin-bottom: 18px; }
.my-field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 7px; }
.my-field input[type="text"],
.my-field input[type="email"],
.my-field input[type="password"],
.my-field input[type="url"],
.my-field select,
.my-field textarea {
  width: 100%;
  padding: 10px 13px;
  background: var(--my-paper);
  border: 1px solid var(--my-line);
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.my-field textarea { min-height: 150px; resize: vertical; line-height: 1.75; }
.my-field input:focus,
.my-field select:focus,
.my-field textarea:focus { border-color: rgba(232, 114, 42, 0.5); background: var(--my-card); }
.my-field small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--my-muted); }
.my-field--row { display: flex; gap: 14px; }
.my-field--row > div { flex: 1; }

/* 认证页 */
.my-auth {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
  max-width: 920px; margin: 40px auto;
}
.my-auth__intro h1 { font-size: 34px; line-height: 1.25; margin: 10px 0 16px; }
.my-auth__intro p { color: var(--my-muted); font-size: 14px; max-width: 340px; }
.my-auth__points { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.my-auth__points div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--my-muted); }
.my-auth__points div b { font-family: var(--my-serif); font-size: 17px; color: var(--my-ink); line-height: 1; }
.my-auth__points i {
  width: 28px; height: 28px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--my-brand-soft);
  color: var(--my-brand);
  font-style: normal; font-size: 13px;
}
.my-auth__card {
  padding: 30px;
  background: var(--my-card);
  border: 1px solid var(--my-line);
  border-radius: 20px;
  box-shadow: var(--my-shadow);
}
.my-auth__card h2 { font-size: 22px; margin-bottom: 6px; }
.my-auth__card > p { font-size: 13px; color: var(--my-muted); margin-bottom: 22px; }
.my-auth__card > p a { color: var(--my-brand); font-weight: 500; }
.my-auth__alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--my-line); text-align: center; }
.my-auth__alt small { color: var(--my-muted); font-size: 11.5px; }

/* ==========================================================================
   10. User Center
   ========================================================================== */
.my-profile {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  padding: 24px;
  background: var(--my-card);
  border: 1px solid var(--my-line);
  border-radius: 20px;
  margin-bottom: 22px;
}
.my-profile__avatar {
  width: 76px; height: 76px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid var(--my-card);
  box-shadow: var(--my-shadow-sm);
}
.my-profile__body { flex: 1; min-width: 200px; }
.my-profile__body h1 { font-size: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.my-profile__body p { font-size: 13px; color: var(--my-muted); margin: 4px 0 0; }
.my-profile__stats { display: flex; gap: 26px; }
.my-profile__stats div { text-align: center; }
.my-profile__stats b { display: block; font-family: var(--my-serif); font-size: 18px; line-height: 1; }
.my-profile__stats small { font-size: 11px; color: var(--my-muted); }

.my-tabs-nav { display: flex; gap: 4px; margin-bottom: 18px; flex-wrap: wrap; }
.my-tabs-nav a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--my-muted);
  background: var(--my-card);
  border: 1px solid var(--my-line);
}
.my-tabs-nav a:hover { color: var(--my-ink); }
.my-tabs-nav a.is-active { background: var(--my-ink); border-color: var(--my-ink); color: var(--my-paper); }

/* ==========================================================================
   11. VIP Page
   ========================================================================== */
.my-vip-hero {
  position: relative;
  padding: 56px 20px 76px;
  background: var(--my-ink);
  color: var(--my-paper);
  text-align: center;
  overflow: hidden;
}
.my-vip-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
}
.my-vip-hero::after {
  content: "";
  position: absolute; top: -120px; right: -60px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(213, 160, 60, 0.3), transparent 68%);
  filter: blur(40px);
}
.my-vip-hero > * { position: relative; }
.my-vip-hero__kicker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(240, 207, 139, 0.32);
  background: rgba(240, 207, 139, 0.09);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #f0cf8b;
}
.my-vip-hero h1 { color: var(--my-paper); font-size: 34px; margin: 20px 0 14px; line-height: 1.28; }
.my-vip-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #e9c37a, #f6dfa9, #dfae54);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.my-vip-hero p { color: rgba(251, 249, 246, 0.62); font-size: 13.5px; max-width: 460px; margin: 0 auto; }

.my-plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 900px; margin: -46px auto 0; position: relative; z-index: 2;
  padding: 0 20px;
}
.my-plan {
  display: flex; flex-direction: column;
  padding: 22px;
  background: var(--my-card);
  border: 1px solid var(--my-line);
  border-radius: 18px;
  box-shadow: var(--my-shadow-sm);
}
.my-plan--hot {
  border-color: rgba(232, 114, 42, 0.45);
  box-shadow: var(--my-shadow-lg);
  transform: translateY(-10px);
}
.my-plan__badge {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: #f5f2ec; color: var(--my-muted);
}
.my-plan--hot .my-plan__badge { background: var(--my-brand); color: #fff; }
.my-plan h3 { font-size: 17px; margin: 12px 0 8px; }
.my-plan__price { display: flex; align-items: baseline; gap: 3px; }
.my-plan__price b { font-family: var(--my-serif); font-size: 38px; line-height: 1; font-weight: 700; }
.my-plan__price i { font-style: normal; font-size: 14px; font-weight: 600; }
.my-plan__price small { font-size: 12px; color: var(--my-muted); }
.my-plan__origin { font-size: 11.5px; color: var(--my-muted); text-decoration: line-through; margin-top: 3px; }
.my-plan ul { flex: 1; margin: 18px 0; display: flex; flex-direction: column; gap: 9px; }
.my-plan ul li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--my-ink-soft); }
.my-plan ul li::before {
  content: "✓";
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 3px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--my-brand-soft);
  color: var(--my-brand);
  font-size: 9px; font-weight: 700;
}

.my-perks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  max-width: 900px; margin: 20px auto 0;
}
.my-perk {
  padding: 18px;
  background: var(--my-card);
  border: 1px solid var(--my-line);
  border-radius: var(--my-radius);
}
.my-perk i {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--my-vip-soft);
  color: #a17b28;
  font-style: normal; font-size: 16px;
}
.my-perk h3 { font-size: 14px; font-family: var(--my-sans); font-weight: 600; margin: 12px 0 6px; }
.my-perk p { font-size: 12.5px; color: var(--my-muted); margin: 0; line-height: 1.65; }

/* 提示条 */
.my-notice {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  background: var(--my-brand-soft);
  border: 1px solid rgba(232, 114, 42, 0.25);
  color: #a8521c;
}
.my-notice--ok { background: rgba(47, 158, 110, 0.08); border-color: rgba(47, 158, 110, 0.28); color: #227a53; }
.my-notice--err { background: rgba(208, 70, 58, 0.07); border-color: rgba(208, 70, 58, 0.28); color: #a53026; }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.my-footer {
  margin-top: 50px;
  padding: 36px 0 26px;
  background: var(--my-card);
  border-top: 1px solid var(--my-line);
}
.my-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
}
.my-footer h4 { font-size: 12px; font-family: var(--my-sans); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 13px; }
.my-footer p { font-size: 13px; color: var(--my-muted); max-width: 300px; margin: 12px 0 0; }
.my-footer ul li { margin-bottom: 9px; }
.my-footer ul a { font-size: 13px; color: var(--my-muted); }
.my-footer ul a:hover { color: var(--my-brand); }
.my-footer__bottom {
  margin-top: 30px; padding-top: 18px;
  border-top: 1px solid var(--my-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 12px; color: var(--my-muted);
}

/* ==========================================================================
   13. WordPress Core Alignment
   ========================================================================== */
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { display: block; margin: 16px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12.5px; color: var(--my-muted); text-align: center; margin-top: 6px; }
.sticky { display: block; }
.bypostauthor { display: block; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery-item { margin: 0; }

/* ==========================================================================
   14. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .my-layout, .my-layout--single { grid-template-columns: minmax(0, 1fr); }
  .my-sidebar { flex-direction: row; flex-wrap: wrap; }
  .my-sidebar > * { flex: 1 1 260px; }
  .my-auth { grid-template-columns: 1fr; gap: 28px; }
  .my-auth__intro { display: none; }
  .my-plans { grid-template-columns: 1fr; max-width: 420px; }
  .my-plan--hot { transform: none; }
  .my-perks { grid-template-columns: 1fr 1fr; max-width: 620px; }
  .my-nav { display: none; }
}

@media (max-width: 720px) {
  .my-wrap { padding: 0 15px; }
  .my-header__inner { height: 58px; gap: 10px; }
  .my-logo__text { display: none; }
  .my-search__box { width: 150px; }
  .my-search__box:focus-within { width: 170px; }
  .my-channels { display: none; }
  .my-page-head h1 { font-size: 23px; }
  .my-hero { min-height: 260px; padding: 20px; }
  .my-hero h2 { font-size: 21px; }
  .my-grid-2 { grid-template-columns: 1fr; }
  .my-article { padding: 20px 17px; }
  .my-article__title { font-size: 22px; }
  .my-content { font-size: 15.5px; }
  .my-comments { padding: 20px 17px; }
  .my-list { padding: 2px 14px; }
  .my-list__date { display: none; }
  .my-profile { padding: 18px; }
  .my-profile__avatar { width: 60px; height: 60px; border-radius: 15px; }
  .my-profile__stats { gap: 18px; width: 100%; }
  .my-vip-hero { padding: 40px 15px 70px; }
  .my-vip-hero h1 { font-size: 25px; }
  .my-perks { grid-template-columns: 1fr; }
  .my-boards { grid-template-columns: 1fr; }
  .my-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .my-footer__grid > div:first-child { grid-column: 1 / -1; }
  .my-thread__nums { display: none; }
  .my-auth__card { padding: 22px 18px; }
  .my-field--row { flex-direction: column; gap: 0; }
}

/* ==========================================================================
   15. Toast / Loading / 辅助
   ========================================================================== */
.my-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 9999;
  transform: translate(-50%, 14px);
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(35, 32, 28, 0.94);
  color: #fbf9f6;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(35, 32, 28, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
  max-width: 82vw;
  text-align: center;
}
.my-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.my-toast.is-err { background: rgba(165, 48, 38, 0.95); }

.my-btn.is-loading { opacity: 0.62; pointer-events: none; }
.my-btn.is-loading::after {
  content: "";
  display: inline-block;
  width: 11px; height: 11px;
  margin-left: 7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -1px;
  animation: my-spin 0.6s linear infinite;
}
@keyframes my-spin { to { transform: rotate(360deg); } }

.my-action.is-loading { opacity: 0.6; pointer-events: none; }

/* 表单里的 select 箭头 */
.my-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8377' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}

/* 锁定区按钮间距 */
.my-locked__box .my-btn + .my-btn { margin-top: 8px; }

/* 正文里的 details / summary */
.my-content details { margin: 16px 0; }
.my-content summary { cursor: pointer; font-weight: 600; }

/* 头像上传 */
.my-avatar-upload {
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  border: 1px dashed var(--my-line);
  border-radius: 12px;
  background: var(--my-paper);
}
.my-avatar-upload img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.my-avatar-upload label { font-size: 12.5px; cursor: pointer; color: var(--my-brand); font-weight: 600; }
.my-avatar-upload input[type="file"] { display: none; }

/* 打印 */
@media print {
  .my-header, .my-footer, .my-sidebar, .my-actions, .my-channels, .my-comments { display: none !important; }
  .my-article { box-shadow: none; border: 0; }
}
