:root{
  /* 现代化色彩系统 - 升级版 */
  --bg: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 50%, #f0f4f8 100%);
  --card: #ffffff;
  --muted: #6b7280;
  --text: #0f172a;
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-700: #3730a3;
  --accent: #10b981;
  --accent-600: #059669;
  --danger: #ef4444;
  --danger-600: #dc2626;
  --ok: #059669;
  --border: #e5e7eb;
  --border-light: #f1f5f9;
  --warn: #f59e0b;
  --warn-600: #d97706;
  
  /* 阴影系统 */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
  
  /* 圆角系统 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  
  /* 过渡动画 */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* 间距系统 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
}
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}
html{
  scroll-behavior:smooth;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  background-attachment:fixed;
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif,'Apple Color Emoji','Segoe UI Emoji';
  min-height:100vh;
  line-height:1.6;
  font-size:15px;
  letter-spacing:-0.01em;
}
a{
  color:var(--primary);
  text-decoration:none;
  transition:var(--transition);
  font-weight:500;
}
a:hover{
  color:var(--primary-600);
  text-decoration:underline;
}
a:focus{
  outline:2px solid var(--primary);
  outline-offset:2px;
  border-radius:4px;
}

/* 滚动条美化 */
::-webkit-scrollbar{
  width:10px;
  height:10px;
}
::-webkit-scrollbar-track{
  background:rgba(241,245,249,0.8);
  border-radius:10px;
}
::-webkit-scrollbar-thumb{
  background:linear-gradient(135deg,#cbd5e1,#94a3b8);
  border-radius:10px;
  border:2px solid rgba(241,245,249,0.8);
}
::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(135deg,#94a3b8,#64748b);
}

/* 文本选择美化 */
::selection{
  background:rgba(79,70,229,0.2);
  color:var(--text);
}
.container{
  max-width:1200px;
  margin:0 auto;
  padding:24px 20px;
  min-height:calc(100vh - 48px);
  width: 100%;
  box-sizing: border-box;
}
.header{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-bottom:28px;
  padding:24px 28px;
  background:rgba(255,255,255,0.95);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow-md);
  border:1px solid var(--border-light);
  backdrop-filter:blur(12px);
  position:-webkit-sticky;
  position:sticky;
  top:0;
  z-index:4000;
  transition:var(--transition);
  width: 100%;
  box-sizing: border-box;
}
.header::after{
  content:'';
  position:absolute;
  bottom:-10px;
  left:0;
  right:0;
  height:10px;
  background:linear-gradient(to bottom, rgba(0,0,0,0.04), transparent);
  opacity:0;
  transition:opacity 0.3s ease;
  pointer-events:none;
}
.header.scrolled::after{
  opacity:1;
}
@media (max-width: 768px) {
  .header {
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .header {
    padding: 14px 16px;
    border-radius: var(--radius);
  }
}
.header-sticky { /* ensures compatibility with JS toggle */
  position:sticky;
  top:0;
  z-index:4000;
}
.header-main{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.header-dock{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.header-bar{
  background:rgba(255,255,255,0.9);
  border:1px solid rgba(226,232,240,0.9);
  border-radius:12px;
  box-shadow:0 10px 30px rgba(15,23,42,0.12);
  backdrop-filter:saturate(180%) blur(12px);
  padding:12px 16px;
}
.header-bar-row{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.header-bar-left,
.header-bar-right{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.header-bar-left{flex:1 1 auto;min-width:200px;}
.header-bar-right{flex:1 0 auto;justify-content:flex-end;}
.header-actions-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.header-actions-row .btn,
.header-actions-row .input,
.header-actions-row select,
.header-actions-row input{
  margin:0;
}
.header-actions-row > *{
  flex:0 0 auto;
}
.header-actions-row{
  justify-content:flex-start;
}
.header-pager{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.header-pager > *{
  flex:0 0 auto;
}
.header-pager select,
.header-pager input,
.header-pager button{
  padding:8px 12px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,0.45);
  background:#fff;
  color:#111827;
}
.header-pager input{
  width:100px;
}
.header-pager button{
  background:linear-gradient(135deg,#4f46e5,#4338ca);
  color:#fff;
  border:none;
  cursor:pointer;
  transition:var(--transition);
}
.header-pager button:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(79,70,229,0.25);
}
.header-pager button:disabled{
  opacity:0.5;
  cursor:not-allowed;
  transform:none;
}
.header-spacer{height:16px;}
.brand{
  display:flex;
  gap:14px;
  align-items:center;
}
.logo{
  width:44px;
  height:44px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--primary),var(--primary-600));
  box-shadow:0 2px 8px rgba(79,70,229,0.2);
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-weight:700;
  font-size:18px;
}
.title{
  font-weight:600;
  font-size:20px;
  letter-spacing:-0.01em;
  color:var(--text);
  background:linear-gradient(135deg,var(--primary),var(--primary-600));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  transition:var(--transition-slow);
  overflow:hidden;
  position:relative;
  width: 100%;
  box-sizing: border-box;
}
.card::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(79,70,229,0.02),transparent 60%);
  opacity:0;
  transition:opacity 0.3s ease;
  pointer-events:none;
}
.card:hover{
  box-shadow:var(--shadow-lg);
  transform:translateY(-4px);
}
.card:hover::before{
  opacity:1;
}
.card.pad{
  padding:28px;
}
@media (max-width: 768px) {
  .card.pad {
    padding: 20px;
  }
}
@media (max-width: 480px) {
  .card.pad {
    padding: 16px;
  }
}
.row{display:flex;gap:14px;flex-wrap:wrap}
.col{flex:1 1 320px;min-width:260px}
.input{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:20px;
  width: 100%;
  box-sizing: border-box;
}
.input label{
  font-size:14px;
  color:var(--muted);
  font-weight:600;
  letter-spacing:0.01em;
  display:flex;
  align-items:center;
  gap:6px;
}
.input input,.input select,.input textarea{
  width: 100%;
  box-sizing: border-box;
  padding:14px 16px;
  border-radius:var(--radius);
  background:#fff;
  border:2px solid var(--border);
  color:var(--text);
  outline:none;
  transition:var(--transition);
  font-size:15px;
  font-family:inherit;
  box-shadow:var(--shadow-xs);
}
.input input:hover,.input select:hover,.input textarea:hover{
  border-color:#cbd5e1;
}
.input input:focus,.input select:focus,.input textarea:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(79,70,229,0.12), var(--shadow-sm);
}
.input input::placeholder,.input textarea::placeholder{
  color:#cbd5e1;
  opacity:1;
}
.input input[type="file"]{
  padding:12px;
  cursor:pointer;
}
.input input[type="file"]::-webkit-file-upload-button{
  padding:10px 20px;
  border:2px solid var(--primary);
  border-radius:var(--radius-sm);
  background:linear-gradient(135deg,var(--primary),var(--primary-600));
  color:#fff;
  font-weight:600;
  cursor:pointer;
  margin-right:12px;
  transition:var(--transition);
}
.input input[type="file"]::-webkit-file-upload-button:hover{
  background:linear-gradient(135deg,var(--primary-600),var(--primary-700));
  box-shadow:var(--shadow-sm);
}
.input textarea{
  resize:vertical;
  min-height:80px;
  line-height:1.6;
}
.hint,.small{
  font-size:13px;
  color:var(--muted);
  line-height:1.5;
  display:flex;
  align-items:flex-start;
  gap:6px;
}

