:root {
  --ink: #18212b;
  --muted: #5d6b7a;
  --line: rgba(24, 33, 43, 0.08);
  --paper: #ffffff;
  --page: #eef2f6;
  --accent: #0f766e;
  --accent-2: #0d9488;
  --danger: #dc2626;
  --ok: #16a34a;
  --warn: #b45309;
  --shadow: 0 18px 50px rgba(24, 33, 43, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Sora, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(15, 118, 110, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(37, 99, 235, 0.08), transparent 50%),
    linear-gradient(180deg, #f4f7fb 0%, var(--page) 45%, #e8edf3 100%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  padding: 0 !important;
}

a { color: inherit; text-decoration: none; }

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.header {
  text-align: center;
  padding: 12px 8px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
}

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.header h1 {
  margin: 0;
  font-family: Sora, "Noto Sans SC", sans-serif;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header p {
  margin: 12px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 0.95rem;
}

.privacy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
}

.panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;
  backdrop-filter: blur(12px);
}

.convert-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
}

.convert-title-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.convert-title img {
  width: 26px;
  height: 26px;
}

.convert-title .arrow {
  color: var(--muted);
  font-weight: 500;
}

.title-auth {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-left: auto;
  max-width: min(480px, 100%);
  font-weight: 400;
  text-align: right;
}

.title-auth-text {
  color: #c2410c;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.title-auth-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(234, 88, 12, 0.45);
  background: transparent;
  color: #c2410c;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.title-auth-btn:hover {
  background: rgba(234, 88, 12, 0.06);
  border-color: rgba(234, 88, 12, 0.65);
  color: #c2410c;
  text-decoration: none;
}

.title-auth-btn--outline {
  border-color: rgba(234, 88, 12, 0.45);
  color: #c2410c;
}

.title-auth-btn--outline:hover {
  background: rgba(234, 88, 12, 0.06);
  border-color: rgba(234, 88, 12, 0.65);
  color: #c2410c;
}

.title-auth--user .title-auth-text {
  color: var(--accent, #0f766e);
}

.title-auth--user .title-auth-btn {
  border-color: rgba(15, 118, 110, 0.4);
  color: var(--accent, #0f766e);
}

.title-auth--user .title-auth-btn:hover {
  background: rgba(15, 118, 110, 0.06);
  border-color: rgba(15, 118, 110, 0.6);
  color: var(--accent, #0f766e);
}

.tips {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.tips p {
  margin: 0 0 6px;
}

.tips p:last-child {
  margin-bottom: 0;
}

.opt-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.opt-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 56px;
}

.levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.level {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s;
  font-family: inherit;
}

.level:hover { border-color: rgba(15, 118, 110, 0.35); }
.level.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* 覆盖 layui 上传区，贴近图片工具 dropzone */
.layui-upload-drag,
#uploadArea.layui-upload-drag {
  display: block;
  width: 100%;
  padding: 42px 20px !important;
  margin: 0 !important;
  border: 2px dashed rgba(15, 118, 110, 0.28) !important;
  border-radius: 16px !important;
  background: rgba(15, 118, 110, 0.03) !important;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.layui-upload-drag:hover,
#uploadArea.layui-upload-drag:hover {
  border-color: var(--accent) !important;
  background: rgba(15, 118, 110, 0.07) !important;
}

.layui-upload-drag .layui-icon {
  font-size: 42px !important;
  color: var(--accent) !important;
  margin-bottom: 8px;
}

.layui-upload-drag p {
  margin: 0;
  color: var(--muted) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
}

.upload-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

#jindu {
  margin-top: 12px;
  text-align: center;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 1.2em;
}

.file-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.file-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: min(480px, 100%);
}

.file-qxd {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.18);
  line-height: 1.4;
}

.file-name {
  font-size: 0.88rem;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(420px, 100%);
}

.file-main .file-name {
  max-width: none;
  flex: 1;
}

.file-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.file-status a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.file-status a:hover { color: var(--accent-2); }

.state_clz {
  color: var(--warn);
  background: rgba(180, 83, 9, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}

.state_ywc {
  color: var(--ok);
  background: rgba(22, 163, 74, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}

.state_sb {
  color: var(--danger);
  background: rgba(220, 38, 38, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}

.seo-content {
  margin-top: 28px;
}

.seo-block {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(24, 33, 43, 0.06);
  padding: 24px 22px;
  margin-bottom: 16px;
}

.seo-block h2 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 700;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.category {
  padding: 14px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.04);
  border: 1px solid var(--line);
  margin: 0;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.category-title img {
  width: 20px;
  height: 20px;
}

.tool-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.15s, color 0.15s;
}

.tool-item:hover {
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--accent);
}

.tool-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: left;
}

.promo img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.promo-copy h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.promo-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.promo-points {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.86rem;
}

.promo-points li {
  margin-bottom: 6px;
}

.promo-points li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.footer {
  text-align: center;
  margin-top: 28px;
  color: #9ca3af;
  font-size: 0.78rem;
}

.footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* 小程序悬浮入口 */
.float-entry {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.2s;
}

.float-entry:hover { transform: scale(1.06); }
.float-entry svg { width: 28px; height: 28px; }

.float-popup {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 280px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 10000;
}

.float-popup.show { display: block; }

.float-popup-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.float-popup-head h3 {
  margin: 0;
  font-size: 1rem;
}

.float-popup-head button {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

.float-popup img {
  display: block;
  width: 132px;
  height: 132px;
  margin: 0 auto 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.float-popup p {
  margin: 0 0 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.float-popup .btn-muted {
  display: block;
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 10px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 720px) {
  .file-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .file-main {
    max-width: 100%;
  }
  .file-name {
    max-width: 100%;
    white-space: normal;
  }
  .promo {
    text-align: center;
  }
  .promo-copy {
    text-align: center;
  }
}
