/*!
 * ruankorr 主题样式（自研，参考 ruankor.com / Zibll 设计语言重写）
 * 结构：变量 → 基础 → 通用组件 → 导航 → 首页 → 归档 → 详情 → 页面 → 页脚 → 响应式
 */

/* ============ 1. 设计变量 ============ */
:root {
  --main-color: #3a6ff7;
  --main-color-hover: #2f61e0;
  --main-color-light: #eaf1ff;
  --red: #ff4c4c;
  --red-dark: #e63c3c;
  --orange: #ff7a45;
  --yellow: #f7dc6f;
  --teal: #1abc9c;
  --green: #2ecc71;
  --purple: #8b5cf6;
  --pink: #ff7aa2;
  --vip-gradient: linear-gradient(135deg, #7b6cf6 0%, #a97af7 45%, #f78fb3 100%);
  --vip-gradient-2: linear-gradient(135deg, #3a2c6e 0%, #7b4ea8 55%, #e07a9f 100%);
  --stats-gradient: linear-gradient(90deg, #f9a8c9 0%, #fdc39e 55%, #ffab7b 100%);

  --bg-body: #f5f6f8;
  --bg-card: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-soft-2: #f2f4f7;
  --border: #eef0f4;
  --border-2: #e4e7ed;
  --text: #28303f;
  --text-2: #5c6470;
  --text-3: #8a8f99;

  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 14px;
  --shadow: 0 4px 16px rgba(20, 30, 60, 0.06);
  --shadow-hover: 0 10px 28px rgba(20, 30, 60, 0.12);
  --shadow-header: 0 2px 12px rgba(20, 30, 60, 0.06);

  --header-h: 60px;
  --container: 1200px;
  --container-wide: 1400px;
  --fs: 14px;
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ============ 2. 基础 ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-body);
  overflow-x: hidden;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}
body.rk-sign-page { background: #eef3fb; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--text); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--main-color); }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.35; color: var(--text); }
input, select, textarea, button { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
code { font-family: Consolas, Monaco, monospace; background: var(--bg-soft-2); padding: 1px 6px; border-radius: 4px; color: var(--red-dark); font-size: 12px; }
::selection { background: rgba(58, 111, 247, 0.18); }

.rk-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.135em; flex: none; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d3d8e0; border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 3. 通用布局/组件 ============ */
.rk-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.rk-wide-container { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 20px; }
.rk-body { min-height: 60vh; }
.rk-main { display: block; }

.rk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; transition: all 0.18s; cursor: pointer; text-align: center;
}
.rk-btn .rk-icon { width: 15px; height: 15px; }
.rk-btn-primary { background: var(--main-color); color: #fff; border-color: var(--main-color); }
.rk-btn-primary:hover { background: var(--main-color-hover); border-color: var(--main-color-hover); color: #fff; box-shadow: 0 6px 16px rgba(58, 111, 247, 0.3); }
.rk-btn-ghost { background: #fff; color: var(--text-2); border-color: var(--border-2); }
.rk-btn-ghost:hover { color: var(--main-color); border-color: var(--main-color); background: var(--main-color-light); }
.rk-btn-soft { background: var(--bg-soft); color: var(--text-2); border-color: transparent; }
.rk-btn-soft:hover { color: var(--main-color); background: var(--main-color-light); }
.rk-btn-vip { background: var(--vip-gradient); color: #fff; border: none; box-shadow: 0 6px 16px rgba(160, 100, 240, 0.28); }
.rk-btn-vip:hover { color: #fff; filter: brightness(1.05); }
.rk-btn-red { background: var(--red); color: #fff; }
.rk-btn-red:hover { color: #fff; background: var(--red-dark); }
.rk-btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.rk-btn-lg { height: 44px; padding: 0 28px; font-size: 16px; }
.rk-btn-block { width: 100%; display: flex; }

.rk-chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 5px; font-size: 12px; line-height: 1;
  white-space: nowrap;
}
.rk-chip-label { opacity: 0.9; }
.rk-chip-price { background: #fff6dd; color: #b78100; font-weight: 500; }
.rk-chip-price em { font-style: normal; color: var(--red); font-weight: 600; }
.rk-chip-free { background: #e7f9ef; color: #1f9d55; }
.rk-chip-vip { background: linear-gradient(90deg, #f3e8ff, #fce7f3); color: #8b5cf6; }
.rk-chip-cat { background: #f2f6ff; color: var(--main-color); border: 1px solid #dbe6ff; }
.rk-chip-cat:hover { background: var(--main-color); border-color: var(--main-color); color: #fff; }

.rk-avatar { border-radius: 50%; width: 32px; height: 32px; object-fit: cover; }
.rk-avatar-xs { width: 20px; height: 20px; }

.rk-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.rk-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rk-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rk-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rk-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--bg-card); border-radius: var(--radius); padding: 60px 20px; color: var(--text-3);
  box-shadow: var(--shadow);
}
.rk-empty .rk-icon { width: 44px; height: 44px; opacity: 0.4; }
.rk-empty p { margin: 0; }
.rk-empty-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* 提示条 */
.rk-flash { max-width: var(--container-wide); margin: 14px auto 0; padding: 10px 16px; border-radius: var(--radius-sm); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.rk-flash .rk-icon { width: 16px; height: 16px; flex: none; }
.rk-flash p { margin: 0; }
.rk-flash-info { background: #eef4ff; border: 1px solid #d8e5ff; color: #2f5ec4; }
.rk-flash-success { background: #e9fbf1; border: 1px solid #c6f2da; color: #17864a; }
.rk-flash-error { background: #fff0f0; border: 1px solid #ffd3d3; color: #c62828; }
.rk-flash-warning, .rk-flash-pay { background: #fff7e8; border: 1px solid #ffe2b0; color: #a56900; }

/* 面包屑 */
.rk-breadcrumb { padding: 12px 2px 14px; }
.rk-breadcrumb ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.rk-breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.rk-breadcrumb li + li::before { content: "/"; color: #cdd3dc; }
.rk-breadcrumb a { color: var(--text-3); }
.rk-breadcrumb a:hover { color: var(--main-color); }
.rk-breadcrumb li:last-child span { color: var(--text-2); }

/* 分页 */
.rk-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 26px 0 6px; }
.rk-page-list { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rk-page-item a, .rk-page-item > span {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px;
  background: var(--bg-card); color: var(--text-2); font-size: 13px; box-shadow: var(--shadow);
  transition: all 0.18s;
}
.rk-page-item a:hover { color: var(--main-color); }
.rk-page-item.is-current a, .rk-page-item.is-current > span {
  background: linear-gradient(135deg, #ff7ac2, #8b7bf7); color: #fff; font-weight: 600;
}
.rk-page-item.next a { padding: 0 14px; }
.rk-page-item.is-dots > span { box-shadow: none; background: transparent; color: var(--text-3); }
.rk-page-jump { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-card); box-shadow: var(--shadow); border-radius: 8px; padding: 0 8px 0 12px; height: 34px; font-size: 13px; color: var(--text-3); }
.rk-page-input { width: 46px; height: 24px; border: 1px solid var(--border-2); border-radius: 5px; text-align: center; font-size: 12px; background: var(--bg-soft); }
.rk-page-go { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; color: var(--text-2); }
.rk-page-go:hover { background: var(--main-color-light); color: var(--main-color); }

/* 搜索表单（页面内） */
.rk-search-form { display: flex; align-items: center; gap: 10px; max-width: 620px; margin: 0 auto; }
.rk-search-input {
  flex: 1; height: 46px; border-radius: 999px; border: 1px solid var(--border-2);
  background: var(--bg-card); padding: 0 20px; outline: none; font-size: 14px;
}
.rk-search-input:focus { border-color: var(--main-color); box-shadow: 0 0 0 3px rgba(58, 111, 247, 0.12); }
.rk-search-submit { width: 46px; height: 46px; border-radius: 50%; background: var(--main-color); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.rk-search-submit .rk-icon { width: 20px; height: 20px; }

/* ============ 4. 顶部导航 ============ */
.rk-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-header);
  transition: box-shadow 0.2s;
}
/* WordPress 管理工具栏（登录状态）下移固定头部，避免被工具栏遮挡 */
body.admin-bar .rk-header { top: 32px; }
body.admin-bar .rk-mobile-search-form { top: 92px; }
@media screen and (max-width: 782px) {
  body.admin-bar .rk-header { top: 46px; }
  body.admin-bar .rk-mobile-search-form { top: 106px; }
}
.rk-header-inner { display: flex; align-items: center; height: var(--header-h); gap: 16px; }
.rk-logo { display: inline-flex; align-items: center; flex: none; }
.rk-logo img { height: 38px; width: auto; display: block; }
.rk-hamburger { display: none; width: 38px; height: 38px; border-radius: 8px; align-items: center; justify-content: center; color: var(--text); }
.rk-hamburger .rk-icon { width: 22px; height: 22px; }
.rk-hamburger:hover { background: var(--bg-soft-2); }

.rk-nav { flex: 0 1 auto; min-width: 0; }
.rk-nav-list { display: flex; align-items: center; gap: 8px; height: var(--header-h); flex-wrap: nowrap; }
.rk-nav-item { position: relative; height: 100%; display: flex; align-items: center; flex: 0 0 auto; }
.rk-nav-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 13px;
  border-radius: 6px; font-size: 14px; font-weight: 500; color: #fff;
  white-space: nowrap; flex: 0 0 auto;
  transition: all 0.18s; position: relative;
}
.rk-nav-btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.06); }
.rk-nav-red { background: linear-gradient(135deg, #ff5c5c, #e63c3c); }
.rk-nav-dark { background: linear-gradient(135deg, #4c5668, #2f3745); }
.rk-nav-teal { background: linear-gradient(135deg, #22c8a8, #12a58c); }
.rk-nav-blue { background: linear-gradient(135deg, #4b8bff, #2f6ae0); }
.rk-nav-yellow { background: linear-gradient(135deg, #f7dc6f, #ecc94b); color: #4a3b00; }
.rk-nav-purple { background: linear-gradient(135deg, #9d7bf7, #7b5ce0); }
.rk-nav-pink { background: linear-gradient(135deg, #ff8bb3, #f0649a); }
.rk-nav-plain { background: transparent; color: var(--text-2); font-weight: 400; padding: 0 8px; }
.rk-nav-plain:hover { color: var(--main-color); background: var(--main-color-light); }
.rk-nav-badge {
  position: absolute; top: -5px; right: -12px; z-index: 2;
  background: var(--red); color: #fff; font-size: 9px; line-height: 1;
  padding: 2px 4px; border-radius: 4px; font-weight: 500;
}
.rk-nav-caret { width: 0; height: 0; border: 4px solid transparent; border-top-color: rgba(255, 255, 255, 0.85); margin-top: 3px; }
.rk-nav-plain .rk-nav-caret { border-top-color: #b6bcc7; }

.rk-nav-sub {
  position: absolute; top: calc(100% - 8px); left: 0; min-width: 168px;
  background: var(--bg-card); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(20, 30, 60, 0.14);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.2s; z-index: 20; border: 1px solid var(--border);
}
.rk-nav-item:hover > .rk-nav-sub, .rk-nav-item:focus-within > .rk-nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.rk-nav-sub-item > a { display: block; padding: 8px 12px; border-radius: 7px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.rk-nav-sub-item > a:hover { background: var(--main-color-light); color: var(--main-color); }

.rk-nav-more-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; width: 30px; height: 30px; padding: 0 8px; border-radius: 6px; color: var(--text-3); }
.rk-nav-more-btn span { display: block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.rk-nav-more-btn:hover { background: var(--bg-soft-2); color: var(--main-color); }
.rk-nav-more { position: relative; flex: 0 0 auto; }
.rk-nav-more-sub { left: auto; right: 0; min-width: 180px; }
.rk-nav-more.is-open > .rk-nav-more-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.rk-nav-more-item > a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 7px; font-size: 13.5px; color: var(--text-2); }
.rk-nav-more-item > a:hover { background: var(--main-color-light); color: var(--main-color); }
.rk-nav-more-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd2dc; flex: none; }
.rk-nav-more-dot.rk-nav-red { background: var(--red); }
.rk-nav-more-dot.rk-nav-dark { background: #4c5668; }
.rk-nav-more-dot.rk-nav-teal { background: var(--teal); }
.rk-nav-more-dot.rk-nav-blue { background: var(--main-color); }
.rk-nav-more-dot.rk-nav-yellow { background: #ecc94b; }
.rk-nav-more-dot.rk-nav-purple { background: var(--purple); }
.rk-nav-more-dot.rk-nav-pink { background: var(--pink); }
.rk-nav-more-sub .rk-nav-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 4px 20px; }

.rk-header-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.rk-header-search {
  display: flex; align-items: center; height: 34px; padding: 0 4px 0 14px;
  background: var(--bg-soft-2); border-radius: 999px; border: 1px solid transparent;
  transition: all 0.18s;
}
.rk-header-search:focus-within { background: var(--bg-card); border-color: var(--main-color); box-shadow: 0 0 0 3px rgba(58, 111, 247, 0.1); }
.rk-header-search input { width: 168px; height: 100%; border: none; outline: none; background: transparent; font-size: 13px; color: var(--text); }
.rk-header-search input::placeholder { color: #a8aeb9; }
.rk-header-search button { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); }
.rk-header-search button:hover { color: var(--main-color); }
.rk-header-search .rk-icon { width: 16px; height: 16px; }
.rk-header-auth { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); }
.rk-auth-link { color: var(--text-2); padding: 0 2px; }
.rk-auth-link:hover { color: var(--main-color); }
.rk-auth-sep { color: #cdd3dc; font-size: 11px; }
.rk-auth-user { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); max-width: 130px; }
.rk-auth-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-auth-user .rk-avatar { width: 26px; height: 26px; }
.rk-icon-btn { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.rk-icon-btn:hover { background: var(--bg-soft-2); color: var(--main-color); }
.rk-icon-btn .rk-icon { width: 17px; height: 17px; }
.rk-icon-sun { display: none; }
.rk-vip-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 13px;
  border-radius: 999px; background: var(--vip-gradient); color: #fff; font-size: 13px; font-weight: 500;
  box-shadow: 0 3px 12px rgba(160, 100, 240, 0.28); transition: all 0.18s;
}
.rk-vip-btn:hover { color: #fff; filter: brightness(1.05); transform: translateY(-1px); }
.rk-vip-btn .rk-icon { width: 15px; height: 15px; }
.rk-mobile-search-btn, .rk-mobile-search-form { display: none; }

/* 公告条 */
.rk-announce { background: linear-gradient(90deg, #fff1f1, #fff8e6); border-bottom: 1px solid #ffe8cf; font-size: 13px; color: #9a5b00; overflow: hidden; max-width: 100%; }
.rk-announce .rk-wide-container { display: flex; align-items: center; gap: 8px; height: 38px; min-width: 0; max-width: 100%; }
.rk-announce-text { flex: 1 1 0%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.rk-announce-icon .rk-icon { color: var(--orange); }
.rk-announce-close { color: #b98a3c; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }

/* ============ 5. 移动端抽屉 ============ */
.rk-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 82vw; z-index: 1000;
  background: var(--bg-card); transform: translateX(-102%); transition: transform 0.28s ease;
  display: flex; flex-direction: column; box-shadow: 12px 0 40px rgba(10, 20, 40, 0.18);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
body.rk-drawer-open { overflow: hidden; }
body.rk-drawer-open .rk-drawer { transform: translateX(0); }
.rk-drawer-mask { position: fixed; inset: 0; background: rgba(15, 20, 30, 0.45); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.28s; }
body.rk-drawer-open .rk-drawer-mask { opacity: 1; visibility: visible; }
.rk-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.rk-drawer-head .rk-logo img { height: 32px; }
.rk-drawer-close { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); }
.rk-drawer-close:hover { background: var(--bg-soft-2); }
.rk-drawer-search { display: flex; margin: 14px 16px 4px; background: var(--bg-soft-2); border-radius: 999px; padding: 0 6px 0 14px; }
.rk-drawer-search input { flex: 1; border: none; background: transparent; outline: none; height: 38px; font-size: 13px; }
.rk-drawer-search button { width: 30px; color: var(--text-3); }
.rk-drawer-user { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.rk-drawer-user-info { display: flex; align-items: center; gap: 10px; }
.rk-drawer-user-info span { display: flex; flex-direction: column; font-size: 13px; }
.rk-drawer-user-info em { font-style: normal; color: var(--red); font-size: 12px; }
.rk-drawer-guest { display: flex; gap: 10px; }
.rk-drawer-guest .rk-btn { flex: 1; height: 36px; }
.rk-drawer-nav { padding: 6px 10px 20px; }
.rk-drawer-item { border-bottom: 1px dashed var(--border); }
.rk-drawer-row { display: flex; align-items: center; justify-content: space-between; }
.rk-drawer-link { display: flex; align-items: center; gap: 10px; flex: 1; padding: 12px 8px; font-size: 14px; }
.rk-drawer-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd2dc; }
.rk-drawer-dot.rk-nav-red { background: var(--red); }
.rk-drawer-dot.rk-nav-dark { background: #4c5668; }
.rk-drawer-dot.rk-nav-teal { background: var(--teal); }
.rk-drawer-dot.rk-nav-blue { background: var(--main-color); }
.rk-drawer-dot.rk-nav-yellow { background: #ecc94b; }
.rk-drawer-dot.rk-nav-purple { background: var(--purple); }
.rk-drawer-dot.rk-nav-pink { background: var(--pink); }
.rk-drawer-expand { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); border-radius: 8px; transition: transform 0.2s; }
.rk-drawer-item.is-open .rk-drawer-expand { transform: rotate(180deg); }
.rk-drawer-sub { display: none; padding: 0 8px 10px 26px; }
.rk-drawer-item.is-open .rk-drawer-sub { display: block; }
.rk-drawer-sub li a { display: block; padding: 8px 0; font-size: 13px; color: var(--text-2); }
.rk-drawer-sub li a:hover { color: var(--main-color); }
.rk-drawer-foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-2); }
.rk-drawer-foot .rk-drawer-vip { display: flex; align-items: center; gap: 6px; background: var(--vip-gradient); color: #fff; border-radius: 8px; padding: 10px 12px; justify-content: center; font-weight: 500; }
.rk-drawer-foot em { font-style: normal; color: var(--text-3); font-size: 12px; padding-top: 4px; }

/* ============ 6. 首页 Hero ============ */
.rk-hero {
  position: relative; margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h);
  min-height: 560px; overflow: hidden; display: flex; align-items: center;
}
.rk-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.rk-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 45%, rgba(245, 246, 248, 0.9) 100%); }
.rk-hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 40px; padding-bottom: 90px; }
.rk-hero-title {
  font-size: 48px; font-weight: 800; letter-spacing: 4px; margin: 0;
  color: #fff; -webkit-text-fill-color: #fff;
  text-shadow: 0 0 16px rgba(96, 190, 255, 0.9), 0 0 40px rgba(255, 140, 200, 0.65),
    0 3px 10px rgba(20, 50, 110, 0.35);
}
.rk-hero-sub { margin: 12px 0 0; font-size: 22px; font-weight: 800; font-style: italic; letter-spacing: 4px;
  color: #fff; -webkit-text-fill-color: #fff;
  text-shadow: 0 0 14px rgba(255, 120, 180, 0.9), 0 0 30px rgba(140, 120, 255, 0.6),
    0 2px 8px rgba(20, 50, 110, 0.35); }
.rk-hero-search {
  display: flex; align-items: center; gap: 0; width: min(760px, 92%); height: 56px;
  background: #fff; border-radius: 999px; margin-top: 26px; padding: 0 6px 0 6px;
  box-shadow: 0 12px 34px rgba(40, 60, 120, 0.16);
}
.rk-hero-cat { position: relative; display: inline-flex; align-items: center; height: 100%; padding: 0 10px 0 16px; border-right: 1px solid var(--border); flex: none; }
.rk-hero-cat select { appearance: none; -webkit-appearance: none; border: none; background: transparent; outline: none; font-size: 14px; color: var(--text-2); padding-right: 18px; cursor: pointer; height: 100%; }
.rk-hero-cat .rk-icon { position: absolute; right: 6px; width: 14px; height: 14px; color: var(--text-3); pointer-events: none; }
.rk-hero-search > input[type="search"] { flex: 1; height: 100%; border: none; outline: none; background: transparent; padding: 0 16px; font-size: 14.5px; color: var(--text); min-width: 0; }
.rk-hero-search > input::placeholder { color: #a8aeb9; }
.rk-hero-search-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--main-color); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; transition: all 0.18s; }
.rk-hero-search-btn:hover { background: var(--main-color-hover); transform: scale(1.04); }
.rk-hero-search-btn .rk-icon { width: 20px; height: 20px; }
.rk-hero-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; max-width: 800px; }
.rk-hero-tags-label { font-size: 12px; color: rgba(40, 50, 70, 0.62); margin-right: 2px; }
.rk-hero-tags a {
  font-size: 12.5px; color: rgba(35, 45, 65, 0.8); background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 999px; padding: 3px 11px;
  transition: all 0.18s; backdrop-filter: blur(4px);
}
.rk-hero-tags a:hover { background: #fff; color: var(--main-color); }

.rk-hero-vip {
  position: absolute; right: 28px; top: 96px; z-index: 3; width: 208px;
  background: linear-gradient(160deg, #232c4d 0%, #1a2b52 55%, #31215a 100%);
  border-radius: 16px; padding: 14px; color: #fff; text-align: center;
  box-shadow: 0 16px 40px rgba(20, 30, 80, 0.28); border: 1px solid rgba(255, 255, 255, 0.12);
}
.rk-hero-vip:hover { color: #fff; }
.rk-hero-vip-title { display: block; font-size: 13px; color: #ffd9a1; }
.rk-hero-vip-price { display: block; font-size: 26px; line-height: 1.2; margin: 2px 0; color: #ffcf7a; }
.rk-hero-vip-desc { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.65); }
.rk-hero-vip-qr { display: inline-flex; margin: 10px 0 8px; padding: 7px; background: #fff; border-radius: 10px; }
.rk-hero-vip-qr .rk-qr { display: block; width: 104px; height: 104px; }
.rk-hero-vip-link { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: #9fc4ff; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 9px; }
.rk-hero-vip-link .rk-icon { width: 13px; height: 13px; }
.rk-qr { display: block; }

/* ============ 7. 快捷入口 / 快捷链接 / 广告 ============ */
.rk-quick-entries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: -56px; position: relative; z-index: 3; }
.rk-quick-entry {
  display: flex; align-items: center; gap: 12px; background: var(--bg-card); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); transition: all 0.2s; min-width: 0;
}
.rk-quick-entry:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.rk-quick-icon { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.rk-quick-icon .rk-icon { width: 22px; height: 22px; }
.rk-quick-red { background: linear-gradient(135deg, #ff8f8f, #f0554e); }
.rk-quick-blue { background: linear-gradient(135deg, #7fb6ff, #3f7cf0); }
.rk-quick-pink { background: linear-gradient(135deg, #ff9db8, #f4628f); }
.rk-quick-teal { background: linear-gradient(135deg, #5fd9c0, #1abc9c); }
.rk-quick-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rk-quick-text strong { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.rk-quick-text span { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-quick-badge { font-style: normal; font-size: 9px; background: var(--red); color: #fff; border-radius: 4px; padding: 1px 4px; flex: none; }

.rk-quick-links { margin-top: 16px; }
.rk-quick-links-inner {
  display: grid; grid-template-columns: repeat(8, 1fr); background: var(--bg-card);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.rk-quick-links-inner a {
  text-align: center; font-size: 13px; color: var(--text-2); padding: 12px 6px;
  border-right: 1px dashed var(--border-2); transition: all 0.18s;
}
.rk-quick-links-inner a:last-child { border-right: none; }
.rk-quick-links-inner a:hover { color: var(--main-color); background: var(--main-color-light); }


/* ============ 8. 首页分类区块 ============ */
.rk-home-section { margin-top: 24px; }
.rk-section-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.rk-section-icon { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #3ecf8e, #23a566); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rk-section-icon .rk-icon { width: 15px; height: 15px; }
.rk-section-title { font-size: 19px; font-weight: 700; margin: 0; }
.rk-section-title em { font-style: normal; color: var(--red); font-size: 14px; margin-left: 4px; }
.rk-section-desc { font-size: 12.5px; color: var(--text-3); }
.rk-section-more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--text-3); }
.rk-section-more:hover { color: var(--main-color); }
.rk-section-toolbar { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border-radius: var(--radius) var(--radius) 0 0; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.rk-section-tabs { display: flex; align-items: center; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.rk-section-tabs::-webkit-scrollbar { display: none; }
.rk-tab { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 6px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.rk-tab:hover { color: var(--main-color); }
.rk-tab.is-active { background: var(--red); color: #fff; font-weight: 500; }
.rk-section-sort { display: flex; align-items: center; gap: 10px; flex: none; font-size: 13px; }
.rk-sort-label { color: var(--text-3); }
.rk-sort { color: var(--text-2); }
.rk-sort:hover { color: var(--main-color); }
.rk-sort.is-active { color: var(--main-color); font-weight: 600; }
.rk-home-section > .rk-grid { margin-top: 14px; }
.rk-pagination-simple { margin-top: 18px; }

/* ============ 9. 文章卡片 ============ */
.rk-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; min-width: 0;
}
.rk-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.rk-card-cover { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft-2); }
.rk-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; display: block; font-size: 0; color: transparent; }
.rk-card:hover .rk-card-cover img { transform: scale(1.045); }
.rk-badge-sticky {
  position: absolute; left: 8px; top: 8px; z-index: 2; background: var(--red); color: #fff;
  font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 4px; box-shadow: 0 2px 6px rgba(255, 76, 76, 0.4);
}
.rk-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rk-card-title { font-size: 14.5px; font-weight: 600; line-height: 1.45; margin: 0; }
.rk-card-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); }
.rk-card-title a:hover { color: var(--main-color); }
.rk-card-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rk-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; font-size: 12px; color: var(--text-3); }
.rk-card-meta-author { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.rk-card-meta-author em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70px; }
.rk-card-meta-stats { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.rk-card-meta-stats span { display: inline-flex; align-items: center; gap: 3px; }
.rk-card-meta-stats .rk-icon { width: 13px; height: 13px; }

/* ============ 10. 分类页 Hero / 筛选 / 统计条 ============ */
.rk-page-hero { position: relative; overflow: hidden; background-size: cover; background-position: center; min-height: 250px; display: flex; align-items: flex-end; margin-top: -1px; }
.rk-page-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 18, 34, 0.18) 0%, rgba(12, 18, 34, 0.62) 100%); }
.rk-page-hero-word {
  position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center;
  font-size: 132px; font-weight: 900; letter-spacing: 6px; color: rgba(255, 255, 255, 0.07);
  line-height: 1; padding-top: 16px; white-space: nowrap; overflow: hidden; user-select: none;
}
.rk-page-hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; padding-bottom: 26px; color: #fff; flex-wrap: wrap; }
.rk-page-hero-icon { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3); display: inline-flex; align-items: center; justify-content: center; flex: none; backdrop-filter: blur(6px); }
.rk-page-hero-icon .rk-icon { width: 26px; height: 26px; color: #fff; }
.rk-page-hero-text { min-width: 0; }
.rk-page-hero-title { font-size: 30px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rk-page-hero-badge { font-style: normal; font-size: 12px; font-weight: 400; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; padding: 3px 10px; }
.rk-page-hero-desc { margin: 6px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.82); max-width: 860px; }
.rk-page-hero-extra { margin-left: auto; }

.rk-filter-bar { margin-top: 16px; background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 16px; }
.rk-filter-row { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; font-size: 13px; }
.rk-filter-row + .rk-filter-row { border-top: 1px dashed var(--border); }
.rk-filter-label { flex: none; color: var(--text-3); }
.rk-filter-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; flex: 1; }
.rk-filter-links a { color: var(--text-2); }
.rk-filter-links a:hover { color: var(--main-color); }
.rk-filter-links a.is-active { color: var(--main-color); font-weight: 600; }
.rk-filter-subcats { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rk-filter-sort { align-items: center; }
.rk-filter-sort .rk-filter-links { gap: 16px; }
.rk-cat-list { margin-top: 16px; }
.rk-archive-list { padding-top: 18px; }

.rk-stats-bar { margin-top: 26px; background: var(--stats-gradient); color: #fff; padding: 16px 0; }
.rk-stats-inner { display: flex; align-items: center; gap: 10px; }
.rk-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.rk-stat-icon .rk-icon { width: 26px; height: 26px; color: rgba(255, 255, 255, 0.92); }
.rk-stat strong { font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: 0.5px; text-shadow: 0 2px 10px rgba(150, 60, 40, 0.16); }
.rk-stat em { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, 0.92); }
.rk-stat-side { flex: 0.6; }
.rk-stat-side strong { font-size: 20px; }

/* ============ 11. 归档 / 搜索 ============ */
.rk-archive-head { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.rk-archive-title { font-size: 24px; }
.rk-archive-desc { margin: 6px 0 0; font-size: 13px; color: var(--text-3); }
.rk-archive-page, .rk-search-page { padding-top: 22px; padding-bottom: 10px; }
.rk-search-hero { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 24px; margin-bottom: 20px; text-align: center; }
.rk-search-title { font-size: 24px; }
.rk-search-title em { font-style: normal; color: var(--main-color); }
.rk-search-desc { color: var(--text-3); font-size: 13px; margin: 6px 0 16px; }
.rk-search-desc strong { color: var(--red); }
.rk-empty-search { margin-top: 18px; }

/* ============ 12. 详情页 ============ */
.rk-single { padding-top: 8px; }
.rk-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.rk-single-main { min-width: 0; }
.rk-single-side { min-width: 0; position: sticky; top: calc(var(--header-h) + 14px); }
.rk-article { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.rk-article-head { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.rk-article-title { font-size: 24px; line-height: 1.5; margin: 0 0 14px; }
.rk-article-byline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rk-article-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rk-article-author-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--border); padding: 3px; }
.rk-article-author-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rk-article-author-info strong { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.rk-article-author-info span { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-article-byline-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.rk-article-btns { display: flex; gap: 8px; }
.rk-article-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--text-3); }
.rk-article-meta span { display: inline-flex; align-items: center; gap: 3px; }
.rk-article-meta a { color: var(--text-3); }
.rk-article-meta .rk-icon { width: 14px; height: 14px; }
.rk-vip-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; padding: 2px 7px; border-radius: 999px; font-weight: 500; }
.rk-vip-badge .rk-icon { width: 12px; height: 12px; }
.rk-vip-1 { background: linear-gradient(90deg, #fff1d6, #ffe0b3); color: #b07a00; }
.rk-vip-2 { background: linear-gradient(90deg, #efe6ff, #fce7f6); color: #8b5cf6; }

/* 付费区 */
.rk-pay-box { display: flex; gap: 22px; margin: 20px 0; padding: 20px; border-radius: var(--radius); background: linear-gradient(135deg, #fbfcff, #f6f9ff); border: 1px solid #e8eeff; }
.rk-pay-thumb { position: relative; width: 380px; max-width: 44%; flex: none; border-radius: 8px; overflow: hidden; align-self: center; }
.rk-pay-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 10; }
.rk-pay-mark { position: absolute; left: 8px; top: 8px; background: var(--red); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 4px; }
.rk-pay-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rk-pay-title { font-size: 16px; line-height: 1.5; margin: 0 0 8px; }
.rk-pay-tip { font-size: 13px; color: var(--text-3); margin: 0 0 8px; }
.rk-pay-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rk-pay-price-main { font-size: 34px; font-weight: 800; color: var(--red); line-height: 1; display: inline-flex; align-items: baseline; gap: 2px; }
.rk-pay-price-main em { font-size: 13px; font-style: normal; font-weight: 500; margin-right: 2px; }
.rk-pay-sale { font-size: 11px; background: var(--red); color: #fff; border-radius: 4px; padding: 2px 6px; align-self: center; }
.rk-pay-price-old { font-size: 13px; color: var(--text-3); text-decoration: line-through; }
.rk-pay-label { font-size: 12px; background: #fff6dd; color: #b78100; padding: 2px 8px; border-radius: 4px; }
.rk-pay-vip-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rk-pay-vip-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: #b07a00; background: #fff9e8; border: 1px solid #ffe9b0; border-radius: 6px; padding: 4px 10px; white-space: nowrap; }
.rk-pay-vip-chip .rk-icon { width: 13px; height: 13px; }
.rk-pay-vip-chip.is-active { background: #f3ecff; border-color: #e0d2ff; color: #8b5cf6; }
.rk-pay-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rk-pay-hint { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); }
.rk-pay-actions { display: flex; align-items: center; gap: 10px; }
.rk-buy-form { display: inline-flex; margin: 0; }
.rk-buy-form .rk-btn { width: 100%; }

/* 下载区 */
.rk-download-box { margin: 20px 0; border: 1px solid #dbe9ff; background: #f6faff; border-radius: var(--radius); padding: 16px 18px; }
.rk-download-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed #cfe1ff; }
.rk-download-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--main-color); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rk-download-icon .rk-icon { width: 20px; height: 20px; }
.rk-download-head h3 { font-size: 16px; margin: 0 0 2px; }
.rk-download-head p { margin: 0; font-size: 12.5px; color: var(--text-3); }
.rk-download-head strong { color: var(--red); }
.rk-download-empty { display: flex; align-items: center; gap: 8px; padding: 16px 0 4px; color: var(--text-3); font-size: 13px; }
.rk-download-empty.rk-download-source { justify-content: space-between; flex-wrap: wrap; row-gap: 10px; }
.rk-download-empty.rk-download-source p { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.rk-download-empty.rk-download-source .rk-btn { flex: none; }

.rk-download-list { padding-top: 8px; }
.rk-download-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #dbe9ff; font-size: 13.5px; }
.rk-download-item:last-child { border-bottom: none; }
.rk-download-index { width: 22px; height: 22px; border-radius: 6px; background: #e3efff; color: var(--main-color); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rk-download-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-download-code { font-size: 12px; color: var(--text-3); flex: none; }
.rk-download-btn { flex: none; }

/* 正文 */
.rk-article-content { font-size: 15.5px; line-height: 1.9; color: #3a4250; padding: 8px 0 4px; overflow-wrap: break-word; }
.rk-article-content img { max-width: 100%; height: auto; display: block; margin: 14px auto; border-radius: 8px; }
.rk-article-content h2, .rk-article-content h3 { position: relative; padding-left: 14px; margin: 26px 0 12px; color: var(--text); }
.rk-article-content h2 { font-size: 19px; }
.rk-article-content h3 { font-size: 17px; }
.rk-article-content h2::before, .rk-article-content h3::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 18px; border-radius: 3px; background: linear-gradient(180deg, #ff7ab6, #8b7bf7); }
.rk-article-content p { margin: 0 0 14px; }
.rk-article-content ul, .rk-article-content ol { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.rk-article-content ol { list-style: decimal; }
.rk-article-content li { margin-bottom: 6px; }
.rk-article-content a { color: var(--main-color); text-decoration: underline; text-underline-offset: 3px; }
.rk-article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.rk-article-content th, .rk-article-content td { border: 1px solid var(--border-2); padding: 9px 12px; text-align: left; }
.rk-article-content th { background: var(--bg-soft); font-weight: 600; color: var(--text-2); }
.rk-article-content blockquote { margin: 14px 0; padding: 12px 16px; background: var(--bg-soft); border-left: 4px solid var(--main-color); border-radius: 0 8px 8px 0; color: var(--text-2); }
.rk-article-content pre { background: #1e2430; color: #d7e2f0; padding: 14px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
.rk-article-content iframe, .rk-article-content video { max-width: 100%; border-radius: 8px; }
.rk-article-content .rk-download-box { background: #f6faff; }

/* 文章底部 */
.rk-article-footer { padding-top: 18px; border-top: 1px solid var(--border); margin-top: 16px; }
.rk-article-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.rk-article-tags-label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-3); }
.rk-copyright { position: relative; background: var(--bg-soft); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; overflow: hidden; border: 1px solid var(--border); }
.rk-copyright-body { position: relative; z-index: 2; }
.rk-copyright-title { font-size: 17px; line-height: 1.6; margin: 0 0 10px; padding-right: 80px; }
.rk-copyright-link { font-size: 13px; color: var(--text-3); margin: 0 0 12px; word-break: break-all; }
.rk-copyright-link a { color: #20b2aa; }
.rk-copyright-table { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 12px; font-size: 12.5px; max-width: 620px; }
.rk-copyright-table div { display: flex; flex-direction: column; gap: 2px; }
.rk-copyright-table span { color: var(--text-3); }
.rk-copyright-table em { font-style: normal; color: var(--text-2); }
.rk-copyright-cc {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 110px; height: 110px; border-radius: 50%; border: 6px solid rgba(90, 100, 120, 0.16);
  display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800;
  color: rgba(90, 100, 120, 0.16); letter-spacing: 1px;
}
.rk-the-end { position: relative; text-align: center; margin: 20px 0; }
.rk-the-end::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--border-2); }
.rk-the-end span { position: relative; background: var(--bg-card); padding: 0 14px; font-size: 12px; letter-spacing: 2px; color: var(--text-3); }
.rk-article-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 0 6px; }
.rk-article-cat { align-self: flex-start; }
.rk-article-like-tip { margin: 0; font-size: 13px; color: var(--text-3); }
.rk-article-action-row { display: flex; align-items: center; gap: 36px; }
.rk-action-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); transition: color 0.18s; }
.rk-action-btn .rk-icon { width: 20px; height: 20px; }
.rk-action-btn:hover, .rk-action-btn.is-active { color: var(--main-color); }

/* 作者卡 / 上下篇 / 相关 / 评论 */
.rk-author-card { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-top: 18px; display: flex; gap: 18px; align-items: center; }
.rk-author-card-main { display: flex; gap: 14px; flex: 1; min-width: 0; }
.rk-author-card-avatar img { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--border); object-fit: contain; background: #fff; padding: 4px; }
.rk-author-card-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; flex-wrap: wrap; }
.rk-author-card-follow { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 400; color: var(--main-color); background: var(--main-color-light); border-radius: 999px; padding: 2px 9px; }
.rk-author-card-follow .rk-icon { width: 12px; height: 12px; }
.rk-author-card-stats { display: flex; gap: 14px; font-size: 12px; color: var(--text-3); margin-top: 4px; flex-wrap: wrap; }
.rk-author-card-stats span { display: inline-flex; align-items: center; gap: 3px; }
.rk-author-card-stats .rk-icon { width: 13px; height: 13px; }
.rk-author-card-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; }
.rk-author-card-tags a { color: #9b8bd6; }
.rk-author-card-desc { margin: 8px 0 0; font-size: 12.5px; color: var(--text-3); }
.rk-author-card-covers { display: grid; grid-template-columns: repeat(4, 92px); gap: 8px; flex: none; }
.rk-author-card-covers img { width: 92px; height: 60px; object-fit: cover; border-radius: 6px; display: block; }

.rk-article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.rk-article-nav-item { display: flex; flex-direction: column; gap: 6px; background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; min-width: 0; }
.rk-article-nav-label { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-3); }
.rk-article-nav-item strong { font-size: 13.5px; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rk-article-nav-item.is-next { text-align: right; }
.rk-article-nav-item.is-next .rk-article-nav-label { justify-content: flex-end; }
.rk-article-nav-item.is-disabled strong { color: var(--text-3); }
.rk-related { margin-top: 22px; padding: 0; }
.rk-related .rk-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rk-related .rk-card-title { font-size: 13px; }
.rk-related .rk-card-body { padding: 8px 10px 10px; }
.rk-related .rk-card-tags { display: none; }
.rk-related .rk-card-meta { font-size: 11px; }
.rk-related .rk-card-meta-author { display: none; }

.rk-comments-wrap { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-top: 20px; }
.rk-comments-head { margin-bottom: 14px; }
.rk-comments-head .rk-section-title { font-size: 18px; }
.rk-comment-list { margin-bottom: 10px; }
.rk-comment { padding: 14px 0; border-bottom: 1px solid var(--border); }
.rk-comment-body { display: flex; gap: 12px; }
.rk-comment-avatar .rk-avatar { width: 40px; height: 40px; }
.rk-comment-main { flex: 1; min-width: 0; }
.rk-comment-head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.rk-comment-author { font-weight: 600; }
.rk-comment-time { color: var(--text-3); font-size: 12px; }
.rk-comment-content { font-size: 14px; color: var(--text-2); padding: 6px 0; overflow-wrap: break-word; }
.rk-comment-content p:last-child { margin-bottom: 0; }
.rk-comment-actions { font-size: 12px; color: var(--text-3); }
.rk-comment-actions a:hover { color: var(--main-color); }
.rk-comment .children { padding-left: 52px; }
.rk-comment-reply-title { font-size: 16px; margin: 18px 0 12px; }
.rk-comment-notes { font-size: 12.5px; color: var(--text-3); margin: 0 0 12px; }
.rk-comment-form p { margin: 0 0 12px; }
.rk-comment-form textarea { width: 100%; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--bg-soft); padding: 12px 14px; outline: none; font-size: 14px; resize: vertical; min-height: 110px; }
.rk-comment-form textarea:focus { border-color: var(--main-color); background: #fff; }
.rk-comment-form .comment-form-author, .rk-comment-form .comment-form-email, .rk-comment-form .comment-form-url { display: inline-block; width: calc(33.33% - 8px); margin-right: 8px; vertical-align: top; }
.rk-comment-form .comment-form-url { margin-right: 0; }
.rk-comment-form input[type="text"], .rk-comment-form input[type="email"], .rk-comment-form input[type="url"] { width: 100%; height: 40px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--bg-soft); padding: 0 12px; outline: none; }
.rk-comment-form input:focus { border-color: var(--main-color); background: #fff; }
.rk-form-label { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; }
.rk-comments-closed { color: var(--text-3); font-size: 13px; }

/* ============ 13. 侧栏 ============ */
.rk-sidebar { display: flex; flex-direction: column; gap: 16px; }
.rk-side-card { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.rk-side-title { display: flex; align-items: center; gap: 6px; font-size: 15px; margin: 0 0 12px; }
.rk-side-title .rk-icon { width: 16px; height: 16px; color: var(--main-color); }
.rk-side-login-tip { font-size: 12.5px; color: var(--text-3); margin: 0 0 12px; }
.rk-side-login-actions { display: flex; gap: 10px; }
.rk-side-login-actions .rk-btn { flex: 1; }
.rk-side-social { margin-top: 14px; text-align: center; }
.rk-side-social-label { font-size: 12px; color: var(--text-3); position: relative; display: block; margin-bottom: 10px; }
.rk-side-social-label::before, .rk-side-social-label::after { content: ""; position: absolute; top: 50%; width: 26%; border-top: 1px solid var(--border-2); }
.rk-side-social-label::before { left: 0; }
.rk-side-social-label::after { right: 0; }
.rk-side-social-btns { display: flex; gap: 8px; }
.rk-side-social-btns a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 34px; border-radius: 6px; color: #fff; font-size: 12.5px; }
.rk-side-social-qq { background: #12b7f5; }
.rk-side-social-wx { background: #07c160; }
.rk-side-social-btns .rk-icon { width: 14px; height: 14px; }
.rk-side-agreement { margin: 10px 0 0; font-size: 11.5px; color: var(--text-3); text-align: center; }
.rk-side-user-top { display: flex; align-items: center; gap: 10px; }
.rk-side-user-info { min-width: 0; }
.rk-side-user-info strong { font-size: 14px; display: inline-flex; align-items: center; gap: 5px; }
.rk-side-user-info span { display: block; font-size: 12px; color: var(--text-3); margin-top: 3px; }
.rk-side-user-info em { font-style: normal; color: var(--red); font-weight: 600; }
.rk-side-user-actions { display: flex; gap: 8px; margin-top: 12px; }
.rk-side-user-actions .rk-btn { flex: 1; }
.rk-side-vip {
  display: flex; flex-direction: column; gap: 6px; border-radius: var(--radius); padding: 18px;
  background: linear-gradient(135deg, #e74c3c 0%, #f0603f 55%, #ff8a5b 100%); color: #fff;
  box-shadow: 0 8px 22px rgba(230, 76, 60, 0.25);
}
.rk-side-vip:hover { color: #fff; filter: brightness(1.04); }
.rk-side-vip strong { font-size: 17px; font-weight: 800; }
.rk-side-vip > span { font-size: 12.5px; color: rgba(255, 255, 255, 0.85); }
.rk-side-vip-btn { margin-top: 6px; align-self: flex-start; display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 12.5px; background: rgba(0, 0, 0, 0.22); border-radius: 999px; padding: 5px 12px; }
.rk-hot-list { display: flex; flex-direction: column; gap: 2px; }
.rk-hot-list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.rk-hot-list li:last-child { border-bottom: none; }
.rk-hot-index { flex: none; width: 18px; height: 18px; border-radius: 5px; background: var(--bg-soft-2); color: var(--text-3); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.rk-hot-index.is-top { background: linear-gradient(135deg, #ff7a7a, #e63c3c); color: #fff; }
.rk-hot-list a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.rk-hot-list a:hover { color: var(--main-color); }
.rk-hot-list em { font-style: normal; font-size: 11.5px; color: var(--text-3); flex: none; }
.rk-side-timer .rk-timer-item { display: grid; grid-template-columns: 96px 1fr 46px; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 12px; }
.rk-timer-label { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-timer-track { height: 8px; border-radius: 999px; background: var(--bg-soft-2); overflow: hidden; }
.rk-timer-track i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #ffd36b, #ff8a5b); transition: width 0.4s; }
.rk-timer-val { font-style: normal; text-align: right; color: var(--text-3); white-space: nowrap; }
.rk-side-contact-qr { text-align: center; margin-bottom: 10px; }
.rk-side-contact-qr .rk-qr { display: inline-block; width: 110px; height: 110px; border: 1px solid var(--border); border-radius: 8px; padding: 4px; }
.rk-side-contact ul li, .rk-side-contact-list li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); padding: 5px 0; }
.rk-side-contact .rk-icon { width: 14px; height: 14px; color: var(--text-3); }

/* 悬浮操作 */
.rk-float-actions { position: fixed; right: 18px; bottom: 90px; z-index: 800; display: flex; flex-direction: column; gap: 10px; }
.rk-float-btn {
  width: 46px; height: 46px; border-radius: 50%; background: var(--bg-card);
  box-shadow: 0 6px 18px rgba(20, 30, 60, 0.14); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; color: var(--text-2); font-size: 10px;
  border: 1px solid var(--border); transition: all 0.18s;
}
.rk-float-btn .rk-icon { width: 18px; height: 18px; }
.rk-float-btn:hover { color: var(--main-color); transform: translateY(-2px); }
.rk-float-vip { background: var(--vip-gradient); color: #fff; border: none; }
.rk-float-vip:hover { color: #fff; }
.rk-float-actions { transition: opacity 0.2s, transform 0.2s; }
.rk-float-actions.is-hidden { opacity: 0; visibility: hidden; transform: translateY(10px); }

/* ============ 14. 商城 ============ */
.rk-shop-hero { min-height: 300px; }
.rk-shop { margin-top: 20px; }
.rk-shop-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.rk-shop-title { font-size: 20px; display: inline-flex; align-items: center; gap: 8px; }
.rk-shop-title .rk-icon { width: 20px; height: 20px; color: var(--main-color); }
.rk-shop-count { font-size: 13px; color: var(--text-3); }
.rk-shop-notice { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-3); }
.rk-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.rk-product-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.2s; display: flex; flex-direction: column; }
.rk-product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.rk-product-cover { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: none; background: var(--bg-soft-2); }
.rk-product-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.rk-product-card:hover .rk-product-cover img { transform: scale(1.04); }
.rk-product-badge { position: absolute; left: 10px; top: 10px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 4px; }
.rk-product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rk-product-title { font-size: 16px; line-height: 1.45; margin: 0; }
.rk-product-title button { text-align: left; font-size: inherit; font-weight: 700; color: var(--text); padding: 0; }
.rk-product-title button:hover { color: var(--main-color); }
.rk-product-desc { margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
.rk-product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rk-product-price { font-size: 22px; font-weight: 800; color: var(--red); display: inline-flex; align-items: baseline; gap: 2px; }
.rk-product-price em { font-size: 12px; font-style: normal; font-weight: 500; }
.rk-product-price del { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 6px; }
.rk-product-actions { display: flex; align-items: center; gap: 8px; }
.rk-empty-shop { margin-top: 10px; }

/* 弹层 */
.rk-modal { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; padding: 20px; }
.rk-modal.is-open { display: flex; }
.rk-modal-mask { position: absolute; inset: 0; background: rgba(15, 20, 30, 0.5); }
.rk-modal-panel { position: relative; z-index: 2; width: min(860px, 96vw); max-height: 88vh; overflow-y: auto; background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(10, 20, 40, 0.3); padding: 24px; }
.rk-modal-close { position: absolute; right: 12px; top: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); }
.rk-modal-close:hover { background: var(--bg-soft-2); color: var(--text); }
.rk-shop-detail { display: flex; gap: 22px; }
.rk-shop-detail[hidden] { display: none; }
.rk-shop-detail-cover { width: 44%; flex: none; border-radius: var(--radius); overflow: hidden; }
.rk-shop-detail-cover img { width: 100%; display: block; }
.rk-shop-detail-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rk-shop-detail-info h3 { font-size: 20px; line-height: 1.5; }
.rk-shop-detail-desc { font-size: 13px; color: var(--text-2); margin: 0; }
.rk-shop-detail-delivery { font-size: 13px; color: var(--text-2); background: var(--bg-soft); border-radius: 8px; padding: 12px; }
.rk-shop-detail-list { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.rk-shop-detail-list li { display: flex; align-items: flex-start; gap: 6px; }
.rk-shop-detail-list .rk-icon { width: 14px; height: 14px; color: var(--green); margin-top: 4px; }
.rk-shop-detail-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ============ 15. 下载页 ============ */
.rk-download-hero { position: relative; overflow: hidden; padding: 56px 0 60px; margin-top: -1px; }
.rk-download-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.rk-download-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 40, 0.5), rgba(10, 18, 40, 0.72)); }
.rk-download-hero-inner { position: relative; z-index: 2; text-align: center; }
.rk-download-title { display: inline-flex; align-items: center; gap: 10px; font-size: 34px; color: #fff; font-weight: 800; }
.rk-download-title .rk-icon { width: 32px; height: 32px; }
.rk-download-sub { color: rgba(255, 255, 255, 0.78); font-size: 14px; margin: 8px 0 20px; }
.rk-download-search { display: flex; align-items: center; width: min(720px, 94%); height: 54px; background: #fff; border-radius: 999px; margin: 0 auto; padding: 0 6px; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22); }
.rk-download-search input { flex: 1; height: 100%; border: none; outline: none; background: transparent; padding: 0 16px; font-size: 14.5px; min-width: 0; }
.rk-download-hotwords { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, 0.65); }
.rk-download-hotwords a { color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 3px 11px; }
.rk-download-hotwords a:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }
.rk-download { padding-top: 22px; }
.rk-download-hot { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.rk-download-hot .rk-section-head { margin-bottom: 10px; }
.rk-download-hot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
.rk-download-hot-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; color: var(--text-2); min-width: 0; }
.rk-download-hot-item img { width: 62px; height: 42px; object-fit: cover; border-radius: 6px; flex: none; }
.rk-download-hot-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-download-hot-item:hover { color: var(--main-color); }
.rk-download-section { margin-top: 22px; }
.rk-download-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rk-download-row { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 14px; min-width: 0; transition: all 0.18s; }
.rk-download-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.rk-download-row-cover { width: 76px; height: 52px; border-radius: 7px; object-fit: cover; flex: none; }
.rk-download-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rk-download-row-main strong { font-size: 13.5px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-download-row-main em { display: flex; align-items: center; gap: 10px; font-style: normal; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.rk-download-row-main em span { display: inline-flex; align-items: center; gap: 3px; }
.rk-download-row-main em .rk-icon { width: 13px; height: 13px; }
.rk-download-row-btn { flex: none; }

/* ============ 16. 会员页 ============ */
.rk-vip-hero { min-height: 300px; }
.rk-vip { margin-top: 20px; }
.rk-vip-status { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; margin-bottom: 22px; flex-wrap: wrap; }
.rk-vip-status-left { display: flex; align-items: center; gap: 12px; }
.rk-vip-status-left strong { font-size: 16px; display: block; }
.rk-vip-status-left span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.rk-vip-status-right { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-3); }
.rk-vip-status-right strong { font-size: 26px; font-weight: 800; color: var(--red); }
.rk-vip-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rk-vip-card { position: relative; border-radius: 18px; padding: 28px; color: #fff; overflow: hidden; box-shadow: 0 18px 44px rgba(60, 40, 120, 0.2); }
.rk-vip-card-1 { background: linear-gradient(150deg, #ffb6c9 0%, #f58fb3 42%, #d96a95 100%); }
.rk-vip-card-2 { background: linear-gradient(150deg, #3b2d6e 0%, #6a3f97 50%, #b85a87 100%); }
.rk-vip-card::before { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.rk-vip-card::after { content: ""; position: absolute; left: -60px; bottom: -100px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.rk-vip-card.is-current { outline: 3px solid rgba(255, 255, 255, 0.6); outline-offset: 3px; }
.rk-vip-card-head { position: relative; z-index: 2; }
.rk-vip-card-level { display: inline-block; font-size: 11px; letter-spacing: 1px; background: rgba(0, 0, 0, 0.2); border-radius: 999px; padding: 3px 10px; }
.rk-vip-card-name { font-size: 28px; font-weight: 800; margin: 10px 0 4px; color: #fff; }
.rk-vip-card-desc { font-size: 13px; color: rgba(255, 255, 255, 0.82); margin: 0; }
.rk-vip-card-current { position: absolute; right: 0; top: 0; font-size: 11px; background: rgba(255, 255, 255, 0.9); color: #b85a87; border-radius: 999px; padding: 3px 10px; }
.rk-vip-card-price { position: relative; z-index: 2; margin: 16px 0 2px; display: flex; align-items: baseline; gap: 4px; }
.rk-vip-card-price em { font-style: normal; font-size: 20px; }
.rk-vip-card-price strong { font-size: 54px; font-weight: 800; line-height: 1; color: #fff; }
.rk-vip-card-days { font-size: 13px; color: rgba(255, 255, 255, 0.82); margin-left: 4px; }
.rk-vip-card-coin { position: relative; z-index: 2; font-size: 12.5px; color: rgba(255, 255, 255, 0.85); }
.rk-vip-card-coin strong { color: #fff; }
.rk-vip-benefits { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; margin: 18px 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.94); }
.rk-vip-benefits li { display: flex; align-items: flex-start; gap: 7px; }
.rk-vip-benefits .rk-icon { width: 15px; height: 15px; margin-top: 4px; color: #fff; opacity: 0.9; }
.rk-vip-card-action { position: relative; z-index: 2; }
.rk-vip-card-action .rk-btn { background: #fff; color: #b85a87; border: none; height: 46px; font-size: 16px; font-weight: 700; }
.rk-vip-card-2 .rk-vip-card-action .rk-btn { color: #6a3f97; }
.rk-vip-card-action .rk-btn:hover { background: rgba(255, 255, 255, 0.9); color: #b85a87; }
.rk-vip-card-pay { margin: 10px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.75); text-align: center; }
.rk-vip-promo { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(120deg, #2b2350, #4b2f6e 55%, #7a3f75); border-radius: 18px; padding: 26px 30px; color: #fff; }
.rk-vip-promo-info strong { font-size: 24px; font-weight: 800; display: block; color: #ffd9a1; }
.rk-vip-promo-info > span { font-size: 13px; color: rgba(255, 255, 255, 0.8); display: block; margin: 6px 0 12px; }
.rk-vip-promo-info ul { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.92); }
.rk-vip-promo-info li { display: flex; align-items: center; gap: 6px; }
.rk-vip-promo-info .rk-icon { width: 14px; height: 14px; color: #7ee2b8; }
.rk-vip-promo-qr { flex: none; text-align: center; background: #fff; border-radius: 14px; padding: 10px; color: var(--text-3); font-size: 11px; }
.rk-vip-promo-qr .rk-qr { width: 128px; height: 128px; }
.rk-vip-section-title { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 14px; }
.rk-vip-section-title .rk-icon { width: 18px; height: 18px; color: var(--main-color); }
.rk-vip-compare { margin-top: 26px; background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.rk-vip-compare table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rk-vip-compare th, .rk-vip-compare td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: center; }
.rk-vip-compare th:first-child, .rk-vip-compare td:first-child { text-align: left; }
.rk-vip-compare thead th { background: var(--bg-soft); color: var(--text-2); font-weight: 600; }
.rk-vip-compare thead th:nth-child(3) { color: #d96a95; }
.rk-vip-compare thead th:nth-child(4) { color: #7b4ea8; }
.rk-vip-faq { margin-top: 22px; background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.rk-faq-item { border-bottom: 1px solid var(--border); padding: 12px 0; }
.rk-faq-item:last-child { border-bottom: none; }
.rk-faq-item summary { cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; position: relative; padding-right: 20px; }
.rk-faq-item summary::-webkit-details-marker { display: none; }
.rk-faq-item summary::after { content: "+"; position: absolute; right: 2px; top: -1px; font-size: 18px; font-weight: 400; color: var(--text-3); }
.rk-faq-item[open] summary::after { content: "-"; }
.rk-faq-item p { margin: 8px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.8; }

/* ============ 17. 充值页 ============ */
.rk-recharge-hero { min-height: 280px; }
.rk-recharge { margin-top: 20px; }
.rk-recharge-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.rk-recharge-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.rk-balance-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(120deg, #2f4d7a, #396a9e 60%, #4c8fb0); color: #fff; border-radius: var(--radius); padding: 22px 26px; box-shadow: 0 12px 30px rgba(40, 70, 120, 0.22); }
.rk-balance-info { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rk-balance-label { font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.rk-balance-value { font-size: 40px; font-weight: 800; line-height: 1; color: #ffd98a; }
.rk-balance-info em { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.rk-order-card { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border: 1px solid #ffe2b0; }
.rk-order-head { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px dashed var(--border-2); }
.rk-order-icon { color: var(--orange); }
.rk-order-icon .rk-icon { width: 26px; height: 26px; }
.rk-order-head h3 { font-size: 17px; margin: 0 0 4px; }
.rk-order-head p { margin: 0; font-size: 13px; color: var(--text-3); }
.rk-order-manual { display: flex; gap: 20px; padding-top: 16px; }
.rk-order-qr { flex: none; text-align: center; font-size: 11px; color: var(--text-3); }
.rk-order-qr .rk-qr { width: 120px; height: 120px; border: 1px solid var(--border); border-radius: 8px; padding: 4px; }
.rk-order-manual-info { flex: 1; min-width: 0; }
.rk-order-manual-info p { font-size: 13px; color: var(--text-2); margin: 0 0 10px; }
.rk-recharge-note-form textarea { width: 100%; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--bg-soft); padding: 10px 12px; font-size: 13px; outline: none; resize: vertical; margin-bottom: 10px; }
.rk-login-prompt { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; text-align: center; color: var(--text-3); }
.rk-login-prompt .rk-icon { width: 44px; height: 44px; opacity: 0.5; }
.rk-login-prompt p { margin: 10px 0 16px; font-size: 15px; color: var(--text-2); }
.rk-login-prompt div { display: flex; gap: 10px; justify-content: center; }
.rk-recharge-form { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.rk-recharge-title { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 14px; }
.rk-recharge-title .rk-icon { width: 18px; height: 18px; color: var(--main-color); }
.rk-recharge-title:not(:first-child) { margin-top: 22px; }
.rk-plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.rk-plan { cursor: pointer; min-width: 0; }
.rk-plan input { position: absolute; opacity: 0; pointer-events: none; }
.rk-plan-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1.5px solid var(--border-2); border-radius: 10px; padding: 16px 8px 12px; background: var(--bg-card); transition: all 0.18s; }
.rk-plan:hover .rk-plan-inner { border-color: #b9cdff; }
.rk-plan input:checked + .rk-plan-inner { border-color: var(--main-color); background: #f5f9ff; box-shadow: 0 6px 18px rgba(58, 111, 247, 0.14); }
.rk-plan-inner strong { font-size: 24px; font-weight: 800; color: var(--main-color); line-height: 1.1; }
.rk-plan-inner strong small { font-size: 11px; font-weight: 500; margin-left: 2px; }
.rk-plan-price { font-size: 13px; color: var(--text-2); }
.rk-plan-bonus { position: absolute; top: -9px; right: -4px; font-style: normal; font-size: 10px; background: var(--red); color: #fff; border-radius: 5px; padding: 2px 6px; white-space: nowrap; }
.rk-pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rk-pay-method { cursor: pointer; }
.rk-pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.rk-pay-method-inner { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--border-2); border-radius: 10px; padding: 12px 16px; transition: all 0.18s; }
.rk-pay-method input:checked + .rk-pay-method-inner { border-color: var(--main-color); background: #f5f9ff; }
.rk-pay-method-inner strong { font-size: 14px; }
.rk-pay-method-inner span { font-size: 12px; color: var(--text-3); }
.rk-recharge-submit { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--border-2); }
.rk-recharge-selected { font-size: 13px; color: var(--text-2); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rk-recharge-selected strong { font-size: 26px; font-weight: 800; color: var(--red); line-height: 1; }
.rk-recharge-selected span { font-size: 12px; color: var(--text-3); }
.rk-recharge-notice { display: flex; align-items: flex-start; gap: 5px; margin: 14px 0 0; font-size: 12px; color: var(--text-3); }
.rk-recharge-notice .rk-icon { width: 14px; height: 14px; margin-top: 2px; flex: none; }
.rk-recharge-records { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.rk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rk-table th, .rk-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.rk-table th { background: var(--bg-soft); color: var(--text-2); font-weight: 600; font-size: 12.5px; }
.rk-table tr:last-child td { border-bottom: none; }
.rk-table-empty { padding: 30px; text-align: center; color: var(--text-3); font-size: 13px; background: var(--bg-soft); border-radius: 8px; }
.rk-table-empty a { color: var(--main-color); }
.rk-recharge-side { display: flex; flex-direction: column; gap: 16px; }
.rk-recharge-tips { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }

/* ============ 18. 个人中心 ============ */
.rk-user-hero { min-height: 220px; }
.rk-user { margin-top: 20px; }
.rk-user-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.rk-user-side { display: flex; flex-direction: column; gap: 16px; }
.rk-user-card { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 18px; text-align: center; }
.rk-user-avatar { width: 76px; height: 76px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(20, 30, 60, 0.12); }
.rk-user-name { font-size: 17px; margin: 10px 0 2px; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.rk-user-email { font-size: 12px; color: var(--text-3); margin: 0 0 12px; word-break: break-all; }
.rk-user-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.rk-user-stats strong { display: block; font-size: 16px; font-weight: 800; color: var(--main-color); }
.rk-user-stats span { font-size: 11.5px; color: var(--text-3); }
.rk-user-card-actions { display: flex; gap: 8px; margin-top: 12px; }
.rk-user-card-actions .rk-btn { flex: 1; }
.rk-user-menu { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; }
.rk-user-menu-item { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); }
.rk-user-menu-item .rk-icon:first-child { width: 16px; height: 16px; color: var(--text-3); }
.rk-user-menu-item .rk-icon:last-child { width: 14px; height: 14px; margin-left: auto; color: #c3c9d3; }
.rk-user-menu-item:hover { background: var(--bg-soft); color: var(--main-color); }
.rk-user-menu-item.is-active { background: var(--main-color-light); color: var(--main-color); font-weight: 600; }
.rk-user-menu-item.is-active .rk-icon:first-child { color: var(--main-color); }
.rk-user-logout { color: var(--text-3); }
.rk-user-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.rk-user-panel { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.rk-user-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.rk-user-panel-head h2 { font-size: 18px; display: inline-flex; align-items: center; gap: 8px; }
.rk-user-panel-head h2 .rk-icon { width: 18px; height: 18px; color: var(--main-color); }
.rk-user-panel-head span { font-size: 12.5px; color: var(--text-3); }
.rk-profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rk-profile-item { background: var(--bg-soft); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.rk-profile-item span { font-size: 12px; color: var(--text-3); }
.rk-profile-item strong { font-size: 14px; font-weight: 600; }
.rk-profile-balance { color: var(--red) !important; }
.rk-profile-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.rk-user-timeline { display: flex; flex-direction: column; gap: 14px; }
.rk-user-timeline li { display: flex; gap: 12px; align-items: flex-start; }
.rk-timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--main-color); margin-top: 6px; flex: none; box-shadow: 0 0 0 3px rgba(58, 111, 247, 0.15); }
.rk-user-timeline strong { display: block; font-size: 13.5px; }
.rk-user-timeline em { font-style: normal; font-size: 12px; color: var(--text-3); }
.rk-user-timeline a { color: var(--main-color); }
.rk-download-history li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.rk-download-history li:last-child { border-bottom: none; }
.rk-download-history .rk-icon { width: 15px; height: 15px; color: var(--main-color); }
.rk-download-history a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-download-history em { font-style: normal; font-size: 12px; color: var(--text-3); }

/* ============ 19. 登录注册页 ============ */
.rk-sign-page { position: relative; min-height: calc(100vh - var(--header-h)); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; padding: 40px 20px 60px; }
.rk-sign-deco { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 40%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1)); }
.rk-sign-inner { position: relative; z-index: 2; width: 100%; max-width: 420px; }
.rk-sign-card { background: rgba(255, 255, 255, 0.97); border-radius: 18px; box-shadow: 0 26px 70px rgba(40, 60, 120, 0.18); padding: 28px; backdrop-filter: blur(8px); }
.rk-sign-head { text-align: center; margin-bottom: 16px; }
.rk-sign-logo img { height: 40px; width: auto; display: inline-block; }
.rk-sign-welcome { margin: 8px 0 0; font-size: 13px; color: var(--text-3); }
.rk-sign-tabs { display: flex; gap: 4px; background: var(--bg-soft-2); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.rk-sign-tab { flex: 1; height: 34px; border-radius: 7px; font-size: 14px; color: var(--text-2); transition: all 0.18s; }
.rk-sign-tab.is-active { background: #fff; color: var(--main-color); font-weight: 600; box-shadow: 0 2px 8px rgba(20, 30, 60, 0.08); }
.rk-sign-panel { display: none; }
.rk-sign-panel.is-active { display: block; }
.rk-form-field { margin-bottom: 14px; position: relative; }
.rk-form-field input { width: 100%; height: 44px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--bg-soft); padding: 0 14px; outline: none; font-size: 14px; transition: all 0.18s; }
.rk-form-field input:focus { background: #fff; border-color: var(--main-color); box-shadow: 0 0 0 3px rgba(58, 111, 247, 0.1); }
.rk-form-field input[type="password"] { padding-right: 42px; }
.rk-form-eye { position: absolute; right: 4px; bottom: 4px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); }
.rk-form-eye:hover { color: var(--main-color); }
.rk-form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 16px; font-size: 13px; }
.rk-form-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.rk-form-check-block { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 16px; line-height: 1.6; }
.rk-form-check input { width: 15px; height: 15px; accent-color: var(--main-color); margin-top: 2px; }
.rk-form-check a { color: var(--main-color); }
.rk-form-link { color: var(--text-3); font-size: 12.5px; background: none; padding: 0; }
.rk-form-link:hover { color: var(--main-color); }
.rk-form .rk-btn-block { margin-top: 4px; }
.rk-form-switch { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--text-3); }
.rk-sign-sep { position: relative; text-align: center; margin: 18px 0 12px; }
.rk-sign-sep::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--border-2); }
.rk-sign-sep span { position: relative; background: #fff; padding: 0 12px; font-size: 12px; color: var(--text-3); }
.rk-sign-social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rk-sign-social a { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 38px; border-radius: 8px; color: #fff; font-size: 12.5px; }
.rk-sign-social .rk-icon { width: 15px; height: 15px; }
.rk-social-qq { background: #12b7f5; }
.rk-social-wx { background: #07c160; }
.rk-social-gh { background: #333; }
.rk-sign-agreement { margin: 12px 0 0; text-align: center; font-size: 11.5px; color: var(--text-3); line-height: 1.7; }
.rk-sign-agreement a { color: var(--text-2); text-decoration: underline; }
.rk-sign-foot { margin: 18px 0 0; text-align: center; font-size: 11.5px; color: var(--text-3); line-height: 1.7; }
.rk-sign-foot a { color: var(--text-2); }
.rk-captcha-row { display: flex; gap: 8px; align-items: center; }
.rk-captcha-row input { flex: 1; min-width: 0; }
.rk-captcha-img { width: 104px; height: 44px; border-radius: 8px; border: 1px solid var(--border-2); object-fit: cover; flex: none; cursor: pointer; background: var(--bg-soft); }
.rk-captcha-refresh { font-size: 12px; color: var(--text-3); flex: none; }
.rk-captcha-refresh:hover { color: var(--main-color); }
.rk-sign-logged { text-align: center; }
.rk-sign-title { font-size: 22px; margin: 14px 0 4px; }
.rk-sign-sub { font-size: 13px; color: var(--text-3); margin: 0 0 18px; }
.rk-sign-logged-actions { display: flex; flex-direction: column; gap: 10px; }
.rk-footer-mini { padding: 26px 0; text-align: center; font-size: 12px; color: var(--text-3); background: transparent; }

/* ============ 20. 404 ============ */
.rk-404 { padding-top: 40px; padding-bottom: 40px; }
.rk-404-inner { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 60px 24px; text-align: center; }
.rk-404-code { display: block; font-size: 96px; font-weight: 900; line-height: 1; letter-spacing: 4px; background: linear-gradient(135deg, #7fb6ff, #b39dff 50%, #ff9ec7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rk-404-title { font-size: 24px; margin: 12px 0 6px; }
.rk-404-desc { color: var(--text-3); font-size: 13.5px; margin: 0 0 22px; }
.rk-404-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.rk-404-tags { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; font-size: 12.5px; color: var(--text-3); }

/* ============ 21. 页脚 ============ */
.rk-footer { margin-top: 34px; background: var(--bg-card); border-top: 1px solid var(--border); }
.rk-footer-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr); gap: 40px; padding: 36px 0 26px; }
.rk-footer-logo img { height: 40px; width: auto; }
.rk-footer-desc { margin: 14px 0 12px; font-size: 12.5px; color: var(--text-3); line-height: 1.9; max-width: 420px; }
.rk-footer-contact { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--text-2); }
.rk-footer-contact span { display: inline-flex; align-items: center; gap: 4px; }
.rk-footer-contact .rk-icon { width: 14px; height: 14px; color: var(--text-3); }
.rk-footer-qr { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
.rk-footer-qr .rk-qr { width: 88px; height: 88px; border: 1px solid var(--border); border-radius: 8px; padding: 4px; }
.rk-footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rk-footer-col h4 { font-size: 14px; margin: 0 0 12px; }
.rk-footer-col a { display: block; font-size: 12.5px; color: var(--text-3); padding: 4px 0; }
.rk-footer-col a:hover { color: var(--main-color); }
.rk-footer-bottom { border-top: 1px solid var(--border); padding: 16px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rk-footer-copy { margin: 0; font-size: 12.5px; color: var(--text-3); }
.rk-footer-copy a { color: var(--text-3); }
.rk-footer-copy a:hover { color: var(--main-color); }
.rk-footer-sep { margin: 0 6px; color: #cdd3dc; }
.rk-footer-extra { margin: 0; font-size: 12px; color: var(--text-3); }

/* ============ 22. 响应式 ============ */
@media (max-width: 1399px) {
  .rk-hero-vip { right: 14px; width: 188px; }
  .rk-hero-vip-qr .rk-qr { width: 92px; height: 92px; }
  .rk-nav-list { gap: 6px; }
  .rk-nav-btn { padding: 0 11px; font-size: 13.5px; }
}

@media (max-width: 1199px) {
  .rk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rk-hero { min-height: 500px; }
  .rk-hero-vip { display: none; }
  .rk-header-search input { width: 120px; }
  .rk-nav-list { gap: 4px; }
  .rk-nav-btn { padding: 0 10px; font-size: 13px; }
  .rk-single-grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .rk-author-card-covers { grid-template-columns: repeat(2, 92px); }
  .rk-related .rk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .rk-nav, .rk-header-search, .rk-header-auth, .rk-icon-btn, .rk-vip-btn { display: none; }
  .rk-hamburger { display: inline-flex; }
  .rk-mobile-search-btn { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; color: var(--text-2); border-radius: 8px; }
  .rk-mobile-search-btn .rk-icon { width: 20px; height: 20px; }
  .rk-header-inner { gap: 8px; }
  .rk-logo { margin: 0 auto; }
  .rk-logo img { height: 32px; }
  .rk-mobile-search-form { display: none; background: var(--bg-card); border-top: 1px solid var(--border); padding: 10px 0; }
  .rk-mobile-search-form.is-open { display: block; }
  .rk-mobile-search-form .rk-wide-container { display: flex; gap: 8px; }
  .rk-mobile-search-form input { flex: 1; height: 40px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--bg-soft); padding: 0 16px; outline: none; }
  .rk-mobile-search-form button { width: 40px; height: 40px; border-radius: 50%; background: var(--main-color); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
  .rk-header-inner { justify-content: space-between; }

  .rk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rk-quick-entries { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -40px; }
  .rk-quick-links-inner { grid-template-columns: repeat(4, 1fr); }
  .rk-quick-links-inner a:nth-child(4n) { border-right: none; }
  .rk-quick-links-inner a:nth-child(-n+4) { border-bottom: 1px dashed var(--border-2); }
  .rk-hero { min-height: 420px; }
  .rk-hero-title { font-size: 34px; }
  .rk-hero-sub { font-size: 17px; }
  .rk-hero-search { height: 50px; }
  .rk-hero-inner { padding-bottom: 70px; }
  .rk-ad-grid { grid-template-columns: 1fr; }
  .rk-ad-banner { font-size: 15px; min-height: 46px; }

  .rk-single-grid { grid-template-columns: minmax(0, 1fr); }
  .rk-single-side { position: static; }
  .rk-author-card { flex-direction: column; align-items: flex-start; }
  .rk-author-card-covers { grid-template-columns: repeat(4, 92px); }
  .rk-related .rk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rk-pay-box { flex-direction: column; }
  .rk-pay-thumb { width: 100%; max-width: none; }
  .rk-footer-main { grid-template-columns: 1fr; gap: 24px; }
  .rk-footer-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .rk-page-hero { min-height: 210px; }
  .rk-page-hero-word { font-size: 88px; }
  .rk-page-hero-title { font-size: 24px; }

  .rk-vip-cards { grid-template-columns: 1fr; }
  .rk-recharge-grid { grid-template-columns: minmax(0, 1fr); }
  .rk-plans { grid-template-columns: repeat(3, 1fr); }
  .rk-user-grid { grid-template-columns: minmax(0, 1fr); }
  .rk-user-side { flex-direction: row; align-items: stretch; }
  .rk-user-card { flex: 1; }
  .rk-user-menu { flex: 1; }
  .rk-shop-detail { flex-direction: column; }
  .rk-shop-detail-cover { width: 100%; }
  .rk-download-list { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --header-h: 54px; }
  body { font-size: 13.5px; }
  .rk-container, .rk-wide-container { padding: 0 12px; }
  .rk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rk-card-body { padding: 8px 10px 10px; gap: 6px; }
  .rk-card-title { font-size: 13px; }
  .rk-card-tags .rk-chip { font-size: 10.5px; height: 20px; padding: 0 6px; }
  .rk-card-meta { font-size: 10.5px; gap: 4px; }
  .rk-card-meta-author em { display: none; }
  .rk-card-meta-stats { gap: 6px; }
  .rk-card-meta-stats span:first-child { display: none; }
  .rk-badge-sticky { left: 6px; top: 6px; font-size: 10px; padding: 3px 6px; }

  .rk-hero { min-height: 330px; }
  .rk-hero-inner { padding-top: 16px; padding-bottom: 56px; }
  .rk-hero-title { font-size: 25px; letter-spacing: 1px; }
  .rk-hero-sub { font-size: 13px; letter-spacing: 2px; margin-top: 6px; }
  .rk-hero-search { height: 46px; margin-top: 16px; width: 100%; }
  .rk-hero-cat { padding: 0 4px 0 12px; }
  .rk-hero-cat select { font-size: 12.5px; padding-right: 14px; max-width: 92px; }
  .rk-hero-search > input[type="search"] { padding: 0 10px; font-size: 13px; }
  .rk-hero-search-btn { width: 38px; height: 38px; }
  .rk-hero-tags { gap: 6px; margin-top: 10px; }
  .rk-hero-tags a { font-size: 11px; padding: 2px 9px; }
  .rk-hero-tags-label { display: none; }

  .rk-quick-entries { gap: 10px; margin-top: -36px; }
  .rk-quick-entry { padding: 10px; gap: 8px; }
  .rk-quick-icon { width: 36px; height: 36px; }
  .rk-quick-icon .rk-icon { width: 18px; height: 18px; }
  .rk-quick-text strong { font-size: 12px; }
  .rk-quick-text span { font-size: 10.5px; }
  .rk-quick-links-inner { grid-template-columns: repeat(3, 1fr); }
  .rk-quick-links-inner a { font-size: 11.5px; padding: 9px 4px; }
  .rk-quick-links-inner a:nth-child(4n) { border-right: 1px dashed var(--border-2); }
  .rk-quick-links-inner a:nth-child(3n) { border-right: none; }
  .rk-quick-links-inner a:nth-child(-n+4) { border-bottom: 1px dashed var(--border-2); }
  .rk-ad-banner { font-size: 13px; min-height: 42px; padding: 6px 12px; }
  .rk-ad-head { font-size: 11px; }

  .rk-section-title { font-size: 16px; }
  .rk-section-desc { display: none; }
  .rk-section-toolbar { padding: 8px 10px; flex-direction: column; align-items: stretch; gap: 6px; }
  .rk-section-tabs { gap: 2px; }
  .rk-tab { font-size: 12.5px; padding: 0 9px; }
  .rk-section-sort { font-size: 12px; gap: 12px; }
  .rk-home-section > .rk-grid { margin-top: 10px; }
  .rk-pagination { gap: 6px; }
  .rk-page-item a, .rk-page-item > span { min-width: 30px; height: 30px; padding: 0 8px; font-size: 12px; }
  .rk-page-jump { height: 30px; font-size: 12px; }
  .rk-page-input { width: 38px; }

  .rk-page-hero { min-height: 160px; }
  .rk-page-hero-word { font-size: 54px; padding-top: 10px; }
  .rk-page-hero-inner { padding-bottom: 14px; gap: 10px; }
  .rk-page-hero-icon { width: 40px; height: 40px; }
  .rk-page-hero-icon .rk-icon { width: 20px; height: 20px; }
  .rk-page-hero-title { font-size: 20px; }
  .rk-page-hero-desc { font-size: 11.5px; }
  .rk-page-hero-extra { margin-left: 0; }
  .rk-filter-bar { padding: 8px 12px; }
  .rk-filter-row { font-size: 12px; gap: 8px; }
  .rk-filter-links { gap: 4px 10px; }
  .rk-filter-row .rk-filter-subcats { width: 100%; }
  .rk-stats-inner { flex-wrap: wrap; gap: 14px 6px; }
  .rk-stat { flex: 1 1 30%; }
  .rk-stat strong { font-size: 22px; }
  .rk-stat em { font-size: 11px; }
  .rk-stat-side { flex: 1 1 40%; flex-direction: row; justify-content: center; gap: 6px; align-items: baseline; }
  .rk-stat-side strong { font-size: 14px; }
  .rk-stat-icon .rk-icon { width: 20px; height: 20px; }

  .rk-single { padding-top: 2px; }
  .rk-article { padding: 16px 14px; border-radius: var(--radius); }
  .rk-article-title { font-size: 19px; margin-bottom: 10px; }
  .rk-article-byline { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rk-article-byline-right { align-items: flex-start; width: 100%; }
  .rk-article-meta { font-size: 11.5px; }
  .rk-article-author-info span { max-width: 210px; }
  .rk-pay-box { padding: 12px; gap: 12px; }
  .rk-pay-price-main { font-size: 28px; }
  .rk-pay-bottom { flex-direction: column; align-items: stretch; }
  .rk-pay-actions { justify-content: space-between; }
  .rk-article-content { font-size: 14.5px; line-height: 1.85; }
  .rk-article-content h2 { font-size: 17px; }
  .rk-article-content h3 { font-size: 15.5px; }
  .rk-article-content table { display: block; overflow-x: auto; }
  .rk-copyright { padding: 14px; }
  .rk-copyright-title { font-size: 15px; padding-right: 0; }
  .rk-copyright-table { grid-template-columns: repeat(2, 1fr); }
  .rk-copyright-cc { width: 74px; height: 74px; font-size: 28px; opacity: 0.5; }
  .rk-article-action-row { gap: 28px; }
  .rk-author-card { padding: 14px; }
  .rk-author-card-covers { grid-template-columns: repeat(3, 1fr); }
  .rk-author-card-covers img { width: 100%; height: 54px; }
  .rk-related .rk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rk-article-nav { grid-template-columns: 1fr; gap: 10px; }
  .rk-comments-wrap { padding: 14px; }
  .rk-comment-form .comment-form-author, .rk-comment-form .comment-form-email, .rk-comment-form .comment-form-url { width: 100%; margin-right: 0; }
  .rk-breadcrumb { padding: 8px 0 10px; font-size: 12px; overflow-x: auto; white-space: nowrap; }

  .rk-side-card { padding: 14px; }
  .rk-footer { margin-top: 24px; }
  .rk-footer-main { padding: 24px 0 18px; gap: 18px; }
  .rk-footer-links { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .rk-footer-bottom { flex-direction: column; align-items: flex-start; }
  .rk-float-actions { right: 10px; bottom: 74px; gap: 8px; }
  .rk-float-btn { width: 40px; height: 40px; font-size: 9px; }
  .rk-float-btn .rk-icon { width: 16px; height: 16px; }
  .rk-float-vip span, .rk-float-btn span { display: none; }
  .rk-float-vip { width: 40px; height: 40px; }

  .rk-vip-card { padding: 20px; }
  .rk-vip-card-name { font-size: 22px; }
  .rk-vip-card-price strong { font-size: 40px; }
  .rk-vip-promo { flex-direction: column; align-items: flex-start; padding: 20px; }
  .rk-vip-promo-qr { align-self: center; }
  .rk-vip-compare, .rk-vip-faq { padding: 16px; }
  .rk-vip-compare table { font-size: 12px; }
  .rk-vip-compare th, .rk-vip-compare td { padding: 8px 6px; }

  .rk-plans { grid-template-columns: repeat(2, 1fr); }
  .rk-pay-methods { grid-template-columns: 1fr; }
  .rk-recharge-form, .rk-recharge-records { padding: 16px; }
  .rk-balance-card { padding: 18px; }
  .rk-balance-value { font-size: 32px; }
  .rk-order-manual { flex-direction: column; align-items: center; }
  .rk-order-manual-info { width: 100%; }
  .rk-recharge-submit { flex-direction: column; align-items: stretch; gap: 12px; }
  .rk-recharge-selected { align-items: center; }
  .rk-table { display: block; overflow-x: auto; }
  .rk-user-side { flex-direction: column; }
  .rk-profile-grid { grid-template-columns: 1fr 1fr; }
  .rk-user-panel { padding: 16px; }

  .rk-sign-page { padding: 20px 12px 40px; align-items: flex-start; }
  .rk-sign-card { padding: 20px; border-radius: 14px; }
  .rk-sign-tabs { margin-bottom: 16px; }
  .rk-sign-social { grid-template-columns: 1fr; }
  .rk-captcha-img { width: 96px; }

  .rk-shop-grid { grid-template-columns: 1fr; }
  .rk-shop-toolbar { gap: 8px; }
  .rk-shop-notice { margin-left: 0; }
  .rk-modal-panel { padding: 16px; }
  .rk-modal { padding: 10px; }

  .rk-download-hero { padding: 34px 0 40px; }
  .rk-download-title { font-size: 24px; }
  .rk-download-title .rk-icon { width: 24px; height: 24px; }
  .rk-download-search { height: 46px; }
  .rk-download-hot-grid { grid-template-columns: 1fr; }
  .rk-download-row-btn { display: none; }
  .rk-download-row-cover { width: 58px; height: 42px; }
  .rk-404-code { font-size: 68px; }
  .rk-404-inner { padding: 40px 16px; }
  .rk-search-hero { padding: 20px 14px; }
}

/* ============ 23. 夜间模式（可选，切换 .site-dark） ============ */
body.site-dark {
  --bg-body: #12151c;
  --bg-card: #1b202a;
  --bg-soft: #212734;
  --bg-soft-2: #262d3b;
  --border: #2a3141;
  --border-2: #333c4e;
  --text: #e6e9f0;
  --text-2: #b6bdc9;
  --text-3: #8b93a2;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.5);
  --shadow-header: 0 2px 12px rgba(0, 0, 0, 0.35);
  --main-color-light: #1e2c4a;
}
body.site-dark .rk-header { background: rgba(20, 24, 33, 0.92); }
body.site-dark .rk-quick-links-inner a:hover { background: #1e2c4a; }
body.site-dark .rk-article-content { color: #c7cedb; }
body.site-dark .rk-copyright-cc { opacity: 0.45; }
body.site-dark .rk-icon-sun { display: inline-block; }
body.site-dark .rk-icon-moon { display: none; }
body.site-dark .rk-vip-btn, body.site-dark .rk-hero { filter: brightness(0.94); }
body.site-dark .rk-sign-card { background: rgba(27, 32, 42, 0.97); }
body.site-dark .rk-sign-sep span { background: var(--bg-card); }
body.site-dark .rk-plan input:checked + .rk-plan-inner,
body.site-dark .rk-pay-method input:checked + .rk-pay-method-inner { background: #1e2c4a; }

/* ============ 24. 打印 / 减少动画 ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============ 25. 商品详情单页 ============ */
.rk-product-detail { padding: 24px; }
.rk-product-detail-head { display: flex; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.rk-product-detail-cover { width: 380px; max-width: 42%; flex: none; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft-2); }
.rk-product-detail-cover img { width: 100%; display: block; }
.rk-product-detail-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rk-product-detail-info .rk-page-title { font-size: 24px; }
.rk-product-detail-desc { color: var(--text-3); font-size: 13px; margin: 0; }
.rk-product-detail-price { display: flex; align-items: baseline; gap: 10px; }
.rk-product-detail-price del { font-size: 13px; color: var(--text-3); }
.rk-product-detail-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rk-product-detail-actions .rk-buy-form { display: inline-flex; }
.rk-product-detail-tip { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); margin: 0; }
.rk-product-detail-tip .rk-icon { width: 14px; height: 14px; }
@media (max-width: 991px) {
  .rk-product-detail-head { flex-direction: column; }
  .rk-product-detail-cover { width: 100%; max-width: none; }
}

/* 页面防横向溢出（移动端公告条/长文本兜底） */
html, body { max-width: 100%; overflow-x: hidden; }
.rk-page { max-width: 100%; overflow-x: clip; }


/* ============ 友情链接（/links） ============ */
.rk-links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 18px 0 28px; }
.rk-link-card { display: block; padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.rk-link-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20, 30, 60, 0.1); border-color: transparent; }
.rk-link-card strong { display: block; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.rk-link-card span { display: block; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
.rk-link-card em { display: block; margin-top: 8px; font-size: 12px; font-style: normal; color: var(--main-color); word-break: break-all; }
.rk-links-apply { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.rk-links-apply h3 { margin: 0 0 10px; font-size: 16px; }
.rk-links-apply p { margin: 6px 0; font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