.due-line{
  margin-top:14px;
  font-size:18px;
  font-weight:700;
  color:#0f172a;
  letter-spacing:0.02em;
  background:linear-gradient(120deg,#4338ca 0%,#6366f1 40%,#7c3aed 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.due-line span{
  font-size:26px;
  font-weight:800;
}
.btns{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}
.btn{
  padding:14px 28px;
  border-radius:var(--radius);
  border:2px solid var(--border);
  background:#fff;
  color:var(--text);
  cursor:pointer;
  transition:var(--transition);
  font-weight:600;
  font-size:15px;
  box-shadow:var(--shadow-sm);
  position:relative;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  user-select:none;
}
.btn::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,0.3),transparent);
  opacity:0;
  transition:opacity 0.3s ease;
}
.btn:hover{
  border-color:var(--primary);
  transform:translateY(-2px);
  box-shadow:var(--shadow-md);
}
.btn:hover::before{
  opacity:1;
}
.btn:active{
  transform:translateY(0);
  box-shadow:var(--shadow-sm);
}
.btn:focus{
  outline:2px solid var(--primary);
  outline-offset:2px;
}
.btn.primary{
  background:linear-gradient(135deg,var(--primary),var(--primary-600));
  border-color:var(--primary);
  color:#fff;
  box-shadow:var(--shadow);
}
.btn.primary:hover{
  background:linear-gradient(135deg,var(--primary-600),var(--primary-700));
  box-shadow:var(--shadow-lg);
  border-color:var(--primary-600);
}
.btn.warn{
  background:linear-gradient(135deg,var(--danger),var(--danger-600));
  border-color:var(--danger);
  color:#fff;
  box-shadow:0 4px 16px rgba(239,68,68,0.3);
}
.btn.warn:hover{
  box-shadow:0 6px 20px rgba(239,68,68,0.4);
}
.btn.ok{
  background:linear-gradient(135deg,var(--accent),var(--accent-600));
  border-color:var(--accent);
  color:#fff;
  box-shadow:0 4px 16px rgba(16,185,129,0.3);
}
.btn.ok:hover{
  box-shadow:0 6px 20px rgba(16,185,129,0.4);
}
.btn.ghost{
  background:transparent;
  border-color:var(--border-light);
  color:var(--muted);
  box-shadow:none;
}
.btn.ghost:hover{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
  box-shadow:var(--shadow);
}
.btn:disabled,.btn.disabled{
  opacity:0.5;
  cursor:not-allowed;
  transform:none;
  box-shadow:var(--shadow-xs);
}
.btn:disabled:hover,.btn.disabled:hover{
  transform:none;
  box-shadow:var(--shadow-xs);
}

