/* ============================================================
   TradMS Clone — 共用设计系统
   布局沿用原站（顶部导航条 / 100px logo 头 / 1000px 居中容器 / 页脚条）
   视觉现代化：圆角、柔和阴影、清爽配色
   ============================================================ */

:root {
  /* 品牌色：沿用原站激活绿 #13d62e */
  --green: #13d62e;
  --green-hover: #0fbf26;
  --green-dark: #0a9320;
  --green-soft: #e8f9ea;

  /* 中性色 */
  --bg-page: #fafafb;
  --bg-panel: #ffffff;
  --bg-bar: #f6f6f6;
  --bg-foot: #efefef;
  --bg-hover: #f3f5f7;

  --border: #e2e5e9;
  --border-strong: #d3d7dd;

  --text: #2f3338;
  --text-2: #5b6470;
  --text-3: #8b939e;

  --red: #e03131;
  --orange: #f08c00;
  --blue: #1c7ed6;
  --gray-tag: #8c8a8c;

  --radius: 8px;
  --radius-sm: 5px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, .1);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .14);

  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-dark); }
img { border: 0; }
ul, li { list-style: none; margin: 0; padding: 0; }
table { border-collapse: collapse; }

/* ---------- 顶部细导航条（原 #site-nav） ---------- */
#site-nav {
  width: 100%;
  height: 34px;
  line-height: 34px;
  background: var(--bg-bar);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
  position: relative;
  z-index: 1000;
}
#site-nav .nav-inner {
  width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#site-nav a { color: var(--text-2); }
#site-nav a:hover { color: var(--green-dark); }

.quick-menu { display: flex; align-items: center; gap: 4px; }
.quick-menu .menu { position: relative; }
.quick-menu .menu-hd {
  display: inline-block;
  padding: 0 12px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.quick-menu .menu-hd::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--text-3);
}
.quick-menu .menu:hover .menu-hd {
  background: #fff;
  border-color: var(--border-strong);
}
.quick-menu .menu-bd {
  display: none;
  position: absolute;
  right: 0;
  top: 30px;
  min-width: 120px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  z-index: 1001;
}
.quick-menu .menu:hover .menu-bd { display: block; }
.quick-menu .menu-bd a {
  display: block;
  padding: 6px 16px;
  white-space: nowrap;
}
.quick-menu .menu-bd a:hover { background: var(--bg-hover); }

/* ---------- 头部 logo 区（原 #title） ---------- */
#title {
  width: 100%;
  height: 100px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
#title .title-inner {
  width: 1000px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-img { height: 42px; width: auto; display: block; }
.brand .logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(19, 214, 46, .28);
}
.brand .logo-text { font-size: 22px; font-weight: 700; letter-spacing: .5px; color: var(--text); }
.brand .logo-sub { font-size: 12px; color: var(--text-3); letter-spacing: 1px; }

/* ---------- 主体容器（原 #container） ---------- */
#container {
  width: 1000px;
  margin: 0 auto;
  padding: 16px 0 0;
}
#content { position: relative; }
#main {
  min-height: 400px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* 内页标题条 */
