/* 龙影惊天WEB商城 - 黑灰金属风，兼容 Chrome 48 */
body {
  margin: 0;
  padding: 0;
  font-family: Tahoma, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #ddd;
  background: #121212 linear-gradient(180deg, #161616 0%, #101010 100%);
  min-height: 100vh;
}

a { color: #d4af57; text-decoration: none; }
a:hover { color: #f0cf77; }

.shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 14px 16px;
  box-sizing: border-box;
}

.topbar {
  background: linear-gradient(180deg, #2a2a2a 0%, #1b1b1b 100%);
  border: 1px solid #555;
  border-radius: 4px;
  padding: 10px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.45);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
}

.brand {
  font-size: 18px;
  color: #d4af57;
  letter-spacing: 1px;
  margin: 0;
  white-space: nowrap;
  line-height: 38px;
  flex: 0 0 auto;
  padding-right: 8px;
}

.topbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

.topbar-divider {
  display: inline-block;
  width: 1px;
  height: 28px;
  margin: 0 14px;
  background: linear-gradient(180deg,
    rgba(80,80,80,0) 0%,
    rgba(120,120,120,0.9) 18%,
    rgba(201,162,39,0.85) 50%,
    rgba(120,120,120,0.9) 82%,
    rgba(80,80,80,0) 100%);
  flex-shrink: 0;
}

.nav {
  display: block;
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.nav-item {
  display: inline-block;
  vertical-align: middle;
  height: 38px;
  line-height: 36px;
  padding: 0 12px;
  margin: 0 0 0 10px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #3a3a3a 0%, #252525 100%);
  border: 1px solid #666;
  border-radius: 3px;
  color: #eee;
  font-size: 13px;
  white-space: nowrap;
}
.nav-item:first-child {
  margin-left: 0;
}
.nav-item.active,
.nav-item:hover {
  border-color: #b8962e;
  color: #ffe9a8;
}

.user-info-bar {
  display: inline-block;
  height: 38px;
  line-height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
  border: 1px solid #6a5a2a;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  font-size: 13px;
  color: #ccc;
  white-space: nowrap;
}
.user-info-label { color: #999; }
.user-info-account {
  color: #fff;
  font-weight: bold;
  font-size: 14px;
}
.user-info-sep {
  color: #555;
  margin: 0 10px;
}
.user-info-balance {
  color: #f0cf77;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.topbar-search {
  display: flex;
  align-items: center;
  height: 38px;
  margin: 0;
  flex: 0 1 auto;
}
.topbar-search input[type="text"] {
  width: 140px;
  height: 38px;
  line-height: 36px;
  padding: 0 10px;
  box-sizing: border-box;
  background: #111;
  border: 1px solid #555;
  border-right: none;
  border-radius: 3px 0 0 3px;
  color: #eee;
  font-size: 13px;
}
.topbar-search .btn-search {
  height: 38px;
  line-height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #3a3a3a 0%, #252525 100%);
  border: 1px solid #666;
  border-radius: 0 3px 3px 0;
  color: #eee;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}
.topbar-search .btn-search:hover {
  border-color: #b8962e;
  color: #ffe9a8;
}

.btn-close {
  display: inline-block;
  height: 38px;
  line-height: 36px;
  padding: 0 14px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #5a2222 0%, #3a1414 100%);
  border: 1px solid #aa4444;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}
.btn-close:hover { color: #fff; border-color: #dd6666; }

.search-hint {
  margin-bottom: 10px;
  color: #aaa;
  font-size: 13px;
}

.panel {
  margin-top: 12px;
  background: linear-gradient(180deg, #242424 0%, #181818 100%);
  border: 1px solid #4a4a4a;
  border-radius: 4px;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  box-sizing: border-box;
}

.panel h1, .panel h2 {
  margin: 0 0 12px;
  color: #d4af57;
  font-size: 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  color: #aaa;
}

.meta-box {
  padding: 8px 12px;
  background: #151515;
  border: 1px solid #444;
  border-radius: 3px;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -6px;
}

.product-card {
  width: 25%;
  box-sizing: border-box;
  padding: 6px;
}

.product-card-inner {
  height: 100%;
  padding: 0;
  background: #1a1a1a;
  border: 1px solid #555;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-card-inner:hover {
  border-color: #8a7428;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 0 12px rgba(184, 150, 46, 0.12);
}

.product-head {
  padding: 10px 12px 10px;
  border-bottom: 1px solid rgba(184, 150, 46, 0.35);
  background: linear-gradient(180deg, rgba(90, 77, 42, 0.22) 0%, rgba(26, 26, 26, 0) 100%);
}
.product-category {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  font-size: 11px;
  color: #ffe9a8;
  background: rgba(184, 150, 46, 0.15);
  border: 1px solid rgba(184, 150, 46, 0.45);
  border-radius: 2px;
  letter-spacing: 0.5px;
}
.product-card .product-title {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  color: #ffe9a8;
  line-height: 1.35;
  letter-spacing: 0.3px;
  min-height: 0;
  border-bottom: none;
  background: none;
}

.product-desc {
  flex: 1 1 auto;
  margin: 10px 12px;
  padding: 8px 10px 10px 11px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid #333;
  border-left: 3px solid #b8962e;
  border-radius: 0 3px 3px 0;
  min-height: 52px;
  box-sizing: border-box;
}
.product-desc-label {
  margin-bottom: 5px;
  font-size: 11px;
  color: #777;
  letter-spacing: 1px;
}
.product-desc p {
  margin: 0;
  color: #aaa;
  font-size: 12px;
  line-height: 1.55;
}
.product-desc-empty {
  color: #666;
  font-style: italic;
}

.product-foot {
  margin-top: auto;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, #161616 0%, #101010 100%);
  border-top: 1px solid #555;
}
.product-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.product-price {
  line-height: 1.2;
  white-space: nowrap;
}
.product-price-num {
  font-size: 22px;
  font-weight: bold;
  color: #f0cf77;
}
.product-price-unit {
  margin-left: 4px;
  font-size: 12px;
  color: #888;
}
.product-qty {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}
.product-qty-text {
  margin-right: 6px;
}
.product-qty input {
  width: 48px;
  padding: 4px 6px;
  box-sizing: border-box;
  background: #111;
  border: 1px solid #555;
  border-radius: 3px;
  color: #eee;
  font-size: 12px;
  text-align: center;
}
.product-btns {
  display: flex;
}
.product-btns .btn-compact {
  flex: 1;
  box-sizing: border-box;
  margin: 0 6px 0 0;
  padding: 7px 6px;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-btns .btn-compact:last-child {
  margin-right: 0;
}

/* 其它页面旧商品样式 */
.price { color: #f0cf77; font-size: 15px; font-weight: bold; margin-bottom: 6px; }
.desc {
  color: #999;
  font-size: 12px;
  min-height: 36px;
  margin: 0 0 8px;
  line-height: 1.4;
  overflow: hidden;
}
.product-actions { margin-top: 4px; }
.product-actions .btn,
.product-actions .btn-secondary {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin: 0 0 6px;
  padding: 7px 8px;
  font-size: 12px;
}

.btn, button.btn {
  display: inline-block;
  padding: 8px 14px;
  background: linear-gradient(180deg, #5a4d2a 0%, #3a3218 100%);
  border: 1px solid #b8962e;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}
.btn-secondary {
  background: linear-gradient(180deg, #3a3a3a 0%, #252525 100%);
  border-color: #666;
  color: #eee;
}
.btn-secondary.disabled {
  opacity: 0.45;
  cursor: default;
}
.btn-danger {
  background: linear-gradient(180deg, #5a2222 0%, #3a1414 100%);
  border-color: #aa4444;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #333;
}
.page-info { color: #aaa; font-size: 13px; }

.table-wrap {
  border: 1px solid #333;
  border-radius: 4px;
  overflow-x: auto;
  background: #151515;
}
.table-wrap table.data {
  margin: 0;
}

.cart-qty-input {
  width: 64px;
  padding: 5px 6px;
  box-sizing: border-box;
  background: #111;
  border: 1px solid #555;
  border-radius: 3px;
  color: #eee;
  text-align: center;
  font-size: 13px;
}

.page-form {
  margin: 0;
}
.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #333;
}
.page-toolbar-left,
.page-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.page-toolbar-left .btn,
.page-toolbar-right .btn {
  margin: 0 8px 6px 0;
}
.page-summary {
  margin: 0 12px 6px 0;
  color: #aaa;
  font-size: 13px;
  white-space: nowrap;
}
.page-summary strong {
  color: #f0cf77;
  font-size: 18px;
  margin: 0 2px;
}
.page-note {
  margin: 10px 0 0;
  color: #777;
  font-size: 12px;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
table.data th,
table.data td {
  border-bottom: 1px solid #333;
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.data th {
  color: #bbb;
  background: #171717;
  font-weight: normal;
  white-space: nowrap;
}

table.data td.col-mono,
table.data th.col-mono {
  font-family: Consolas, monospace;
  font-size: 12px;
  color: #ccc;
}
table.data td.col-name,
table.data th.col-name {
  white-space: normal;
  word-break: break-word;
}
table.data th.col-num,
table.data td.col-num {
  text-align: right;
  white-space: nowrap;
}
table.data th.col-qty,
table.data td.col-qty {
  text-align: center;
  white-space: nowrap;
}
table.data th.col-status,
table.data td.col-status {
  text-align: center;
  white-space: nowrap;
}
table.data th.col-time,
table.data td.col-time {
  text-align: right;
  white-space: nowrap;
}
table.data td.col-time {
  color: #999;
  font-size: 12px;
  font-family: Consolas, monospace;
}
table.data td.col-total {
  color: #f0cf77;
  font-weight: bold;
}

table.data-orders col.col-order { width: 14%; }
table.data-orders col.col-name { width: 22%; }
table.data-orders col.col-qty { width: 8%; }
table.data-orders col.col-amount { width: 12%; }
table.data-orders col.col-status { width: 12%; }
table.data-orders col.col-time { width: 32%; }

table.data-cart col.col-name { width: 52%; }
table.data-cart col.col-amount { width: 16%; }
table.data-cart col.col-qty { width: 16%; }

.alert {
  padding: 10px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.alert-success { background: #1f3a24; border: 1px solid #3d7a4a; color: #9fe8b0; }
.alert-error { background: #3a1f1f; border: 1px solid #7a3d3d; color: #ffb0b0; }
.alert-info { background: #1f2a3a; border: 1px solid #3d5a7a; color: #b0d4ff; }
.alert-warn {
  background: #3a2a10;
  border: 2px solid #b8962e;
  color: #ffe9a8;
  font-weight: bold;
  font-size: 14px;
}

.url-monitor {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #1a1508;
  border: 2px dashed #b8962e;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #e8ecf1;
}
.url-monitor-title {
  color: #ffd27a;
  font-weight: bold;
  margin-bottom: 8px;
}
.url-monitor-row {
  display: flex;
  gap: 8px;
  margin: 4px 0;
  align-items: flex-start;
}
.url-monitor-label {
  flex: 0 0 108px;
  color: #9aa7bd;
}
.url-monitor-value {
  flex: 1;
  word-break: break-all;
}
.url-monitor-value code,
code.url-monitor-value {
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  color: #b0d4ff;
  background: transparent;
}
.url-monitor-ok { color: #9fe8b0; }
.url-monitor-bad { color: #ffb0b0; }
.url-monitor-warn { color: #ffe9a8; }
.url-monitor-hint {
  margin-top: 8px;
  color: #9aa7bd;
  font-size: 11px;
}

.confirm-panel {
  margin-top: 16px;
  padding: 14px;
  background: #1a1508;
  border: 2px solid #b8962e;
  border-radius: 4px;
  max-width: 520px;
}
.confirm-panel table.data {
  margin-bottom: 0;
}
.confirm-agree-row {
  margin: 16px 0 14px;
  padding: 12px;
  background: #121212;
  border: 1px solid #666;
  border-radius: 3px;
}
.confirm-agree-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 10px 0 0;
  vertical-align: top;
  cursor: pointer;
}
.confirm-agree-label {
  display: inline-block;
  width: calc(100% - 32px);
  color: #ffe9a8;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
  margin: 0;
  cursor: pointer;
  vertical-align: top;
}
.confirm-actions {
  margin-top: 4px;
}
.confirm-actions .btn,
.confirm-actions .btn-secondary {
  margin-right: 8px;
  margin-bottom: 8px;
}
.btn:disabled,
button.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #666;
  background: linear-gradient(180deg, #3a3a3a 0%, #252525 100%);
  color: #999;
}

.form-row { margin-bottom: 12px; }
.form-row label { display: block; color: #aaa; margin-bottom: 4px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  background: #111;
  border: 1px solid #555;
  color: #eee;
  border-radius: 3px;
}

.captcha-row {
  margin-top: 4px;
}
.captcha-row input,
.captcha-row img,
.captcha-row a {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.captcha-img {
  border: 1px solid #555;
  background: #111;
}
.recharge-form {
  max-width: 520px;
}
.code-export {
  width: 100%;
  min-height: 160px;
  box-sizing: border-box;
  padding: 10px;
  background: #111;
  border: 1px solid #555;
  color: #eee;
  font-family: Consolas, monospace;
  font-size: 12px;
}
.category-tabs a {
  margin-right: 6px;
  margin-bottom: 6px;
}

.manage-tabs {
  margin: 14px 0 16px;
}
.manage-tabs a {
  margin-right: 8px;
  margin-bottom: 6px;
}
.manage-tabs a.active {
  border-color: #b8962e;
  color: #ffe9a8;
  background: linear-gradient(180deg, #3a3018 0%, #2a2210 100%);
}

.manage-subtabs {
  margin: 0 0 12px;
}
.manage-subtabs a.active {
  border-color: #b8962e;
  color: #ffe9a8;
  background: linear-gradient(180deg, #3a3018 0%, #2a2210 100%);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #151515;
  border: 1px solid #333;
  border-radius: 4px;
}
.filter-bar .form-row {
  margin: 0 10px 0 0;
  min-width: 110px;
}
.filter-bar .form-row label {
  margin-bottom: 2px;
  font-size: 12px;
}
.filter-bar .form-row-grow {
  flex: 1;
  min-width: 140px;
}
.filter-bar input[type="text"],
.filter-bar select {
  width: 100%;
  min-width: 110px;
  box-sizing: border-box;
  padding: 6px 8px;
  background: #111;
  border: 1px solid #555;
  color: #eee;
  border-radius: 3px;
  font-size: 13px;
}
.filter-bar-actions .btn {
  margin-right: 6px;
}
.filter-bar-actions label {
  display: none;
}

.manage-gen-result {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #333;
}

.manage-section {
  margin-top: 4px;
}
.manage-section h2 {
  margin: 0 0 14px;
  font-size: 16px;
  color: #d4af57;
  font-weight: normal;
}

.manage-form {
  max-width: 760px;
}
.manage-form-grid {
  margin-bottom: 4px;
}
.manage-form-block {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #333;
  border-radius: 4px;
  background: #151515;
}
.manage-form-block h3 {
  margin: 0 0 12px;
  font-size: 14px;
  color: #d4af57;
  font-weight: normal;
}
.manage-form-hint {
  margin: -4px 0 12px;
  color: #777;
  font-size: 12px;
  line-height: 1.5;
}

.form-row-inline {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1%;
}
.form-row-half {
  width: 48%;
  margin-left: 1%;
  margin-right: 1%;
  box-sizing: border-box;
}
.form-row-third {
  width: 31.33%;
  margin-left: 1%;
  margin-right: 1%;
  box-sizing: border-box;
}

.inline-form {
  display: inline;
  margin-left: 6px;
}
.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

.status-delivered { color: #9fe8b0; }
.status-deliver_failed { color: #ffb0b0; }
.status-paid { color: #f0cf77; }

@media (max-width: 1100px) {
  .product-card { width: 33.333%; }
}

@media (max-width: 820px) {
  .product-card { width: 50%; }
}

@media (max-width: 520px) {
  .product-card { width: 100%; }
  .topbar-inner { flex-direction: column; align-items: stretch; }
  .topbar-right { justify-content: flex-start; }
  .brand { line-height: 1.4; padding-right: 0; }
  .topbar-divider { display: none; }
  .topbar-search { width: 100%; margin-top: 4px; }
  .topbar-search input[type="text"] { flex: 1; width: auto; min-width: 0; }
  .nav { width: 100%; }
}