.kpi{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin:24px 0 28px;
}
.kpi .item{
  position:relative;
  padding:22px;
  border-radius:20px;
  border:1px solid rgba(148,163,184,0.22);
  background:linear-gradient(180deg, rgba(248,250,252,0.92) 0%, rgba(255,255,255,0.8) 100%);
  box-shadow:0 16px 42px rgba(100,116,139,0.18);
  transition:all 0.3s ease;
  text-align:center;
  overflow:hidden;
}
.kpi .item::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(79,70,229,0.06),rgba(236,72,153,0.08));
  opacity:0;
  transition:opacity 0.3s ease;
}
.kpi .item::before{
  content:'';
  position:absolute;
  inset:12px;
  border-radius:18px;
  background:rgba(255,255,255,0.85);
  z-index:0;
  transition:all 0.3s ease;
}
.kpi .item:hover{
  transform:translateY(-6px) scale(1.02);
  box-shadow:0 28px 60px rgba(79,70,229,0.28);
}
.kpi .item:hover::after{
  opacity:1;
}
.kpi .item:hover::before{
  inset:8px;
  background:rgba(255,255,255,0.95);
}
.kpi .v{
  position:relative;
  font-size:26px;
  font-weight:700;
  color:#0f172a;
  margin-bottom:8px;
  z-index:1;
}
.kpi .l{
  position:relative;
  font-size:13px;
  color:#64748b;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.08em;
  z-index:1;
}
.kpi .item:last-child{
  background:linear-gradient(145deg,#1e1b4b 0%,#4338ca 45%,#6366f1 100%);
  border:none;
  box-shadow:0 34px 78px rgba(30,64,175,0.55);
}
.kpi .item:last-child::before{
  display:none;
}
.kpi .item:last-child .v{
  color:#f8fafc;
  font-size:34px;
  text-shadow:0 22px 38px rgba(15,23,42,0.6);
}
.kpi .item:last-child .l{
  color:rgba(224,231,255,0.92);
  letter-spacing:0.14em;
}
.kpi .item:last-child .tag{
  margin-top:14px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 16px;
  border-radius:999px;
  background:rgba(255,255,255,0.18);
  color:#e2e8f0;
  font-size:12px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  position:relative;
  z-index:1;
}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 12px;
}
.table thead th{
  font-size:13px;
  color:var(--muted);
  text-align:left;
  padding:12px 16px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.05em;
}
.table tbody tr{
  background:#fff;
  border:2px solid var(--border);
  box-shadow:var(--shadow);
  transition:var(--transition);
}
.table tbody tr:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 24px rgba(0,0,0,0.15);
}
.table tbody td{
  padding:16px;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.table tbody tr td:first-child{
  border-left:1px solid var(--border);
  border-top-left-radius:12px;
  border-bottom-left-radius:12px;
}
.table tbody tr td:last-child{
  border-right:1px solid var(--border);
  border-top-right-radius:12px;
  border-bottom-right-radius:12px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  border-radius:20px;
  border:2px solid #e2e8f0;
  background:#f8fafc;
  font-size:12px;
  color:#475569;
  font-weight:600;
  transition:var(--transition);
}
.badge:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
}
.badge.red{
  border-color:#fecaca;
  background:linear-gradient(135deg,#ef4444,#dc2626);
  color:#fff;
  box-shadow:0 2px 8px rgba(239,68,68,0.3);
}
.badge.ok{
  border-color:#bbf7d0;
  background:linear-gradient(135deg,#10b981,#059669);
  color:#fff;
  box-shadow:0 2px 8px rgba(16,185,129,0.3);
}

.stepper{
  display:flex;
  gap:8px;
  margin:24px 0;
  position:relative;
}
.stepper::before{
  content:'';
  position:absolute;
  top:18px;
  left:0;
  right:0;
  height:2px;
  background:#f3f4f6;
  z-index:1;
}
.step{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  position:relative;
  z-index:2;
}
.dot{
  width:36px;
  height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid #fff;
  background:#f3f4f6;
  font-weight:600;
  color:#6b7280;
  box-shadow:var(--shadow-sm);
  transition:var(--transition);
  font-size:14px;
}
.dot.active{
  background:linear-gradient(135deg,var(--primary),var(--primary-600));
  border-color:var(--primary);
  color:#fff;
  transform:scale(1.05);
  box-shadow:var(--shadow);
}
.dot.done{
  background:linear-gradient(135deg,#10b981,#059669);
  border-color:#10b981;
  color:#fff;
  box-shadow:var(--shadow);
}
.step label{
  font-size:13px;
  color:#6b7280;
  font-weight:500;
  transition:var(--transition);
  text-align:center;
}
.step.active label{
  color:var(--primary);
  font-weight:600;
}
.hr{
  height:1px;
  background:linear-gradient(90deg,transparent,#e2e8f0,transparent);
  margin:20px 0;
}
.grid2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  width: 100%;
  box-sizing: border-box;
}
.grid3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  width: 100%;
  box-sizing: border-box;
}
@media(max-width:820px){.grid2,.grid3{grid-template-columns:1fr}}

.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.5);
  backdrop-filter:blur(8px);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:10000;
  transition:var(--transition);
  opacity:0;
}
.modal.show{
  display:flex;
  opacity:1;
  animation:modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalFadeIn{
  from{
    opacity:0;
    backdrop-filter:blur(0);
  }
  to{
    opacity:1;
    backdrop-filter:blur(8px);
  }
}
.modal .box{
  width:min(600px,95vw);
  max-height:90vh;
  overflow-y:auto;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-xl);
  padding:32px;
  box-shadow:var(--shadow-xl);
  color:var(--text);
  animation:boxSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position:relative;
}
.modal .box::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background:linear-gradient(90deg,var(--primary),var(--accent));
  border-radius:var(--radius-xl) var(--radius-xl) 0 0;
}
@keyframes boxSlideIn{
  from{
    transform:translateY(-30px) scale(0.95);
    opacity:0;
  }
  to{
    transform:translateY(0) scale(1);
    opacity:1;
  }
}
.modal .box h3{
  margin-bottom:24px;
  font-size:22px;
  font-weight:700;
  color:var(--text);
  padding-bottom:16px;
  border-bottom:2px solid var(--border-light);
}
@media (max-width: 768px) {
  .modal .box {
    padding: 24px;
    border-radius: var(--radius-lg);
    width: 92vw;
  }
  .modal .box h3 {
    font-size: 20px;
    margin-bottom: 20px;
  }
}
@media (max-width: 480px) {
  .modal {
    padding: 12px;
  }
  .modal .box {
    padding: 20px;
    width: 95vw;
    max-height: 85vh;
  }
  .modal .box h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }
}
.code{
  font-family:ui-monospace,Consolas,Menlo,monospace;
  background:#f8fafc;
  border:2px solid #e2e8f0;
  color:#475569;
  border-radius:8px;
  padding:12px 16px;
  overflow:auto;
  font-size:13px;
}
.qr{
  max-width:240px;
  border-radius:12px;
  border:2px solid var(--border);
  background:#fff;
  padding:8px;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.tab{
  display:flex;
  gap:8px;
  margin-bottom:20px;
  background:#f8fafc;
  padding:8px;
  border-radius:12px;
}
.tab .btn{
  flex:1;
  padding:12px 20px;
  border:2px solid transparent;
  background:#fff;
  color:#64748b;
  border-radius:8px;
  font-weight:600;
  transition:var(--transition);
  box-shadow:0 2px 8px rgba(0,0,0,0.04);
}
.tab .btn:hover{
  border-color:var(--primary);
  color:var(--primary);
  transform:translateY(-1px);
}
.tab .btn.active{
  background:linear-gradient(135deg,#3b82f6,#1d4ed8);
  color:#fff;
  border-color:#3b82f6;
  box-shadow:0 4px 16px rgba(59,130,246,0.25);
}

.warn{color:var(--warn)}
.danger{color:var(--danger)}
.success{color:var(--ok)}
.footer{
  margin-top:30px;
  font-size:12px;
  color:var(--muted);
  text-align:center;
  padding:20px;
}

/* 现代化卡片选项（等级/广告） */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:12px;
}
.cardOpt{
  border:1px solid var(--border);
  background:#fff;
  border-radius:var(--radius);
  padding:16px;
  cursor:pointer;
  box-shadow:var(--shadow-sm);
  transition:var(--transition);
  position:relative;
  overflow:hidden;
}
.cardOpt:hover{
  border-color:var(--primary);
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}
.cardOpt.active{
  border-color:var(--primary);
  background:linear-gradient(135deg,#fafbfc,#f0f4f8);
  box-shadow:var(--shadow);
  position:relative;
}
.cardOpt.active::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:3px;
  height:100%;
  background:linear-gradient(135deg,var(--primary),var(--primary-600));
}
.cardOpt .head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}
.cardOpt .head img{
  width:44px;
  height:44px;
  border-radius:8px;
  object-fit:cover;
  border:1px solid var(--border);
  background:#fff;
}
.cardOpt .name{
  font-weight:600;
  font-size:15px;
  color:var(--text);
}
.cardOpt .price{
  color:var(--primary);
  font-weight:600;
  font-size:16px;
}
.cardOpt .desc{
  margin-top:6px;
  font-size:13px;
  color:var(--muted);
  line-height:1.4;
}