#main-title {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, var(--bg-bar) 100%);
  border-bottom: 1px solid var(--border);
}
#main-body { padding: 16px; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background:
    radial-gradient(1000px 320px at 50% -10%, var(--green-soft) 0%, transparent 70%),
    #fff;
}
.login-card {
  width: 400px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.login-card .title {
  line-height: 46px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  padding: 0 18px;
}
.login-card .body { padding: 22px 24px 26px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}
.input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(19, 214, 46, .15);
}
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}
.remember input { width: 14px; height: 14px; accent-color: var(--green); cursor: pointer; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  height: 36px;
  line-height: 36px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: background .18s ease, box-shadow .18s ease;
  box-shadow: 0 2px 6px rgba(19, 214, 46, .25);
}
.btn:hover { background: var(--green-hover); color: #fff; }
.btn:active { background: var(--green-dark); }
.btn.block { display: block; width: 100%; }
.btn.plain {
  background: #fff;
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn.plain:hover { background: var(--bg-hover); color: var(--text); }
.btn.sm { height: 28px; line-height: 28px; padding: 0 12px; font-size: 12px; }

/* ---------- 数据表格（内页通用） ---------- */
.data-table { width: 100%; font-size: 13px; }
.data-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-bar);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--bg-hover); }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* 状态标签 */
.tag {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.tag.green { background: var(--green-soft); color: var(--green-dark); }
.tag.red { background: #ffebee; color: var(--red); }
.tag.orange { background: #fff4e2; color: var(--orange); }
.tag.blue { background: #e7f2fd; color: var(--blue); }
.tag.gray { background: #eef0f2; color: var(--text-3); }

/* ---------- 页脚（原 #foot） ---------- */
#foot {
  width: 100%;
  margin: 20px 0 30px;
}
#foot .center {
  background: var(--bg-foot);
  height: 34px;
  line-height: 34px;
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
  position: relative;
}
#scrollTop {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--text-3);
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
}
#scrollTop:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- 提示条 ---------- */
.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
}
.notice.info { background: var(--green-soft); color: var(--green-dark); border: 1px solid #c8efcf; }

/* ============================================================
   后台布局：顶部两级主导航 + 1000px 居中容器
   ============================================================ */

/* ---------- 主导航（1:1 沿用原站 #menu 结构与 bg-menu.png 雪碧图） ----------
   绿条横贯全屏，菜单内容 1000px 居中，与下方内容区对齐。
   两级结构：主项一行 + 当前组的子项横条（原站 ul.menu-sub）。 */
#menu, .menu-container, .menu-container ul,
#menu .menu-master-a:hover, #menu .menu-master-a:hover strong,
#menu li.current .menu-master-a strong, #menu li.current .menu-master-a,
#menu .menu-sub a:hover, #menu .menu-sub a:hover span,
#menu a.current, #menu a.current span {
  background-image: url(../design/bg-menu.png);
  background-repeat: no-repeat;
}
#menu {
  height: 66px;
  background-position: 0 -230px;
  background-repeat: repeat-x;
  position: relative;
  z-index: 5;
}
#menu::after { content: ""; display: block; clear: both; }
.menu-container {
  width: 1000px;
  margin: 0 auto;
  padding-left: 15px;
  height: 66px;
  background-position: 0 0;
}
.menu-container a { cursor: pointer; }
.menu-container ul {
  height: 100%;
  background-position: right -66px;
  position: relative;
}
.menu-container ul ul.menu-sub { background: none; height: auto; }

/* 一级主项（position:relative 让子菜单横条以本母菜单左边缘为基准对齐） */
.menu-master { display: block; float: left; height: 36px; line-height: 36px; text-align: center; position: relative; }
.menu-master-a { float: left; display: block; height: 26px; line-height: 26px; background: none; margin-top: 6px; }
.menu-master-a strong { font-size: 14px; float: left; display: block; color: #fff; height: 100%; line-height: 27px; padding: 0 10px; }
.menu-master-a:hover { background-position: 0 -315px; }
.menu-master-a:hover strong { background-position: right -360px; }
#menu li.current .menu-master-a { background-position: 0 -132px; color: #000; height: 31px; }
#menu li.current .menu-master-a strong { background-position: right -181px; padding-top: 2px; }
li.current .menu-master-a strong,
#menu li.current .menu-master-a:hover strong { color: #000; }

/* 二级子项横条：左边缘与所属母菜单左边缘对齐（母/子内边距同为 10px，故文字也对齐） */
ul.menu-sub {
  position: absolute;
  width: 985px;
  width: max-content;
  text-align: left;
  top: 36px;
  left: 0;
  display: none;
  padding-top: 3px;
  background: none;
}
#menu li.current > .menu-sub { display: block; float: left; }
/* 测量子菜单宽度时的临时态：显示但不可见 */
.menu-master.measuring > .menu-sub { display: block !important; visibility: hidden; }
.menu-sub li { float: left; display: block; text-align: center; height: 30px; margin-right: 4px; }
#menu .menu-sub a { float: left; display: block; height: 22px; color: #4d4d4d; }
#menu .menu-sub a span { font-size: 12px; float: left; display: block; line-height: 23px; height: 22px; padding: 0 10px; }
#menu .menu-sub a:hover { background-position: 0 -405px; }
#menu .menu-sub a:hover span { background-position: right -446px; }
#menu .menu-sub a.current { background-position: 0 -487px; }
#menu .menu-sub a.current span { background-position: right -528px; }

/* ---------- 欢迎条 ---------- */
.welcome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(90deg, var(--green-soft) 0%, #fff 70%);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.welcome b { color: var(--text); }

/* ---------- 统计卡片 ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-card .label {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-card .value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-top: 2px;
}
.stat-card .value.money { color: var(--green-dark); }
.stat-card .sub { font-size: 11px; color: var(--text-3); }
.stat-card.accent { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); border-color: transparent; }
.stat-card.accent .label, .stat-card.accent .sub { color: rgba(255,255,255,.85); }
.stat-card.accent .value { color: #fff; }

/* ---------- 面板 / 区块 ---------- */
.panel { margin-top: 16px; }
.card {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-bar);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  font-weight: 700;
  font-size: 13px;
}
.panel-body {
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #fff;
  padding: 14px 16px;
}

/* ---------- 提醒卡（首页留言/询盘/订单） ---------- */
.remind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.remind-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fff;
}
.remind-card h4 { margin: 0 0 8px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.remind-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.remind-card p { margin: 4px 0; font-size: 12.5px; color: var(--text-2); }
.remind-card .num { color: var(--green-dark); font-weight: 700; }
.remind-card .actions { margin-top: 10px; }

/* ---------- 工具栏（搜索/筛选） ---------- */
.toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-bar);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}
.toolbar label { font-size: 12px; color: var(--text-2); }
.toolbar .input { width: auto; min-width: 130px; height: 32px; font-size: 12.5px; }
.toolbar select.input { min-width: 110px; }
.toolbar .spacer { flex: 1; }

