/* 交易放大镜：首页小组件 + 本站查询页（1.4.0） */

/* ---- 首页右栏 175x100 背景图上的真实搜索控件 ---- */
.index_TradeMagnifier {
  position: relative;
  overflow: hidden;
}
.xy-trade-mini-title {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 62%;
  display: block;
  text-indent: -9999px;
}
.xy-trade-mini-form {
  position: absolute;
  left: 6.3%;
  top: 65%;
  width: 88%;
  height: 20%;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 3%;
}
.xy-trade-mini-form input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 18px;
  padding: 0 2px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #222;
  font-size: 11px;
  line-height: 18px;
}
.xy-trade-mini-form input[type="text"]::placeholder { color: #999; }
.xy-trade-mini-form button {
  flex: 0 0 29%;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}
.xy-trade-mini-form button:focus-visible { outline: 1px dotted #254a56; }

/* ---- 本站查询页 ---- */
.xy-trade { font-size: 13px; line-height: 1.7; color: #333; }
.xy-trade-intro { margin: 0 0 12px; padding: 8px 12px; background: #f7fafb; border: 1px solid #d7e3e7; }
.xy-trade-intro p { margin: 0 0 4px; }
.xy-trade-intro p:last-child { margin-bottom: 0; }
.xy-trade-panel { margin: 0 0 18px; }
.xy-trade-panel h2 { margin: 0; padding: 7px 12px; background: #254a56; color: #fff; font-size: 14px; font-weight: normal; }
.xy-trade-panel .cg-panel-body { padding: 12px; }
.xy-trade-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 12px; }
.xy-trade-form label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.xy-trade-form select,
.xy-trade-form input[type="text"],
.xy-trade-form input[type="number"] {
  height: 26px;
  border: 1px solid #b9c9cf;
  background: #fff;
  color: #333;
  font-size: 12px;
  padding: 0 5px;
  border-radius: 2px;
}
.xy-trade-form input[type="text"] { width: 140px; }
.xy-trade-form input[type="number"] { width: 70px; }
.xy-trade-range { display: inline-flex; align-items: center; gap: 4px; }
.xy-trade-submit {
  height: 27px;
  padding: 0 18px;
  border: 0;
  border-radius: 2px;
  background: #254a56;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.xy-trade-submit:hover { background: #346675; }
.xy-trade-subtitle { margin: 14px 0 8px; font-size: 13px; font-weight: normal; color: #254a56; }
.xy-trade-note { margin: 0 0 8px; color: #666; }
.xy-trade-empty { padding: 10px; background: #fbf8f2; border: 1px dashed #d9cdb5; color: #765; }
.xy-trade-error { color: #b33; }
.xy-trade-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.xy-trade-table th,
.xy-trade-table td { padding: 6px 8px; border: 1px solid #d7e0e3; text-align: left; }
.xy-trade-table th { background: #edf3f5; color: #254a56; font-weight: normal; white-space: nowrap; }
.xy-trade-table tbody tr:nth-child(even) { background: #fafcfc; }
.xy-trade-table a { color: #1b6f8c; text-decoration: none; }
.xy-trade-table a:hover { text-decoration: underline; }
.xy-trade-price { color: #a55200; white-space: nowrap; }
.xy-trade-pager { margin-top: 10px; text-align: center; }
.xy-trade-pager a {
  display: inline-block;
  min-width: 24px;
  padding: 3px 6px;
  margin: 0 2px;
  border: 1px solid #c6d4d9;
  color: #254a56;
  text-decoration: none;
}
.xy-trade-pager a.active { background: #254a56; border-color: #254a56; color: #fff; }
.xy-trade-loud { list-style: none; margin: 0; padding: 0; }
.xy-trade-loud li { padding: 5px 0; border-bottom: 1px dotted #d7e0e3; }
.xy-trade-loud-time { color: #888; margin-right: 8px; }
.xy-trade-loud-who { color: #254a56; margin-right: 6px; }
.xy-trade-loud-msg { color: #333; }

@media (max-width: 760px) {
  .xy-trade-form { display: block; }
  .xy-trade-form label { display: block; margin-bottom: 8px; white-space: normal; }
  .xy-trade-form select,
  .xy-trade-form input[type="text"],
  .xy-trade-form input[type="number"] { max-width: 100%; }
  .xy-trade-submit { width: 100%; }
  .xy-trade-table th,
  .xy-trade-table td { padding: 5px 4px; font-size: 11px; word-break: break-all; }
  .xy-trade-intro { font-size: 12px; }
}

/* ==========================================================================
   交易放大镜 · 官方版式 1:1 复刻
   --------------------------------------------------------------------------
   使用主题自带 assets/images/Shop/ 素材（未改动任何图片文件）。
   .commerce_page01/02 + .commerce_preface/.commerce_search/.commerce_loud/
   .commerce_rank + .tbList01/.tbList02 的基础样式来自 Styles/common.css，
   这里只补齐 1:1 复刻所需的新增容器类，并修正被 inner.css/site.css 的
   body.home2 美化规则改写的地方（宽屏下保持官方原样）。
   ========================================================================== */
.xy-tm { font-size: 12px; color: #333; }
.xy-tm .commerce_page01,
.xy-tm .commerce_page02 { width: 635px; max-width: 100%; margin: 0 auto; }

/* 面板标题栏：官方 table_de.jpg 渐变 + 放大镜/喇叭/皇冠图标 */
.xy-tm .xy-tm-panel { width: 560px; max-width: 100%; margin: 0 auto 15px; border: 1px solid #ccc; padding-bottom: 10px; }
.xy-tm .xy-tm-title {
  height: 31px; line-height: 31px; margin-bottom: 10px; padding-left: 40px;
  font: 700 15px/31px "微软雅黑", "Microsoft YaHei", sans-serif; color: #fff;
  background: transparent url(../images/Shop/table_de.jpg) repeat-x center top;
  position: relative; overflow: hidden;
}
.xy-tm .xy-tm-title .photo { position: absolute; left: 5px; top: 0; width: 35px; height: 38px; display: block; }
.xy-tm .xy-tm-title .photo.xytm-ico-loud { background: transparent url(../images/Shop/loud01.png) no-repeat left center; width: 45px; }
.xy-tm .xy-tm-title .photo.xytm-ico-rank { background: transparent url(../images/Shop/rank01.png) no-repeat left center; width: 36px; height: 31px; }
.xy-tm .xy-tm-title .more { float: right; margin-right: 10px; color: #fff; font-size: 13px; text-decoration: none; }
.xy-tm .xy-tm-title .more:hover { color: #ff0; text-decoration: none; }
.xy-tm .xy-tm-title a:not(.more) { color: #fff; font-size: 12px; text-decoration: none; }
.xy-tm .xy-tm-title a:not(.more):hover { color: #ff0; }
.xy-tm .xy-tm-body { padding: 0 12px; }

/* 大声公列表：官方配色（时间红 / 角色蓝 / “说”深红 / 内容默认） */
.xy-tm .commerce_loud ul#loudTen,
.xy-tm .xy-tm-loudlist { list-style: none; margin: 0 auto; padding: 0; width: 520px; max-width: 100%; }
.xy-tm .commerce_loud ul#loudTen li,
.xy-tm .xy-tm-loudlist li {
  height: auto; min-height: 16px; line-height: 16px; display: block; margin: 0 0 3px;
  width: 100%; font: 12px/16px Arial, "微软雅黑", sans-serif; word-break: break-all;
}
.xy-tm .commerce_loud ul#loudTen li .time,
.xy-tm .xy-tm-loudlist li .time { color: #c00; margin-right: 5px; }
.xy-tm .commerce_loud ul#loudTen li .server,
.xy-tm .xy-tm-loudlist li .server { color: #039; font-weight: 700; margin-right: 3px; }
.xy-tm .commerce_loud ul#loudTen li .speak,
.xy-tm .xy-tm-loudlist li .speak { color: #900; font-weight: 700; margin-right: 3px; }
.xy-tm .xy-tm-loudform { margin: 0 0 12px; text-align: center; }
.xy-tm .xy-tm-loudform input[type="text"] { height: 22px; border: 1px solid #b9c9cf; padding: 0 6px; width: 240px; max-width: 100%; }
.xy-tm .xy-tm-loudform button,
.xy-tm .xy-tm-go { height: 24px; padding: 0 16px; border: 0; background: #254a56; color: #fff; font-size: 12px; cursor: pointer; border-radius: 2px; }
.xy-tm .xy-tm-shout label { font-size: 13px; }
.xy-tm .xy-tm-shout input[type="text"] { height: 26px; border: 1px solid #b9c9cf; padding: 0 6px; }

/* 排行榜 / 结果表：官方 tbList01 / tbList02 表格 */
.xy-tm .xy-tm-table { width: 520px; max-width: 100%; margin: 8px auto 0; border-collapse: collapse; border-width: 0; }
.xy-tm .xy-tm-table th {
  height: 31px; line-height: 31px; padding: 0 0 5px;
  font: 700 15px/31px "微软雅黑", sans-serif; color: #fff; text-align: center;
  background: transparent url(../images/Shop/table_de.jpg) repeat-x center top;
}
.xy-tm .xy-tm-table th span { display: inline-block; }
.xy-tm .xy-tm-table th .list { width: 40px; text-align: center; }
.xy-tm .xy-tm-table th .goods { min-width: 120px; text-align: left; }
.xy-tm .xy-tm-table th .price,
.xy-tm .xy-tm-table th .quantity { min-width: 80px; text-align: center; }
.xy-tm .xy-tm-table td { padding: 5px 3px 3px; border-bottom: 1px dotted #ccc; }
.xy-tm .xy-tm-table td span { display: inline-block; }
.xy-tm .tbList01 td .list { background: #c00; color: #fff; width: 16px; height: 16px; line-height: 16px; display: inline-block; text-align: center; font: 700 12px/16px Arial, sans-serif; margin-top: 4px; }
.xy-tm .tbList01 th .list { width: auto; text-align: center; color: #fff; font: 700 15px/31px "微软雅黑", sans-serif; background: none; height: auto; margin: 0; }
.xy-tm .tbList01 .goods { font-size: 12px; color: #333; text-align: left; }
.xy-tm .tbList01 .price { font-size: 12px; color: #900; text-align: right; }
.xy-tm .tbList01 .quantity { font-size: 12px; color: #333; text-align: center; }
.xy-tm .xy-tm-table a { color: #039; text-decoration: none; }
.xy-tm .xy-tm-table a:hover { color: #06c; text-decoration: underline; }
.xy-tm .search_treasure { width: 120px; text-align: center; }
.xy-tm .search_quantity { width: 34px; text-align: center; }
.xy-tm .search_price { width: 78px; text-align: center; color: #900; }
.xy-tm .search_id { width: 88px; text-align: center; }
.xy-tm .search_id .xy-tm-shop { display: block; color: #999; font-size: 10px; line-height: 12px; }
.xy-tm .search_shop { width: 100px; text-align: center; }
.xy-tm .search_server { width: 50px; text-align: center; }
.xy-tm .search_place { width: 110px; text-align: center; }
.xy-tm .xy-tm-note { margin: 10px auto 0; width: 520px; max-width: 100%; color: #666; font-size: 12px; }

/* 官方「搜寻成功 / 找不到」提示与返回按钮 */
.xy-tm .search_preface .txt16 { color: #039; font-weight: 700; }
.xy-tm .search_preface a { color: #0099cc; }
.xy-tm .search_btn { cursor: pointer; border: 0; }
.xy-tm .change_page a { display: inline-block; min-width: 15px; height: 22px; line-height: 22px; text-align: center; color: #1582a3; border: 1px solid #ccc; text-decoration: none; padding: 0 4px; }
/* 官方 .change_page a 是给页码用的固定 15px 宽度；「返回搜寻结果」改成与「重新搜尋」图片按钮一致的蓝色渐变。
   注意：inner.css 的 body.home2 .pageContent a:not(.cg-btn):not(.dl-btn){color:#0099cc}
   特异性更高，会把按钮文字染成青蓝；这里用 !important 覆盖全部状态，与 site.css 的 .cg-btn 白字做法一致。 */
.xy-tm .change_page a.xy-tm-back,
.xy-tm .change_page a.xy-tm-back:link,
.xy-tm .change_page a.xy-tm-back:visited,
.xy-tm .change_page a.xy-tm-back:hover,
.xy-tm .change_page a.xy-tm-back:active,
.xy-tm .change_page a.xy-tm-back:focus {
  display: inline-block; width: 100px; height: 30px; padding: 0;
  border: 1px solid #498bcb; border-radius: 4px;
  background: linear-gradient(180deg, #0d67bf 0%, #439bf4 100%);
  color: #fff !important; font: 700 13px/28px "微软雅黑", Arial, sans-serif;
  text-align: center; text-decoration: none !important; white-space: nowrap;
}
.xy-tm .change_page a.xy-tm-back:hover {
  border-color: #0c4b8b;
  background: linear-gradient(180deg, #073c6f 0%, #2471c0 100%);
}
.xy-tm .change_page a.active { background: #369; color: #fff; border-color: #369; font-weight: 700; }

.xy-tm .xy-tm-empty { color: #765; font-size: 12px; padding: 8px; background: #fbf8f2; border: 1px dashed #d9cdb5; list-style: none; }

/* 宽屏下覆盖 inner.css 对官方控件的高特异性美化，恢复官方原版外观 */
@media (min-width: 1001px) {
  body.home2 .xy-tm .commerce_search .title .photo,
  body.home2 .xy-tm .commerce_loud .title .photo,
  body.home2 .xy-tm .commerce_rank .title .photo { background-repeat: no-repeat; }
  body.home2 .xy-tm .commerce_search .title span:not(.photo),
  body.home2 .xy-tm .commerce_loud .title span:not(.photo),
  body.home2 .xy-tm .commerce_rank .title span:not(.photo) { color: #fff; }
  body.home2 .xy-tm .commerce_search .title a,
  body.home2 .xy-tm .commerce_loud .title a,
  body.home2 .xy-tm .commerce_rank .title a { color: #fff !important; }
  body.home2 .xy-tm .commerce_search #btnSearch { background: none !important; border: 0 !important; color: #039 !important; font: 400 14px/20px Arial, "微软雅黑", sans-serif !important; padding: 0 !important; min-width: 0 !important; border-radius: 0 !important; min-height: 0 !important; height: 20px !important; text-decoration: none !important; }
  body.home2 .xy-tm .commerce_search #btnSearch:hover { color: #06c !important; background: none !important; }
}

@media (max-width: 1000px) {
  .xy-tm .commerce_page01,
  .xy-tm .commerce_page02,
  .xy-tm .xy-tm-panel,
  .xy-tm .xy-tm-table { width: 100% !important; }
  .xy-tm .commerce_loud ul#loudTen,
  .xy-tm .xy-tm-loudlist { width: 100% !important; }
  .xy-tm .xy-tm-table td span { width: auto !important; white-space: normal; }
  .xy-tm .xy-tm-title { padding-left: 42px; }
}
