/* 论文查重降重 · 现代高质感学术工具 UI（全分辨率自适应） */
:root{
  --primary:#2563eb;
  --primary-dark:#1d4ed8;
  --indigo:#4f46e5;
  --sky:#0ea5e9;
  --bg:#f4f6fb;
  --surface:#ffffff;
  --surface-soft:#f8fafc;
  --text:#0f172a;
  --text-2:#334155;
  --muted:#64748b;
  --border:#e2e8f0;
  --border-soft:#edf2f7;
  --green:#059669;
  --green-dark:#047857;
  --green-bg:#ecfdf5;
  --amber:#92400e;
  --amber-bg:#fffbeb;
  --red:#dc2626;
  --red-bg:#fef2f2;
  --radius-lg:20px;
  --radius-md:14px;
  --radius-sm:10px;
  --shadow-card:0 1px 2px rgba(15,23,42,.04),0 14px 38px -18px rgba(15,23,42,.14);
  --shadow-float:0 12px 30px -12px rgba(37,99,235,.45);
}

*{box-sizing:border-box;margin:0;padding:0}
html{overflow-x:hidden;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  background:
    radial-gradient(900px 440px at 88% -6%,rgba(79,70,229,.10),transparent 62%),
    radial-gradient(760px 380px at 8% 12%,rgba(14,165,233,.08),transparent 58%),
    var(--bg);
  color:var(--text);
  line-height:1.65;
  font-size:15px;
  min-height:100vh;
  overflow-x:hidden;
  padding-bottom:env(safe-area-inset-bottom);
  -webkit-font-smoothing:antialiased;
}
a{color:var(--primary);text-decoration:none}

