.qr-upload-area {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 22px auto;
    background: #f6f8fa;
    border-radius: 16px;
    box-shadow: 0 1px 12px rgba(60,80,170,0.08);
    padding: 28px 16px 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.qr-upload-label {
    display: inline-block;
    margin-bottom: 18px;
    cursor: pointer;
}
.img-tool-upload-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 30px 16px 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0 auto 20px auto;
    align-items: flex-start;
}

.qr-upload-label {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg,#377afe 0,#71a9ff 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 500;
    padding: 10px 32px;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 1.5px 10px rgba(55,122,254,0.08);
    margin-bottom: 0;
    transition: background 0.18s;
    border: none;
}

.qr-upload-label:hover {
    background: linear-gradient(90deg,#1749c8 0,#5b86ea 100%);
    color: #fff;
}

.qr-upload-btn {
    display: none;
}

.qr-input-tip {
    color: #d93026;
    font-size: 13px;
    margin-top: 2px;
    min-height: 20px;
    padding-left: 2px;
}

.qr-color-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qr-color-label {
    font-size: 15px;
    color: #3960a7;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f8fe;
    border-radius: 7px;
    padding: 6px 14px;
    box-shadow: 0 0.5px 2px rgba(60,100,220,0.04);
}

.qr-color-label input[type="color"] {
    width: 28px;
    height: 28px;
    border: none;
    margin: 0 6px;
    cursor: pointer;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(55,122,254,0.07);
    transition: box-shadow 0.16s;
}

.qr-color-label input[type="color"]:hover {
    box-shadow: 0 2px 7px rgba(55,122,254,0.12);
}

.qr-color-label span {
    font-size: 13px;
    color: #8ca2ca;
    margin-left: 5px;
    font-weight: 400;
}



.qr-upload-input {
    display: none;
}
.qr-upload-preview {
    margin-top: 2px;
    padding: 0;
    text-align: center;
    min-height: 32px;
}
.qr-upload-preview img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 12px;
    border: 2px solid #e1e5fa;
    box-shadow: 0 2px 10px rgba(41,104,239,0.07);
    background: #fff;
    transition: box-shadow 0.22s;
}

.qr-decode-tool {
    max-width: 400px;
    margin: 40px auto;
    padding: 24px 18px 30px 18px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    text-align: center;
}
.qr-title {
    font-size: 22px;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1749c8;
}
.qr-upload {
    display: block;
    margin: 0 auto 18px auto;
    font-size: 15px;
}
.qr-preview img {
    max-width: 160px;
    max-height: 160px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(23,73,200,0.05);
}
.qr-result-card {
    border-radius: 14px;
    padding: 18px 14px 16px 14px;
    margin: 0 auto 12px auto;
    text-align: left;
    position: relative;
    min-height: 60px;
    transition: box-shadow 0.25s;
}
.qr-result-label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1b2560;
}
.qr-result-textarea {
    width: 100%;
    min-height: 62px;
    font-size: 15px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1.5px solid #c8cbe6;
    background: #fff;
    resize: vertical;
    margin-bottom: 10px;
    color: #444;
}
.qr-copy-btn {
    display: inline-block;
    background: #4f8cff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    padding: 6px 18px;
    margin-right: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.qr-copy-btn:hover {
    background: #155be5;
}
.qr-copy-tip {
    display: none;
    color: #20b853;
    font-size: 13px;
    margin-left: 8px;
    vertical-align: middle;
    animation: qr-fade 1s;
}
.qr-img-table th:nth-child(1),
.qr-img-table td:nth-child(1) {
  width: 140px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-img-table th:nth-child(2),
.qr-img-table td:nth-child(2) {
  width: 20%;
  max-width: 20%;
}

.qr-img-table th:nth-child(3),
.qr-img-table td:nth-child(3) {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
}

.qr-thumb-xl {
    max-width: 120px!important;
}

@keyframes qr-fade {
    0% { opacity: 0;}
    30% { opacity: 1;}
    80% { opacity: 1;}
    100% { opacity: 0;}
}
.qr-error {
    min-height: 28px;
    margin-top: 10px;
    color: #d93026;
    font-size: 15px;
    font-weight: 500;
}

.qr-action-ct {
    margin: 0 auto;
    padding-top: 60px;
}

.btn-action {
    display: inline-block;
    padding: 7px 18px;
    margin: 0 8px 10px 8px;
    border-radius: 7px;
    border: none;
    background: #4f8cff;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-action:hover { background: #155be5; }


#qrcode {
    display: flex;
    align-items: center;      /* 垂直居中 */
    justify-content: center;  /* 水平居中 */
    min-width: 200px;
    min-height: 200px;
}


#qrcode.qrcode-w-xl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 30px 0 40px 0;
}

#qrcode.qrcode-w-xl .crop-card {
  background: #fff;
  border-radius: 18px;
  padding: 15px 15px 18px 15px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 520px;
  transition: box-shadow 0.2s;
}

