/* ==========================================================================
   海图网 local demo additions – keeps the original 2011-era visual language
   ========================================================================== */
:root{
  --tx-blue:#3370ff;
  --tx-blue-dark:#245bd0;
  --tx-orange:#ff491f;
  --tx-cyan:#00a2ca;
  --tx-text:#333;
  --tx-muted:#888;
  --tx-line:#e6e6e6;
  --tx-bg:#f5f9ff;
}
.tx-noscroll{overflow:hidden!important;}

/* ---------- top bar auth slot ---------- */
.tx-auth-slot{float:left;display:inline-flex!important;align-items:center;gap:5px;height:39px;font-size:12px;color:#666;white-space:nowrap;}
.tx-auth-slot a{color:#08c;text-decoration:none;line-height:39px;}
.tx-auth-slot a.tx-reg{color:#090;}
.tx-auth-slot a:hover{text-decoration:underline;}
.tx-auth-slot .tx-mini{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin:0 1px;border-radius:50%;}
.tx-auth-slot .tx-mini img{width:20px;height:20px;display:block;}
.tx-auth-slot .tx-user-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3370ff;}
.tx-auth-slot .tx-sep{color:#ddd;margin:0 2px;}

/* detail (blue) header variant */
.hr-wrap .h-login-type .tx-auth-slot{float:none;display:inline-flex!important;height:43px;color:#fff;font-size:12px;vertical-align:middle;}
.hr-wrap .h-login-type .tx-auth-slot a{color:#fff;line-height:43px;padding:0 2px;}
.hr-wrap .h-login-type .tx-auth-slot a:hover{text-decoration:underline;}
.hr-wrap .h-login-type .tx-auth-slot .tx-mini img{width:20px;height:20px;}
.hr-wrap .h-login-type .tx-user-name{color:#fff;}

/* ---------- tiny utilities ---------- */
.tx-hide{display:none!important;}
.tx-flex{display:flex;align-items:center;}
.tx-spacer{flex:1;}
.tx-muted{color:#888;}
.tx-blue{color:var(--tx-blue);}
.tx-orange{color:var(--tx-orange);}
.tx-btn{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 22px;border:0;border-radius:3px;background:var(--tx-blue);color:#fff!important;font-size:14px;cursor:pointer;text-decoration:none;font-family:"Microsoft YaHei",Arial,sans-serif;transition:background .15s;}
.tx-btn:hover{background:var(--tx-blue-dark);color:#fff;text-decoration:none;}
.tx-btn.tx-btn-orange{background:var(--tx-orange);}
.tx-btn.tx-btn-orange:hover{background:#e63f17;}
.tx-btn.tx-btn-ghost{background:#f4f4f4;color:#555!important;border:1px solid #ddd;}
.tx-btn.tx-btn-ghost:hover{background:#ececec;}
.tx-btn.tx-btn-sm{height:30px;padding:0 14px;font-size:12px;}
.tx-btn[disabled]{opacity:.6;cursor:not-allowed;}

/* ---------- toast ---------- */
#tx-toasts{position:fixed;z-index:2147483000;right:22px;top:70px;display:flex;flex-direction:column;gap:10px;pointer-events:none;}
.tx-toast{min-width:220px;max-width:360px;background:#fff;border-left:4px solid var(--tx-blue);box-shadow:0 8px 30px rgba(0,0,0,.18);border-radius:3px;padding:12px 16px;font:13px/1.6 "Microsoft YaHei",Arial,sans-serif;color:#333;animation:txSlide .22s ease-out;pointer-events:auto;}
.tx-toast.ok{border-left-color:#25b244;}
.tx-toast.warn{border-left-color:#f5a623;}
.tx-toast.err{border-left-color:#e33;}
.tx-toast .tx-toast-title{font-weight:bold;margin-bottom:2px;}
@keyframes txSlide{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}

/* ---------- modal ---------- */
.tx-mask{position:fixed;left:0;top:0;right:0;bottom:0;background:rgba(20,28,40,.52);z-index:2147482000;display:flex;align-items:center;justify-content:center;animation:txFade .18s ease-out;}
@keyframes txFade{from{opacity:0}to{opacity:1}}
.tx-modal{width:460px;max-width:calc(100vw - 40px);background:#fff;border-radius:5px;box-shadow:0 20px 70px rgba(0,0,0,.3);overflow:hidden;font:13px/1.7 "Microsoft YaHei",Arial,sans-serif;color:#333;}
.tx-modal-hd{height:48px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#3370ff,#4c8dff);color:#fff;font-size:16px;}
.tx-modal-hd .tx-x{cursor:pointer;font-size:24px;line-height:1;opacity:.85;padding:0 4px;}
.tx-modal-hd .tx-x:hover{opacity:1;}
.tx-modal-bd{padding:22px 24px 8px;max-height:62vh;overflow:auto;}
.tx-modal-ft{padding:14px 24px 22px;display:flex;justify-content:flex-end;gap:10px;}
.tx-modal .tx-field{margin-bottom:14px;}
.tx-modal .tx-field label{display:block;margin-bottom:6px;color:#555;}
.tx-modal input[type=text],.tx-modal input[type=password],.tx-modal input[type=email],.tx-modal textarea,.tx-modal select{width:100%;box-sizing:border-box;border:1px solid #d7d7d7;border-radius:3px;padding:9px 10px;font:13px/1.4 "Microsoft YaHei",Arial,sans-serif;outline:none;background:#fff;}
.tx-modal input:focus,.tx-modal textarea:focus,.tx-modal select:focus{border-color:var(--tx-blue);box-shadow:0 0 0 2px rgba(51,112,255,.1);}
.tx-modal textarea{resize:vertical;min-height:90px;}

/* ---------- login page additions ---------- */
.tx-login-demo{margin-top:12px;padding:10px 12px;background:#f7faff;border:1px dashed #cfe0ff;border-radius:3px;color:#678;font-size:12px;line-height:1.8;}
.tx-login-demo b{color:#3370ff;}
.tx-login-demo a{color:#3370ff;cursor:pointer;text-decoration:underline;}
.tx-field-error{border-color:#ff5b5b!important;background:#fff8f8!important;}
#payQRImg2{background:#fff!important;border:1px solid #eee;}

/* ---------- search ---------- */
.tx-search-empty{width:100%;padding:70px 0 90px;text-align:center;color:#888;font-size:14px;}
.tx-search-empty .tx-ico{font-size:46px;color:#c9d8ff;line-height:1;margin-bottom:16px;}
.tx-search-empty b{color:#333;}
.tx-search-empty .tx-hot{margin-top:18px;}
.tx-search-empty .tx-hot a{display:inline-block;margin:0 6px 8px;padding:5px 12px;border:1px solid #dce6ff;border-radius:20px;color:#3370ff;background:#f7faff;text-decoration:none;}
.tx-search-empty .tx-hot a:hover{background:#3370ff;color:#fff;}
.tx-result-tools{display:flex;align-items:center;gap:12px;margin:0 0 8px;color:#888;font-size:12px;}
.tx-result-tools select{height:28px;border:1px solid #dcdcdc;background:#fff;padding:0 6px;}
.tx-search-results .camWholeBoxUl>li{height:244px!important;padding:12px 14px 0!important;box-sizing:border-box;}
.tx-search-results .camLiTitleC.hot{height:52px;line-height:20px;overflow:hidden;font-size:12px;}

/* ---------- mega menu ---------- */
.home_cate .cate{min-height:350px;}
.home_cate .category-sub{min-height:319px;}
.home_cate .category-sub dd a{line-height:26px;}

/* ---------- home tweaks ---------- */
.tx-tab-active{color:#fc401d!important;}
.tx-home-search-hot a{color:#888;margin-right:12px;font-size:12px;}
.tx-home-search-hot a:hover{color:var(--tx-blue);}
.tx-gotop{transition:opacity .2s;}

/* ---------- detail page ---------- */
.tx-detail-highlight{animation:txPulse 1.2s ease-out;}
@keyframes txPulse{0%{box-shadow:0 0 0 4px rgba(51,112,255,.25)}100%{box-shadow:0 0 0 0 rgba(51,112,255,0)}}
#viewcontent .tx-preview-title{font-size:14px;color:#555;text-align:center;margin:8px 0 12px;}
#viewcontent .tx-preview-img{max-width:100%;border:1px solid #ddd;background:#fff;}
#viewcontent .tx-preview-hint{color:#ff3c00;text-align:center;padding:30px 0;font-size:13px;}
.tx-detail-badge{display:inline-block;padding:1px 7px;background:#f0f5ff;color:#3370ff;border-radius:2px;font-size:11px;margin-left:6px;vertical-align:1px;}
.tx-collected{background:#fff3e9!important;border-color:#ffb27a!important;color:#ff6a00!important;}
.tx-download-progress{height:8px;background:#eef2fb;border-radius:6px;overflow:hidden;margin:12px 0 6px;}
.tx-download-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#3370ff,#5fa0ff);transition:width .2s;}
.tx-download-note{color:#888;font-size:12px;}
.tx-comment-list{margin:10px 0 0;}
.tx-comment{display:flex;gap:10px;padding:12px 0;border-bottom:1px dashed #eee;}
.tx-comment img{width:36px;height:36px;border-radius:50%;}
.tx-comment .tx-c-body{flex:1;min-width:0;}
.tx-comment .tx-c-meta{color:#999;font-size:11px;margin-bottom:2px;}
.tx-comment .tx-c-text{color:#444;line-height:1.7;word-break:break-word;}
.tx-comment-form{display:flex;gap:8px;margin-top:12px;}
.tx-comment-form input{flex:1;height:34px;border:1px solid #ddd;padding:0 10px;font-size:12px;}
.tx-comment-form button{height:34px;}

/* ---------- generic panels (upload / user center / category) ---------- */
.tx-page{width:1200px;margin:18px auto 30px;font-family:"Microsoft YaHei",Arial,sans-serif;color:#333;}
.tx-page-bg{background:linear-gradient(180deg,#f5f9ff 0,#fff 260px);padding:1px 0 30px;}
.tx-panel{background:#fff;border:1px solid #e6edf9;box-shadow:0 1px 3px rgba(28,64,128,.05);border-radius:4px;}
.tx-panel-hd{height:52px;border-bottom:1px solid #eef2f8;display:flex;align-items:center;justify-content:space-between;padding:0 24px;}
.tx-panel-hd h2{margin:0;font-size:18px;font-weight:normal;color:#222;}
.tx-panel-hd h2 b{color:var(--tx-blue);font-weight:normal;}
.tx-panel-bd{padding:24px;}
.tx-crumb{font-size:12px;color:#888;margin:0 0 12px;}
.tx-crumb a{color:#666;text-decoration:none;}
.tx-crumb a:hover{color:var(--tx-blue);}
.tx-form-row{display:flex;align-items:flex-start;margin-bottom:18px;}
.tx-form-row>label{width:96px;flex:0 0 96px;text-align:right;padding-right:14px;line-height:38px;color:#555;font-size:13px;}
.tx-form-row>label em{color:#e33;font-style:normal;margin-right:2px;}
.tx-form-field{flex:1;min-width:0;}
.tx-form-field input[type=text],.tx-form-field input[type=number],.tx-form-field select,.tx-form-field textarea{width:100%;box-sizing:border-box;border:1px solid #dcdcdc;border-radius:3px;padding:9px 11px;font:13px/1.5 "Microsoft YaHei",Arial,sans-serif;outline:none;}
.tx-form-field textarea{min-height:110px;resize:vertical;}
.tx-form-field input:focus,.tx-form-field select:focus,.tx-form-field textarea:focus{border-color:var(--tx-blue);box-shadow:0 0 0 2px rgba(51,112,255,.08);}
.tx-form-tip{color:#999;font-size:12px;margin-top:5px;line-height:1.6;}
.tx-drop{position:relative;border:2px dashed #cfe0ff;background:#f8fbff;border-radius:6px;padding:34px 20px;text-align:center;cursor:pointer;transition:.18s;}
.tx-drop:hover,.tx-drop.tx-drag{border-color:var(--tx-blue);background:#f0f6ff;}
.tx-drop .tx-drop-ico{font-size:42px;line-height:1;color:#8fb4ff;margin-bottom:10px;}
.tx-drop h3{margin:0 0 6px;font-size:16px;font-weight:normal;color:#333;}
.tx-drop p{margin:0;color:#999;font-size:12px;}
.tx-drop input[type=file]{display:none;}
.tx-file-list{margin-top:12px;}
.tx-file-item{display:flex;align-items:center;gap:10px;background:#f7f9fd;border:1px solid #e8eefb;border-radius:3px;padding:8px 12px;font-size:12px;margin-bottom:8px;}
.tx-file-item .tx-f-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tx-file-item .tx-f-size{color:#999;}
.tx-file-item .tx-f-del{color:#e55;cursor:pointer;padding:0 4px;}
.tx-form-actions{padding-left:96px;display:flex;gap:12px;align-items:center;}
.tx-upload-success{text-align:center;padding:48px 20px;}
.tx-upload-success .tx-ok{width:64px;height:64px;border-radius:50%;background:#eaf9ee;color:#25b244;font-size:32px;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;}
.tx-upload-success h2{margin:0 0 8px;font-weight:normal;font-size:20px;}
.tx-upload-success p{color:#888;margin:0 0 22px;}

/* user center */
.tx-user-hero{display:flex;align-items:center;gap:20px;padding:26px 28px;background:linear-gradient(120deg,#eef5ff,#f8fbff 60%,#fff);border-bottom:1px solid #eef2f8;}
.tx-user-hero img{width:76px;height:76px;border-radius:50%;border:3px solid #fff;box-shadow:0 2px 12px rgba(51,112,255,.2);}
.tx-user-hero h2{margin:0 0 4px;font-size:22px;font-weight:normal;}
.tx-user-hero p{margin:0;color:#888;font-size:12px;}
.tx-user-stats{display:flex;gap:0;margin-left:auto;}
.tx-user-stat{min-width:96px;text-align:center;border-left:1px solid #e5eefb;padding:0 18px;}
.tx-user-stat b{display:block;font:normal 22px/1.2 "Microsoft YaHei",Arial;color:#3370ff;}
.tx-user-stat span{color:#999;font-size:12px;}
.tx-user-tabs{display:flex;gap:4px;border-bottom:1px solid #eef2f8;padding:0 24px;}
.tx-user-tabs a{position:relative;padding:15px 16px;color:#666;font-size:14px;text-decoration:none;}
.tx-user-tabs a.cur{color:#3370ff;}
.tx-user-tabs a.cur:after{content:"";position:absolute;left:16px;right:16px;bottom:-1px;height:2px;background:#3370ff;}
.tx-user-body{padding:22px 24px 30px;min-height:260px;}
.tx-user-empty{padding:50px 0;text-align:center;color:#aaa;font-size:13px;}
.tx-user-empty a{color:#3370ff;}
.tx-user-list{width:100%;border-collapse:collapse;font-size:12px;}
.tx-user-list th{background:#f7faff;color:#777;font-weight:normal;text-align:left;padding:10px;border-bottom:1px solid #eef2f8;}
.tx-user-list td{padding:11px 10px;border-bottom:1px solid #f2f5fa;color:#555;}
.tx-user-list a{color:#3370ff;text-decoration:none;}
.tx-user-list a:hover{text-decoration:underline;}

/* category generic */
.tx-category-head{display:flex;align-items:flex-end;justify-content:space-between;padding:18px 22px 14px;border-bottom:1px solid #eef2f8;}
.tx-category-head h1{font-size:22px;font-weight:normal;margin:0;color:#222;}
.tx-category-head p{margin:4px 0 0;color:#999;font-size:12px;}
.tx-category-list{padding:20px 22px 30px;}
.tx-category-list .camWholeBoxUl>li{height:240px!important;padding:12px 14px 0!important;box-sizing:border-box;}

/* misc small screens: keep the desktop layout readable */
@media (max-width:1240px){
  .tx-page{width:calc(100% - 24px);}
  .tx-panel-hd,.tx-user-hero{padding-left:16px;padding-right:16px;}
}

/* full custom search results (robust replacement for the old server page) */
.tx-search-page{width:1200px;margin:18px auto 36px;font-family:"Microsoft YaHei",Arial,sans-serif;color:#333;}
.tx-search-page .tx-crumb{margin-bottom:12px;}
.tx-search-head{background:#fff;border:1px solid #e6edf9;border-radius:4px;padding:20px 24px;margin-bottom:14px;}
.tx-search-head h1{margin:0 0 6px;font-size:22px;font-weight:normal;color:#222;}
.tx-search-head h1 em{font-style:normal;color:#ff491f;}
.tx-search-head p{margin:0;color:#999;font-size:12px;}
.tx-filter{background:#fff;border:1px solid #e6edf9;border-radius:4px;padding:12px 24px;margin-bottom:16px;font-size:12px;}
.tx-filter-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px dashed #f0f3f8;}
.tx-filter-row:last-child{border-bottom:0;}
.tx-filter-row>b{flex:0 0 66px;color:#888;font-weight:normal;}
.tx-chip{display:inline-block;padding:4px 12px;border-radius:2px;color:#555;background:#f6f8fc;text-decoration:none;cursor:pointer;}
.tx-chip:hover{color:#3370ff;background:#eef4ff;}
.tx-chip.cur{background:#3370ff;color:#fff;}
.tx-search-bar{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px;color:#888;font-size:12px;}
.tx-search-bar select{height:28px;border:1px solid #dcdcdc;background:#fff;padding:0 6px;margin-left:6px;}
.tx-res-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;}
.tx-res-card{background:#fff;border:1px solid #e6edf9;border-radius:3px;padding:12px 14px 14px;box-sizing:border-box;transition:.15s;min-height:290px;}
.tx-res-card:hover{border-color:#9bb9ff;box-shadow:0 4px 16px rgba(51,112,255,.1);transform:translateY(-2px);}
.tx-res-card .tx-thumb{display:flex;align-items:center;justify-content:center;height:180px;background:#fff;border:1px solid #f0f0f0;overflow:hidden;}
.tx-res-card .tx-thumb img{max-width:100%;max-height:178px;object-fit:contain;}
.tx-res-card .tx-res-title{margin-top:10px;font-size:12px;line-height:20px;height:40px;overflow:hidden;}
.tx-res-card .tx-res-title a{color:#333;text-decoration:none;word-break:break-all;}
.tx-res-card .tx-res-title a:hover{color:#ff491f;}
.tx-res-card .tx-res-title em{font-style:normal;color:#ff491f;}
.tx-res-card .tx-res-meta{display:flex;justify-content:space-between;color:#aaa;font-size:11px;margin-top:6px;}
.tx-res-card .tx-res-meta b{color:#ff491f;font-weight:normal;}
.tx-pageempty{background:#fff;border:1px solid #e6edf9;border-radius:4px;padding:70px 0;text-align:center;color:#999;}
.tx-pageempty .tx-ico{font-size:46px;color:#c9d8ff;line-height:1;margin-bottom:12px;}
.tx-form-field select{height:38px;line-height:38px;padding-top:0;padding-bottom:0;}

/* ---------- payment modal ---------- */
.tx-pay-res{color:#333;font-size:14px;line-height:1.6;margin-bottom:6px;word-break:break-word}
.tx-pay-price{font-size:34px;font-weight:bold;color:#ff491f;line-height:1.2;margin:2px 0 8px}
.tx-pay-price span{font-size:13px;font-weight:normal;color:#888;margin-left:4px}
.tx-pay-tip{color:#777;font-size:12px;line-height:1.8;margin-bottom:14px}
.tx-pay-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:4px 0 14px}
.tx-pay-item{border:1px solid #e8eefb;border-radius:5px;background:#fbfdff;text-align:center;padding:10px}
.tx-pay-item p{margin:6px 0 0;color:#666;font-size:12px}
.tx-pay-qr{height:172px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #f0f0f0;border-radius:3px}
.tx-pay-qr img{max-width:165px;max-height:165px;display:block}
.tx-pay-missing{color:#aaa;font-size:12px}
.tx-pay-code{background:#f7faff;border:1px dashed #cfe0ff;padding:8px 10px;color:#666;font-size:12px;border-radius:3px}
.tx-pay-code b{color:#3370ff;font-size:13px}
.tx-pay-note{color:#999;font-size:11px;margin-top:8px;line-height:1.7}
@media(max-width:520px){.tx-pay-grid{grid-template-columns:1fr}.tx-pay-qr{height:150px}.tx-pay-qr img{max-width:140px;max-height:140px}}

/* ---------- header fixes (2026-12-01) ---------- */
.headercontent.tx-auth-slot{
  height:34px!important;line-height:34px!important;display:inline-flex!important;
  align-items:center!important;vertical-align:top!important;gap:2px!important;
  font-size:12px!important;font-family:"SimSun",Arial,sans-serif!important;
}
.headercontent.tx-auth-slot a{
  line-height:34px!important;font-size:12px!important;font-family:"SimSun",Arial,sans-serif!important;
  display:inline-block!important;vertical-align:top!important;
}
.headercontent.tx-auth-slot .tx-sep{line-height:34px!important;margin:0 2px!important;}
.cmn_search_box .border input[type='submit']{
  background-image:none!important;background-color:#26aef3!important;
  color:#fff!important;font-size:14px!important;font-family:"Microsoft YaHei",Arial,sans-serif!important;
  font-weight:normal!important;letter-spacing:2px!important;text-indent:0!important;text-align:center!important;
}
.cmn_search_box .border input[type='submit']:hover{background-color:#188ed0!important;}
a.upload-link{width:170px!important;}

/* detail blue header auth alignment */
.hr-wrap .h-login-type .tx-auth-slot,
.h-login-type .headercontent.tx-auth-slot{height:34px!important;line-height:34px!important;margin-top:8px!important;display:flex!important;align-items:center!important;vertical-align:top!important;}
.hr-wrap .h-login-type .tx-auth-slot a,
.h-login-type .headercontent.tx-auth-slot a{height:34px!important;line-height:34px!important;display:inline-flex!important;align-items:center!important;padding:0 2px!important;vertical-align:top!important;}
.hr-wrap .h-login-type .tx-auth-slot .tx-sep,
.h-login-type .headercontent.tx-auth-slot .tx-sep{height:34px!important;line-height:34px!important;display:inline-flex!important;align-items:center!important;}