/* ---------- 顶部 Hero ---------- */
.site-header{
  position:relative;
  overflow:hidden;
  text-align:center;
  color:#fff;
  padding:42px 20px 66px;
  background:
    radial-gradient(640px 260px at 82% -10%,rgba(56,189,248,.34),transparent 62%),
    radial-gradient(540px 280px at 12% 115%,rgba(129,140,248,.42),transparent 62%),
    linear-gradient(135deg,#0f172a 0%,#1e3a8a 46%,#3730a3 100%);
}
.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.42;
  background-image:
    radial-gradient(rgba(255,255,255,.16) 1px,transparent 1px);
  background-size:24px 24px;
  mask-image:radial-gradient(720px 280px at 50% 15%,#000 18%,transparent 82%);
}
.site-header::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);
}
.header-inner{position:relative;max-width:780px;margin:0 auto}
.site-header h1{
  font-size:clamp(24px,3.2vw,32px);
  letter-spacing:.08em;
  font-weight:800;
  background:linear-gradient(180deg,#ffffff 25%,#dbeafe 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.site-header p{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:12px;
  padding:6px 16px;
  border-radius:999px;
  font-size:12.5px;
  color:#e0e7ff;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

/* ---------- 主容器（轻叠上浮） ---------- */
.container{
  position:relative;
  z-index:2;
  max-width:780px;
  width:100%;
  margin:-36px auto 0;
  padding:0 18px 18px;
}

/* ---------- 顶部保留期限提示条 ---------- */
.notice-bar{
  display:flex;
  align-items:flex-start;
  gap:10px;
  background:rgba(255,251,235,.94);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  color:var(--amber);
  border:1px solid #fde68a;
  border-radius:var(--radius-md);
  padding:12px 16px;
  margin-bottom:16px;
  font-size:13px;
  line-height:1.65;
  box-shadow:0 8px 24px -16px rgba(180,83,9,.28);
}
.notice-dot{
  width:8px;height:8px;border-radius:50%;
  background:#f59e0b;
  box-shadow:0 0 0 4px rgba(245,158,11,.18);
  flex:0 0 8px;
  margin-top:7px;
}
.notice-bar strong{color:#78350f;font-weight:700}

/* ---------- 分段式标签切换 ---------- */
.tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:6px;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(226,232,240,.95);
  border-radius:16px;
  box-shadow:0 6px 20px -14px rgba(15,23,42,.18);
  margin-bottom:18px;
}
.tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:46px;
  padding:10px 14px;
  border-radius:12px;
  color:var(--text-2);
  font-weight:600;
  font-size:15px;
  letter-spacing:.02em;
  transition:all .18s ease;
}
.tab:hover{color:var(--primary);background:rgba(37,99,235,.06)}
.tab.active{
  background:linear-gradient(135deg,#2563eb 0%,#4f46e5 100%);
  color:#fff;
  box-shadow:0 10px 22px -10px rgba(37,99,235,.70);
}

/* ---------- 主卡片 ---------- */
.card{
  background:var(--surface);
  border:1px solid rgba(226,232,240,.9);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);
  padding:28px 30px;
  margin-bottom:18px;
}
.card h2{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:18px;
  font-weight:700;
  color:var(--text);
  letter-spacing:.02em;
  padding-bottom:16px;
  margin-bottom:20px;
  border-bottom:1px solid var(--border-soft);
}
.card h2::before{
  content:"";
  width:4px;height:18px;border-radius:99px;
  background:linear-gradient(180deg,#2563eb,#4f46e5);
}

/* ---------- AI 注意事项卡片 ---------- */
.ai-notice{
  position:relative;
  border:1px solid #dbeafe;
  border-radius:var(--radius-md);
  padding:16px 18px 16px 20px;
  margin:0 0 22px;
  background:linear-gradient(135deg,#f0f7ff 0%,#f8faff 100%);
  color:#1e3a8a;
  font-size:13.5px;
  line-height:1.9;
  overflow:hidden;
  overflow-wrap:anywhere;
}
.ai-notice::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;width:4px;
  background:linear-gradient(180deg,#2563eb,#6366f1);
}
.ai-notice-title{
  font-weight:800;
  font-size:14px;
  margin-bottom:4px;
  color:#1d4ed8;
}

/* ---------- 表单控件 ---------- */
.form-group{margin-bottom:20px}
.form-group label{
  display:block;
  font-weight:600;
  margin-bottom:8px;
  font-size:13.5px;
  color:var(--text-2);
}
.req{color:var(--red);margin-left:3px}
.mode-label{color:var(--muted);font-weight:400;font-size:12.5px;margin-left:4px}

input[type=text],input[type=password],input[type=number],textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid #dbe3ee;
  border-radius:12px;
  font-size:14.5px;
  font-family:inherit;
  background:#f8fafc;
  color:var(--text);
  transition:border-color .16s,box-shadow .16s,background-color .16s;
}
input::placeholder,textarea::placeholder{color:#94a3b8}
input:hover,textarea:hover{border-color:#cbd5e1;background:#ffffff}
input:focus,textarea:focus,select:focus{
  outline:none;
  background:#ffffff;
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}
textarea{resize:vertical;min-height:90px}
.hint{
  font-size:12.5px;
  color:var(--muted);
  margin-top:8px;
  line-height:1.7;
  overflow-wrap:anywhere;
}
.hint b{color:var(--text-2)}

/* ---------- 服务套餐选择器 ---------- */
.service-list{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(205px,1fr));
  gap:10px;
}
#svcManual{gap:12px}
.service-group{
  grid-column:1 / -1;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--surface-soft);
  overflow:hidden;
}
.service-group-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:13px;
  color:#1e40af;
  letter-spacing:.03em;
  background:linear-gradient(90deg,#eff6ff 0%,#f8fafc 100%);
  padding:10px 14px;
  border-bottom:1px solid #e2e8f0;
}
.service-group-title::before{
  content:"";
  width:7px;height:7px;border-radius:50%;
  background:linear-gradient(135deg,#2563eb,#4f46e5);
}
.service-group > .service-list{padding:12px}
.service-item{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  border:1.5px solid #e2e8f0;
  border-radius:12px;
  padding:11px 36px 11px 13px;
  background:#ffffff;
  cursor:pointer;
  font-size:13.5px;
  color:var(--text-2);
  line-height:1.4;
  transition:border-color .16s,background .16s,box-shadow .16s,transform .16s;
}
.service-item:hover{
  border-color:#93c5fd;
  background:#f8fbff;
  transform:translateY(-1px);
  box-shadow:0 6px 16px -12px rgba(37,99,235,.4);
}
.service-item input{
  flex-shrink:0;
  margin:0;
  accent-color:var(--primary);
  width:16px;height:16px;
}
.service-item span{word-break:break-word}
.service-item.selected{
  border-color:var(--primary);
  background:linear-gradient(135deg,#eff6ff 0%,#eef2ff 100%);
  box-shadow:0 0 0 3px rgba(37,99,235,.13);
}
.service-item.selected span{color:var(--primary-dark);font-weight:700}
.service-item.selected::after{
  content:"✓";
  position:absolute;
  right:11px;top:50%;
  transform:translateY(-50%);
  width:18px;height:18px;border-radius:50%;
  background:linear-gradient(135deg,#2563eb,#4f46e5);
  color:#fff;
  font-size:10px;font-weight:700;
  display:grid;place-items:center;
  line-height:1;
}

/* ---------- 文件上传区 ---------- */
.file-box{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:2px dashed #cbd5e1;
  border-radius:16px;
  padding:28px 18px;
  text-align:center;
  color:var(--muted);
  cursor:pointer;
  background:linear-gradient(180deg,#f8fafc 0%,#ffffff 100%);
  transition:all .18s ease;
}
.file-box:hover{
  border-color:var(--primary);
  background:linear-gradient(180deg,#eff6ff 0%,#f8fbff 100%);
  color:var(--primary-dark);
}
.file-icon{
  width:48px;height:48px;border-radius:14px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#dbeafe,#e0e7ff);
  color:var(--primary);
  box-shadow:0 8px 18px -12px rgba(37,99,235,.55);
  transition:transform .18s ease;
}
.file-box:hover .file-icon{transform:translateY(-2px)}
.file-icon svg{width:21px;height:21px}
.file-text{font-size:14px;font-weight:600;word-break:break-all}
.file-box.has-file{
  border-style:solid;
  border-color:#6ee7b7;
  background:linear-gradient(180deg,#ecfdf5 0%,#f0fdf4 100%);
  color:var(--green-dark);
}
.file-box.has-file .file-icon{
  background:linear-gradient(135deg,#a7f3d0,#bbf7d0);
  color:var(--green-dark);
}

/* ---------- 按钮 ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:46px;
  padding:11px 24px;
  border:none;
  border-radius:12px;
  background:linear-gradient(135deg,#2563eb 0%,#4f46e5 100%);
  color:#fff;
  font-size:15px;
  font-weight:700;
  font-family:inherit;
  cursor:pointer;
  letter-spacing:.03em;
  box-shadow:var(--shadow-float);
  transition:transform .16s,box-shadow .16s,filter .16s;
}
.btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
  box-shadow:0 14px 28px -10px rgba(37,99,235,.65);
}
.btn:active{transform:translateY(0)}
.btn:disabled{opacity:.6;cursor:not-allowed;transform:none}
.btn.block{width:100%;min-height:48px;font-size:15.5px}
.btn.green{
  background:linear-gradient(135deg,#059669 0%,#10b981 100%);
  box-shadow:0 10px 24px -10px rgba(5,150,105,.6);
  margin-top:4px;
}
.btn.green:hover{box-shadow:0 14px 28px -10px rgba(5,150,105,.72)}

/* ---------- 提示框 ---------- */
.alert{
  padding:13px 16px;
  border-radius:12px;
  margin-bottom:14px;
  font-size:13.5px;
  line-height:1.75;
  overflow-wrap:anywhere;
}
.alert.error{background:var(--red-bg);color:#b91c1c;border:1px solid #fecaca}
.alert.success{background:var(--green-bg);color:#065f46;border:1px solid #a7f3d0;margin-top:16px}
.alert.info{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe}

/* ---------- 订单详情与历史记录 ---------- */
.flex{display:flex;align-items:center;gap:10px}
table.kv{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:14px;
  border:1px solid var(--border-soft);
  border-radius:14px;
  overflow:hidden;
  margin-bottom:6px;
}
table.kv th,table.kv td{
  padding:13px 15px;
  border-bottom:1px solid var(--border-soft);
  text-align:left;
  vertical-align:middle;
}
table.kv tr:last-child th,table.kv tr:last-child td{border-bottom:none}
table.kv th{
  width:118px;
  color:var(--muted);
  font-weight:600;
  font-size:13px;
  background:#f8fafc;
  white-space:nowrap;
}
table.kv td{
  color:var(--text);
  word-break:break-word;
  overflow-wrap:anywhere;
}
.mono{
  font-family:"SF Mono",ui-monospace,Consolas,"Liberation Mono",monospace;
  letter-spacing:.03em;
  font-size:13px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}
.badge::before{
  content:"";
  width:6px;height:6px;border-radius:50%;
  background:currentColor;
}
.badge.pending{background:var(--amber-bg);color:var(--amber);border:1px solid #fde68a}
.badge.completed{background:var(--green-bg);color:var(--green-dark);border:1px solid #a7f3d0}
.badge.failed{background:var(--red-bg);color:#b91c1c;border:1px solid #fecaca}

.history-title{
  margin:22px 0 10px;
  font-size:14.5px;
  font-weight:700;
  color:var(--text-2);
}
.history-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border-radius:14px;
}
.history-table{min-width:520px}
.history-table th{width:auto}
.history-table a{font-weight:600;color:var(--primary)}
.history-table a:hover{text-decoration:underline}

/* ---------- 引流横幅 ---------- */
.promo{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:4px 0 18px;
  padding:20px 24px;
  border-radius:18px;
  color:#fff;
  background:
    radial-gradient(320px 140px at 88% 0%,rgba(196,181,253,.42),transparent 62%),
    radial-gradient(240px 120px at 10% 110%,rgba(56,189,248,.28),transparent 60%),
    linear-gradient(135deg,#1e1b4b 0%,#4338ca 52%,#6d28d9 100%);
  box-shadow:0 16px 34px -16px rgba(67,56,202,.72);
  transition:transform .18s ease,box-shadow .18s ease;
}
.promo:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 40px -16px rgba(67,56,202,.85);
}
.promo-title{font-size:18px;font-weight:800;letter-spacing:.05em}
.promo-sub{font-size:12.5px;color:#e0e7ff;opacity:.92;margin-top:4px}
.promo-arrow{
  width:40px;height:40px;border-radius:50%;flex:0 0 40px;
  display:grid;place-items:center;
  font-size:22px;line-height:1;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.26);
  transition:transform .18s ease,background .18s ease;
}
.promo:hover .promo-arrow{transform:translateX(3px);background:rgba(255,255,255,.24)}

/* ---------- 页脚 ---------- */
.footer{
  text-align:center;
  color:var(--muted);
  font-size:12.5px;
  padding:14px 16px 28px;
  line-height:1.95;
}

/* ---------- 多分辨率自适应（大屏 / 笔记本 / 平板 / 手机 / 超小屏） ---------- */
@media (min-width:1440px){
  .site-header{padding:48px 24px 72px}
  .container{max-width:840px;margin-top:-40px}
  .card{padding:32px 34px}
}

@media (max-width:1024px){
  .container{max-width:740px}
}

@media (max-width:640px){
  .site-header{padding:28px 16px 52px}
  .site-header h1{font-size:23px}
  .site-header p{font-size:11.5px;padding:5px 12px;margin-top:9px;line-height:1.5}
  .container{margin-top:-28px;padding:0 12px 12px}
  .notice-bar{padding:11px 13px;font-size:12.5px;margin-bottom:12px;border-radius:12px}
  .tabs{padding:5px;gap:6px;margin-bottom:14px;border-radius:14px}
  .tab{min-height:44px;padding:10px 8px;font-size:14px;border-radius:10px}
  .card{padding:20px 16px;margin-bottom:14px;border-radius:16px}
  .card h2{font-size:16.5px;padding-bottom:12px;margin-bottom:16px}
  .ai-notice{padding:13px 14px 13px 16px;font-size:13px;line-height:1.8;margin-bottom:18px}
  .form-group{margin-bottom:16px}
  .form-group label{font-size:13.5px;margin-bottom:7px}
  /* 16px 防止 iOS Safari 聚焦自动放大 */
  input[type=text],input[type=password],input[type=number],textarea{font-size:16px;padding:11px 13px}
  .service-list{grid-template-columns:1fr;gap:9px}
  .service-group > .service-list{padding:10px}
  .service-item{padding:11px 36px 11px 12px;font-size:14px}
  .file-box{padding:22px 14px}
  .btn{min-height:44px;padding:11px 18px;font-size:15px}
  .btn.green{width:100%}
  .flex{flex-wrap:wrap}
  .flex input[type=text]{min-width:0;flex:1 1 200px}
  table.kv th{width:92px;padding:10px 10px;font-size:12.5px}
  table.kv td{padding:10px 10px;font-size:13.5px}
  .promo{padding:16px 18px;border-radius:15px}
  .promo-title{font-size:16px}
  .promo-sub{font-size:12px}
  .promo-arrow{width:34px;height:34px;flex:0 0 34px;font-size:20px}
  .footer{padding:10px 12px 22px;font-size:11.5px;line-height:1.85}
}

@media (max-width:420px){
  .flex{flex-direction:column;align-items:stretch}
  .flex input[type=text]{flex:none;width:100%}
  .flex .btn{width:100%}
}

@media (max-width:380px){
  .site-header{padding:22px 12px 46px}
  .site-header h1{font-size:20px}
  .container{padding:0 10px 10px}
  .card{padding:16px 13px}
  .tab{font-size:13.5px;padding:9px 6px}
  table.kv th{width:78px;font-size:12px}
  table.kv td{font-size:13px}
  .promo{padding:14px 14px}
  .promo-title{font-size:15px}
}