#qrcode.qrcode-w-xl .crop-card:hover {
  box-shadow: 0 8px 32px 0 rgba(64,128,255,0.13);
}

#qrcode.qrcode-w-xl .crop-canvas {
  background: #f8fafc;
  border: 1.5px solid #e0e7ef;
  border-radius: 12px;
  display: block;
  max-width: 420px;
  height: auto;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 rgba(0,40,80,0.04);
  cursor: crosshair;
}

#qrcode.qrcode-w-xl .crop-filename {
  margin-top: 2px;
  font-size: 15px;
  color: #22304a;
  word-break: break-all;
  text-align: center;
}

#qrcode.qrcode-w-xl .crop-filesize {
  color: #999;
  font-size: 13px;
  margin-top: 2px;
  text-align: center;
}



.qrcode-placeholder {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f3f7;
    color: #a1a3aa;
    border-radius: 16px;
    font-size: 20px;
    letter-spacing: 2px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1.5px dashed #d5d6dc;
    transition: background 0.2s, box-shadow 0.2s;
    user-select: none;
}


:root {
    --primary: #223F9A;
    --primary-light: #4f8dfd;
    --primary-dark: #003f7f;
    --accent: #0078ff;
    --bg-main: #f4f6f9;
    --bg-white: #fff;
    --gray-100: #f9f9f9;
    --gray-200: #f4f4f4;
    --gray-300: #f0f2f5;
    --gray-400: #e0e3eb;
    --text-main: #333;
    --text-sub: #555;
    --radius: 10px;
    --shadow: 0 4px 16px rgba(34,63,154,0.06), 0 1.5px 5px rgba(60,78,120,0.06);
    --shadow-hover: 0 6px 24px rgba(34,63,154,0.13), 0 2px 8px rgba(60,78,120,0.08);
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-main);
    color: var(--text-main);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

/* HEADER */
header {
    background: linear-gradient(90deg, var(--primary) 60%, #385fc9 100%);
    padding: 5px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    border-radius: 0 0 var(--radius) var(--radius);
    min-height: 60px;
}

header span {
    color: #fff;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 6px rgba(34,63,154,0.15);
}

header nav {
    display: flex;
    gap: 20px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(79,141,253,0.13) 0%, rgba(255,255,255,0.04) 100%);
    transition: 
        background 0.3s cubic-bezier(.61,.01,.31,.99),
        color 0.3s cubic-bezier(.61,.01,.31,.99),
        transform 0.18s cubic-bezier(.61,.01,.31,.99);
    position: relative;
    will-change: transform;
}

header nav a:hover,
header nav a.active {
    background: var(--primary-light);
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 4px 18px rgba(79,141,253,0.13);
}

header nav a:active {
    background: var(--primary-dark);
}

