/* 基础重置 - 精简版 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background-color: #fff;
  /* 通透渐变画布：顶部暖奶油 → 浅蓝灰 → 纯白，增加中间过渡色让分界更柔和 */
  background-image: linear-gradient(180deg,
    #fdf6e8 0%,
    #f9f1e3 100px,
    #f3eef3 260px,
    #eef1f9 520px,
    #f4f6fa 800px,
    #ffffff calc(100% - 40px));
  background-repeat: no-repeat;
  min-height: 1024px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* 头部核心样式 */
header {
  /* 顶部 bar 去掉独立背景，和下方渐变画布自然融为一体 */
  background-color: transparent !important;
  padding: 1rem 2rem;
  width: 100%;
}

.header-container {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 160px;
  width: 100%;
}

/* Logo样式 - 仅保留必要!important */
.logo {
  font-size: 0.75rem;
  color: #1a2b48;
  font-family: 'Lexend', sans-serif;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-left: 0;
  background: url(../assets/logo.svg) left center no-repeat;
  background-size: 24px 24px !important;
  padding-left: 34px;
  height: 40px;
  line-height: 40px;
  display: inline-block;
  background-color: transparent;
}

/* 头部右侧按钮容器 - GitHub+锁按钮 */
.header-right {
  display: flex;
  align-items: center;
  padding: 0;
  margin-right: 0;
  gap: 8px;
}

/* GitHub按钮 - 无冗余!important */
.github-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease;
  background-color: transparent;
  margin-right: 0;
  padding: 4px;
}

.github-btn:hover {
  background-color: #e1e6f0;
  color: #000;
}

.github-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.github-logo svg {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* 锁按钮 - 与GitHub按钮统一 */
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: inherit;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  padding: 4px;
}

.auth-btn svg {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.auth-btn:hover {
  background-color: #e1e6f0;
}

/* 管理员后台入口按钮（和 GitHub / 锁按钮同风格） */
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: inherit;
  background-color: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  padding: 4px;
}
.admin-btn svg {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.admin-btn:hover {
  background-color: #e1e6f0;
}

/* 深色模式适配 - 头部按钮 */
@media (prefers-color-scheme: dark) {
  .github-btn, .auth-btn, .admin-btn {
    color: #fff;
  }
  .github-btn:hover, .auth-btn:hover, .admin-btn:hover {
    background-color: #444;
  }
}

.all-icons-btn, .collect-btn {
  display: none;
}

/* 标题横幅 - 精简冗余!important */
.title-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}

.banner-right-wrap {
  background-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 20px rgba(245, 179, 44, 0.08);
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding-right: 20px;
  position: relative;
  width: fit-content;
}

.banner-left {
  background-color: #000;
  color: #F5B32C;
  font-size: 14px;
  font-weight: 500;
  padding: 0 12px;
  line-height: 28px;
  border-radius: 9999px;
  letter-spacing: 1px;
  font-family: 'Lexend', sans-serif;
  text-transform: uppercase;
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  margin: auto 0;
  height: 28px;
}

.banner-right {
  color: #64748b;
  font-size: 13px;
  font-weight: 400;
  font-family: 'Lexend', sans-serif;
  text-transform: uppercase;
  padding-left: calc(80px + 4px + 16px);
  white-space: nowrap;
  line-height: 40px;
}

/* Hero区域 - 精简版 */
.hero {
  background-color: transparent;
  padding: 6rem 2rem 8rem;
  text-align: center;
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

/* 通透氛围光斑：暖黄(左) + 淡蓝(右)，营造柔和呼吸感 */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}
.hero::before {
  width: 680px;
  height: 680px;
  top: -240px;
  left: -160px;
  background: radial-gradient(circle, rgba(245, 179, 44, 0.24) 0%, rgba(245, 179, 44, 0.08) 30%, rgba(245, 179, 44, 0.02) 55%, transparent 80%);
}
.hero::after {
  width: 720px;
  height: 720px;
  bottom: -320px;
  right: -200px;
  background: radial-gradient(circle, rgba(148, 182, 255, 0.22) 0%, rgba(148, 182, 255, 0.07) 30%, rgba(148, 182, 255, 0.02) 55%, transparent 80%);
}

