:root {
  --primary-color: #00e5ff;
  --secondary-color: #0099ff;
  --success-color: #00c853;
  --warning-color: #ffab00;
  --danger-color: #ff4466;
  --dark-bg: #050a1a;
  --dark-bg-gradient: linear-gradient(135deg, #050a1a 0%, #0a1430 50%, #08122b 100%);
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-hover-bg: rgba(255, 255, 255, 0.12);
  --blur: blur(20px);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 50px rgba(0, 0, 0, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  touch-action: manipulation;
}

body {
  background: var(--dark-bg-gradient);
  color: #ffffff;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ========== 防红域名跳转加载页 ========== */
.domain-check-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.domain-check-wrapper.active {
  opacity: 1;
  visibility: visible;
}

.domain-check-container {
  text-align: center;
  padding: 50px;
  max-width: 450px;
  position: relative;
}

.domain-check-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

.domain-check-logo {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.domain-check-logo i {
  font-size: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logoSpin 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.5));
}

@keyframes logoSpin {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}

.domain-check-orbits {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(0, 229, 255, 0.2);
  border-radius: 50%;
  animation: orbitRotate 10s linear infinite;
}

.orbit-ring:nth-child(1) {
  width: 120px;
  height: 120px;
  animation-duration: 8s;
}

.orbit-ring:nth-child(2) {
  width: 150px;
  height: 150px;
  animation-duration: 12s;
  animation-direction: reverse;
}

.orbit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-color);
}

.orbit-ring:nth-child(1) .orbit-dot {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-ring:nth-child(2) .orbit-dot {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes orbitRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.domain-check-text {
  font-size: 18px;
  color: #c0c8e0;
  margin-bottom: 30px;
  font-weight: 500;
  letter-spacing: 0.5px;
  min-height: 27px;
  transition: all 0.3s ease;
}

.domain-check-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.domain-check-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  animation: barShimmer 2s linear infinite;
}

@keyframes barShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.domain-check-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: barGloss 1.5s ease-in-out infinite;
}

@keyframes barGloss {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.domain-check-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.domain-check-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0.4;
  animation: dotPulse 1.4s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.domain-check-dots span:nth-child(1) { animation-delay: -0.32s; }
.domain-check-dots span:nth-child(2) { animation-delay: -0.16s; }
.domain-check-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 20px rgba(0, 229, 255, 0.6); }
}

.domain-check-status {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}

.status-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  animation: statusBlink 1s ease-in-out infinite;
}

.status-icon.error {
  background: var(--danger-color);
}

.status-icon.success {
  background: var(--success-color);
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ========== 微信内跳转引导层 ========== */
.wechat-guide-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wechat-guide-overlay.active {
  display: block;
  opacity: 1;
}

.wechat-guide-container {
  position: relative;
  padding: 40px 20px;
}

.wechat-guide-arrow {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 60px;
  color: var(--primary-color);
  animation: arrowBounce 1s infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(-15px) rotate(45deg); }
}

.wechat-guide-content {
  text-align: center;
  margin-top: 120px;
}

.wechat-guide-content > i {
  font-size: 80px;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.wechat-guide-content h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #fff;
}

.wechat-guide-content p {
  font-size: 18px;
  color: #c0c8e0;
  margin-bottom: 35px;
}

.wechat-guide-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.wechat-guide-steps .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.wechat-guide-steps .step-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--dark-bg);
}

.wechat-guide-steps .step span:last-child {
  color: #c0c8e0;
  font-size: 16px;
}

.wechat-guide-close {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.wechat-guide-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ========== 页面加载动画 ========== */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
  width: 50px;
  height: 50px;
  border: 4px solid var(--card-bg);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========== 粒子背景 ========== */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0;
  background: rgba(10, 20, 45, 0.95);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(0, 200, 255, 0.2);
  z-index: 999;
  box-shadow: 0 4px 30px rgba(0, 150, 255, 0.1);
  transition: var(--transition);
}

.navbar-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 12px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 180, 255, 0.1);
  border: 1px solid rgba(0, 180, 255, 0.2);
  color: var(--primary-color);
  cursor: pointer;
  font-size: 22px;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  color: #c0c8e0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  padding: 10px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a:hover {
  background: rgba(0, 180, 255, 0.2);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 180, 255, 0.1);
  border: 1px solid rgba(0, 180, 255, 0.2);
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.icon-btn:hover {
  background: rgba(0, 180, 255, 0.3);
  transform: translateY(-2px);
}

/* ========== 移动端快速操作栏 ========== */
.mobile-quick-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 20, 45, 0.98);
  backdrop-filter: var(--blur);
  border-top: 1px solid rgba(0, 200, 255, 0.2);
  padding: 10px 20px;
  display: none;
  justify-content: space-around;
  z-index: 998;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #c0c8e0;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 12px;
  transition: var(--transition);
  font-size: 12px;
}