/* LOGO */
.logo-span {
    color: #f9f9f9;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.section-link .logo-span {
    color: #0a8ef8;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* 容器布局 */
.container {
    display: flex;
    margin: 28px 30px;
    gap: 20px;
}

.sidebar, .sidebar-right {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    position: sticky;
    top: 30px;
    overflow-y: auto;
    transition: box-shadow 0.22s;
}

.sidebar {
    width: 214px;
    margin-right: 24px;
    max-height: 82vh;
    padding: 0px 25px 25px;
}

.sidebar-right {
    width: 748.5px;
    margin-left: 20px;
    border: 1.5px solid var(--gray-400);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-left: 48px !important; /* 给图标留空间 */
    position: relative;
    min-height: 40px;
}

.card-list-flex .card a{
    display: flex!important;
  align-items: center!important;
  text-decoration: none!important;
}

.card-list-flex .card .card-img {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  object-fit: contain;
}

.card-list-flex .card .card-title {
  font-size: 1.2em;
  color: #333;
  margin: 0;
}

.menu-item::before {
    content: "";
    display: block;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px; /* 图标宽度 */
    height: 26px; /* 图标高度 */
    background-image: url('../img/payment_methodicon.png');  /* 雪碧图路径 */
    background-size: auto 24px; /* 高度适配 */
    background-repeat: no-repeat;
    opacity: 0.82;
    transition: opacity 0.18s;
}

/* 针对不同菜单项的图标 */
.icon-home::before     { background-position: 4   0; }
.icon-soft::before     { background-position: -26px 0; }
.icon-download::before { background-position: -200px 0; }
.icon-more::before     { background-position: -72px 0; }

.menu-item:hover::before,
.menu-item.active::before {
    opacity: 1;
    filter: brightness(1.1) drop-shadow(0 1px 2px #4f8dfd22);
}


aside.sidebar {
    width: 260px;
    min-height: 100vh;
    background: #1b2430;
    color: #fff;
    padding: 32px 0;
     font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
    box-shadow: 2px 0 16px 0 #0001;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar li {
    margin-bottom: 6px;
}

.sidebar a {
    display: block;
    padding: 12px 32px;
    color: #c7d1db;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    transition: background 0.18s, color 0.18s;
}

.sidebar a.active,
.sidebar a:hover {
    background: #23304a;
    color: #55aaff;
}

.collapsible {
    cursor: pointer;
    padding: 12px 32px 12px 28px;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    user-select: none;
    transition: color 0.2s;
}

.collapsible:before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid #55aaff;
    border-bottom: 2px solid #55aaff;
    transform: rotate(45deg);
    margin-right: 12px;
    transition: transform 0.18s;
    vertical-align: middle;
}

.collapsible.active:before {
    transform: rotate(135deg); /* 展开时箭头向下 */
}

.content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(.55,0,.1,1);
    background: #232f41;
    border-radius: 0 0 8px 8px;
    margin-bottom: 6px;
    padding-left: 0;
}

.content.show {
    max-height: 670px;
    padding: 2px 0 4px 0;
}

.sidebar .collapsible.active {
    color: #55aaff;
}


 .sidebar-lang-select.custom-lang-dropdown {
  margin: 44px 0 0 0;
  padding: 16px 0 0 0;
  border-top: 1px solid #23304a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.sidebar-lang-select .lang-label {
  color: #b6c3d6;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-dropdown-toggle {
  background: #1f2a38;
  color: #99b0cf;
  border: 1.5px solid #23304a;
  border-radius: 7px;
  font-size: 14px;
  padding: 5px 28px 5px 14px;
  min-width: 90px;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: border 0.2s, color 0.2s, background 0.2s;
  outline: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-dropdown-toggle:focus,
.lang-dropdown-toggle:hover {
  border-color: #298fff;
  color: #fff;
  background: #22304a;
}

.dropdown-arrow {
  margin-left: 6px;
  font-size: 14px;
  color: #7dc5ff;
  transition: transform 0.22s;
}

.lang-dropdown-toggle.open .dropdown-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 110%;
  z-index: 100;
  border-radius: 9px;
  min-width: 108px;
  padding: 5px 0;
}