/* 多行工具栏（原站列表页：条件/关键字/筛选/日期/排序/批量） */
.tb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tb-row + .tb-row { padding-top: 8px; border-top: 1px dashed var(--border); }
.tb-sel {
  height: 32px;
  padding: 0 8px;
  font-size: 12.5px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font);
}
.tb-kw { width: 190px !important; min-width: 150px !important; }
.tb-date { width: 150px !important; min-width: 130px !important; height: 32px !important; }
.tb-tilde { color: var(--text-3); font-size: 12px; }

/* 操作列：原站一行内多个小按钮 */
th.col-ops { white-space: nowrap; }
td.ops { white-space: nowrap; }
td.ops .btn.sm { margin: 2px 0; }
.btn.sm.danger { color: var(--red); }
.btn.sm.danger:hover { background: #ffebee; color: var(--red); border-color: #f5c2c2; }

/* 状态列：原站多维度逗号分隔、分两行 */
.st-line { line-height: 1.5; color: var(--text-2); font-size: 12px; white-space: nowrap; }

.table-wrap {
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  background: #fff;
}
.table-scroll { overflow-x: auto; }

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  background: #fff;
}
.pager .pages { display: flex; gap: 4px; }
.pager .pages a, .pager .pages span {
  min-width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  padding: 0 6px;
}
.pager .pages a:hover { border-color: var(--green); color: var(--green-dark); }
.pager .pages .cur { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.tabs a {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--green-dark); border-bottom-color: var(--green); font-weight: 700; }