.quick-action-btn i {
  font-size: 22px;
}

.quick-action-btn:hover,
.quick-action-btn:active {
  background: rgba(0, 180, 255, 0.15);
  color: var(--primary-color);
}

.quick-action-btn.primary {
  color: var(--primary-color);
}

/* ========== 轮播图 ========== */
.carousel {
  margin-top: 70px;
  width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
}

.carousel-item {
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(5, 10, 26, 0.7), rgba(10, 20, 48, 0.5));
}

.carousel-item.active {
  opacity: 1;
}

.carousel-content {
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: var(--blur);
  padding: 45px 60px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to { transform: translateY(0); opacity: 1; }
}

.carousel-content h2 {
  font-size: 42px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #fff, var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.carousel-content p {
  font-size: 18px;
  color: #c8d4f0;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 10;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: rgba(0, 180, 255, 0.3);
  border-color: var(--primary-color);
}

.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background: var(--primary-color);
  width: 36px;
  border-radius: 6px;
}

/* ========== 通用板块 ========== */
.section {
  padding: 60px 6%;
  max-width: 1800px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.section-title {
  font-size: 32px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
}

.section-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 18px;
  min-width: 280px;
  flex: 1;
}

.search-box i {
  color: var(--primary-color);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  width: 100%;
}

.search-box input::placeholder {
  color: #8899bb;
}

.category-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 18px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.category-select:hover {
  border-color: var(--primary-color);
}

.category-select option {
  background: #0a1430;
  color: #fff;
}

/* ========== 按钮组 ========== */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.tech-btn {
  padding: 12px 26px;
  background: rgba(0, 180, 255, 0.1);
  border: 1px solid rgba(0, 180, 255, 0.3);
  border-radius: 12px;
  color: var(--primary-color);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-btn:hover {
  background: rgba(0, 180, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 180, 255, 0.25);
}

.tech-btn.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: #050a1a;
}

.tech-btn.primary:hover {
  opacity: 0.9;
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.35);
}

.tech-btn.warning {
  border-color: var(--warning-color);
  color: var(--warning-color);
  background: rgba(255, 171, 0, 0.1);
}

.tech-btn.warning:hover {
  background: rgba(255, 171, 0, 0.25);
  box-shadow: 0 8px 25px rgba(255, 171, 0, 0.25);
}

.tech-btn.danger {
  border-color: var(--danger-color);
  color: var(--danger-color);
  background: rgba(255, 68, 102, 0.1);
}

.tech-btn.danger:hover {
  background: rgba(255, 68, 102, 0.25);
  box-shadow: 0 8px 25px rgba(255, 68, 102, 0.25);
}

/* ========== 网格容器 ========== */
.grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 100%;
}

.card {
  background: var(--card-bg);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 200, 255, 0.4);
  background: var(--card-hover-bg);
}

.card.delete-mode {
  animation: shake 0.5s infinite;
  border-color: var(--danger-color);
}

.card.edit-mode {
  border-color: var(--warning-color);
}

.card.edit-mode::after {
  content: '\f044';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--warning-color);
  font-size: 14px;
}

@keyframes shake {
  0%,100%{transform:translateX(0);}
  25%{transform:translateX(-4px);}
  75%{transform:translateX(4px);}
}

.card-icon {
  font-size: 48px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-title {
  font-size: 16px;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 600;
}

.card-desc {
  font-size: 13px;
  color: #99a8c8;
  line-height: 1.5;
}

.card-category {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  background: rgba(0, 180, 255, 0.15);
  border-radius: 20px;
  font-size: 12px;
  color: var(--primary-color);
}

/* ========== 弹窗 ========== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: rgba(10, 20, 45, 0.98);
  border: 1px solid rgba(0, 200, 255, 0.25);
  border-radius: 20px;
  padding: 0;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-box.large {
  max-width: 700px;
}

.modal.active .modal-box {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  background: rgba(10, 20, 45, 0.98);
  z-index: 1;
}

.modal-header h3 {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 700;
}

.close-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #99a8c8;
  cursor: pointer;
  font-size: 20px;
  transition: var(--transition);
  flex-shrink: 0;
}

.close-btn:hover {
  background: rgba(255, 68, 102, 0.2);
  color: var(--danger-color);
}

form, .settings-content, .export-options, .domain-settings-content {
  padding: 30px;
}

.form-item {
  margin-bottom: 22px;
}

.form-item label {
  display: block;
  margin-bottom: 8px;
  color: #c0c8e0;
  font-size: 14px;
  font-weight: 500;
}

.form-item input, .form-item textarea, .form-item select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  outline: none;
  font-size: 15px;
  transition: var(--transition);
}

.form-item input:focus, .form-item textarea:focus, .form-item select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.form-item textarea {
  resize: vertical;
  min-height: 80px;
}

.icon-selector {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icon-selector input {
  flex: 1;
}

.icon-preview {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 180, 255, 0.15);
  border: 1px solid rgba(0, 180, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* ========== 统计卡片 ========== */
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.stat-card {
  background: var(--card-bg);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius);
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 153, 255, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.stat-info h3 {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-info p {
  color: #8899bb;
  font-size: 14px;
  margin-top: 4px;
}

/* ========== 关于我们 ========== */
.about-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.about-card {
  background: var(--card-bg);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 200, 255, 0.4);
}

.about-card i {
  font-size: 56px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #fff;
}

.about-card p {
  color: #99a8c8;
  font-size: 15px;
  line-height: 1.6;
}

/* ========== 设置项 ========== */
.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 15px;
}

