/* ============================================================================
 * 源码说明（public/assets/css/pages2.css）
 * 页面组（pages2）专属样式。
 * 覆盖：搜服筛选、广告分析图表、活动专区、玩家交流、帖子详情、工具导航、黑名单、发布站点。
 * 注意：只作用于各自页面容器 class，不影响首页/排行页（那两页用 clone.css）。
 * ========================================================================== */

/* ============================================================
 * 1GM 克隆站 · 页面组（frontend-pages）补充样式
 * 在 main.css / 各原站页面 css / clone.css 之后加载
 * 命名约定：新组件统一使用 p2- 前缀，避免覆盖原站样式
 * ============================================================ */

/* ---------- 页面骨架 ---------- */
.p2-main {
  position: relative;
  z-index: 1;
  padding-bottom: 10px;
}
.p2-main > .layout-container { width: 1300px; margin: 0 auto; }
.p2-head-icon { width: 22px; height: 22px; vertical-align: -4px; margin-right: 8px; }
.p2-result-summary { color: #999; font-size: 13px; }
.p2-result-summary b { color: #ef6033; font-weight: 700; }
.p2-clip { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.p2-price { color: #ef6033; font-weight: 700; white-space: nowrap; }
.p2-muted { color: #999; }
.p2-red { color: #e60808; }
.p2-nowrap { white-space: nowrap; }
.p2-tc { text-align: center; }

/* ---------- 状态 / 兜底 ---------- */
.p2-error {
  padding: 44px 20px; text-align: center; color: #999; font-size: 14px;
  background: #fff; border: 1px dashed #e5e5e5; border-radius: 6px;
}
.p2-error__msg { margin-bottom: 14px; }
.p2-empty-note { color: #999; font-size: 13px; }
.p2-inline-loading { padding: 40px 0; }

/* ---------- 搜服筛选 ---------- */
.p2-search-box .base-form-group { flex-wrap: wrap; row-gap: 12px; }
.p2-search-box .base-form-group__input.p2-keyword { flex: 1 1 320px; min-width: 240px; }
.p2-search-box .base-form-group__select.p2-sel { width: 138px; }
.p2-search-box .base-form-group__select.p2-sel--wide { width: 168px; }
.p2-search-box .base-data-tips { margin-top: 20px; }
.p2-ad-name { color: #e60808; font-weight: 700; }
.p2-ad-name:hover { color: #ef6033; }
.p2-ad-time { color: #e60808; white-space: nowrap; }
.p2-ad-type { display: inline-block; padding: 0 8px; height: 22px; line-height: 22px; border-radius: 3px; background: #fdeeea; color: #ef6033; font-size: 12px; white-space: nowrap; }
.p2-ad-type--th { background: #fdeeea; color: #e5471d; }
.p2-ad-type--tx { background: #fff3e0; color: #d48806; }
.p2-ad-type--tg { background: #f3edfb; color: #7a4fb0; }
.p2-ad-type--qg { background: #eaf2fb; color: #3b7bbd; }
.p2-ad-type--qt { background: #fdf6e3; color: #b8860b; }
.p2-ad-type--normal { background: #f2f2f2; color: #888; }
.p2-ad-link { color: #ef6033; }
.p2-ad-link:hover { text-decoration: underline; }

/* ---------- 广告分析 · 统计卡片 ---------- */
.p2-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.p2-range .c-input { width: 150px; height: 34px; }
.p2-range__sep { color: #999; }
.p2-stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 8px;
}
.p2-stat {
  background: #fff; border: 1px solid #f0e6dc; border-radius: 8px;
  padding: 20px 22px; box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
}
.p2-stat__label { color: #999; font-size: 14px; line-height: 1; }
.p2-stat__value { margin-top: 14px; color: #efe0c7; font-size: 30px; font-weight: 700; line-height: 1; }
.p2-stat:nth-child(1) .p2-stat__value { color: #ef6033; }
.p2-stat:nth-child(2) .p2-stat__value { color: #e0ab1e; }
.p2-stat:nth-child(3) .p2-stat__value { color: #384455; }
.p2-stat:nth-child(4) .p2-stat__value { color: #1a9c53; }
.p2-stat__unit { font-size: 14px; font-weight: 400; margin-left: 4px; }
.p2-chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.p2-chart-grid .cus-section { margin-bottom: 16px; }
.p2-chart-panel { padding: 4px 8px; }
.p2-chart-canvas { display: block; width: 100%; height: 320px; }
.p2-chart-legend { display: flex; gap: 20px; padding: 0 8px 6px; color: #888; font-size: 12px; }
.p2-chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 5px; vertical-align: -2px; }
.p2-sub-title { color: #999; font-size: 13px; }

/* ---------- 活动专区 ---------- */
.p2-event-rank-num { color: #999; font-size: 24px; font-weight: 700; width: 64px; text-align: center; }
.p2-event-thumb-empty { display: none; }
.p2-event-cover {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 38px; font-weight: 700; letter-spacing: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.p2-event-cover--0 { background: linear-gradient(135deg, #ff9a6b 0%, #ef6033 100%); }
.p2-event-cover--1 { background: linear-gradient(135deg, #f7c948 0%, #d48806 100%); }
.p2-event-cover--2 { background: linear-gradient(135deg, #6a7b8c 0%, #384455 100%); }
.p2-event-cover--3 { background: linear-gradient(135deg, #54b98a 0%, #1a9c53 100%); }
.p2-event-cover--4 { background: linear-gradient(135deg, #8a9bd8 0%, #4a5f9c 100%); }
.p2-event-modal__hero {
  height: 180px; margin-bottom: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 46px; font-weight: 700; letter-spacing: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}
.p2-event-time { color: #999; font-size: 14px; margin-top: 10px; }
.p2-event-status { margin-left: 12px; vertical-align: 2px; }
.p2-event-modal__cover { display: block; max-width: 100%; max-height: 260px; margin: 0 auto 16px; border-radius: 6px; }
.p2-event-modal__meta { color: #999; font-size: 13px; margin-bottom: 16px; line-height: 22px; }
.p2-event-content { color: #333; font-size: 14px; line-height: 26px; white-space: pre-wrap; word-break: break-word; }
.p2-event-item { cursor: pointer; }

/* ---------- 玩家交流 ---------- */
.p2-forum-layout { margin-top: 24px; }
.p2-forum-tools { float: right; width: 330px; }
.p2-forum-tools .forum-search { width: 100%; }
.p2-forum-actions { float: right; margin-left: 16px; }
.p2-cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0 16px; }
.p2-cat-tabs .p2-cat-tab {
  display: inline-block; height: 32px; line-height: 32px; padding: 0 18px;
  border: 1px solid #e5e5e5; border-radius: 16px; color: #333; font-size: 14px;
  background: #fff; cursor: pointer; text-decoration: none;
}
.p2-cat-tabs .p2-cat-tab.is-active { background: #ff5722; border-color: #ff5722; color: #fff; }
.p2-cat-tabs .p2-cat-tab:hover { border-color: #ff5722; color: #ff5722; }
.p2-cat-tabs .p2-cat-tab.is-active:hover { color: #fff; }
.p2-post-cat {
  display: inline-block; margin-left: 10px; padding: 0 8px; height: 20px; line-height: 20px;
  border-radius: 3px; background: #f2f2f2; color: #888; font-size: 12px; vertical-align: 1px;
}
.p2-post-top {
  display: inline-block; margin-left: 8px; padding: 0 8px; height: 20px; line-height: 20px;
  border-radius: 3px; background: #fdeeea; color: #ef6033; font-size: 12px; vertical-align: 1px;
}
.p2-post-author { color: #999; }
.p2-post-list-empty { padding: 60px 0; }
.p2-breadcrumb { color: #999; font-size: 13px; padding: 4px 0 16px; }
.p2-breadcrumb a { color: #666; }
.p2-breadcrumb a:hover { color: #ff5722; }
.p2-post-detail { border-bottom: 1px solid #e5e5e5; padding-bottom: 24px; }
.p2-post-title { color: #333; font-size: 24px; font-weight: 700; line-height: 34px; margin: 0 0 14px; word-break: break-word; }
.p2-post-meta { color: #999; font-size: 13px; line-height: 22px; }
.p2-post-meta span { margin-right: 18px; }
.p2-post-content { color: #333; font-size: 15px; line-height: 28px; margin-top: 22px; white-space: pre-wrap; word-break: break-word; }
.p2-reply-block-title { color: #333; font-size: 18px; font-weight: 700; padding: 24px 0 8px; }
.p2-reply-item { border-bottom: 1px dashed #eee; padding: 16px 0; }
.p2-reply-head { overflow: hidden; margin-bottom: 8px; }
.p2-reply-head-avatar { float: left; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; margin-right: 8px; background: #d9d9d9; }
.p2-reply-head-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.p2-reply-head-name { float: left; color: #333; font-size: 13px; line-height: 24px; }
.p2-reply-head-time { float: right; color: #999; font-size: 12px; line-height: 24px; }
.p2-reply-content { color: #333; font-size: 14px; line-height: 24px; white-space: pre-wrap; word-break: break-word; }
.p2-reply-form { padding: 20px 0 32px; }
.p2-reply-form textarea { width: 100%; min-height: 110px; box-sizing: border-box; }
.p2-reply-form__foot { margin-top: 12px; text-align: right; }
.p2-login-tip {
  margin: 20px 0 32px; padding: 24px; background: #faf7f2; border-radius: 8px;
  color: #888; font-size: 14px; text-align: center;
}
.p2-post-loading { padding: 60px 0; }

/* ---------- 工具导航 ---------- */
.p2-tool-letter {
  display: block; width: 62px; height: 62px; line-height: 62px; text-align: center;
  border-radius: 50%; background: #fdeeea; color: #ef6033; font-size: 24px; font-weight: 700;
  margin: 0 auto;
}
.p2-tool-desc {
  color: #999; font-size: 12px; line-height: 20px; padding: 0 12px 12px;
  text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.p2-tool-empty { padding: 30px 0; color: #999; text-align: center; font-size: 14px; }
.p2-fallback-note { color: #d48806; font-size: 12px; padding: 8px 0; }
.p2-tool-group { display: none; }
.p2-tool-group.is-show { display: block; }

/* ---------- 黑名单 ---------- */
.p2-blacklist-tools { display: flex; align-items: center; justify-content: space-between; }
.p2-blacklist-table td { vertical-align: middle; }
.p2-blacklist-reason {
  max-width: 420px; word-break: break-word; text-align: left;
  white-space: normal; overflow: visible; text-overflow: clip;
  line-height: 22px; padding: 10px 8px;
}
.p2-blacklist-domain { word-break: break-all; }
.p2-status-tag { display: inline-block; padding: 0 8px; height: 22px; line-height: 22px; border-radius: 3px; font-size: 12px; white-space: nowrap; }
.p2-status-tag--ok { background: #e8f7ee; color: #1a9c53; }
.p2-status-tag--pending { background: #fff7e6; color: #d48806; }
.p2-status-tag--reject { background: #f2f2f2; color: #888; }
.p2-required { color: #ef6033; font-style: normal; margin-left: 2px; }
.p2-form-tip { color: #999; font-size: 12px; line-height: 20px; margin-top: 4px; }
.p2-blacklist-summary { color: #999; font-size: 13px; padding: 0 32px 12px; }

/* ---------- 发布站点 ---------- */
.p2-publish-intro { color: #666; font-size: 14px; line-height: 26px; }
.p2-publish-intro b { color: #ef6033; }
.p2-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.p2-plan {
  position: relative; background: #fff; border: 1px solid #eee; border-radius: 10px;
  padding: 28px 24px 24px; text-align: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
  transition: transform .15s ease, box-shadow .15s ease;
}
.p2-plan:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, .1); }
.p2-plan.is-hot { border-color: #ef6033; box-shadow: 0 8px 26px rgba(239, 96, 51, .16); }
.p2-plan__badge {
  position: absolute; top: -1px; right: -1px; padding: 4px 12px; border-radius: 0 10px 0 10px;
  background: #ef6033; color: #fff; font-size: 12px;
}
.p2-plan__name { color: #333; font-size: 20px; font-weight: 700; }
.p2-plan__price { color: #ef6033; font-size: 36px; font-weight: 700; margin-top: 18px; line-height: 1; }
.p2-plan__price small { color: #999; font-size: 14px; font-weight: 400; margin-left: 4px; }
.p2-plan__features { list-style: none; margin: 22px 0 24px; padding: 0; border-top: 1px dashed #eee; padding-top: 18px; }
.p2-plan__features li { color: #666; font-size: 14px; line-height: 30px; }
.p2-plan__features li:before { content: '✓'; color: #1a9c53; font-weight: 700; margin-right: 8px; }
.p2-plan__btn { width: 100%; }
.p2-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.p2-step { position: relative; padding: 20px 18px; background: #faf7f2; border-radius: 8px; }
.p2-step__num {
  display: inline-block; width: 30px; height: 30px; line-height: 30px; border-radius: 50%;
  background: #ef6033; color: #fff; font-size: 15px; font-weight: 700; text-align: center; margin-bottom: 10px;
}
.p2-step__title { color: #333; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.p2-step__desc { color: #999; font-size: 13px; line-height: 22px; }
.p2-contact-list { display: flex; gap: 20px; flex-wrap: wrap; }
.p2-contact-item {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: #faf7f2;
  border-radius: 8px; color: #333; font-size: 14px;
}
.p2-contact-item img { width: 20px; height: 20px; }
.p2-contact-item b { color: #ef6033; }
.p2-apply-card { background: #fff; }
.p2-apply-form { max-width: 720px; }
.p2-apply-form .c-input, .p2-apply-form .c-select { width: 100%; }
.p2-apply-form .c-textarea { width: 100%; }
.p2-apply-form .p2-form-half { display: flex; gap: 16px; }
.p2-apply-form .p2-form-half > .c-form-row { flex: 1; }
.p2-apply-form .c-form-row > label { width: 110px; }
.p2-submit-row { padding-left: 122px; }

/* 发布站点 · 广告位置说明间距 */
.p2-main .cy-rules__title { margin-top: 16px; }
.p2-main .cy-rules__title:first-child { margin-top: 0; }

/* ---------- 通用小工具 ---------- */
.p2-flex { display: flex; align-items: center; }
.p2-flex-between { display: flex; align-items: center; justify-content: space-between; }
.p2-gap8 { gap: 8px; }
.p2-mt12 { margin-top: 12px; }
.p2-mb12 { margin-bottom: 12px; }
.p2-clearfix:after { content: ''; display: block; clear: both; }

@media (max-width: 1400px) {
  .p2-chart-grid { grid-template-columns: 1fr; }
  .p2-stat-grid { grid-template-columns: repeat(4, 1fr); }
}