/* ---------- 表单网格（个人信息/新建） ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
}
.form-grid .field { margin-bottom: 0; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .half { grid-column: span 1; }
.readonly-val {
  height: 38px;
  line-height: 38px;
  padding: 0 12px;
  background: var(--bg-bar);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
}

/* ---------- 头像 / 缩略图占位 ---------- */
.thumb {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: linear-gradient(135deg, #eef1f4 0%, #e2e6ea 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 11px;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.cell-main { font-weight: 600; color: var(--text); }
.cell-sub { font-size: 12px; color: var(--text-3); }

/* ---------- 空状态 ---------- */
.empty { padding: 40px 16px; text-align: center; color: var(--text-3); font-size: 13px; }

/* ============================================================
   原站表单模板（VPOAdd.aspx「添加VPO」等）1:1 还原
   分区条 .main-div-panel-head + 表格式 .main-div-panel
   ============================================================ */
#main .main-top_cyan {
  padding: 8px 0 6px;
  border-bottom: solid 2px #d7d7d7;
  margin-bottom: 4px;
}

/* 原站按钮贴图（btn-left / btn-right / btn-center 三段式，30px，浅底深字） */
#main .main-top_cyan a.btn,
.tradms-form a.btn {
  display: inline-block;
  margin: 0 10px 5px 0;
  padding: 0 0 0 2px;
  height: 30px;
  line-height: 30px;
  font-size: 12px;
  font-weight: bold;
  color: #333;
  background: url(../design/orig/btn-left.png) left no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#main .main-top_cyan a.btn:hover,
.tradms-form a.btn:hover {
  color: #fff;
  background: url(../design/orig/btn-left-hover.png) left no-repeat;
}
#main .main-top_cyan a.btn .right,
.tradms-form a.btn .right {
  display: inline-block;
  height: 30px;
  padding-right: 2px;
  background: url(../design/orig/btn-right.png) right no-repeat;
}
#main .main-top_cyan a.btn:hover .right,
.tradms-form a.btn:hover .right { background: url(../design/orig/btn-right-hover.png) right no-repeat; }
#main .main-top_cyan a.btn .center,
.tradms-form a.btn .center {
  display: inline-block;
  height: 30px;
  line-height: 30px;
  padding: 0 10px;
  text-align: center;
  font-weight: bold;
  background: url(../design/orig/btn-center.png) repeat-x;
}
#main .main-top_cyan a.btn:hover .center,
.tradms-form a.btn:hover .center { background: url(../design/orig/btn-center-hover.png) repeat-x; color: #fff; }

.main-div-panel-head {
  display: table;
  width: 100%;
  height: 26px;
  line-height: 26px;
  text-align: left;
  background: #fff url(../design/orig/main-div-panel-head-bg.gif) repeat-x top;
  border-bottom: 1px solid #e6e6e6;
  margin-top: 6px;
}
.main-div-panel-head .title { padding-left: 5px; font-weight: bold; font-size: 12.5px; color: #41464b; }
.main-div-panel-head div { float: left; }
.main-div-panel-head .up {
  background: url(../design/orig/toggle.gif) no-repeat top;
  width: 47px; height: 26px; float: right; cursor: pointer;
}
.main-div-panel-head .down {
  background: url(../design/orig/toggle.gif) no-repeat bottom;
  width: 47px; height: 26px; float: right; cursor: pointer;
}
.main-div-panel-head .interval { color: #c9ccd1; margin: 0 2px 0 4px; }

table.main-div-panel {
  width: 100%;
  margin-bottom: 4px;
  text-align: left;
  table-layout: auto;
}
table.main-div-panel th {
  padding-left: 5px;
  padding-right: 6px;
  padding-top: 4px;
  font-weight: normal;
  text-align: left;
  vertical-align: top;
  font-size: 12.5px;
  color: #41464b;
  white-space: nowrap;
}
table.main-div-panel td {
  padding-left: 5px;
  padding-top: 4px;
  font-weight: normal;
  text-align: left;
  word-wrap: break-word;
  white-space: normal;
  word-break: break-all;
  font-size: 12.5px;
  color: #41464b;
}
table.main-div-panel td input,
table.main-div-panel td select,
table.main-div-panel td a { margin-top: -2px; }
table.main-div-panel td textarea { margin-top: -1px; }

/* 原站小尺寸表单控件（仅表单模板页生效） */
.tradms-form input[type="text"],
.tradms-form input[type="date"],
.tradms-form input[type="number"],
.tradms-form input[type="file"] {
  height: 22px;
  padding: 0 4px;
  font: 12px/22px Tahoma, "Microsoft YaHei", sans-serif;
  color: #333;
  background: #fff;
  border: solid 1px #a7a6aa;
  border-radius: 0;
  outline: none;
}
.tradms-form input[type="text"] { width: 148px; }
.tradms-form input[readonly="readonly"] { background: #f6f6f6; }
.tradms-form select {
  height: 22px;
  padding: 0 2px;
  font: 12px Tahoma, "Microsoft YaHei", sans-serif;
  color: #333;
  background: #fff;
  border: solid 1px #a7a6aa;
  border-radius: 0;
}
.tradms-form textarea {
  padding: 3px 4px;
  font: 12px/1.5 Tahoma, "Microsoft YaHei", sans-serif;
  color: #333;
  background: #fff;
  border: solid 1px #a7a6aa;
  border-radius: 0;
  outline: none;
  resize: vertical;
}
.tradms-form input:focus, .tradms-form textarea:focus, .tradms-form select:focus { border-color: #13d62e; }
.tradms-form input[type="text"]:focus { box-shadow: none; }

/* 原站操作链接（选择 / 添加 / 删除 / 复制）带小图标 */
.tradms-form a.choose,
.tradms-form a.add,
.tradms-form a.delete,
.tradms-form a.copy {
  color: #0085cc;
  font-size: 12px;
}
.tradms-form a.choose { background: url(../design/orig/choose.png) no-repeat left center; padding-left: 15px; }
.tradms-form a.choose:hover { background: url(../design/orig/choose_over.png) no-repeat left center; }
.tradms-form a.add { background: url(../design/orig/add.png) no-repeat left center; padding-left: 15px; }
.tradms-form a.add:hover { background: url(../design/orig/add_over.png) no-repeat left center; }
.tradms-form a.delete { background: url(../design/orig/delete.png) no-repeat left center; padding-left: 15px; }
.tradms-form a.delete:hover { background: url(../design/orig/delete_over.png) no-repeat left center; }
.tradms-form a.copy { background: url(../design/orig/copy.png) no-repeat left center; padding-left: 15px; }
.tradms-form a.copy:hover { background: url(../design/orig/copy_over.png) no-repeat left center; }

/* PO 文件信息 */
.tradms-form .po-file-info { margin-left: 10px; font-size: 12px; color: #41464b; vertical-align: middle; }
.tradms-form .po-file-info a { color: #0085cc; }

/* 产品/附加费用明细行：原站用 textarea 撑高行 */
.tradms-form table.main-div-panel tr.item-row td { vertical-align: top; }
.tradms-form .row-ops a { display: block; margin-top: 2px; }

/* 产前样照片 */
#AlbumImgArea { min-height: 34px; padding: 6px 4px; }
#AlbumImgArea label { color: #8b939e; font-size: 12px; }
#AlbumImgArea ul { display: flex; flex-wrap: wrap; gap: 8px; }
#AlbumImgArea li { position: relative; border: 1px solid #e2e5e9; padding: 3px; background: #fff; }
#AlbumImgArea li img { display: block; max-width: 140px; max-height: 140px; }
#AlbumImgArea li .del {
  position: absolute; right: -6px; top: -6px;
  width: 16px; height: 16px; line-height: 15px; text-align: center;
  background: #e03131; color: #fff; border-radius: 50%; font-size: 11px; cursor: pointer;
}
.tradms-form .upload-btn {
  display: inline-block; height: 20px; line-height: 20px; padding: 0 10px;
  border: 1px solid #a7a6aa; background: #f7f7f7; color: #333;
  font-size: 12px; cursor: pointer; margin-top: -2px;
}
.tradms-form .upload-btn:hover { background: #fff; color: #0a9320; border-color: #13d62e; }

/* 选择弹窗 */
.pick-mask {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 9998;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.pick-box {
  background: #fff; border-radius: 8px; width: 720px; max-width: 100%;
  max-height: 82vh; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25); overflow: hidden;
}
.pick-box .hd {
  padding: 12px 16px; border-bottom: 1px solid #e2e5e9;
  font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: space-between;
}
.pick-box .ft { padding: 10px 16px; border-top: 1px solid #e2e5e9; text-align: right; }
.pick-box .bd { padding: 12px 16px; overflow: auto; }
.pick-box .bd input.kw { width: 100%; margin-bottom: 10px; }
.pick-box table { width: 100%; font-size: 12.5px; }
.pick-box th { background: #f6f6f6; padding: 7px 10px; text-align: left; color: #5b6470; font-weight: 600; white-space: nowrap; }
.pick-box td { padding: 7px 10px; border-bottom: 1px solid #eef0f2; }
.pick-box tbody tr { cursor: pointer; }
.pick-box tbody tr:hover { background: #eef9ef; }

/* ============================================================
   原站列表页模板（Order/PIList.aspx / VPOList.aspx）1:1 还原
   ============================================================ */
.orig-list { font: 12px tahoma, "Microsoft YaHei", Arial; color: #666; text-align: left; }
.orig-list table { border-collapse: separate; border-spacing: 0; }
.orig-list a { color: #0085cc; text-decoration: none; }
.orig-list a:hover { color: #df0000; }
.orig-list input[type="text"] {
  height: 20px; line-height: 20px; padding: 0 3px;
  border: 1px solid #a7a6aa; background: #fff; font: 12px tahoma; vertical-align: middle;
}
.orig-list select { height: 20px; border: 1px solid #a7a6aa; font: 12px tahoma; vertical-align: middle; }
.orig-list .check { vertical-align: middle; margin: 0 3px 0 0; }
.orig-list .yellow { color: #ffff00; }

/* 顶部：上一页 / 添加PI / 共找到N条 / PI管理·VPO管理 */
#main .orig-list .main-top_green { width: 100%; border-bottom: solid 2px #00df4b; }
.orig-list .main-top_green td { padding: 0 0 4px; vertical-align: bottom; }
.orig-list .main-top_green td.td-left { width: 260px; }
.orig-list a.btn,
.orig-list a.btn2 { text-decoration: none; }

/* 选项卡（共找到 / PI管理 / VPO管理） */
.orig-list .tab_head {
  float: none; display: flex; justify-content: flex-end; align-items: flex-end;
  height: 25px; line-height: 25px;
}
.orig-list .main-top_green td.td-right { width: 210px; }
.orig-list .tab_head ul { margin: 0 0 0 5px; list-style: none; display: block; }
.orig-list .tab_head ul li { display: block; float: left; height: 25px; }
.orig-list .tab_head ul li.left { width: 4px; background: url(../design/orig/tab_head.png) no-repeat 0 -100px; }
.orig-list .tab_head ul li.right { width: 4px; background: url(../design/orig/tab_head.png) no-repeat -4px -100px; }
.orig-list .tab_head ul li.center {
  height: 25px; line-height: 25px; text-align: center; padding: 0 10px;
  background: #eaeaea; color: #fff; font-weight: bold; white-space: nowrap;
}
.orig-list .tab_head ul.current li.left { background-position: 0 0; }
.orig-list .tab_head ul.current li.right { background-position: -4px 0; }
.orig-list .tab_head ul.current li.center { background: #00df4b; color: #fff; }
.orig-list .tab_head ul.current li.center a { color: #fff; font-weight: bold; }
.orig-list .tab_head ul li.center a { color: #fff; }

/* 灰色按钮贴图（btn-left/center/right 三段） */
.orig-list a.btn {
  display: inline-block; height: 30px; padding: 0 0 0 2px; margin: 0 8px 5px 0;
  background: url(../design/orig/btn-left.png) left no-repeat;
  font-size: 12px; font-weight: bold; color: #333; border: 0; border-radius: 0; box-shadow: none;
}
.orig-list a.btn:hover { background: url(../design/orig/btn-left-hover.png) left no-repeat; color: #fff; }
.orig-list a.btn .right { display: inline-block; height: 30px; padding-right: 2px; background: url(../design/orig/btn-right.png) right no-repeat; }
.orig-list a.btn:hover .right { background: url(../design/orig/btn-right-hover.png) right no-repeat; }
.orig-list a.btn .center {
  display: inline-block; height: 30px; line-height: 30px; padding: 0 10px;
  background: url(../design/orig/btn-center.png) repeat-x; font-weight: bold;
}
.orig-list a.btn:hover .center { background: url(../design/orig/btn-center-hover.png) repeat-x; color: #fff; }

/* 行内小按钮（btn2，22px） */
.orig-list a.btn2 {
  display: inline-block; height: 22px; padding: 0 0 0 2px; margin-right: 2px;
  background: url(../design/orig/btn2-left.png) left no-repeat;
  font-size: 12px; font-weight: bold; color: #333;
}
.orig-list a.btn2:hover { background: url(../design/orig/btn2-left-hover.png) left no-repeat; color: #fff; }
.orig-list a.btn2 .right { display: inline-block; height: 22px; padding-right: 2px; background: url(../design/orig/btn2-right.png) right no-repeat; }
.orig-list a.btn2:hover .right { background: url(../design/orig/btn2-right-hover.png) right no-repeat; }
.orig-list a.btn2 .center {
  display: inline-block; height: 22px; line-height: 22px; padding: 0 10px;
  background: url(../design/orig/btn2-center.png) repeat-x; font-weight: bold;
}
.orig-list a.btn2:hover .center { background: url(../design/orig/btn2-center-hover.png) repeat-x; color: #fff; }

/* 筛选区 */
.orig-list .main-table-top0 {
  border-top: 1px solid #e5e5e5; border-left: 1px solid #e5e5e5; border-right: 1px solid #e5e5e5;
  color: #666; background: #f7faff;
}
.orig-list .main-table-top0 table { width: 100%; }
.orig-list .main-table-top0 td { height: 30px; line-height: 30px; vertical-align: middle; }
.orig-list #txtKeyword {
  width: 150px; height: 20px; line-height: 20px; vertical-align: middle;
  background: #fff url(../design/orig/main-table-keyword-bg.png) no-repeat 3px 3px;
  border: 1px solid #e5e5e5; padding-left: 25px;
}

/* 修改为 / 公司的我的 / 排序 */
.orig-list .main-table-top {
  color: #666; border: 1px solid #dddddd; border-bottom: 0; width: 100%; height: 34px;
  background: url(../design/orig/main-table-top-bg.png) repeat-x;
}
.orig-list .main-table-top td { vertical-align: middle; }
.orig-list .tab_main { padding-left: 10px; }
.orig-list .tab_main ul { display: block; float: left; margin: 0 3px 0 0; list-style: none; }
.orig-list .tab_main li { display: block; float: left; }
.orig-list .tab_main .left { width: 2px; height: 24px; background: url(../design/orig/tab_gray-left.gif) no-repeat; }
.orig-list .tab_main .center {
  height: 23px; line-height: 23px; text-align: center; padding: 0 10px; border-top: 1px solid #dddddd;
  background: #fff url(../design/orig/tab_gray-center.gif) repeat-x bottom;
}
.orig-list .tab_main .right { width: 2px; height: 24px; background: url(../design/orig/tab_gray-right.gif) no-repeat; }
.orig-list .tab_main .current .left { background: url(../design/orig/tab_white-current-left.gif) no-repeat; }
.orig-list .tab_main .current .center { background: #fff; border-top: 1px solid #dddddd; }
.orig-list .tab_main .current .right { background: url(../design/orig/tab_white-current-right.gif) no-repeat; }
.orig-list .tab_main .current a { color: #303030; font-weight: bold; }

/* 数据表格 */
.orig-list table.main-table-content {
  width: 100%; border-collapse: collapse; border-bottom: 1px solid #ddd; text-align: left; table-layout: fixed;
}
.orig-list table.main-table-content thead th {
  font-weight: bold; background: #f5f7f9; text-align: left; padding: 5px;
  border-bottom: 1px solid #e5e5e5; white-space: nowrap; color: #303030;
}
.orig-list table.main-table-content tbody td {
  border-top: 1px solid #e5e5e5; padding: 5px 4px; vertical-align: top; position: relative; line-height: 18px;
}
.orig-list table.main-table-content td.nowrap, .orig-list table.main-table-content td.date { white-space: nowrap; }
.orig-list table.main-table-content tbody tr:hover { background: #f3f3f3; }
.orig-list table.main-table-content td.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 原站列表页外边距（原站 #main-body 内边距更小） */
#main-body.orig-host { padding: 10px 12px 12px; }
.orig-list table.main-table-content p { margin: 0; }
.orig-list table.main-table-content p + p { margin-top: 3px; }
.orig-list table.main-table-content p .btn2 { margin-bottom: 2px; }
.orig-list table.main-table-content td.ops { padding: 6px 5px 4px; }

/* 复选方块 */
.orig-list a.checkbox {
  display: inline-block; width: 3px; height: 13px; padding-right: 11px;
  background: url(../design/orig/checkbox.gif) no-repeat 0 1px; font-size: 0;
}
.orig-list a.checkbox.checked { background-position: 0 -14px; }

/* 分页 */
.orig-list #origPager {
  width: 100%; border-bottom: 1px solid #ddd; color: #666; padding: 5px 0;
  background: url(../design/orig/main-table-top-bg.png) repeat-x; text-align: right; font-size: 12px;
}
.orig-list #origPager .pg-info { float: left; padding-left: 10px; line-height: 18px; }
.orig-list #origPager a.pg {
  display: inline-block; width: 16px; height: 16px; margin: 0 2px; vertical-align: middle; font-size: 0;
}
.orig-list #origPager a.pg.first { background: url(../design/orig/pager_first.gif) no-repeat; }
.orig-list #origPager a.pg.prev { background: url(../design/orig/pager_prev.gif) no-repeat; }
.orig-list #origPager a.pg.next { background: url(../design/orig/pager_next.gif) no-repeat; }
.orig-list #origPager a.pg.last { background: url(../design/orig/pager_last.gif) no-repeat; }
.orig-list #origPager a.pg.disabled.first { background-image: url(../design/orig/pager_first_disabled.gif); }
.orig-list #origPager a.pg.disabled.prev { background-image: url(../design/orig/pager_prev_disabled.gif); }
.orig-list #origPager a.pg.disabled.next { background-image: url(../design/orig/pager_next_disabled.gif); }
.orig-list #origPager a.pg.disabled.last { background-image: url(../design/orig/pager_last_disabled.gif); }
.orig-list #origPager span.pg-num { display: inline-block; padding: 0 5px; line-height: 18px; }
.orig-list #origPager span.pg-num.cur { font-weight: bold; color: #303030; }
.orig-list #origPager span.pg-sep {
  display: inline-block; width: 2px; height: 16px; margin: 0 3px; vertical-align: middle;
  background: url(../design/orig/pager_separator.gif) no-repeat center;
}

/* ---------- 原站产品图片上传区（Apps/ProductAdd.aspx） ---------- */
.ImgArea { width: 180px; text-align: left; position: relative; float: right; }
.ImgArea .content {
  height: 205px; text-align: center;
  border: solid 1px #d7d7d7; border-top: solid 2px #d7d7d7; border-bottom: solid 2px #d7d7d7;
}
.ImgArea .lefttitle { position: absolute; top: 0; left: -27px; }
.ImgArea .lefttitle div.top { width: 25px; height: 5px; background: url(/libs/design/div-ImgArea-vbg.png) no-repeat; font-size: 0; }
.ImgArea .lefttitle div.bottom { width: 25px; height: 5px; background: url(/libs/design/div-ImgArea-vbg.png) no-repeat 0px -6px; font-size: 0; }
.ImgArea .lefttitle div.middle {
  width: 23px; text-align: center; padding: 5px 0px;
  border-left: solid 1px #d7d7d7; border-right: solid 1px #d7d7d7;
}
.ImgArea .content .preview {
  width: 150px; height: 110px; margin: 8px auto 6px; line-height: 108px;
  border: solid 1px #eee; background: #fff; overflow: hidden;
}
.ImgArea .content .preview img { max-width: 140px; max-height: 100px; vertical-align: middle; }
.ImgArea .content .imgtip { color: #8b939e; font-size: 11px; line-height: 16px; margin-top: 6px; }

/* 原站提示条 notification information */
.notification { position: relative; border: 1px solid; font-size: 12px; margin-top: 2px; margin-bottom: 2px; width: 99%; }
.notification .content { padding: 5px 0px 5px 35px; }
.notification .tip { position: absolute; left: 10px; top: 4px; width: 16px; height: 16px; font-size: 0; }
.information { background: #dbe3ff; border-color: #a2b4ee; color: #585b66; }
.information .tip { background: url(/libs/design/information.png) no-repeat; font-size: 0; }
.notification .close {
  position: absolute; right: 5px; top: 5px; cursor: pointer; display: inline-block;
  width: 7px; height: 7px; background: url(/libs/design/cross_grey_small.png) no-repeat;
}

/* ---------- 响应式：窄屏收缩 ---------- */
@media (max-width: 1040px) {
  /* 导航与内容区同步收缩，子项横条改为跟随容器宽度并允许换行 */
  #site-nav .nav-inner, #title .title-inner, #container, .menu-container { width: 96%; }
  ul.menu-sub { width: 100%; height: auto; }
  .menu-sub li { height: auto; }
  #menu { height: auto; min-height: 66px; }
  .menu-container { height: auto; min-height: 66px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .remind-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}