.hero > * {
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: #111827;
  margin-bottom: 1.5rem;
  font-family: 'Lexend', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero p {
  font-size: 1rem;
  color: #64748b;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.features {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #374151;
  font-size: 1rem;
}

.feature-item svg {
  color: #F5B32C;
  width: 24px;
  height: 24px;
}

/* 搜索区域 - 保留核心粘性，精简冗余!important */
.search-section {
  max-width: 1560px;
  margin: -2rem auto 4rem;
  padding: 0 160px;
  position: sticky;
  top: 24px;
  z-index: 999;
  width: 100%;
  min-height: 72px;
  transform: translateZ(0);
}

.search-container {
  display: flex;
  align-items: center;
  /* 通透玻璃：更透的底 + 更强的模糊饱和度，悬浮时隐约透出下层渐变 */
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(31, 38, 60, 0.04), 0 16px 44px rgba(31, 38, 60, 0.07);
  width: 100%;
  height: 72px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 0;
}

.custom-select-wrapper {
  position: relative;
  width: 180px;
  height: 100%;
  padding: 0 16px;
  border-right: 1px solid rgba(229, 231, 235, 0.5);
  z-index: 100;
  background: transparent;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.custom-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  cursor: pointer;
  color: #374151;
  font-size: 16px;
  background: transparent;
  border: none;
  outline: none;
}

.select-icon {
  width: 24px;
  height: 24px;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.custom-select-wrapper.open .select-icon {
  transform: rotate(180deg);
}

.custom-select-list {
  /* 移出 search-container 后由 JS 根据按钮位置动态定位 */
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  /* 降低不透明度，让 backdrop-filter 的毛玻璃感真正可见 */
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(26px) saturate(1.8);
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 50px rgba(31, 38, 60, 0.12);
  z-index: 9999;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: height 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  padding: 4px 0;
}

.custom-select-list.open {
  height: auto;
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
  transform: translateY(0);
}

/* 下拉选项 - 精简版 */
.select-option {
  padding: 0 16px;
  height: 72px;
  line-height: 72px;
  cursor: pointer;
  color: #374151;
  font-size: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 4px 8px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-icon {
  display: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #374151;
}

.option-text {
  display: inline-block;
}

.custom-select-list.open .select-option {
  opacity: 1;
  transform: translateY(0);
}

.select-option:hover {
  background-color: rgba(243, 244, 246, 0.6);
  color: #F5B32C;
}

.select-option:hover .option-icon {
  color: #F5B32C;
}

.select-option.active {
  color: #F5B32C;
  font-weight: 500;
}

.select-option.active .option-icon {
  color: #F5B32C;
}

/* 搜索输入框 - 精简版 */
.search-input {
  flex: 1;
  padding: 0 20px;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
  height: 100%;
  background: transparent;
  order: 1;
}

input[type="text"] {
  -webkit-appearance: none;
  appearance: none;
}

.search-input::placeholder {
  color: #bcc1cc;
  opacity: 1;
}

.search-icon-wrap {
  display: flex;
  align-items: center;
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.search-input:focus ~ .search-icon-wrap .search-icon svg path,
.search-input:not(:placeholder-shown) ~ .search-icon-wrap .search-icon svg path {
  fill: #F5B32C;
}

/* 图标网格区域 - 精简版 */
.icon-grid-section {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 160px 4rem;
  width: 100%;
}

.icons-inner-container {
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
}

.category-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.category-title {
  font-size: 1rem;
  color: #111827;
  font-weight: 600;
  margin: 2rem 0 1.5rem 0;
  text-align: left;
  width: 100%;
}

/* 图标网格 - 核心样式保留 */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.icon-card {
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid rgba(245, 179, 44, 0.12);
  border-radius: 0.8rem;
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
  margin: 0;
  padding: 10px 0;
}

.icon-card:hover {
  border-color: rgba(245, 179, 44, 0.5);
  transform: scale(1.2);
  box-shadow: 0 18px 40px rgba(31, 38, 60, 0.09), 0 2px 10px rgba(31, 38, 60, 0.05);
  background: rgba(255, 255, 255, 0.85);
  z-index: 10;
}

.icon-svg {
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.4s ease;
  transform-origin: center;
}

.icon-svg svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon-card:hover .icon-svg {
  transform: scale(1.3);
}

.icon-name {
  font-size: 14px;
  color: #afb7c7;
  transform: translateY(10px);
  transition: all 0.4s ease-out;
  position: relative;
  white-space: nowrap;
  opacity: 1;
}

.icon-card:hover .icon-name {
  transform: translateY(-5px);
  opacity: 0;
}

.icon-actions {
  position: absolute;
  bottom: -20px;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

.icon-card:hover .icon-actions {
  bottom: 12px;
  opacity: 1;
}

/* 图标操作按钮 - 精简版 */
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin: 0 2px;
  transform-origin: center;
}

.icon-card:hover .icon-btn {
  transform: scale(0.8);
}

.download-btn {
  background-color: #F5B32C;
  color: #000;
}

.download-btn:hover {
  background-color: #e0a21a;
}

.copy-btn {
  background-color: #e5e7eb;
  color: #374151;
}

.copy-btn:hover {
  background-color: #d1d5db;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: #64748b;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  margin: 2rem auto;
  max-width: 1200px;
}

/* 页脚 - 精简版 */
footer {
  background-color: transparent;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  padding: 2rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

footer .admin-entry-link {
  color: #94a3b8;
  text-decoration: none;
  border-bottom: 1px dotted rgba(245, 179, 44, 0.4);
  transition: color 0.15s ease;
}
footer .admin-entry-link:hover {
  color: #F5B32C;
}

/* 导航链接 - 精简版 */
.nav-links {
  display: none;
  gap: 2rem;
}

.nav-links a {
  color: #64748b;
  text-decoration: none;
}

.nav-links a:hover {
  color: #F5B32C;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* 密码验证弹窗 - 核心优化：高权重选择器，无冗余!important */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: none;
  box-sizing: border-box;
  overflow: hidden;
}

.auth-modal-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

/* 弹窗头部 - 标题+关闭按钮对齐 */
.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
}

.auth-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  background: #fff !important;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 24px 30px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translate(-50%, -60%) scale(0.98);
  transition: all 0.3s ease-out;
}

/* 弹窗动画触发 */
.auth-modal.show .auth-modal-mask {
  opacity: 0.5;
}

.auth-modal.show .auth-modal-content {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 关闭按钮 - 液态玻璃轻样式 */
.auth-close-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f2f4f9;
  color: #64748b;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.auth-close-btn:hover {
  color: #F5B32C;
  background: #f6f7fd;
}

/* 弹窗标题 - 加粗 */
.auth-title {
  font-size: 18px;
  color: #1a2b48;
  margin: 0;
  font-weight: 600;
  font-family: 'Lexend', sans-serif;
  letter-spacing: 1px;
}

/* 弹窗输入框 - 核心：默认聚焦占位符浅灰 + 密码圆点黑色 + 无框 */
.auth-modal-content .auth-input {
  width: 100%;
  height: 44px;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 16px;
  color: #000 !important; /* 强制密码圆点为黑色 */
  margin-bottom: 8px;
  background: #f2f4f9;
  -webkit-appearance: none;
  appearance: none;
  /* 密码框专属：固定掩码样式，继承黑色 */
  -webkit-text-security: disc;
  text-security: disc;
}

/* 终极修复：弹窗输入框 所有状态占位符强制浅灰#9ca3af，聚焦永不黑！全浏览器适配 */
/* 核心：1. 隔离输入框color继承 2. 破解webkit内核聚焦样式锁 3. 全内核前缀 4. 最高权重 */
.auth-modal-content .auth-input {
  /* 新增：占位符文字独立颜色，不继承输入框的#000（密码圆点） */
  --placeholder-color: #9ca3af !important;
}

/* 标准+全内核占位符：默认状态 */
.auth-modal-content .auth-input::placeholder,
.auth-modal-content .auth-input::-webkit-input-placeholder,
.auth-modal-content .auth-input::-moz-placeholder,
.auth-modal-content .auth-input:-ms-input-placeholder,
.auth-modal-content .auth-input:-moz-placeholder {
  color: var(--placeholder-color) !important; /* 用变量隔离，防止继承 */
  opacity: 1 !important;                      /* 强制不透明，浏览器默认会降透明度 */
  font-size: 16px !important;
  font-weight: 400 !important;
  pointer-events: none !important;            /* 彻底阻止浏览器修改占位符样式 */
  transition: all 0.2s ease !important;
}

/* 核心破解：webkit/Chrome/Edge 聚焦状态占位符（专属伪类，普通focus压不住） */
.auth-modal-content .auth-input:focus::-webkit-input-placeholder {
  color: var(--placeholder-color) !important;
  opacity: 0.8 !important; /* 聚焦时轻微降一点透明度，更美观，不想降就设1 */
}

/* 标准+Firefox/IE 聚焦状态占位符 */
.auth-modal-content .auth-input:focus::placeholder,
.auth-modal-content .auth-input:focus::-moz-placeholder,
.auth-modal-content .auth-input:focus:-ms-input-placeholder,
.auth-modal-content .auth-input:focus:-moz-placeholder {
  color: var(--placeholder-color) !important;
  opacity: 0.8 !important;
}

/* 兜底：输入框有内容时隐藏占位符，防止异常显示 */
.auth-modal-content .auth-input:not(:focus):not(:placeholder-shown)::placeholder {
  opacity: 0 !important;
}

/* 弹窗错误提示 */
.auth-error {
  color: #dc3545;
  font-size: 14px;
  margin: 0 0 16px 0;
  height: 16px;
  line-height: 16px;
  text-align: center;
}

/* 7天免密 */
.auth-remember {
  display: flex;
  align-items: center;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 16px;
  cursor: pointer;
}

.auth-remember input {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #F5B32C;
}

/* 验证按钮：黄底黑字 + 鼠标跟随【纯正圆】扩散动画（hover→黑底黄字）最终版 */
.auth-modal-content .auth-submit-btn {
  width: 100%;
  height: 48px;
  background: #F5B32C; /* 初始黄底 */
  color: #000; /* 初始黑字 */
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Lexend', sans-serif;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(245, 179, 44, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  user-select: none;
  position: relative; /* 伪元素定位用 */
  overflow: hidden; /* 隐藏扩散超出部分 */
  z-index: 1;
  --x: 50%; /* 鼠标X坐标（JS赋值） */
  --y: 50%; /* 鼠标Y坐标（JS赋值） */
  /* 文字/位移/阴影过渡，与扩散动画同步 */
  transition: color 0.9s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

/* 扩散层：伪元素实现【纯正圆】核心：固定直径，基于对角线计算，永不拉伸 */
.auth-modal-content .auth-submit-btn::before {
  content: '';
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 0;
  height: 0;
  background: #000; /* 扩散黑色正圆 */
  border-radius: 50%; /* 强制正圆，关键属性 */
  z-index: -1;
  /* 核心：精准过渡宽高，动画丝滑，与文字变色同步 */
  transition: width 0.4s cubic-bezier(0.3, 0, 0.2, 1), height 0.4s cubic-bezier(0.3, 0, 0.2, 1);
  transform: translate(-50%, -50%); /* 让正圆严格以鼠标落点为中心，不偏移 */
  will-change: width, height; /* 新增这1行，保证移出动画丝滑 */
}

/* hover状态：文字变黄 + 保留上移/阴影加深 */
.auth-modal-content .auth-submit-btn:hover {
  color: #F5B32C; /* 文字变黄 */
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 179, 44, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
/* 核心修复：hover时扩散层设【固定大直径正圆】，覆盖整个矩形按钮，永不椭圆 */
.auth-modal-content .auth-submit-btn:hover::before {
  width: 600px; /* 固定正圆直径，足够覆盖按钮（适配弹窗380px宽度） */
  height: 600px; /* 宽高相等 = 纯正圆，关键！ */
}

/* 点击active状态：复位所有效果，正圆收缩消失 */
.auth-modal-content .auth-submit-btn:active {
  transform: translateY(0);
  color: #000; /* 点击文字临时回黑 */
  box-shadow: 0 2px 8px rgba(245, 179, 44, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.auth-modal-content .auth-submit-btn:active::before {
  width: 0;
  height: 0; /* 点击正圆瞬间收缩 */
}

/* 手机端适配：按钮高度变44px，正圆动画同步，无需改直径（400px足够覆盖） */
@media (max-width: 768px) {
  .auth-modal-content .auth-submit-btn {
    height: 44px;
  }
}

/* 授权后显示LOGO/OMC表情分类（修正：OMC→OMC表情，匹配Python生成的分类名） */
.select-option[data-cat="LOGO"],
.select-option[data-cat="OMC表情"], /* 修正1 */
[data-cat="LOGO"],
[data-cat="OMC表情"] { /* 修正2 */
  display: none;
}

body.auth-ok .select-option[data-cat="LOGO"],
body.auth-ok .select-option[data-cat="OMC表情"], /* 修正3 */
body.auth-ok [data-cat="LOGO"],
body.auth-ok [data-cat="OMC表情"] { /* 修正4 */
  display: block;
}

/* 手机端适配 - 全精简版，保留核心效果 */
@media (max-width: 768px) {
  /* 头部 */
  header {
    padding: 0.8rem 1rem;
  }
  .header-container {
    padding: 0 20px;
  }
  .logo {
    font-size: 0.6rem;
    padding-left: 34px;
  }
  .nav-links {
    gap: 1rem;
  }
  .auth-btn {
    padding: 2px;
  }

  /* 标题横幅 */
  .title-banner {
    width: 68%;
    margin: 0 auto 16px;
    overflow: visible;
    position: relative;
  }
  .banner-right-wrap {
    height: 36px;
    width: 100%;
    transform: scale(0.7);
    transform-origin: left center;
    width: auto;
    min-width: 100%;
  }
  .banner-left {
    font-size: 12px;
    padding: 0 10px;
    height: 28px;
    line-height: 28px;
    left: 4px;
    top: 4px;
    bottom: 4px;
    white-space: nowrap;
    z-index: 2;
  }
  .banner-right {
    font-size: 12px;
    line-height: 36px;
    padding-left: calc(70px + 4px + 10px);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    width: auto;
  }
  .title-banner svg, .title-banner i {
    width: 18px;
    height: 18px;
    margin-right: 4px;
  }

  /* Hero */
  .hero {
    padding: 3rem 1rem 4rem;
    min-height: 240px;
  }
  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  .hero p {
    font-size: 0.9rem;
    max-width: 100%;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
  }
  .features {
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .feature-item {
    font-size: 0.9rem;
    gap: 0.5rem;
  }
  .feature-item svg {
    width: 20px;
    height: 20px;
  }

  /* 搜索区域 */
  .search-section {
    padding: 0 20px;
    margin: -1.5rem auto 2rem;
    top: 12px;
  }
  .search-container {
    height: 60px;
    justify-content: center;
  }
  .custom-select-wrapper {
    display: none;
    width: 120px;
    padding: 0 12px;
  }
  .custom-select-btn {
    font-size: 14px;
  }
  .search-input {
    font-size: 14px;
    padding: 0 20px;
    width: 100%;
  }
  .search-icon {
    margin: 0 16px;
    width: 20px;
    height: 20px;
  }
  .select-option {
    height: 60px;
    line-height: 60px;
    font-size: 14px;
  }
  .select-option[data-cat="全部图标"] .option-icon {
    display: block;
  }
  .select-option[data-cat="全部图标"] .option-text {
    display: none;
  }

  /* 图标网格 */
  .icon-grid-section {
    padding: 0 8px 2rem;
  }
  .icons-inner-container {
    max-width: 100%;
  }
  .category-title {
    font-size: 0.9rem;
    margin: 1.5rem 0 1rem 0;
    padding-left: 10px;
  }
  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 4px;
  }
  .icon-card {
    aspect-ratio: 1/1;
    width: 100%;
    max-width: 80px;
    height: auto;
    padding: 8px 0;
    margin: 0 auto;
  }
  .icon-svg {
    width: 20px;
    height: 20px;
    margin-bottom: 6px;
  }
  .icon-name {
    font-size: 11px;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .icon-actions {
    bottom: -12px;
  }
  .icon-card:hover .icon-actions {
    bottom: 6px;
  }
  .icon-btn {
    width: 28px;
    height: 28px;
  }
  .icon-btn svg {
    width: 14px;
    height: 14px;
  }

  /* 空状态 */
  .empty-state {
    padding: 1.5rem 1rem;
    font-size: 1rem;
  }

  /* 页脚 */
  footer {
    padding: 1.5rem 1rem;
    font-size: 0.8rem;
  }

  /* 弹窗 */
  .auth-modal-content {
    transform: translate(-50%, -50%);
    max-width: none;
    margin: 0 20px;
    padding: 20px 20px 24px;
  }
  .auth-close-btn {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }
  .auth-submit-btn {
    height: 44px;
  }
}

/* 👇 新增：7天无需重复验证 - SVG复选框样式 */
/* 隐藏原生checkbox（保留功能，仅隐藏视觉） */
.auth-remember .remember-checkbox {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
/* 复选框基础布局：SVG+文字水平对齐，适配弹窗 */
.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* SVG和文字的间距，和整体协调 */
  cursor: pointer;
  user-select: none;
  position: relative;
  margin: 12px 0 20px; /* 上下间距，适配弹窗内输入框/按钮的布局 */
  font-size: 14px; /* 和弹窗文字尺寸一致 */
}
/* 两个SVG统一样式：尺寸防变形，和锁形/关闭按钮协调 */
.auth-remember .uncheck-svg,
.auth-remember .check-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0; /* 防止被文字压缩 */
  transition: all 0.2s ease; /* 切换轻微过渡，更丝滑 */
}
/* 初始默认状态：显示黑色矩形，隐藏黄色对钩 */
.auth-remember .check-svg {
  display: none;
}
/* 原生选中状态：显示黄色对钩，隐藏黑色矩形（无额外JS） */
.auth-remember .remember-checkbox:checked ~ .check-svg {
  display: block;
}
.auth-remember .remember-checkbox:checked ~ .uncheck-svg {
  display: none;
}
/* 可选优化：鼠标悬浮SVG，轻微变暗，提升交互感 */
.auth-remember:hover .uncheck-svg,
.auth-remember:hover .check-svg {
  opacity: 0.9;
}
/* 新增：内部资源验证 成功/失败 Toast提示（全局居中，和现有提示样式统一） */
.auth-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(10px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  z-index: 999999; /* 比弹窗层级更高，确保不被遮挡 */
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid transparent;
  white-space: nowrap; /* 防止文字换行 */
}
/* 成功Toast：主题黄边框+文字，匹配项目主色 */
.auth-toast.success {
  border-color: rgba(245, 179, 44, 0.3);
  color: #F5B32C;
}
/* 失败Toast：红色边框+文字，和弹窗错误提示配色一致 */
.auth-toast.error {
  border-color: rgba(220, 53, 69, 0.3);
  color: #dc3545;
}
/* Toast淡入动画 */
.auth-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

/* ================= 图标放大预览弹窗 ================= */
/* 图标卡片可点击打开预览 */
.icon-card {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.icon-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000; /* 高于密码弹窗(99999) */
  display: none;
  overflow: hidden;
}

.icon-preview-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.42);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* 弹窗主体 - 实白底，和左侧图标区明确分开 */
.icon-preview-content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(92vw, 620px);
  background: #fff;
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(17, 24, 39, 0.18);
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.96);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 弹窗动画触发 */
.icon-preview-modal.show .icon-preview-mask {
  opacity: 1;
}
.icon-preview-modal.show .icon-preview-content {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 关闭按钮 */
.icon-preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  background: #f2f4f9;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 3;
}
.icon-preview-close:hover {
  color: #F5B32C;
  background: #f6f7fd;
}

/* 内容布局：左侧大图画板 + 右侧信息/操作区 */
.icon-preview-body {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* 大图画板：比弹窗白底明显深一点的浅灰，确保不融在一起 */
.icon-preview-artboard {
  flex: 0 0 auto;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eef1f6;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

/* 放大展示的图标本身 */
.icon-preview-svg {
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.icon-preview-svg svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* 右侧信息区 */
.icon-preview-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.icon-preview-name {
  font-size: 20px;
  color: #1a2b48;
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
  word-break: break-all;
}

.icon-preview-cat {
  font-size: 12px;
  color: #64748b;
  background: #f2f4f9;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-block;
}

/* 操作按钮：下载/复制 */
.icon-preview-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.icon-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.icon-preview-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.icon-preview-btn:active {
  transform: scale(0.96);
}

.preview-download-btn {
  background-color: #F5B32C;
  color: #000;
  box-shadow: 0 4px 12px rgba(245, 179, 44, 0.25);
}
.preview-download-btn:hover {
  background-color: #e0a21a;
  transform: translateY(-1px);
}

.preview-copy-btn {
  background-color: #e5e7eb;
  color: #374151;
}
.preview-copy-btn:hover {
  background-color: #d1d5db;
  transform: translateY(-1px);
}

.icon-preview-tip {
  font-size: 12px;
  color: #b0b8c9;
  margin: 4px 0 0 0;
  line-height: 1.6;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .icon-preview-content {
    width: calc(100vw - 28px);
    max-width: 400px;
    padding: 18px;
  }
  .icon-preview-body {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .icon-preview-artboard {
    width: min(100%, 250px);
    height: auto;
    aspect-ratio: 1 / 1;
    background-color: #eef1f6;
  }
  .icon-preview-svg {
    width: 62%;
    height: 62%;
    max-width: 170px;
    max-height: 170px;
  }
  .icon-preview-meta {
    align-items: center;
    text-align: center;
  }
  .icon-preview-actions {
    justify-content: center;
  }
  .icon-preview-name {
    font-size: 17px;
  }
}