.setting-item:last-of-type {
  border-bottom: none;
}

.setting-item label {
  color: #c0c8e0;
  font-size: 15px;
}

.setting-item select, .setting-item input[type="number"] {
  width: 140px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  outline: none;
}

.device-info {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  background: rgba(0, 180, 255, 0.1);
  border-radius: 8px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: 0.3s;
  border-radius: 28px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* ========== 域名设置预览 ========== */
.domain-list-preview {
  margin-top: 10px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  max-height: 150px;
  overflow-y: auto;
  font-size: 13px;
}

.domain-list-preview:empty::before {
  content: '暂无域名';
  color: #667799;
}

/* ========== 导出选项 ========== */
.export-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ========== Toast提示 ========== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(10, 20, 45, 0.98);
  backdrop-filter: var(--blur);
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid rgba(0, 200, 255, 0.3);
  color: #fff;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 90%;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-color: var(--success-color);
}

.toast.error {
  border-color: var(--danger-color);
}

/* ========== 底部版权 ========== */
.footer {
  text-align: center;
  padding: 35px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(0, 200, 255, 0.1);
  color: #7788aa;
  font-size: 14px;
}

/* ========== 响应式设计 - 桌面端 (1400px以下) ========== */
@media (max-width: 1400px) {
  .grid-container { grid-template-columns: repeat(4, 1fr); }
  .stats-container { grid-template-columns: repeat(2, 1fr); }
}

/* ========== 响应式设计 - 笔记本/平板横屏 (1100px以下) ========== */
@media (max-width: 1100px) {
  .grid-container { grid-template-columns: repeat(3, 1fr); }
  .about-content { grid-template-columns: repeat(2, 1fr); }
  .carousel { height: 420px; }
  .carousel-content { padding: 35px 50px; }
  .carousel-content h2 { font-size: 36px; }
}

/* ========== 响应式设计 - 平板/大屏手机 (850px以下) ========== */
@media (max-width: 850px) {
  body { padding-bottom: 90px; }
  
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 20, 45, 0.98);
    backdrop-filter: var(--blur);
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 200, 255, 0.2);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu a {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 20px;
  }
  
  .nav-text { display: inline; }
  
  .mobile-quick-actions { display: flex; }
  
  .grid-container { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  
  .carousel { height: 380px; }
  .carousel-content { padding: 30px 40px; }
  .carousel-content h2 { font-size: 30px; }
  .carousel-content p { font-size: 16px; }
  .carousel-controls { padding: 0 15px; }
  .carousel-btn { width: 44px; height: 44px; font-size: 18px; }
  
  .section-header { flex-direction: column; align-items: stretch; }
  .section-actions { width: 100%; }
  .search-box { min-width: auto; width: 100%; }
  .category-select { width: 100%; }
  
  .section-title { font-size: 26px; }
  
  .toast { bottom: 110px; }
}

/* ========== 响应式设计 - 手机 (550px以下) ========== */
@media (max-width: 550px) {
  .navbar-inner { padding: 10px 4%; }
  .logo { font-size: 20px; }
  
  .grid-container { grid-template-columns: repeat(1, 1fr); gap: 12px; }
  .card { min-height: 140px; padding: 24px 16px; }
  .card-icon { font-size: 42px; }
  .card-title { font-size: 15px; }
  
  .stats-container { grid-template-columns: 1fr; gap: 15px; }
  .about-content { grid-template-columns: 1fr; gap: 15px; }
  
  .carousel { height: 320px; margin-top: 65px; }
  .carousel-content { padding: 25px 30px; }
  .carousel-content h2 { font-size: 24px; }
  .carousel-content p { font-size: 14px; }
  
  .section { padding: 45px 4%; }
  .section-title { font-size: 22px; }
  .section-title i { font-size: 24px; }
  
  .btn-group { gap: 10px; }
  .tech-btn { padding: 10px 18px; font-size: 14px; }
  
  .modal-box { max-width: 100%; border-radius: 16px 16px 0 0; }
  form, .settings-content, .export-options, .domain-settings-content { padding: 20px; }
  .modal-header { padding: 18px 20px; }
  
  .wechat-guide-content h3 { font-size: 24px; }
  .wechat-guide-content p { font-size: 16px; }
  .wechat-guide-steps { gap: 25px; }
}