.lang-dropdown-toggle.open .lang-dropdown-menu {
  display: block;
}

.lang-option {
  display: block;
  padding: 7px 24px 7px 18px;
  color: #b6c3d6;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.17s, color 0.17s;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.lang-option.active,
.lang-option:hover {
  background: #22304a;
  color: #55aaff;
}

.sidebar-lang-select .fa-globe {
  color: #85b8ff;
  font-size: 16px;
}

    .qr-img-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 12px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.qr-img-table th, .qr-img-table td {
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 8px;
  font-size: 15px;
  text-align: center;
}

.qr-img-table th {
  background: #f6faff;
  color: #1677ff;
  font-weight: 500;
  border-bottom: 1.5px solid #e0eaff;
}

.qr-img-table tr:last-child td {
  border-bottom: none;
}

.qr-img-table tr:hover td {
  background: #f3f8ff;
  transition: background 0.2s;
}

.qr-thumb {
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  max-height: 120px;
  max-width: 50px;
  margin: 0 auto;
  display: block;
}

/* 主要内容区 */
.main-content {
    flex: 1;
    background: var(--bg-white);
    padding: 36px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    border: 1.5px solid var(--gray-400);
    min-width: 0;
}

/* gallery 样式 */
.gallery {
    display: flex;
    gap: 14px;
}


.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(60,78,120,0.13);
    background: var(--gray-200);
    margin: 0 auto;
}


.gallery-item img {
    width: 360px;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* 按钮样式 */
.sub-edit-image-save,
.download-button {
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--accent) 100%);
    color: white;
    border: none;
    padding: 9px 22px;
    font-size: 15px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 0.04em;
    box-shadow: 0 1.5px 5px rgba(79,141,253,0.08);
    transition: 
        background 0.22s cubic-bezier(.61,.01,.31,.99),
        transform 0.16s cubic-bezier(.61,.01,.31,.99),
        box-shadow 0.18s;
}

.sub-edit-image-save:hover,
.download-button:hover {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 18px rgba(34,63,154,0.12);
}

/* fieldsContainer 优化 */
#fieldsContainer {
    border-radius: 16px;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    padding: 22px 16px;
    margin-top: 20px;
}

#fieldsContainer .software-title {
    font-size: 25px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 18px;
    border-left: 4px solid var(--primary-light);
    padding-left: 13px;
}

#fieldsContainer .field {
    border-radius: 12px;
    padding: 16px 10px;
    background: var(--gray-100);
    margin-bottom: 8px;
    transition: box-shadow 0.2s, background 0.2s;
    box-shadow: 0 1.5px 6px rgba(79,141,253,0.06);
}

#fieldsContainer .field:hover {
    box-shadow: 0 4px 18px rgba(79,141,253,0.11);
    background: #e7efff;
}

/* 字段标题 */
#fieldsContainer .field-header {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 16px;
    color: #223F9A;
    letter-spacing: 0.02em;
}

/* 标签与输入组 */
#fieldsContainer label {
    font-size: 15px;
    color: #4a4a4a;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

#fieldsContainer input[type="checkbox"] {
    margin-left: 8px;
    transform: scale(1.15);
}

#fieldsContainer input[type="text"],
#fieldsContainer input[type="datetime-local"] {
    padding: 7px 12px;
    font-size: 15px;
    border: 1.5px solid #d1dbed;
    border-radius: 7px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.22s;
    min-width: 180px;
    background: #fbfcfe;
    margin-top: 4px;
}

#chatMsgList li input[type="text"]:nth-of-type(2) {
      min-width: 80px!important;
}


#fieldsContainer input[type="text"]:focus,
#fieldsContainer input[type="datetime-local"]:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(79, 141, 253, 0.18);
}

