/* ============================================================
   海玩世界 WEB后台 · 多窗口标签页框架样式
   ============================================================ */

html, body { height: 100%; }
body { font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; }

/* ============ 主框架（frame 页） ============ */
body.hd-frame { overflow: hidden; display: flex; flex-direction: column; height: 100vh; background: #ecf0f5; }

/* 顶部栏 */
.hd-topbar { flex: none; height: 50px; background: linear-gradient(90deg, #1e2f4d 0%, #2b4a7a 60%, #35618f 100%); color: #fff; display: flex; align-items: center; padding: 0 15px; box-shadow: 0 1px 4px rgba(0,0,0,.2); z-index: 100; }
.hd-logo { font-size: 18px; font-weight: bold; letter-spacing: 2px; }
.hd-logo .fa { margin-right: 8px; color: #6db3f2; }
.hd-logo small { font-size: 12px; font-weight: normal; color: #a9c3e0; margin-left: 6px; letter-spacing: 0; }
.hd-topbar-nav { margin-left: auto; }
.hd-topbar-nav .dropdown > a { color: #dce8f5; display: block; padding: 8px 12px; }
.hd-topbar-nav .dropdown > a:hover, .hd-topbar-nav .open > a { color: #fff; background: rgba(255,255,255,.08); }
.hd-topbar-nav .dropdown-menu { min-width: 140px; }
.hd-topbar-nav .fa { margin-right: 6px; }

.hd-body { flex: 1; display: flex; overflow: hidden; }

/* 左侧菜单 */
.hd-sidebar { flex: none; width: 210px; background: #263447; overflow-y: auto; overflow-x: hidden; transition: width .2s; }
.hd-sidebar::-webkit-scrollbar { width: 4px; }
.hd-sidebar::-webkit-scrollbar-thumb { background: #3d5271; }
.hd-menu { list-style: none; margin: 0; padding: 0; }
.hd-menu > li > a { display: block; color: #b8c7d9; padding: 13px 16px; text-decoration: none; border-left: 3px solid transparent; cursor: pointer; }
.hd-menu > li > a:hover, .hd-menu > li.open > a { color: #fff; background: #2e4059; border-left-color: #4a90d9; }
.hd-menu > li > a .fa { width: 20px; margin-right: 8px; text-align: center; }
.hd-menu > li > a .arrow { float: right; transition: transform .2s; }
.hd-menu > li.open > a .arrow { transform: rotate(90deg); }
.hd-submenu { list-style: none; margin: 0; padding: 0; background: #1f2b3d; display: none; }
.hd-menu > li.open > .hd-submenu { display: block; }
.hd-submenu > li > a { display: block; color: #8fa3bc; padding: 9px 16px 9px 47px; text-decoration: none; cursor: pointer; }
.hd-submenu > li > a:hover, .hd-submenu > li > a.active { color: #fff; background: #35618f; }
.hd-submenu > li > a .fa { margin-right: 6px; font-size: 12px; }

/* 主体区：标签栏 + 内容 */
.hd-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hd-tabbar { flex: none; height: 40px; background: #fff; display: flex; align-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.hd-tab-scroll { flex: 1; overflow: hidden; display: flex; }
.hd-tab-list { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; white-space: nowrap; transition: transform .2s; }
.hd-tab-item { display: flex; align-items: center; padding: 0 10px 0 14px; margin-right: 2px; height: 40px; background: #f4f6f9; color: #666; cursor: pointer; border-top: 2px solid transparent; position: relative; }
.hd-tab-item:hover { background: #eef2f7; }
.hd-tab-item.active { background: #fff; color: #2b4a7a; border-top-color: #35618f; font-weight: bold; }
.hd-tab-item .hd-tab-title { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.hd-tab-item .hd-tab-close { margin-left: 8px; color: #aaa; font-size: 14px; }
.hd-tab-item .hd-tab-close:hover { color: #e74c3c; }
.hd-tab-item.fixed .hd-tab-close { display: none; }
.hd-tab-btn { flex: none; width: 34px; height: 40px; line-height: 40px; text-align: center; color: #888; cursor: pointer; background: #fff; border: 0; border-left: 1px solid #eee; }
.hd-tab-btn:hover { color: #2b4a7a; background: #f4f6f9; }
.hd-tab-drop { flex: none; }
.hd-tab-drop .btn { border-radius: 0; height: 40px; border: 0; border-left: 1px solid #eee; color: #888; }
.hd-tabcontent { flex: 1; position: relative; background: #fff; }
.hd-tabcontent > iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; display: none; }
.hd-tabcontent > iframe.active { display: block; }

/* 标签右键菜单 */
.hd-ctxmenu { position: fixed; z-index: 9999; background: #fff; border: 1px solid #ddd; box-shadow: 0 2px 8px rgba(0,0,0,.15); border-radius: 2px; min-width: 130px; padding: 4px 0; display: none; }
.hd-ctxmenu a { display: block; padding: 7px 16px; color: #444; text-decoration: none; }
.hd-ctxmenu a:hover { background: #f0f4f8; color: #2b4a7a; }

/* 侧栏收起 */
body.hd-sidebar-min .hd-sidebar { width: 0; overflow: hidden; }

/* ============ 内容页（iframe 内） ============ */
.hd-page { padding: 0 0 40px; min-height: 100%; }
.hd-breadcrumb { background: #fff; padding: 10px 15px; margin: 0 0 10px; border-bottom: 1px solid #e7ecf1; }
.hd-breadcrumb .fa { margin-right: 4px; }
.hd-breadcrumb h4 { margin: 0; font-size: 15px; color: #2b3e54; }
.hd-content { padding: 0 15px; }

/* 筛选面板 */
.hd-filter { background: #fff; padding: 12px 15px 2px; margin-bottom: 10px; border-radius: 3px; border: 1px solid #e7ecf1; }
.hd-filter .form-group { margin-right: 10px; margin-bottom: 10px; }
.hd-filter label { font-weight: normal; margin-right: 5px; color: #667; }
.hd-filter .form-control { width: auto; min-width: 140px; }

/* 列表面板 */
.hd-table-panel { background: #fff; border: 1px solid #e7ecf1; border-radius: 3px; }
.hd-table-panel .panel-head { padding: 10px 15px; border-bottom: 1px solid #e7ecf1; overflow: hidden; }
.hd-table-panel .panel-head .btn-group { margin-left: 5px; }
.hd-table-panel table.dataTable { margin: 0 !important; }
.hd-table-panel .dataTables_filter, .hd-table-panel .dataTables_length { padding-top: 4px; }
table.dataTable thead th { background: #f4f6f9; border-bottom: 1px solid #dde3ea !important; }
table.table tbody td { vertical-align: middle; }
.hd-table-panel .table-wrap { padding: 0 15px 10px; }

/* 表单页 */
.hd-form { background: #fff; border: 1px solid #e7ecf1; border-radius: 3px; padding: 20px 15px; }
.hd-form .form-title { font-size: 14px; font-weight: bold; color: #2b4a7a; border-left: 3px solid #35618f; padding-left: 8px; margin: 10px 0 18px; }
.hd-form .help-block { margin: 0; }

/* 详情页 */
.hd-detail dl { margin-bottom: 0; }
.hd-detail dt { color: #8899aa; font-weight: normal; }
.hd-detail dd { margin-bottom: 6px; }
.hd-detail .section { background: #fff; border: 1px solid #e7ecf1; border-radius: 3px; padding: 15px; margin-bottom: 12px; }

/* 登录页 */
body.hd-login-body { background: linear-gradient(135deg, #1e2f4d 0%, #35618f 100%); display: flex; align-items: center; justify-content: center; height: 100vh; }
.hd-login-box { width: 380px; background: #fff; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.3); padding: 30px 35px 35px; }
.hd-login-box h3 { text-align: center; margin: 0 0 8px; color: #2b4a7a; }
.hd-login-box .sub { text-align: center; color: #99a9bb; margin-bottom: 22px; font-size: 12px; }
.hd-login-box .input-group-addon { background: #f4f6f9; }
.hd-login-box .form-control { height: 40px; }

/* 通用徽标 */
label.label, .label { font-weight: normal; }

/* 指标卡（数据概览） */
.hd-metric { background: #fff; border-radius: 3px; border: 1px solid #e7ecf1; padding: 18px; display: block; color: inherit; text-decoration: none; }
.hd-metric .fa { font-size: 30px; opacity: .85; float: left; margin: 6px 14px 0 6px; }
.hd-metric .num { font-size: 26px; font-weight: bold; color: #2b3e54; line-height: 1.2; }
.hd-metric .name { color: #8899aa; }
.hd-metric:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }

/* 空/开发中占位 */
.hd-placeholder { text-align: center; padding: 80px 20px; color: #9aa9ba; }
.hd-placeholder .fa { font-size: 60px; margin-bottom: 18px; opacity: .5; }

/* SweetAlert2 适配 Bootstrap3 配色 */
.swal2-popup { font-size: 13px !important; border-radius: 4px !important; }
.swal2-title { font-size: 17px !important; }
