/* ============================================================
   香港六合彩 — 线路管理样式 (会员端测速门户 + 后台管理)
   复用 theme.css + gold.css 令牌
   ============================================================ */

/* ==========================================================
   会员端 · 线路检测门户
   ========================================================== */
.ln-portal {
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(1100px 560px at 80% -12%, rgba(184,137,58,.16), transparent 56%),
    radial-gradient(820px 480px at 4% 114%, rgba(212,176,110,.16), transparent 60%),
    var(--bg);
}

/* 顶栏 */
.ln-top {
  flex: none; display: flex; align-items: center; gap: 16px;
  padding: 20px 32px; border-bottom: 1px solid var(--line2);
  background:
    linear-gradient(180deg, rgba(255,255,255,.6), transparent 48%),
    linear-gradient(180deg, #fdf8ee, #f4ebd8);
  box-shadow: 0 1px 0 rgba(184,137,58,.28), 0 12px 30px -22px rgba(120,90,30,.5);
}
.ln-mark {
  width: 48px; height: 48px; border-radius: 13px; flex: none;
  background: radial-gradient(120% 120% at 30% 20%, #fbe6a8, #edcb7e 38%, #c89a4a 78%, #8c6a2c);
  color: #3a2a08; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-num); font-size: 25px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(200,154,74,.5), inset 0 1px 0 rgba(255,255,255,.6);
  border: 1px solid rgba(255,238,190,.5);
}
.ln-top-txt { line-height: 1.3; }
.ln-top-title { font-size: 21px; font-weight: 700; color: var(--txt); letter-spacing: .01em; }
.ln-top-title span {
  font-family: var(--font-num); font-size: 12px; letter-spacing: .18em; margin-left: 8px;
  background: linear-gradient(90deg, #9a6f28, #cf9f4e, #9a6f28);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ln-top-sub { font-size: 12.5px; color: var(--txt3); margin-top: 3px; }
.ln-top-clock { margin-left: auto; text-align: right; line-height: 1.4; }
.ln-top-clock-t { font-family: var(--font-num); font-size: 20px; font-weight: 600; color: var(--gold-deep); }
.ln-top-clock-k { font-size: 11px; color: var(--txt3); }

/* 门户主体 */
.ln-wrap { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 26px 32px 48px; }

/* IP 检测 + 友情提示 */
.ln-notice {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: rgba(217,138,43,.1); border: 1px solid rgba(217,138,43,.34);
  border-radius: var(--r-md); padding: 13px 18px; margin-bottom: 18px;
}
.ln-notice-ico {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  background: rgba(217,138,43,.16); color: #b87328;
}
.ln-notice-txt { flex: 1; min-width: 240px; font-size: 13px; color: var(--txt); line-height: 1.6; }
.ln-notice-txt b { color: #b87328; }
.ln-notice-txt .ln-notice-tag { font-size: 11px; color: var(--txt3); }
.ln-ip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: #fff; border: 1px solid var(--line2); border-radius: 999px; padding: 7px 15px;
  font-size: 12.5px; color: var(--txt2);
}
.ln-ip b { font-family: var(--font-num); color: var(--gold-deep); font-weight: 700; letter-spacing: .02em; }
.ln-ip-dot { width: 8px; height: 8px; border-radius: 50%; background: #27a85a; flex: none; }
.ln-ip-dot.is-cn { background: var(--red); }
.ln-ip-dot.is-load { background: var(--txt3); animation: lnpulse 1s ease-in-out infinite; }
@keyframes lnpulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* 状态横幅 + 一键测速 */
.ln-hero {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background:
    linear-gradient(165deg, rgba(184,137,58,.12), transparent 60%),
    linear-gradient(165deg, #fffdf8, #f4ead6);
  border: 1px solid var(--gold-deep); border-radius: var(--r-lg);
  padding: 20px 24px; margin-bottom: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 10px 26px -18px rgba(120,90,30,.4);
}
.ln-hero-icon {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: radial-gradient(120% 120% at 30% 22%, #fff8e8, #f0e3c8);
  border: 1px solid var(--gold); color: var(--gold-deep);
}
.ln-hero-txt { flex: 1; min-width: 200px; }
.ln-hero-h { font-size: 16px; font-weight: 700; color: var(--txt); margin-bottom: 4px; }
.ln-hero-p { font-size: 13px; color: var(--txt2); line-height: 1.6; }
.ln-hero-p b { color: var(--gold-deep); font-family: var(--font-num); }
.ln-test-btn {
  font-family: var(--font-zh); cursor: pointer; flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #f6dca0 0%, #dcae5e 45%, #b8893a 100%);
  color: #fff; text-shadow: 0 1px 1px rgba(120,86,28,.6); border: none;
  border-radius: 10px; padding: 12px 22px; font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 16px -8px rgba(184,137,58,.65), inset 0 1px 0 rgba(255,255,255,.5);
  transition: filter .12s ease, opacity .12s ease;
}
.ln-test-btn:hover { filter: brightness(1.05); }
.ln-test-btn:disabled { opacity: .6; cursor: not-allowed; }
.ln-test-btn .spin { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: lnspin .7s linear infinite; }
@keyframes lnspin { to { transform: rotate(360deg); } }

/* 分类切换 */
.ln-cats { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.ln-cat {
  font-family: var(--font-zh); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line2); color: var(--txt2);
  border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 600;
  transition: all .12s ease;
}
.ln-cat:hover { color: var(--txt); border-color: var(--gold-deep); }
.ln-cat.is-on {
  background: linear-gradient(180deg, rgba(184,137,58,.2), rgba(184,137,58,.07));
  border-color: var(--gold-deep); color: var(--gold-deep);
  box-shadow: inset 0 0 0 1px rgba(184,137,58,.35);
}
.ln-cat-n { font-family: var(--font-num); font-size: 12px; opacity: .7; }

/* 线路卡片网格 */
.ln-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ln-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(165deg, #fffdf8, #f6eedb);
  border: 1px solid var(--line2); border-radius: var(--r-lg); padding: 18px 20px;
  box-shadow: 0 6px 20px -14px rgba(120,90,30,.35);
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.ln-card:hover { border-color: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 12px 28px -16px rgba(120,90,30,.5); }
.ln-card.is-best { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 12px 30px -16px rgba(184,137,58,.55); }
.ln-card-rec {
  position: absolute; top: -1px; right: 18px;
  font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .04em;
  background: linear-gradient(180deg, #dcae5e, #b8893a);
  padding: 3px 12px; border-radius: 0 0 8px 8px;
  box-shadow: 0 3px 8px -3px rgba(184,137,58,.6);
}

.ln-card-hd { display: flex; align-items: center; gap: 11px; }
.ln-isp {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.ln-card-name { font-size: 16px; font-weight: 700; color: var(--txt); line-height: 1.2; }
.ln-card-url { font-family: var(--font-num); font-size: 12.5px; color: var(--txt3); margin-top: 3px; letter-spacing: .01em; }
.ln-type-tag {
  margin-left: auto; align-self: flex-start; font-size: 11px; font-weight: 600;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  color: var(--gold-deep); background: rgba(184,137,58,.12); border: 1px solid rgba(184,137,58,.28);
}
.ln-type-tag.is-backup { color: var(--txt3); background: var(--bg4); border-color: var(--line2); }

/* 测速条 */
.ln-meter { display: flex; align-items: center; gap: 12px; }
.ln-meter-bar { flex: 1; height: 8px; border-radius: 5px; background: var(--bg4); overflow: hidden; position: relative; }
.ln-meter-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; transition: width .5s cubic-bezier(.4,0,.2,1); }
.ln-meter-fill.q-fast { background: linear-gradient(90deg, #27a85a, #46c97c); }
.ln-meter-fill.q-mid  { background: linear-gradient(90deg, #d98a2b, #efc064); }
.ln-meter-fill.q-slow { background: linear-gradient(90deg, #d94343, #f06a6a); }
.ln-ping { font-family: var(--font-num); font-weight: 700; font-size: 17px; min-width: 74px; text-align: right; }
.ln-ping small { font-size: 11px; font-weight: 500; color: var(--txt3); margin-left: 2px; }
.ln-ping.q-fast { color: #1f9d63; } .ln-ping.q-mid { color: #b87328; } .ln-ping.q-slow { color: var(--red); }
.ln-ping.is-testing { color: var(--txt3); }
.ln-ping-dots::after { content: ''; animation: lndots 1.2s steps(4, end) infinite; }
@keyframes lndots { 0% { content: ''; } 25% { content: '·'; } 50% { content: '··'; } 75% { content: '···'; } }

.ln-card-ft { display: flex; align-items: center; gap: 10px; }
.ln-quality { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.ln-quality-dot { width: 8px; height: 8px; border-radius: 50%; }
.ln-quality.q-fast { color: #1f9d63; } .ln-quality.q-mid { color: #b87328; } .ln-quality.q-slow { color: var(--red); }
.ln-quality.q-fast .ln-quality-dot { background: #27a85a; }
.ln-quality.q-mid .ln-quality-dot { background: #d98a2b; }
.ln-quality.q-slow .ln-quality-dot { background: var(--red); }
.ln-card-actions { margin-left: auto; display: flex; gap: 8px; }
.ln-copy {
  font-family: var(--font-zh); cursor: pointer;
  background: #fff; color: var(--txt2); border: 1px solid var(--line2);
  border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600; transition: all .12s ease;
}
.ln-copy:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.ln-enter {
  font-family: var(--font-zh); cursor: pointer;
  background: linear-gradient(180deg, #f6dca0 0%, #dcae5e 45%, #b8893a 100%);
  color: #fff; text-shadow: 0 1px 1px rgba(120,86,28,.6); border: none;
  border-radius: 8px; padding: 8px 22px; font-size: 14px; font-weight: 700;
  box-shadow: 0 5px 14px -7px rgba(184,137,58,.6); transition: filter .12s ease;
}
.ln-enter:hover { filter: brightness(1.05); }

.ln-tips {
  margin-top: 26px; font-size: 12.5px; color: var(--txt2); line-height: 1.8;
  background: rgba(184,137,58,.06); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 18px;
}
.ln-tips b { color: var(--gold-deep); }
.ln-toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: rgba(42,33,20,.94); color: #fff; padding: 11px 22px; border-radius: 999px;
  font-size: 14px; z-index: 300; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
  animation: lnfade .2s ease;
}
@keyframes lnfade { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 760px) {
  .ln-grid { grid-template-columns: 1fr; }
  .ln-wrap { padding: 20px 18px 40px; }
  .ln-top { padding: 16px 18px; }
}

/* ==========================================================
   后台 · 线路管理 (CRUD)
   ========================================================== */
.la-app {
  height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(1200px 620px at 82% -14%, rgba(184,137,58,.14), transparent 56%),
    radial-gradient(900px 520px at 4% 118%, rgba(212,176,110,.16), transparent 60%),
    var(--bg);
}

/* 顶栏 (复用 adm-head 观感) */
.la-head {
  flex: none; height: 66px; display: flex; align-items: center; gap: 14px;
  padding: 0 24px; border-bottom: 1px solid var(--line2);
  background:
    linear-gradient(180deg, rgba(255,255,255,.6), transparent 48%),
    linear-gradient(180deg, #fdf8ee, #f4ebd8);
  box-shadow: 0 1px 0 rgba(184,137,58,.28), 0 10px 26px -18px rgba(120,90,30,.45);
}
.la-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: radial-gradient(120% 120% at 30% 20%, #fbe6a8, #edcb7e 38%, #c89a4a 78%, #8c6a2c);
  color: #3a2a08; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-num); font-size: 21px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(200,154,74,.45), inset 0 1px 0 rgba(255,255,255,.6);
  border: 1px solid rgba(255,238,190,.5);
}
.la-title { font-size: 18px; font-weight: 700; color: var(--txt); line-height: 1.2; }
.la-title span {
  font-family: var(--font-num); font-size: 11px; letter-spacing: .18em; margin-left: 7px;
  background: linear-gradient(90deg, #9a6f28, #cf9f4e, #9a6f28);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.la-subtitle { font-size: 11px; color: var(--txt3); margin-top: 2px; }
.la-head-stats { margin-left: auto; display: flex; align-items: center; gap: 0; }
.la-hstat { padding: 0 18px; border-left: 1px solid var(--line); text-align: center; }
.la-hstat-v { font-family: var(--font-num); font-size: 19px; font-weight: 700; color: var(--gold-deep); }
.la-hstat-v.is-ok { color: var(--ok); } .la-hstat-v.is-red { color: var(--red); } .la-hstat-v.is-mute { color: var(--txt3); }
.la-hstat-k { font-size: 11px; color: var(--txt3); margin-top: 1px; }

/* 主体两栏：分类侧栏 + 线路表 */
.la-body { flex: 1; display: grid; grid-template-columns: 260px 1fr; min-height: 0; }

/* 分类侧栏 */
.la-side { background: linear-gradient(180deg, #fbf6ec, #f3ead8); border-right: 1px solid var(--line2); display: flex; flex-direction: column; min-height: 0; }
.la-side-hd { flex: none; display: flex; align-items: center; padding: 15px 16px 10px; }
.la-side-hd-t { font-size: 13px; font-weight: 700; color: var(--gold-deep); display: flex; align-items: center; gap: 8px; }
.la-side-hd-t::before { content: ""; width: 3px; height: 13px; background: var(--gold-deep); border-radius: 2px; }
.la-side-add {
  margin-left: auto; font-family: var(--font-zh); cursor: pointer;
  background: #fff; color: var(--gold-deep); border: 1px solid var(--gold-deep);
  border-radius: 7px; padding: 4px 10px; font-size: 12px; font-weight: 600; transition: all .12s ease;
}
.la-side-add:hover { background: rgba(184,137,58,.1); }
.la-side-list { flex: 1; overflow-y: auto; padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.la-catrow {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: 10px; cursor: pointer; border: 1px solid transparent;
  transition: all .12s ease;
}
.la-catrow:hover { background: #fff; }
.la-catrow.is-on {
  background: linear-gradient(180deg, rgba(184,137,58,.2), rgba(184,137,58,.07));
  border-color: var(--gold-deep); box-shadow: inset 0 0 0 1px rgba(184,137,58,.3);
}
.la-cat-ico {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
  background: radial-gradient(120% 120% at 30% 22%, #fff8e8, #ecdcbb);
  border: 1px solid var(--gold-deep); color: var(--gold-deep);
}
.la-cat-meta { flex: 1; min-width: 0; }
.la-cat-name { font-size: 14.5px; font-weight: 600; color: var(--txt); line-height: 1.25; }
.la-catrow.is-on .la-cat-name { color: var(--gold-deep); }
.la-cat-desc { font-size: 11px; color: var(--txt3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-cat-cnt {
  flex: none; font-family: var(--font-num); font-size: 12px; font-weight: 700; color: var(--txt2);
  background: var(--bg4); border-radius: 999px; padding: 2px 9px; min-width: 26px; text-align: center;
}
.la-catrow.is-on .la-cat-cnt { background: rgba(184,137,58,.2); color: var(--gold-deep); }
.la-cat-edit {
  flex: none; opacity: 0; font-family: var(--font-zh); cursor: pointer;
  background: none; border: none; color: var(--txt3); font-size: 13px; padding: 2px 4px; transition: color .12s ease;
}
.la-catrow:hover .la-cat-edit { opacity: 1; }
.la-cat-edit:hover { color: var(--gold-deep); }
.la-side-foot { flex: none; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--txt3); line-height: 1.6; }

/* 主区 */
.la-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.la-toolbar {
  flex: none; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 22px; border-bottom: 1px solid var(--line2); background: var(--bg);
}
.la-main-title { font-size: 16px; font-weight: 700; color: var(--txt); }
.la-main-title em { font-style: normal; font-size: 12px; color: var(--txt3); font-weight: 400; margin-left: 8px; }
.la-search {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line2); border-radius: 8px; padding: 7px 12px;
}
.la-search input { border: none; outline: none; background: none; font-family: var(--font-zh); font-size: 13px; color: var(--txt); width: 150px; }
.la-search input::placeholder { color: var(--txt3); }
.la-search svg { color: var(--txt3); flex: none; }
.la-statusfilter { display: inline-flex; background: #fff; border: 1px solid var(--line2); border-radius: 8px; padding: 3px; gap: 2px; }
.la-sf-btn {
  font-family: var(--font-zh); cursor: pointer; border: none; background: none; color: var(--txt2);
  font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 6px; transition: all .12s ease; white-space: nowrap;
}
.la-sf-btn:hover { color: var(--txt); }
.la-sf-btn.is-on { background: linear-gradient(180deg, #f6dca0, #dcae5e); color: #fff; text-shadow: 0 1px 1px rgba(120,86,28,.5); }
.la-spacer { flex: 1; }
.la-add-btn {
  font-family: var(--font-zh); cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(180deg, #f6dca0 0%, #dcae5e 45%, #b8893a 100%);
  color: #fff; text-shadow: 0 1px 1px rgba(120,86,28,.6); border: none;
  border-radius: 8px; padding: 9px 18px; font-size: 14px; font-weight: 700;
  box-shadow: 0 5px 14px -7px rgba(184,137,58,.6); transition: filter .12s ease;
}
.la-add-btn:hover { filter: brightness(1.05); }

.la-scroll { flex: 1; overflow-y: auto; padding: 16px 22px 40px; min-height: 0; }

/* 线路表 */
.la-table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; background: var(--bg2); }
.la-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13.5px; }
.la-table thead th {
  background: var(--bg4); color: var(--txt2); font-size: 12px; font-weight: 600;
  padding: 11px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line2);
}
.la-table thead th.ta-c { text-align: center; }
.la-table thead th.ta-r { text-align: right; }
.la-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--txt); vertical-align: middle; }
.la-table tbody tr:last-child td { border-bottom: none; }
.la-table tbody tr:hover { background: var(--bg4); }
.la-table tbody tr.is-off td { opacity: .55; }
.la-table tbody tr.is-off td.la-td-act, .la-table tbody tr.is-off td.la-td-name { opacity: 1; }

.la-td-sort { width: 54px; color: var(--txt3); font-family: var(--font-num); text-align: center; }
.la-sort-handle { cursor: grab; color: var(--txt3); font-size: 15px; user-select: none; }
.la-td-name { min-width: 190px; }
.la-name-wrap { display: flex; align-items: center; gap: 11px; }
.la-name-isp { width: 34px; height: 34px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.la-name-txt { min-width: 0; }
.la-name-t { font-size: 14px; font-weight: 700; color: var(--txt); line-height: 1.2; }
.la-name-note { font-size: 11px; color: var(--txt3); margin-top: 2px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-td-url { font-family: var(--font-num); font-size: 13px; color: var(--txt2); letter-spacing: .01em; }
.la-td-url .la-url-copy { margin-left: 7px; cursor: pointer; color: var(--txt3); font-size: 12px; }
.la-td-url .la-url-copy:hover { color: var(--gold-deep); }
.la-tag {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  color: var(--gold-deep); background: rgba(184,137,58,.12); border: 1px solid rgba(184,137,58,.28);
}
.la-tag.is-backup { color: var(--txt3); background: var(--bg4); border-color: var(--line2); }
.la-td-ping { font-family: var(--font-num); font-weight: 700; font-size: 14px; text-align: right; }
.la-td-ping.q-fast { color: #1f9d63; } .la-td-ping.q-mid { color: #b87328; } .la-td-ping.q-slow { color: var(--red); }

.la-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.la-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.la-status.tone-ok { color: #1f9d63; background: rgba(31,157,99,.12); } .la-status.tone-ok::before { background: #27a85a; }
.la-status.tone-mute { color: var(--txt2); background: var(--bg4); } .la-status.tone-mute::before { background: var(--txt3); }
.la-status.tone-red { color: var(--red); background: rgba(217,67,67,.12); } .la-status.tone-red::before { background: var(--red); }

.la-td-act { text-align: right; white-space: nowrap; }
.la-actions { display: inline-flex; gap: 4px; justify-content: flex-end; }
.la-act {
  font-family: var(--font-zh); cursor: pointer; background: #fff; color: var(--txt2); white-space: nowrap;
  border: 1px solid var(--line2); border-radius: 7px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; transition: all .12s ease;
}
.la-act:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.la-act.is-active { color: var(--gold-deep); background: rgba(184,137,58,.1); border-color: var(--gold-deep); }
.la-act.act-del:hover { color: var(--red); border-color: var(--red); }
.la-empty { text-align: center; color: var(--txt3); padding: 56px 0; font-size: 14px; }

/* 弹层 (表单) */
.la-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(60,46,18,.4);
  display: flex; align-items: center; justify-content: center; padding: 24px; animation: lnfade .18s ease;
}
.la-modal {
  width: 100%; max-width: 540px; max-height: 88vh; display: flex; flex-direction: column;
  background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r-lg);
  box-shadow: 0 24px 70px rgba(60,46,18,.4); overflow: hidden;
}
.la-modal.is-sm { max-width: 420px; }
.la-modal-hd { flex: none; display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbf6ec, #f3ead8); }
.la-modal-t { font-size: 16px; font-weight: 700; color: var(--txt); }
.la-modal-t span { font-size: 12px; font-weight: 400; color: var(--txt3); margin-left: 8px; }
.la-modal-x { margin-left: auto; background: none; border: none; color: var(--txt3); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.la-modal-x:hover { color: var(--red); }
.la-modal-body { flex: 1; overflow-y: auto; padding: 20px; }
.la-modal-ft { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg); }
.la-modal-ft .la-spacer { flex: 1; }

.la-field { margin-bottom: 16px; }
.la-field:last-child { margin-bottom: 0; }
.la-field-row { display: flex; gap: 14px; }
.la-field-row .la-field { flex: 1; margin-bottom: 16px; }
.la-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--txt2); margin-bottom: 7px; }
.la-label .req { color: var(--red); margin-left: 3px; }
.la-input, .la-select, .la-textarea {
  width: 100%; background: var(--bg3); border: 1px solid var(--line2); border-radius: 8px;
  color: var(--txt); font-family: var(--font-zh); font-size: 14px; padding: 10px 12px; outline: none; transition: border-color .12s ease;
}
.la-input.is-num { font-family: var(--font-num); }
.la-input:focus, .la-select:focus, .la-textarea:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 2px rgba(184,137,58,.16); }
.la-input::placeholder, .la-textarea::placeholder { color: var(--txt3); }
.la-textarea { resize: vertical; min-height: 62px; line-height: 1.5; }
.la-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239c8a68' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.la-hint { font-size: 11.5px; color: var(--txt3); margin-top: 6px; line-height: 1.5; }
.la-err { font-size: 12px; color: var(--red); margin-top: 6px; }

/* 分段单选 (类型 / 状态) */
.la-seg { display: inline-flex; background: var(--bg3); border: 1px solid var(--line2); border-radius: 8px; padding: 3px; gap: 2px; width: 100%; }
.la-seg-btn { flex: 1; font-family: var(--font-zh); cursor: pointer; border: none; background: none; color: var(--txt2); font-size: 13.5px; font-weight: 600; padding: 8px 0; border-radius: 6px; transition: all .12s ease; }
.la-seg-btn:hover { color: var(--txt); }
.la-seg-btn.is-on { background: linear-gradient(180deg, #f6dca0, #dcae5e); color: #fff; text-shadow: 0 1px 1px rgba(120,86,28,.5); }
.la-seg-btn.is-on.tone-mute { background: linear-gradient(180deg, #b9ab8c, #8f7f5f); }
.la-seg-btn.is-on.tone-red { background: linear-gradient(180deg, #e06464, #c23030); }

/* ISP 色块选择 */
.la-isp-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.la-isp-opt {
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg3); border: 1px solid var(--line2); border-radius: 8px; padding: 7px 13px;
  font-size: 13px; font-weight: 600; color: var(--txt2); transition: all .12s ease;
}
.la-isp-opt:hover { border-color: var(--gold-deep); }
.la-isp-opt.is-on { border-color: var(--gold-deep); color: var(--txt); box-shadow: inset 0 0 0 1px rgba(184,137,58,.3); }
.la-isp-dot { width: 12px; height: 12px; border-radius: 4px; }

.la-modal-cancel {
  font-family: var(--font-zh); cursor: pointer; background: #fff; color: var(--txt2);
  border: 1px solid var(--line2); border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 600; transition: all .12s ease;
}
.la-modal-cancel:hover { color: var(--txt); border-color: var(--gold-deep); }
.la-modal-save {
  font-family: var(--font-zh); cursor: pointer;
  background: linear-gradient(180deg, #f6dca0 0%, #dcae5e 45%, #b8893a 100%);
  color: #fff; text-shadow: 0 1px 1px rgba(120,86,28,.6); border: none;
  border-radius: 8px; padding: 10px 26px; font-size: 14px; font-weight: 700;
  box-shadow: 0 5px 14px -7px rgba(184,137,58,.6); transition: filter .12s ease;
}
.la-modal-save:hover { filter: brightness(1.05); }
.la-modal-del {
  font-family: var(--font-zh); cursor: pointer; background: none; color: var(--red);
  border: 1px solid transparent; border-radius: 8px; padding: 10px 14px; font-size: 13px; font-weight: 600; transition: all .12s ease;
}
.la-modal-del:hover { background: rgba(217,67,67,.1); }

/* 确认删除 */
.la-confirm-txt { font-size: 14px; color: var(--txt); line-height: 1.7; }
.la-confirm-txt b { color: var(--red); }
.la-confirm-sub { font-size: 12.5px; color: var(--txt3); margin-top: 8px; line-height: 1.6; }

@media (max-width: 1080px) {
  .la-body { grid-template-columns: 220px 1fr; }
  .la-name-note { max-width: 150px; }
}