/* 现代化顶部广告图（提交页） */
.banner{
  width:100%;
  max-height:280px;
  overflow:hidden;
  border-radius:var(--radius-lg);
  margin:0 0 24px 0;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  transition:var(--transition);
  position:relative;
}
.banner:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow-lg);
}
.banner img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* 分页控件悬浮样式 - 保留底部分页使用 */
.pagination-controls {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  background:#fff;
  padding:8px 12px;
  border-radius:8px;
  border:1px solid #f3f4f6;
  box-shadow:0 1px 3px rgba(15,23,42,0.08);
}

/* 续费拉取资料按钮容器样式 */
.renew-fetch-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.renew-fetch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 700;
  min-width: 200px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.renew-fetch-btn .btn-icon {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.renew-fetch-btn .btn-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.renew-fetch-btn:hover .btn-icon {
  transform: scale(1.2) rotate(5deg);
}

.renew-fetch-btn:active {
  transform: scale(0.95);
}

.renew-fetch-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.renew-fetch-btn:active::after {
  opacity: 1;
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.renew-hint {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .renew-fetch-container {
    padding: 16px;
    margin: 20px 0;
  }
  
  .renew-fetch-btn {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    padding: 14px 32px;
  }
  
  .renew-hint {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .renew-fetch-container {
    padding: 14px;
  }
  
  .renew-fetch-btn {
    padding: 12px 28px;
    font-size: 15px;
  }
  
  .renew-fetch-btn .btn-icon {
    font-size: 18px;
  }
  
  .renew-fetch-btn .btn-text {
    font-size: 15px;
  }
}

/* 入驻类目选择器样式 */
.category-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 2px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  user-select: none;
  position: relative;
  overflow: hidden;
  min-width: 80px;
  text-align: center;
  white-space: nowrap;
}

.category-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,70,229,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-btn:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79,70,229,0.15);
}