/* 表格优化 */
.download-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--gray-100);
    border-radius: 8px;
    overflow: hidden;
}

.download-section th,
.download-section td {
    border: 1.2px solid #e2e2e2;
    padding: 10px 9px;
    text-align: left;
    font-size: 15px;
}

.download-section th {
    background: var(--gray-200);
    font-weight: bold;
    color: var(--primary);
}

.download-section td a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.download-section td a:hover {
    text-decoration: underline;
    color: var(--primary-light);
}

/* 其他内容区样式 */
.section-title {
    font-size: 19px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.section {
    margin-bottom: 34px;
}

.section p {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 2;
}

.section ul {
    list-style-type: disc;
    padding-left: 22px;
    color: var(--text-sub);
}

.section ul li {
    margin-bottom: 8px;
    font-size: 15px;
}

.sub-edit-image-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

h1 {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 24px;
}

footer {
    text-align: center;
    padding: 24px;
    background: var(--gray-300);
    color: #666;
    font-size: 15px;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: 30px;
    border-top: 1px dashed #dbe5fa;
}

/* Popup / Loading 优化 */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(34, 63, 154, 0.18);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.popup {
    background: var(--bg-white);
    padding: 36px 30px;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(34,63,154,0.18);
    text-align: center;
    width: 390px;
    border: 1.5px solid var(--gray-400);
    position: relative;
    animation: popupIn 0.36s cubic-bezier(.61,.01,.31,.99);
}

@keyframes popupIn {
    from { opacity: 0; transform: translateY(18px) scale(0.92);}
    to   { opacity: 1; transform: translateY(0) scale(1);}
}

.popup h2 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 20px;
}

.popup p {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-sub);
}

.popup a {
    color: var(--accent);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.19s;
}
.popup a:hover {
    color: var(--primary-light);
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 25px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.24s;
}

.popup-close:hover {
    color: #ff4c4c;
}

.loading-spinner {
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
    color: #666;
    letter-spacing: 0.05em;
}

/* 文件名与图片列表 */
.td-filename {
    padding: 10px 12px;
    border: 1.2px solid #e2e2e2;
    background: var(--gray-100);
    word-break: break-word;
    max-width: 530px;
    border-radius: 7px;
    margin-bottom: 7px;
}

.td-filename .content-wrapper {
    display: flex;
    align-items: center;
}

