/* 集装箱 - 单位查询 · 统一风格样式表（深色磁贴风，与导航主页一致）
   类名与结构与原 style.css 完全一致，script.js 无需改动即可配合 */
:root{
  --bg:#1b1b1b; --bg-2:#252526; --bg-3:#333334;
  --fg:#f5f5f5; --muted:rgba(255,255,255,.58);
  --line:rgba(255,255,255,.14); --focus:#7cc3ff; --accent:#0078D4;
}
*{ margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
body {
  font-family: "Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  background: var(--bg); color: var(--fg);
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Logo（透明底，深色下直接可用） */
.logo-container {
  text-align: center;
  margin-bottom: 30px;
}
.logo-container img {
  height: 56px;
  max-width: 80vw;
}

/* 主卡片：深色直角 */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 40px;
}
h2 {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: .06em;
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
}
.form-group { margin-bottom: 26px; }
label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: #fff;
}

/* 输入框：深色、直角、聚焦白底线 */
input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 16px;
  letter-spacing: 1px;
  color: #fff;
  background: var(--bg-3);
  outline: none;
  transition: background .12s ease-out, box-shadow .12s ease-out;
}
input[type="text"]::placeholder { color: var(--muted); }
input[type="text"]:focus {
  background: #3d3d3f;
  box-shadow: inset 0 -2px 0 #fff;
}

/* 提示文字（颜色由 script.js 内联控制，这里只是默认值） */
#websiteInfo {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* 船公司自定义下拉 */
.custom-select {
  position: relative;
  user-select: none;
}
.custom-select .selected {
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: var(--bg-3);
  color: #fff;
  transition: background .12s ease-out;
}
.custom-select .selected:hover { background: #3d3d3f; }
.custom-select .selected img { height: 20px; width: auto; }
.custom-select .selected span:not(.arrow) { flex: 1; }
.custom-select .arrow { color: var(--muted); font-size: 12px; }

/* 下拉面板：script.js 用内联 display:block/none 控制展开，此处只管样式 */
.custom-select .options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
  z-index: 1000;
  display: none;
  max-height: 288px;
  overflow-y: auto;
}
.custom-select .option {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--fg);
  font-size: 15px;
  transition: background .1s ease-out;
}
.custom-select .option:hover { background: #3d3d3f; }
.custom-select .option img { height: 20px; width: auto; }

/* 查询按钮：主题蓝、直角 */
button {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 4px;
  cursor: pointer;
  transition: background .12s ease-out, transform .08s ease-out;
}
button:hover { background: #1b86d9; }
button:active { transform: scale(.98); }

/* 页脚版权（与导航主页一致） */
.footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 14px;
  width: 100%;
  max-width: 480px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: rgba(255,255,255,.45);
  letter-spacing: .02em;
}
.footer .seg { display: inline-block; }

/* 手机端卡片内边距收敛 */
@media (max-width: 560px) {
  .container { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}