.category-btn:hover::before {
  opacity: 1;
}

.category-btn.active {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  border-color: #4f46e5;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(79,70,229,0.35), 0 2px 4px rgba(79,70,229,0.2);
  transform: scale(1.05);
}

.category-btn.active::before {
  opacity: 0;
}

.category-btn.active::after {
  content: '✓';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  animation: checkBounce 0.5s ease;
}

@keyframes checkBounce {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.2); }
}

/* 移动端类目选择器优化 */
@media (max-width: 768px) {
  .category-selector {
    gap: 8px;
  }
  
  .category-btn {
    padding: 12px 16px;
    font-size: 14px;
    min-width: 70px;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .category-selector {
    gap: 6px;
  }
  
  .category-btn {
    padding: 10px 14px;
    font-size: 13px;
    min-width: 60px;
    min-height: 42px;
  }
}

/* 管理人员联系方式选择器 */
.mgr-type-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f5f9 100%);
  padding: 6px;
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  width: 100%;
  box-sizing: border-box;
}

.mgr-type-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid transparent;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.mgr-type-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mgr-type-btn:hover::before {
  opacity: 0.8;
}

.mgr-type-btn:hover {
  color: #4f46e5;
  transform: translateY(-2px);
}

.mgr-type-btn.active {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(79,70,229,0.35), 0 2px 4px rgba(79,70,229,0.2);
  transform: scale(1.02);
}

.mgr-type-btn.active::before {
  opacity: 0;
}

.mgr-type-btn .icon {
  font-size: 20px;
  line-height: 1;
}

.mgr-type-btn .text {
  font-size: 15px;
  font-weight: 600;
}

/* 移动端优化管理人员联系方式选择器 */
@media (max-width: 768px) {
  .mgr-type-selector {
    gap: 10px;
    padding: 5px;
  }
  
  .mgr-type-btn {
    padding: 14px 16px;
    font-size: 14px;
    min-height: 48px;
  }
  
  .mgr-type-btn .icon {
    font-size: 22px;
  }
  
  .mgr-type-btn .text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .mgr-type-btn {
    padding: 12px 14px;
    font-size: 13px;
  }
  
  .mgr-type-btn .icon {
    font-size: 20px;
  }
  
  .mgr-type-btn .text {
    font-size: 13px;
  }
}