.td-filename img {
    margin-right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.td-filename img:hover {
    transform: scale(1.12) rotate(-3deg);
}

.td-filename pre {
    white-space: pre-wrap;
    font-size: 15px;
    color: var(--text-main);
    background: #f7fafd;
    padding: 10px;
    border: 1px solid #dde3f2;
    border-radius: 6px;
    max-width: 100%;
    overflow: hidden;
    flex-grow: 1;
    cursor: pointer;
    transition: font-size 0.3s, color 0.22s;
}
.td-filename pre.active {
    font-size: 18px;
    color: var(--primary-light);
}

/* 响应式调整 */
@media (max-width: 1100px) {
    .container {
        flex-direction: column;
        gap: 14px;
    }
    .sidebar, .sidebar-right {
        width: 100%;
        margin: 0 0 16px 0;
        max-height: none;
        position: static;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        min-height: 44px;
    }
    header nav {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    .container {
        margin: 16px 3vw;
        gap: 10px;
    }
    .main-content, .sidebar, .sidebar-right {
        padding: 17px 5vw;
    }
}

@media (max-width: 480px) {
    .container, .main-content, .sidebar, .sidebar-right {
        margin: 0;
        padding: 7vw 2vw;
        border-radius: 0;
        box-shadow: none;
    }
    header {
        border-radius: 0;
    }
}

/* 其它微调按需添加... */


.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 30px 10px;
  border-bottom: 2px dashed #2d4fb2;
}


.card {
  width: 260px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(160, 170, 190, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 0 24px 0;
  transition: box-shadow 0.2s;
  cursor: pointer;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(24, 26, 40, 0.12);
}
.card-img {
  width: 130px;
  height: 42px;
  margin-bottom: 14px;
  object-fit: contain;
}
.card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
  /* 可选：保持和整体风格一致 */
}

.card a {
  color: #040a31;
  text-decoration: none;
  transition: color 0.18s, text-shadow 0.18s;
  padding: 2px 10px;
  text-align: center;
  border-radius: 8px;
  display: inline-block;
}


.card-desc {
  font-size: 16px;
  color: #555;
}


.solicit-upload-modal {
    display: none;
    position: fixed;
    z-index: 99;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(18, 28, 58, 0.25);
    justify-content: center; align-items: center;
    transition: background .2s;
}

.solicit-table {
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  border: 1px solid #e3e3e3;
  background: #fafbfd;
  font-size: 14px;
}

.solicit-table .solicit-card {
  display: grid;
  grid-template-columns: 210px 650px 100px;
  align-items: center;
  border-bottom: 1px solid #e3e3e3;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  min-height: 48px;
}

.solicit-table .solicit-card:last-child {
  border-bottom: none;
}

.solicit-table .solicit-upload-btn {
  width: 160px;
  margin: 0 auto;
  font-size: 13px;
  padding: 3px 10px;
  border: 1px solid #d0d0d0;
  background: #f5f5f5;
  border-radius: 4px;
  height: 28px;
  line-height: 1.2;
  font-weight: 500;
  transition: background 0.2s;
  display: block;
}

.solicit-table .solicit-upload-btn:hover {
  background: #eaeaea;
}

.solicit-table .software-title {
  margin: 0;
  font-size: 13px;
  color: #4b4b4b;
  line-height: 1.4;
  word-break: break-all;
}

.solicit-table .card-img {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  display: block;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: none;
}

.solicit-table span {
  color: #1976d2;
  font-weight: 500;
}

/* 可选：让整体更紧凑 */
.solicit-table .solicit-card > * {
  padding: 4px 0;
}

.solicit-upload-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(31, 39, 74, 0.12);
    padding: 32px 36px 28px 36px;
    min-width: 340px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: popIn .2s;
}

@keyframes popIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.solicit-upload-close {
    position: absolute;
    right: 20px;
    top: 16px;
    color: #6874a0;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: color .18s;
}
.solicit-upload-close:hover {
    color: #2949d3;
}

.solicit-upload-box h3 {
    font-size: 1.17rem;
    font-weight: bold;
    color: #22326d;
    margin-bottom: 20px;
    letter-spacing: .04em;
    text-align: center;
}

.solicit-upload-input {
    margin-bottom: 12px;
    padding: 8px 0;
    font-size: 1rem;
}

.solicit-upload-preview {
    display: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px #0001;
    max-width: 160px;
    max-height: 120px;
    margin-bottom: 16px;
    object-fit: contain;
    border: 1px solid #e7eaf3;
    background: #f7faff;
}

.solicit-upload-submit {
    padding: 8px 32px;
    background: linear-gradient(90deg, #335de6 50%, #2041b8 100%);
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 8px 0 #2c409c10;
    cursor: pointer;
    transition: background .18s, box-shadow .18s;
    font-weight: 500;
}
.solicit-upload-submit:hover {
    background: linear-gradient(90deg, #335de6 70%, #223b92 100%);
    box-shadow: 0 4px 14px 0 #2c409c26;
}

.solicit-upload-msg {
    margin-top: 14px;
    min-height: 22px;
    color: #e74c3c;
    font-size: .98rem;
    text-align: center;
    letter-spacing: .03em;
}

@media (max-width: 480px) {
    .solicit-upload-box {
        min-width: 90vw;
        padding: 20px 8vw 16px 8vw;
    }
    .solicit-upload-preview {
        max-width: 90vw;
    }
}