/* ========== 响应式设计 - 小屏手机 (400px以下) ========== */
@media (max-width: 400px) {
  .logo span { display: none; }
  .quick-action-btn { padding: 8px 12px; }
}

/* ========== 车机端专用适配 (1920x720等横屏) ========== */
@media (min-width: 1000px) and (max-height: 800px) and (min-aspect-ratio: 16/9) {
  .carousel { height: 350px; }
  .section { padding: 40px 6%; }
  .grid-container { grid-template-columns: repeat(6, 1fr); gap: 15px; }
  .card { min-height: 130px; padding: 20px 15px; }
  .card-icon { font-size: 40px; margin-bottom: 12px; }
  .card-title { font-size: 14px; }
  .navbar-inner { padding: 10px 6%; }
}

/* ========== 横屏模式优化 ========== */
@media (max-height: 500px) and (orientation: landscape) {
  .mobile-quick-actions { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .carousel { height: 250px; }
  .section { padding: 30px 6%; }
}

/* ========== 管理员认证样式 ========== */
.admin-status {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 200, 100, 0.15);
  border: 1px solid var(--success-color);
  border-radius: 20px;
  color: var(--success-color);
  font-size: 13px;
  font-weight: 500;
  animation: adminFadeIn 0.3s ease;
}

@keyframes adminFadeIn {
  from { opacity: 0; transform: translateY(-50%) translateX(20px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.admin-login-content {
  padding: 35px;
  text-align: center;
}

.admin-bind-section,
.admin-login-section,
.admin-authenticated-section {
  animation: adminFadeIn 0.4s ease;
}

.admin-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 153, 255, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--primary-color);
  border: 2px solid rgba(0, 229, 255, 0.3);
}

.admin-icon.success {
  background: linear-gradient(135deg, rgba(0, 200, 83, 0.2), rgba(0, 150, 100, 0.2));
  border-color: var(--success-color);
  color: var(--success-color);
}

.admin-desc {
  color: #c0c8e0;
  font-size: 15px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.qr-container {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 25px;
  display: inline-block;
  box-shadow: var(--shadow-md);
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #667799;
  gap: 15px;
}

.qr-placeholder i {
  font-size: 60px;
  color: #99a8c8;
}

.qr-placeholder span {
  font-size: 13px;
  color: #667799;
}

.qr-loading {
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #667799;
  gap: 15px;
}

.qr-loading i {
  font-size: 40px;
  color: var(--primary-color);
}

.qr-loading span {
  font-size: 13px;
  color: #667799;
}

.qr-image {
  width: 200px;
  height: 200px;
  display: block;
}

.admin-hint {
  font-size: 13px;
  color: #667799;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.admin-hint i {
  color: var(--primary-color);
}

.otp-input-container {
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
}

.otp-input {
  width: 220px;
  height: 60px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 15px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(0, 229, 255, 0.3);
  border-radius: 12px;
  color: var(--primary-color);
  outline: none;
  transition: var(--transition);
}

.otp-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.15);
}

.otp-input::placeholder {
  color: rgba(0, 229, 255, 0.3);
  letter-spacing: 10px;
}

.otp-timer {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  color: #667799;
  font-size: 14px;
}

.otp-timer.warning {
  color: var(--warning-color);
  animation: timerPulse 1s ease infinite;
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.admin-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
}

.admin-info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  color: #c0c8e0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-info-item:last-child {
  border-bottom: none;
}

.admin-info-item i {
  color: var(--primary-color);
  margin-right: 10px;
}

.admin-info-item span {
  color: var(--primary-color);
  font-weight: 600;
}

.admin-required-content {
  padding: 40px 30px;
  text-align: center;
}

.admin-required-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: rgba(255, 171, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--warning-color);
}

.admin-required-content p {
  color: #c0c8e0;
  font-size: 16px;
  margin-bottom: 10px;
}

.admin-required-hint {
  color: #667799;
  font-size: 14px;
  margin-bottom: 30px;
}

.modal-box.small {
  max-width: 400px;
}

/* ========== 响应式设计 - 管理员界面 ========== */
@media (max-width: 550px) {
  .admin-login-content {
    padding: 25px 20px;
  }
  
  .qr-container {
    padding: 15px;
  }
  
  .qr-placeholder,
  .qr-image {
    width: 180px;
    height: 180px;
  }
  
  .qr-placeholder i {
    font-size: 50px;
  }
  
  .otp-input {
    width: 180px;
    height: 50px;
    font-size: 26px;
    letter-spacing: 10px;
  }
  
  .otp-timer {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 10px;
  }
}
