/* 古诗词工具 样式（结构类复用与便民电话一致的 .cp-page/.calc-header/.card/.notice-box/.cp-region-btn/.sidebar-card 等） */
.cp-page { max-width: 1200px; margin: 0 auto; display: flex; gap: 20px; align-items: flex-start; box-sizing: border-box; }
.cp-main { flex: 1; min-width: 0; }
.cp-sidebar { width: 280px; flex-shrink: 0; }

.calc-header { background: linear-gradient(135deg, #1890ff 0%, #0056b3 100%); color: #fff; padding: 30px 20px; border-radius: 12px 12px 0 0; text-align: center; margin-bottom: 16px; }
.calc-header h1 { font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.calc-header p { font-size: 14px; opacity: 0.9; }

.card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.card-title { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid #1890ff; display: flex; align-items: center; justify-content: space-between; }
.intro-box { color: #666; line-height: 1.9; font-size: 15px; }
.intro-box p { margin: 0; white-space: pre-line; }
.notice-box { background: #fff7e6; border-radius: 8px; padding: 14px 16px; color: #666; font-size: 14px; line-height: 1.8; }
.notice-box p { margin: 0; }

.cp-region-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.cp-region-btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; background: #f0f7ff; color: #333; border-radius: 20px; text-decoration: none; font-size: 14px; line-height: 1.3; border: 1px solid #d9e8f7; transition: all 0.2s; white-space: nowrap; }
.cp-region-btn:hover { background: #1890ff; color: #fff; border-color: #1890ff; }

.sidebar-card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.sidebar-card-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 12px; padding-left: 10px; border-left: 4px solid #1890ff; }
.sidebar-card img.qr { width: 100%; border-radius: 8px; }

/* 搜索框 */
.poem-search-form { display: flex; gap: 8px; align-items: stretch; flex-wrap: nowrap; }
.poem-search-form input { flex: 1 1 auto; min-width: 0; padding: 11px 14px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 15px; box-sizing: border-box; }
.poem-search-form input:focus { outline: none; border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24,144,255,0.15); }
.poem-search-form button { flex: 0 0 auto; white-space: nowrap; min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border: none; background: #1890ff; color: #fff; border-radius: 6px; cursor: pointer; font-size: 15px; }
.poem-search-form button:hover { background: #0056b3; }

/* 右侧其它工具（样式与便民电话 cp-tools 一致） */
.cp-tools { display: flex; flex-direction: column; gap: 8px; }
.cp-tool-item { display: flex; align-items: center; padding: 10px 12px; background: #f8f9fa; border-radius: 8px; text-decoration: none; transition: all 0.2s; }
.cp-tool-item:hover { background: #e8f4ff; }
.cp-tool-icon { width: 32px; height: 32px; margin-right: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.cp-tool-icon img { width: 100%; height: 100%; object-fit: contain; }
.cp-tool-name { color: #333; font-size: 14px; }
.cp-tool-item:hover .cp-tool-name { color: #1890ff; }

/* 原文与拼音 */
.poem-content { font-size: 19px; line-height: 2.2; color: #222; text-align: center; }
.poem-line-wrap { margin: 6px 0; }
.poem-line { font-weight: 500; letter-spacing: 1px; }
.poem-pinyin { font-size: 13px; color: #999; margin-top: 2px; letter-spacing: 0.5px; }
.poem-tools { display: inline-flex; gap: 8px; }
.poem-tg { padding: 5px 12px; font-size: 13px; border: 1px solid #d9e8f7; background: #f0f7ff; color: #1890ff; border-radius: 16px; cursor: pointer; }
.poem-tg:hover { background: #1890ff; color: #fff; }

/* 背诵模式：原文隐藏，悬停显示 */
#originCard.recite-mode .poem-line { color: transparent; transition: color 0.15s; }
#originCard.recite-mode .poem-line:hover { color: #222; }

/* 标签 */
.poem-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.poem-tag { display: inline-block; padding: 7px 16px; background: #f5f8ff; color: #1890ff; border-radius: 18px; text-decoration: none; font-size: 14px; border: 1px solid #e3ecfb; }
.poem-tag:hover { background: #1890ff; color: #fff; }

/* 诗词网格卡片（精选 / 相关 / 列表） */
.poem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.poem-card { display: block; padding: 16px; background: #f8fbff; border: 1px solid #eef3fb; border-radius: 10px; text-decoration: none; transition: all 0.2s; }
.poem-card:hover { background: #e8f4ff; border-color: #1890ff; transform: translateY(-2px); }
.pc-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 6px; }
.poem-card:hover .pc-title { color: #1890ff; }
.pc-meta { font-size: 13px; color: #999; }

/* 互动按钮 */
.poem-actions { display: flex; gap: 12px; }
.poem-act { padding: 10px 22px; border: none; background: #1890ff; color: #fff; border-radius: 8px; cursor: pointer; font-size: 15px; }
.poem-act:hover { background: #0056b3; }

@media (max-width: 768px) {
  .cp-page { display: block; padding: 0 15px; box-sizing: border-box; }
  .cp-main { width: 100%; }
  .cp-sidebar { display: block; width: 100%; margin-top: 16px; }
  .calc-header { padding: 20px 15px; }
  .calc-header h1 { font-size: 22px; }
  .card { padding: 16px; }
  .card-title { font-size: 16px; }
  .poem-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .poem-content { font-size: 17px; }
  .poem-tg { padding: 4px 10px; font-size: 12px; }
  .cp-region-btn { padding: 8px 16px; font-size: 13px; }
}