/* 移动端响应式设计全面优化 */
@media (max-width: 768px) {
  html, body {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
  }
  
  * {
    box-sizing: border-box;
  }
  
  .container {
    padding: 20px 16px;
    min-height: calc(100vh - 40px);
  }
  
  .card {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
  }
  
  .card.pad {
    padding: 24px 20px;
  }
  
  .input {
    margin-bottom: 20px;
    width: 100%;
  }
  
  .input input, 
  .input select, 
  .input textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .mgr-type-selector {
    width: 100%;
    max-width: 100%;
  }
  
  .header-main{
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  
  .header .btns {
    width:100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }
  
  .header .btns .btn {
    font-size: 14px;
    padding: 12px 20px;
    min-width: auto;
    flex: 1 1 auto;
  }
  
  .brand {
    flex-direction: row;
    gap: 12px;
    width: 100%;
  }
  
  .logo {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .title {
    font-size: 18px;
  }
  
  .row {
    flex-direction: column;
    gap: 16px;
  }
  
  .col {
    flex: 1 1 auto;
    min-width: auto;
    width: 100%;
  }
  
  .grid2, .grid3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .btns {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    justify-content: center;
  }
  
  .kpi {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .kpi .v {
    font-size: 20px;
  }
  
  .kpi .l {
    font-size: 12px;
  }
  
  .tab {
    flex-direction: column;
    gap: 6px;
  }
  
  .tab .btn {
    width: 100%;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  /* 移动端步骤导航优化 - 保持横排 */
  .stepper {
    flex-direction: row;
    gap: 4px;
    margin: 20px 0;
  }
  
  .stepper::before {
    left: 5%;
    right: 5%;
    top: 15px;
  }
  
  .step {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
  }
  
  .dot {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  
  .step label {
    text-align: center;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }
  
  /* 移动端输入框优化 */
  .input input, .input select, .input textarea {
    padding: 14px 16px;
    font-size: 16px;
  }
  
  /* 移动端表格优化 */
  .table {
    font-size: 14px;
  }
  
  .table thead {
    display: none;
  }
  
  .table tbody tr {
    display: block;
    margin-bottom: 12px;
  }
  
  .table tbody td {
    display: block;
    text-align: right;
    padding: 8px 12px;
    border: none;
    position: relative;
  }
  
  .table tbody td::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    top: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--muted);
  }
  
  /* 移动端套餐区域优化 */
  .package-section {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .section-title {
    font-size: 15px !important;
  }
  
  .section-hint {
    font-size: 11px;
  }
}

/* 超小屏幕优化 (手机竖屏) */
@media (max-width: 480px) {
  html, body {
    font-size: 14px;
  }
  
  .container {
    padding: 16px 12px;
  }
  
  .header {
    padding: 14px 16px;
    margin: 0 0 16px 0;
    width: 100%;
    max-width: 100%;
  }
  
  .card {
    margin: 0 auto;
    border-radius: 16px;
    width: 100%;
    max-width: 100%;
  }
  
  .card.pad {
    padding: 20px 16px;
  }
  
  .input {
    margin-bottom: 18px;
    width: 100%;
  }
  
  .input input, 
  .input select, 
  .input textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 16px;
  }
  
  .mgr-type-selector {
    width: 100%;
    max-width: 100%;
  }
  
  .grid2, .grid3 {
    width: 100%;
    max-width: 100%;
  }
  
  .kpi {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }
  
  .kpi .item {
    padding: 16px;
    width: 100%;
  }
  
  .kpi .v {
    font-size: 22px;
  }
  
  .btn {
    padding: 14px 20px;
    font-size: 15px;
    width: 100%;
  }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 24px 20px;
  }
  
  .grid2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .kpi {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 大屏幕优化 */
@media (min-width: 1440px) {
  .container {
    max-width: 1440px;
  }
  
  .kpi {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .btn, .segb, .cardOpt {
    min-height: 44px;
    min-width: 44px;
  }
  
  .btn:hover, .card:hover, .cardOpt:hover {
    transform: none;
  }
  
  .btn:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
  }
  
  .input input, .input textarea, .input select {
    font-size: 16px !important; /* 防止iOS缩放 */
  }
  
  /* 移除悬停效果,使用激活效果 */
  .card:active {
    transform: scale(0.98);
  }
  
  .cardOpt:active {
    transform: scale(0.97);
  }
}

/* 防止移动端缩放优化 */
input[type="text"],
input[type="email"], 
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select {
  font-size: 16px !important; /* 防止iOS Safari缩放 */
  -webkit-appearance: none;
  border-radius: var(--radius);
}

/* 移动端虚拟键盘优化 */
@supports (-webkit-touch-callout: none) {
  .modal .box {
    max-height: 70vh;
  }
  
  .input input:focus,
  .input textarea:focus {
    position: relative;
    z-index: 1001;
  }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
  .modal .box {
    max-height: 80vh;
    padding: 20px;
  }
  
  .kpi {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  
  .kpi .item {
    padding: 12px;
  }
  
  .kpi .v {
    font-size: 18px;
  }
  
  .kpi .l {
    font-size: 11px;
  }
}

/* 加载动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .glass-panel {
  animation: slideUp 0.5s ease-out;
}

/* 骨架屏加载效果 */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  animation: shimmer 2s infinite;
  background: linear-gradient(
    90deg,
    #f0f0f0 0%,
    #f8f8f8 20%,
    #f0f0f0 40%,
    #f0f0f0 100%
  );
  background-size: 1000px 100%;
  border-radius: var(--radius);
}

/* 打印样式优化 */
@media print {
  .header, .footer, .btn, .modal {
    display: none !important;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  
  body {
    background: white;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* 付款方式按钮优化 */
.pay-tab-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.pay-tab-btn {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
}

.pay-tab-btn:hover {
  border-color: #4f46e5;
  color: #4f46e5;
}

.pay-tab-btn.active {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #fff;
  border-color: #4f46e5;
  box-shadow: 0 4px 12px rgba(79,70,229,0.25);
}

/* 移动端付款按钮优化 */
@media (max-width: 768px) {
  .pay-tab-buttons {
    flex-direction: row;
    gap: 6px;
  }
  
  .pay-tab-btn {
    padding: 10px 12px;
    font-size: 13px;
    min-width: 80px;
  }
}

@media (max-width: 480px) {
  .pay-tab-btn {
    padding: 8px 10px;
    font-size: 12px;
    min-width: 70px;
  }
}

/* 现代化商家信息卡片样式 */
.merchant-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.merchant-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.merchant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.merchant-card.stopped {
  background: #fff1f2;
  border: 1px solid #fca5a5;
  border-left: 4px solid #ef4444;
  border-right: 4px solid #ef4444;
}

.merchant-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.merchant-title {
  font-weight: 600;
  font-size: 18px;
  color: #111827;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.merchant-id {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(79,70,229,0.3);
}

.merchant-status {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}

.status-new {
  background: #dcfce7;
  color: #065f46;
  border-color: #86efac;
}

.status-renew {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fdba74;
}

.merchant-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.merchant-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.merchant-field {
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  background: #f9fafb;
  padding: 16px;
  transition: all 0.2s ease;
}

.merchant-field:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.merchant-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.merchant-value {
  font-size: 14px;
  color: #111827;
  word-break: break-all;
  font-weight: 400;
  line-height: 1.4;
}

.merchant-value.big {
  font-size: 18px;
  font-weight: 600;
  color: #1e40af;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.merchant-full-width {
  grid-column: 1 / -1;
}

.merchant-contact {
  white-space: pre-wrap;
  line-height: 1.6;
  font-family: inherit;
}

.merchant-level-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.merchant-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: var(--badge-fg, #1f2937);
  background: #ffffff;
  border: 1px solid var(--badge-border, rgba(99,102,241,0.28));
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(15,23,42,0.08);
  position: relative;
  overflow: hidden;
  min-height: 26px;
}

.merchant-level-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.6), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.merchant-level-badge:hover::after {
  opacity: 1;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.5);
}

.merchant-level-badge[data-tone-glow] {
  box-shadow: var(--badge-shadow, 0 6px 14px rgba(15,23,42,0.08));
}

.merchant-level-badge[data-tone-glow][data-tone-glow="true"] {
  box-shadow: var(--badge-shadow-active, 0 0 0 1px rgba(15,23,42,0.18), 0 10px 16px rgba(15,23,42,0.12));
}

.badge-meta {
  font-size: 12px;
  font-weight: 600;
  color: rgba(15,23,42,0.6);
}

.badge-bubble {
  margin-left: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(59,130,246,0.22);
  background: rgba(59,130,246,0.12);
  color: #2563eb;
  line-height: 16px;
}

.level-inline {
  margin-left: 12px;
}

.level-stack {
  display: inline-flex;
  margin-left: 0;
  margin-top: 6px;
}

.merchant-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.merchant-stopped-overlay {
  position: absolute;
  right: 160px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 88px;
  font-weight: 800;
  color: #dc2626;
  opacity: 0.28;
  user-select: none;
  pointer-events: none;
  z-index: 3000;
  line-height: 1;
  white-space: nowrap;
}

/* 编辑模式样式 */
.merchant-card.edit {
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79,70,229,0.1);
}

.merchant-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.merchant-edit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.merchant-edit-input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.merchant-edit-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79,70,229,0.1);
}

.merchant-edit-full {
  grid-column: 1 / -1;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .merchant-grid,
  .merchant-edit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .merchant-grid,
  .merchant-edit-grid {
    grid-template-columns: 1fr;
  }
  
  .merchant-header {
    flex-direction: column;
    gap: 16px;
  }
  
  .merchant-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .merchant-stopped-overlay {
    font-size: 66px;
    right: 120px;
  }
}

@media (max-width: 480px) {
  .merchant-card {
    padding: 16px;
  }
  
  .merchant-stopped-overlay {
    font-size: 44px;
    right: 80px;
  }
}

/* 商家信息卡片样式 - 现代化表格布局 */
.merchant-card-table {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 24px;
  font-family: "Microsoft YaHei", sans-serif;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}

.merchant-card-table:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.merchant-card-table::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(135deg, #4f46e5, #4338ca, #7c3aed);
  border-radius: 20px 0 0 20px;
}

.merchant-header-table {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 20px 24px;
  margin: -28px -28px 24px -28px;
  border-radius: 20px 20px 0 0;
}

.merchant-title-table {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.merchant-title-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.merchant-name-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.merchant-meta-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.merchant-level-row {
  display: inline-flex;
  align-items: center;
}

.merchant-id-table {
  font-size: 16px;
  color: #4f46e5;
  font-weight: 600;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  padding: 6px 16px;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
  box-shadow: 0 2px 8px rgba(79,70,229,0.15);
}

.merchant-status-table {
  color: #f59e0b;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  padding: 6px 16px;
  border-radius: 12px;
  border: 1px solid #fcd34d;
  box-shadow: 0 2px 8px rgba(245,158,11,0.15);
}

.merchant-section-table {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 2.5fr) minmax(0, 1.2fr);
  gap: 12px;
  margin-bottom: 16px;
}

.merchant-field-table {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  min-height: 56px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.metrics-slim {
  padding: 16px 12px;
  justify-content: space-between;
  gap: 12px;
}

.metrics-slim:first-child {
  grid-column: span 1;
}

.metrics-slim .merchant-label-table {
  min-width: auto;
  margin-right: 0;
  flex: 0 0 auto;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.metrics-slim .merchant-value-table {
  text-align: right;
  font-size: 15px;
  font-weight: 600;
}

/* 第三列内容右对齐，确保数字往左增长 */
.merchant-section-table > .merchant-field-table:nth-child(3n) .merchant-value-table {
  text-align: right;
  padding-right: 18px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
  direction: ltr;
  position: relative;
  left: -18px;
}

/* 修复第二列续费年限的自动换行问题 */
.merchant-section-table > .merchant-field-table:nth-child(2) .merchant-value-table {
  word-break: keep-all;
  overflow-wrap: normal;
}

/* 商家信息卡片中续费年限内容解决自动换行问题 */
.merchant-card-table .merchant-field-table:nth-child(2) .merchant-value-table {
  position: relative;
  left: -26px;
  width: calc(100% + 26px);
  white-space: nowrap;
}

/* 为续费年限内容的每一行提供足够的显示空间 */
.merchant-card-table .merchant-field-table:nth-child(2) .merchant-value-table {
  line-height: 1.8;
}

/* 解决第一行自动换行问题 */
.merchant-card-table .merchant-field-table:nth-child(2) {
  overflow: visible;
  min-width: 0;
}

.merchant-field-table:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.merchant-field-table::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.merchant-field-table:hover::before {
  opacity: 1;
}

.merchant-label-table {
  font-weight: 600;
  color: #374151;
  margin-right: 14px;
  min-width: 120px;
  font-size: 14px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.merchant-value-table {
  color: #6b7280;
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  min-width: 0;
}

.merchant-note-table {
  grid-column: span 3;
}

.merchant-note-table .merchant-label-table {
  margin-right: 10px;
}

.merchant-note-table .merchant-value-table {
  display: block;
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
  min-height: 60px;
  background: #f8fafc;
  border-radius: 10px;
  line-height: 1.65;
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
}

.merchant-note-table:hover {
  border-color: #cbd5f5;
}

.merchant-qrcode-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

.merchant-qrcode-box-table {
  text-align: center;
  border: 1px solid #e5e7eb;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.merchant-qrcode-box-table:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.merchant-qrcode-box-table img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.merchant-qrcode-box-table:hover img {
  transform: scale(1.05);
}

.merchant-qrcode-box-table p {
  margin-top: 16px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.merchant-actions-table {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  justify-content: flex-end;
}

/* 状态样式 */
.status-new-table {
  color: #059669;
  background: #dcfce7;
  border-color: #86efac;
}

.status-renew-table {
  color: #f59e0b;
  background: #fffbeb;
  border-color: #fcd34d;
}

.status-stopped-table {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fca5a5;
}

/* 编辑模式样式 */
.merchant-card-table.edit {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
  background: #fafbfc;
}

/* 联系方式网格样式 */
.merchant-contact-table .merchant-value-table {
  width: 100%;
}

.merchant-contact-table .merchant-value-table > div > div {
  transition: all 0.3s ease;
  cursor: pointer;
}

.merchant-contact-table .merchant-value-table > div > div:hover {
  background: linear-gradient(135deg, #f1f5f9, #e5e7eb);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .merchant-section-table {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .merchant-note-table {
    grid-column: span 2;
  }
  
  .merchant-contact-table .merchant-value-table > div {
    grid-template-columns: 1fr;
  }
  
  .metrics-slim {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .merchant-card-table {
    padding: 20px 16px;
    border-radius: 12px;
  }
  
  .merchant-header-table {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    margin: -20px -16px 20px -16px;
  }
  
  .merchant-section-table {
    grid-template-columns: 1fr;
  }
  
  .merchant-field-table {
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 12px;
  }
  
  .merchant-field-table:last-child {
    border-bottom: none;
  }
  
  .merchant-note-table {
    grid-column: span 1;
  }
  
  .merchant-qrcode-table {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .merchant-qrcode-box-table {
    width: 100%;
  }
  
  .merchant-actions-table {
    flex-direction: column;
    align-items: stretch;
  }
  
  .merchant-contact-table .merchant-value-table > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .merchant-card-table {
    padding: 16px 12px;
    border-radius: 12px;
  }
  
  .merchant-title-table {
    font-size: 18px;
  }
  
  .merchant-id-table {
    font-size: 14px;
    padding: 4px 12px;
  }
  
  .merchant-status-table {
    font-size: 14px;
    padding: 4px 12px;
  }
  
  .merchant-label-table {
    min-width: 70px;
    font-size: 13px;
  }
  
  .merchant-value-table {
    font-size: 13px;
  }
  
  .merchant-qrcode-box-table img {
    width: 100px;
    height: 100px;
  }
  
  .merchant-contact-table .merchant-value-table > div > div {
    padding: 8px;
  }
}
