/* ============================================================
   用户中心
   ============================================================ */
body.uc-page { background: #f1f5fa; }

.uc-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 26px 0 60px;
  min-height: calc(100vh - 72px);
}

/* ---------------------------------------------------------- 侧栏 */
.uc-side {
  width: 232px;
  flex: none;
  position: sticky;
  top: 24px;
  background: #fff;
  border-radius: 12px;
  padding: 24px 16px 18px;
  box-shadow: 0 4px 20px rgba(31, 45, 61, 0.05);
}

.uc-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 20px;
  border-bottom: 1px solid #f2f5f8;
}

.uc-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(135deg, #5b8dff, #12b4ea);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(43, 143, 228, 0.24);
}

.uc-name {
  font-size: 15px;
  font-weight: 600;
  color: #26303f;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 12px;
  color: #8b95a5;
}

.uc-role .vip-dot {
  padding: 1px 7px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd76e, #f5a623);
  color: #7a4a00;
  font-size: 11px;
  font-weight: 600;
}

.uc-menu { padding: 14px 0 4px; }

.uc-menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: #4c5566;
  font-size: 14px;
  margin-bottom: 2px;
  transition: all 0.15s;
  cursor: pointer;
}

.uc-menu a svg { width: 18px; height: 18px; color: #93a0b2; }
.uc-menu a:hover { background: #f5f9fd; color: #1a9fd4; }
.uc-menu a:hover svg { color: #1a9fd4; }

.uc-menu a.active {
  background: #eaf7ff;
  color: #129dcc;
  font-weight: 500;
}

.uc-menu a.active svg { color: #129dcc; }

.uc-side .uc-logout {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 42px;
  padding: 0 12px;
  margin-top: 8px;
  border-top: 1px solid #f2f5f8;
  padding-top: 16px;
  color: #8b95a5;
  font-size: 13px;
  cursor: pointer;
}

.uc-side .uc-logout:hover { color: #e05252; }

.uc-vip-cta {
  display: block;
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5a77fb, #8fa8ff);
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.uc-vip-cta::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.uc-vip-cta b { display: block; font-size: 14px; font-weight: 600; }
.uc-vip-cta span { display: block; margin-top: 5px; font-size: 11.5px; opacity: 0.85; }

/* ---------------------------------------------------------- 主区 */
.uc-main { flex: 1; min-width: 0; }

.uc-panel { display: none; }
.uc-panel.active { display: block; animation: panel-in 0.25s ease; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-head h2 { font-size: 22px; font-weight: 600; color: #222; }
.panel-head p { margin-top: 4px; color: #8b95a5; font-size: 13px; }

/* ---------------------------------------------------------- 概览 */
.welcome-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(120deg, #eaf7ff 0%, #eef1ff 55%, #f3efff 100%);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.welcome-card::after {
  content: "";
  position: absolute;
  right: 120px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 190, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.welcome-card h1 {
  font-size: 26px;
  font-weight: 700;
  color: #1c2b4a;
  letter-spacing: 0.5px;
}

.welcome-card p { margin-top: 8px; color: #6b7c93; font-size: 13.5px; }

.welcome-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex: none; }

.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  border: 0;
  background: #fff;
  color: #2b6cb0;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(80, 130, 190, 0.12);
  transition: all 0.15s;
}

.btn-soft:hover { color: #129dcc; transform: translateY(-1px); }

.btn-soft.primary {
  background: linear-gradient(135deg, #22bced, #0aa6dd);
  color: #fff;
  box-shadow: 0 8px 18px rgba(18, 180, 234, 0.26);
}

.btn-soft.primary:hover { color: #fff; filter: brightness(1.03); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(31, 45, 61, 0.045);
}

.stat-top { display: flex; align-items: center; justify-content: space-between; }

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.stat-icon svg { width: 19px; height: 19px; }
.stat-icon.blue { background: #e8f5ff; color: #1a9fd4; }
.stat-icon.purple { background: #eeeaff; color: #7561e8; }
.stat-icon.green { background: #e6f9ef; color: #18a05f; }
.stat-icon.orange { background: #fff2e6; color: #e8892f; }

.stat-label { font-size: 12.5px; color: #8b95a5; margin-top: 14px; }

.stat-value {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 600;
  color: #26303f;
  letter-spacing: 0.3px;
}

.stat-value small { font-size: 12px; color: #9aa3b0; font-weight: 400; margin-left: 3px; }

.stat-sub { margin-top: 6px; font-size: 12px; color: #9aa3b0; }
.stat-sub b { color: #1a9fd4; font-weight: 500; }

.storage-bar {
  height: 5px;
  border-radius: 3px;
  background: #eef3f8;
  margin-top: 12px;
  overflow: hidden;
}

.storage-bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #31c5f0, #5b8dff);
}

/* ---------------------------------------------------------- 卡片/表格 */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(31, 45, 61, 0.045);
  padding: 22px 24px;
  margin-bottom: 20px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head h3 { font-size: 16px; font-weight: 600; color: #26303f; }
.card-head a { font-size: 13px; color: #129dcc; cursor: pointer; }

.table-wrap { overflow-x: auto; }

table.tbl { width: 100%; min-width: 720px; border-collapse: collapse; }

table.tbl th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 500;
  color: #9aa3b0;
  padding: 10px 12px;
  border-bottom: 1px solid #f2f5f8;
  white-space: nowrap;
}

table.tbl td {
  padding: 13px 12px;
  border-bottom: 1px solid #f7f9fb;
  font-size: 13.5px;
  color: #4c5566;
  vertical-align: middle;
}

table.tbl tbody tr:hover td { background: #fafcfe; }
table.tbl tbody tr:last-child td { border-bottom: 0; }

.file-cell { display: flex; align-items: center; gap: 11px; min-width: 220px; }

.file-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.file-icon.zip { background: linear-gradient(135deg, #f6b44c, #ef8f2f); }
.file-icon.rar { background: linear-gradient(135deg, #b48cf0, #8b5cf6); }
.file-icon.pdf { background: linear-gradient(135deg, #f77f7f, #ea5455); }
.file-icon.img { background: linear-gradient(135deg, #48c9b0, #1aa085); }
.file-icon.doc { background: linear-gradient(135deg, #5b9bf8, #2f6fe0); }
.file-icon.video { background: linear-gradient(135deg, #f088b6, #e0528f); }
.file-icon.other { background: linear-gradient(135deg, #9bb0c9, #6f849e); }

.file-name {
  font-size: 13.5px;
  color: #26303f;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-sub { margin-top: 2px; font-size: 11.5px; color: #9aa3b0; }

.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #f4f8fb;
  color: #5b7189;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  cursor: pointer;
}

.code-chip:hover { background: #e9f4fb; color: #129dcc; }

.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.link-btn {
  border: 0;
  background: none;
  padding: 4px 6px;
  font-size: 12.5px;
  color: #129dcc;
  cursor: pointer;
  border-radius: 4px;
}

.link-btn:hover { background: #f0faff; }
.link-btn.danger { color: #e05252; }
.link-btn.danger:hover { background: #fff2f2; }

.empty {
  text-align: center;
  padding: 54px 20px;
  color: #9aa3b0;
}

.empty svg { width: 56px; height: 56px; opacity: 0.6; margin-bottom: 12px; }
.empty p { font-size: 13.5px; margin-bottom: 16px; }

/* ---------------------------------------------------------- 上传 */
.upload-zone {
  border: 1.5px dashed #cfe3f1;
  border-radius: 10px;
  background: #f8fcff;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: #5bc6ec;
  background: #f1faff;
}

.upload-zone svg { width: 42px; height: 42px; color: #7cc9ea; margin-bottom: 10px; }
.upload-zone p { font-size: 14px; color: #4c5566; }
.upload-zone p b { color: #129dcc; font-weight: 500; }
.upload-zone .hint { margin-top: 5px; font-size: 12px; color: #a2aab6; }

.upload-box {
  display: none;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #eaf0f5;
  border-radius: 10px;
  background: #fbfdff;
}

.upload-box.show { display: block; }

.upload-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef3f7;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: #26303f;
}

.upload-file-row .size { color: #9aa3b0; font-size: 12px; margin-left: auto; }

.upload-fields {
  display: grid;
  grid-template-columns: 200px 170px 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.upload-fields .input, .upload-fields .select { height: 42px; font-size: 13.5px; background: #fff; }

.progress {
  display: none;
  height: 7px;
  border-radius: 4px;
  background: #edf2f7;
  overflow: hidden;
  margin-top: 12px;
}

.progress.show { display: block; }

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #22bced, #5b8dff);
  transition: width 0.2s;
}

/* ---------------------------------------------------------- 会员 */
.vip-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  border-radius: 12px;
  background: linear-gradient(120deg, #2f3a5c 0%, #3d4a75 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.vip-status::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 110, 0.22), transparent 68%);
}

.vip-status h3 { font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.vip-status p { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.66); }

.vip-status .gold {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd76e, #f5a623);
  color: #6b3f00;
  font-size: 12px;
  font-weight: 700;
}

.vip-status .btn-soft { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: none; }
.vip-status .btn-soft:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

.uc-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.uc-plan {
  position: relative;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  background: #fff;
  transition: all 0.18s;
}

.uc-plan:hover { border-color: #cdeaf8; box-shadow: 0 10px 26px rgba(31, 45, 61, 0.07); transform: translateY(-2px); }

.uc-plan.featured { background: linear-gradient(160deg, #effcf8, #e9fbff); border-color: #c4f0e6; }

.uc-plan .name { font-size: 17px; color: #26303f; font-weight: 600; }
.uc-plan .tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 10px;
  background: #d9f7e6;
  color: #15945a;
  font-size: 11.5px;
}

.uc-plan .price { margin-top: 18px; color: #26303f; }
.uc-plan .price b { font-size: 34px; font-weight: 600; }
.uc-plan .price span { font-size: 12px; color: #9aa3b0; }

.uc-plan .desc { margin-top: 8px; font-size: 12px; color: #8b95a5; line-height: 1.8; }

.uc-plan .btn-buy {
  width: 100%;
  height: 40px;
  margin-top: 18px;
  border-radius: 6px;
  border: 1px solid #2c7be5;
  background: #fff;
  color: #2c7be5;
  font-size: 14px;
  cursor: pointer;
}

.uc-plan.featured .btn-buy { background: #2c7be5; color: #fff; }
.uc-plan .btn-buy:hover { filter: brightness(0.97); }

.benefit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 10px;
  background: #f8fbfd;
  color: #5b6474;
  font-size: 13px;
}

.benefit-row span { display: inline-flex; align-items: center; gap: 7px; }
.benefit-row svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------- 表单卡 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-grid .full { grid-column: 1 / -1; }

.settings-form .field { margin-bottom: 0; }
.settings-form .field-label { font-size: 13.5px; }

.settings-actions { margin-top: 22px; display: flex; gap: 12px; }

.tip-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f7fafc;
  color: #8b95a5;
  font-size: 12.5px;
  line-height: 1.8;
}

/* ---------------------------------------------------------- 弹窗 */
.share-line { display: flex; gap: 10px; margin-top: 6px; }

.share-line .input { height: 44px; font-size: 13px; background: #f7fafc; }

.share-code-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f4fbff;
  border: 1px solid #ddf1fb;
  font-size: 13px;
  color: #4c5566;
}

.share-code-box b { color: #129dcc; font-family: ui-monospace, Consolas, monospace; }

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .uc-plans { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .uc-layout { flex-direction: column; padding: 16px 0 40px; }
  .uc-side { position: static; width: 100%; padding: 16px; }
  .uc-profile { padding-bottom: 14px; }
  .uc-menu { display: flex; overflow-x: auto; gap: 4px; padding: 10px 0 0; }
  .uc-menu a { white-space: nowrap; padding: 0 12px; height: 38px; }
  .uc-menu a span { display: none; }
  .uc-menu a svg { margin: 0; }
  .uc-vip-cta { display: none; }
  .uc-side .uc-logout { border: 0; padding-top: 0; margin-top: 4px; }
  .welcome-card { flex-direction: column; align-items: flex-start; padding: 22px; }
  .welcome-card h1 { font-size: 21px; }
  .upload-fields { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-grid { gap: 10px; }
  .stat-value { font-size: 20px; }
}
