/**
 * v1.1.2 | GPL-2.0 license 
 * emial：yuncat@email.lwcat.cn
 * 适配官网风格 - 基本保留原文件分享样式
 */

/* ============================================
   CSS变量定义
============================================ */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --success-color: #5FB878;
  --warning-color: #FF5722;
  --text-color: #333;
  --background-color: #f9f9f9;
  --white: #ffffff;
  --border-color: #eee;
  --shadow-color: rgba(0, 0, 0, 0.08);
}

/* ============================================
   基础样式与重置
============================================ */
body { 
  background: #f8f8f8; 
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container-wrapper {
  flex: 1;
  padding: 20px 0;
}
.main-title {
  text-align: center;
  padding: 30px 0;
  color: var(--primary-color);
  font-size: 28px;
  letter-spacing: 2px;
}
.card-wrapper {
  max-width: 600px;
  margin: 0 auto;
  transition: all 0.3s;
}
.layui-card {
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}
.layui-card-header {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  border-bottom: 1px solid #eee;
}
.qrcode-container {
  position: relative;
  margin: 20px 0;
  transition: all 0.3s;
}
.qrcode-toggle {
  display: block;
  text-align: center;
  color: var(--primary-color);
  cursor: pointer;
  margin: 10px 0;
}
.code-badge {
  display: none;
  background: var(--success-color);
  color: #fff;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 16px;
  margin: 15px auto;
  width: fit-content;
}
#fileSection { display: none; }
@media (max-width: 768px) {
  .container-wrapper { padding: 10px; }
  .main-title { font-size: 24px; }
}
.captcha-modal {
    padding: 20px;
    text-align: center;
}
.captcha-img {
    margin: 10px 0;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.captcha-input {
    width: 150px;
    margin: 10px auto;
    text-align: center;
    letter-spacing: 3px;
}
.layui-table {
  table-layout: fixed;
}
.layui-table td {
  white-space: normal;
  word-wrap: break-word;
  word-break: break-all;
}
#announcementBox {
  margin-bottom: 20px;
}
.announcement-content p {
  margin: 8px 0;
  color: #666;
  line-height: 1.6;
}
.layui-card-header .layui-icon-notice {
  color: #FF5722;
  margin-right: 5px;
}
.announcement-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}
.announcement-close:hover {
  background: #f8f8f8;
  color: #FF5722;
  transform: translateY(-50%) rotate(90deg);
}
.announcement-close .layui-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}
#announcementBox {
  transition: all 0.3s ease;
}
.announcement-close:active {
  transform: translateY(-50%) scale(0.9);
}
.dragging-over::before {
  content: '释放文件上传';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.9);
  border: 3px dashed #1E9FFF;
  z-index: 9999;
  pointer-events: none;
  animation: dragPulse 1.5s infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: #1E9FFF;
  font-weight: bold;
}
@keyframes dragPulse {
  0% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0.6; transform: scale(1); }
}
.layui-layer-loading {
  z-index: 999999 !important;
}