/* ============================================================
   jianghu.css  -  CCJH Shop v3 "Rice-Paper Wuxia" theme
   All-new class system (jh-*). Fully responsive.
   ============================================================ */

/* ---------- base ---------- */
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", SimSun, sans-serif;
    font-size: 15px;
    color: #2b2117;
    background-color: #efe6d0;
    background-image:
        repeating-linear-gradient(0deg, rgba(160,120,60,.045) 0 1px, transparent 1px 26px),
        repeating-linear-gradient(90deg, rgba(160,120,60,.035) 0 1px, transparent 1px 26px);
    line-height: 1.6;
}
a { color: #7a2e22; text-decoration: none; }
a:hover { color: #c0392b; text-decoration: underline; }
img { border: 0; }

/* ---------- header ---------- */
.jh-header {
    background: linear-gradient(180deg, #241c14 0%, #382c1d 60%, #43351f 100%);
    border-bottom: 3px solid #8a6d3b;
    text-align: center;
    padding: 18px 12px 14px;
    box-shadow: 0 2px 8px rgba(30,20,8,.35);
}
.jh-title {
    font-family: KaiTi, "Kaiti SC", STKaiti, "Microsoft YaHei", serif;
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 10px;
    color: #e8c877;
    text-shadow: 0 1px 0 #000, 0 0 14px rgba(232,200,119,.25);
}
.jh-server {
    margin-top: 4px;
    font-size: 14px;
    color: #d8b56a;
    letter-spacing: 2px;
}

/* ---------- user bar ---------- */
.jh-userbar {
    background: #9c3327;
    color: #fdf3e0;
    text-align: center;
    font-size: 15px;
    padding: 6px 10px;
    border-bottom: 1px solid #7a241b;
    letter-spacing: 1px;
}
.jh-userbar a { color: #ffe9b8; text-decoration: underline; }
.jh-userbar a:hover { color: #fff; }

/* ---------- nav ---------- */
.jh-nav {
    background: #f7f1de;
    border-bottom: 2px solid #8a6d3b;
    box-shadow: 0 1px 4px rgba(60,45,20,.15);
}
.jh-nav-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 6px 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 2px;
}
.jh-nav a {
    color: #4a3826;
    font-size: 15px;
    padding: 3px 10px;
    border-radius: 14px;
    white-space: nowrap;
}
.jh-nav a:hover {
    background: #8a6d3b;
    color: #fdf3e0;
    text-decoration: none;
}
.jh-nav .jh-nav-sep { color: #c2ad82; padding: 3px 0; }

/* ---------- main layout ---------- */
.jh-main {
    max-width: 980px;
    margin: 16px auto 24px;
    padding: 0 10px;
}

/* ---------- card ---------- */
.jh-card {
    background: #fffdf4;
    border: 1px solid #d4c39a;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(90,70,35,.14);
    margin-bottom: 16px;
    overflow: hidden;
}
.jh-card-title {
    font-family: KaiTi, "Kaiti SC", STKaiti, "Microsoft YaHei", serif;
    font-size: 19px;
    font-weight: bold;
    color: #33261a;
    background: linear-gradient(180deg, #f4ecd6 0%, #ece0c2 100%);
    border-bottom: 1px solid #d4c39a;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.jh-card-title::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 20px;
    background: #9c3327;
    border-radius: 2px;
}
.jh-card-title .jh-extra {
    margin-left: auto;
    font-family: "Microsoft YaHei", SimSun, sans-serif;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 0;
}
.jh-card-body { padding: 10px 12px; }

/* ---------- notice / plain rows ---------- */
.jh-note {
    padding: 6px 14px;
    color: #5a4830;
    font-size: 15px;
    border-bottom: 1px dashed #e0d2ac;
}
.jh-note:last-child { border-bottom: 0; }

/* ---------- table head row ---------- */
.jh-thead {
    display: flex;
    flex-wrap: wrap;
    background: #6b563a;
    color: #f3e3bb;
    font-weight: bold;
    font-size: 15px;
    padding: 6px 12px;
    gap: 4px 0;
}
.jh-thead .jh-c { color: #f3e3bb; }

/* ---------- data row ---------- */
.jh-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 7px 12px;
    border-bottom: 1px solid #eadfbf;
    background: #fffef9;
    gap: 4px 0;
}
.jh-row:nth-child(even) { background: #faf5e4; }
.jh-row:hover { background: #f6eed6; }
.jh-row form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 1 1 100%;
    gap: 4px 0;
}

/* ---------- cells (desktop widths) ---------- */
.jh-c { box-sizing: border-box; padding: 1px 8px; min-height: 24px; display: flex; align-items: center; color: #6b5a3e; font-size: 14px;}
.jh-c-idx    { flex: 0 0 46px;  color: #8a7454; }
.jh-c-name   { flex: 1 1 200px; font-weight: bold; color: #33261a; }
.jh-c-price  { flex: 0 0 92px;  color: #9c3327; font-weight: bold; }
.jh-c-qty    { flex: 0 0 118px; }
.jh-c-remark { flex: 1 1 300px; }
.jh-c-act    { flex: 0 0 78px;  justify-content: flex-end; }
.jh-c-w150   { flex: 0 0 170px; }
.jh-c-w100   { flex: 0 0 120px; }
.jh-c-w200   { flex: 0 0 220px; }
.jh-c-full   { flex: 1 1 100%; }

/* ---------- item name bold + qty mark ---------- */
.jh-item-qty { color: #8a7454; font-weight: normal; }

/* ---------- forms ---------- */
.jh-form { padding: 12px 14px; }
.jh-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}
.jh-form-row label { flex: 0 0 92px; text-align: right; color: #4a3826; font-size: 15px; }
.jh-form-row .jh-field { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jh-form-actions { margin-top: 10px; padding-left: 100px; }

/* ---------- inputs ---------- */
input[type="text"], input[type="password"], input[type="date"], select, .jh-input {
    font-family: inherit;
    font-size: 16px;           /* prevents iOS zoom-on-focus */
    padding: 5px 8px;
    border: 1px solid #c9b98d;
    border-radius: 6px;
    background: #fffef9;
    color: #2b2117;
    box-sizing: border-box;
    max-width: 100%;
}
textarea#cbeizhu {
    font-family: inherit;
    font-size: 16px;           /* prevents iOS zoom-on-focus */
    padding: 5px 8px;
    border: 1px solid #c9b98d;
    border-radius: 6px;
    background: #fffef9;
    color: #2b2117;
    box-sizing: border-box;
    max-width: 100%;
	resize: vertical;          /* 只允许上下拖动改变高度，禁止横向拉伸 */
    line-height: 1.5;          /* 行高，多行文字看着更舒服 */
	width:100%;
	max-width:48em;
    height: 4.5em;    /* 等价 rows="6"，6行文本高度 */
}
/* 聚焦样式，高亮边框，提升交互感 */
textarea#cbeizhu:focus {
    outline: none;
    border-color: #9c3327;
    box-shadow: 0 0 0 2px rgba(201, 185, 141, 0.25);
}
input[type="text"]:focus, input[type="password"]:focus, select:focus {
    outline: none;
    border-color: #9c3327;
    box-shadow: 0 0 0 2px rgba(156,51,39,.15);
}
input[type="submit"], input[type="reset"], input[type="button"], .jh-btn {
    font-family: inherit;
    font-size: 16px;
    padding: 6px 20px;
    border: 1px solid #7a241b;
    border-radius: 6px;
    background: linear-gradient(180deg, #b0442f 0%, #9c3327 100%);
    color: #fdf3e0;
    cursor: pointer;
    letter-spacing: 2px;
}
input[type="reset"] {
    background: linear-gradient(180deg, #f2e8cd 0%, #e6d8b4 100%);
    border-color: #b7a67c;
    color: #4a3826;
}
input[type="submit"]:hover, input[type="button"]:hover { background: #8a2b20; }
input[type="reset"]:hover { background: #e0d0a6; }

/* buy / confirm icon buttons: large touch target, gold frame */
input[type="image"] {
    width: 40px;
    height: 44px;
    padding: 3px;
    border: 1px solid #8a6d3b;
    border-radius: 6px;
    background-color: #fdf6e3;
    box-sizing: border-box;
    cursor: pointer;
}
input[type="image"]:hover { border-color: #9c3327; box-shadow: 0 0 0 2px rgba(156,51,39,.2); }

/* qty select slightly bolder presence */
.jh-c-qty select { min-width: 74px; }

/* ---------- pager ---------- */
.jh-pager {
    padding: 10px 14px;
    text-align: center;
    color: #6b563a;
    font-size: 15px;
    background: #f8f2e0;
    border-top: 1px solid #e3d6b2;
}
.jh-pager a { margin: 0 4px; padding: 2px 10px; border: 1px solid #c9b98d; border-radius: 12px; background: #fffdf4; color: #4a3826; }
.jh-pager a:hover { background: #8a6d3b; color: #fdf3e0; text-decoration: none; }

/* ---------- footer ---------- */
.jh-footer {
    background: #241c14;
    border-top: 3px solid #8a6d3b;
    color: #bfa268;
    text-align: center;
    font-size: 13px;
    padding: 14px 10px;
    letter-spacing: 1px;
    line-height: 1.9;
}

/* ---------- helper ---------- */
.jh-empty { display: block; text-align: center; color: #8a7454; padding: 18px 0; }
.jh-clear-link { color: #9c3327; font-weight: bold; }
.jh-total { padding: 10px 14px; background: #f4ecd6; border-top: 1px solid #e3d6b2; color: #33261a; font-weight: bold; }
.jh-total input, .jh-total select { vertical-align: middle; }
.jh-searchbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; background: #f8f2e0; border-bottom: 1px solid #e3d6b2; }
.jh-searchbar .jh-sf { display: flex; align-items: center; gap: 4px; }
.jh-searchbar .jh-sf span { color: #4a3826; font-size: 15px; }

/* ============================================================
   responsive: <=760px  rows become stacked cards
   ============================================================ */
@media (max-width: 880px) {
    .jh-title { font-size: 24px; letter-spacing: 6px; }
    .jh-main { margin: 10px auto 18px; padding: 0 6px; }
    .jh-nav-inner { justify-content: flex-start; }
    .jh-nav a { font-size: 14px; padding: 4px 9px; }
    .jh-thead { display: none; }           /* card mode: no table head */
    .jh-c-idx    { flex: 0 0 50px; }
    /*.jh-c-name   { flex: 1 1 calc(100% - 50px); font-size: 16px; }*/
    .jh-c-price  { flex: 0 0 96px; }
    .jh-c-remark { flex: 1 1 100%; order: 5; border-top: 1px dashed #e8dbb6; margin-top: 3px; padding-top: 4px; min-height: 0; }
    /* qty selector (left) + buy button (right) share the action line */
    .jh-c-qty    { flex: 1 1 50%; order: 7; justify-content: flex-start; }
    .jh-c-act    { flex: 0 0 50%; order: 7; justify-content: flex-end; }
    .jh-c-actg    { flex: 0 0 100%; order: 7; justify-content: flex-end; }
    .jh-c-w150, .jh-c-w100, .jh-c-w200 { flex: 1 1 50%; min-height: 0; }
    .jh-form-row label { flex: 1 1 100%; text-align: left; }
    .jh-form-actions { padding-left: 0; }
    .jh-searchbar { padding: 8px 10px; }
}

/* ---- floating cart badge & toast (main.asp AJAX add-to-cart) ---- */
.jh-floatcart {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 990;
  display: flex;
  align-items: center;
  background: #9c3327;
  color: #fff8ea;
  border: 1px solid #e8c877;
  border-radius: 22px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(36, 28, 20, 0.35);
}
.jh-floatcart:visited { color: #fff8ea; }
.jh-floatcart:hover { background: #7e2a20; color: #fff8ea; }
.jh-floatcart:active { background: #6b231b; }
.jh-fc-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  background: #e8c877;
  color: #5a3218;
  border-radius: 50%;
  font-size: 12px;
  margin-right: 6px;
}
.jh-fc-num {
  margin-left: 8px;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  display: inline-block;
  text-align: center;
  background: #fffdf4;
  color: #9c3327;
  border: 1px solid #e8c877;
  border-radius: 10px;
  font-size: 13px;
  padding: 0 5px;
}
.jh-toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 991;
  background: rgba(36, 28, 20, 0.92);
  color: #f5e6c4;
  border: 1px solid #e8c877;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}
.jh-toast-show {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 760px) {
  .jh-floatcart {
    right: 10px;
    bottom: 14px;
    padding: 10px 18px;
    font-size: 15px;
  }
}

/* ---- cart item delete button ---- */
.jh-del {
  display: inline-block;
  color: #9c3327;
  text-decoration: none;
  font-size: 13px;
  padding: 3px 8px;
  border: 1px solid #c47a6e;
  border-radius: 3px;
  white-space: nowrap;
  cursor: pointer;
}
.jh-del:visited { color: #9c3327; }
.jh-del:hover { color: #fff; background: #9c3327; border-color: #9c3327; }
@media (max-width: 760px) {
  .jh-del { font-size: 14px; padding: 4px 10px; }
}
