/*
 * 海角社区视频解析系统 - 主样式文件
 * 现代APP风格UI设计 - 优化版
 * 使用统一的主题变量系统
 */

/* 引入主题变量 */
@import url('themes.css');

/* ===== 布局系统 ===== */

/* 容器 - 现代化布局 */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* 全宽内容区域 */
.full-width-content {
  margin-top: var(--spacing-2xl);
  position: relative;
}

/* 主布局网格 */
.main-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--spacing-2xl);
  align-items: start;
  margin-top: var(--spacing-lg);
}

/* 内容区域 */
.content-area {
  min-width: 0; /* 防止内容溢出 */
}

/* 侧边栏区域 */
.sidebar-area {
  position: sticky;
  top: calc(var(--header-height) + var(--spacing-lg));
  max-height: calc(100vh - var(--header-height) - var(--spacing-2xl));
  overflow-y: auto;
}

/* 响应式布局调整 */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .sidebar-area {
    position: static;
    max-height: none;
    overflow-y: visible;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  .full-width-content {
    margin-top: var(--spacing-lg);
  }

  .sidebar-area {
    display: none; /* 移动端隐藏侧边栏 */
  }
}

.full-width-content::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* PC端网格布局 */
@media (min-width: 992px) {
  .main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
    margin-bottom: 32px;
  }

  .content-area {
    min-height: 400px;
  }

  .sidebar-area {
    position: sticky;
    top: calc(var(--header-height) + 32px);
  }

  /* PC端全宽内容使用网格布局 */
  .full-width-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
  }

  /* VIP特权和使用说明放在左侧 */
  .full-width-content .app-card:nth-child(1),
  .full-width-content .app-card:nth-child(2) {
    grid-column: 1;
  }

  /* FAQ放在右侧 */
  .full-width-content .app-card:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

/* ===== 头部导航 - 现代化设计 ===== */
.app-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-navbar);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition-base);
  height: var(--header-height);
}

/* 深色模式头部 */
[data-theme="dark"] .app-header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-color);
}

.app-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .app-header.scrolled {
  background: rgba(15, 23, 42, 0.98);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Logo样式 - 现代化 */
.app-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-base);
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.app-logo:hover {
  transform: scale(1.02);
  color: var(--primary-color);
}

.logo-img {
  height: 40px;
  width: 40px;
  margin-right: var(--spacing-sm);
  border-radius: var(--radius-md);
  object-fit: cover;
}

.logo-text {
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.logo-img {
  height: 40px;
  margin-right: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 搜索框 - 现代化设计 */
.search-container {
  flex: 1;
  max-width: 600px;
  margin: 0 32px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  fill: var(--text-tertiary);
  z-index: 1;
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 120px 0 48px;
  border-radius: 24px;
  border: 2px solid transparent;
  background: rgba(248, 250, 252, 0.8);
  font-size: 15px;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
  transform: translateY(-1px);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-btn {
  position: absolute;
  right: 4px;
  height: 40px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(67, 97, 238, 0.4);
}

/* 主导航 - 现代化设计 */
.app-nav {
  margin-right: 24px;
}

.app-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.app-nav-item {
  position: relative;
}

.app-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  color: var(--text-secondary);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.app-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.app-nav-link:hover::before {
  opacity: 1;
}

.app-nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.app-nav-link.active {
  color: var(--primary-color);
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.1));
  box-shadow: 0 2px 8px rgba(67, 97, 238, 0.2);
}

.app-nav-svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
  z-index: 1;
}

.app-nav-link:hover .app-nav-svg {
  transform: scale(1.1);
}

.app-nav-label {
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}

/* 用户菜单 */
.user-menu {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 240px;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 100;
  overflow: hidden;
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  padding: 15px;
  border-bottom: 1px solid var(--border-light);
}

.user-dropdown-name {
  font-weight: 600;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.vip-badge {
  display: inline-block;
  background: var(--bg-gradient);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  margin-left: 8px;
}

.user-dropdown-email {
  font-size: 13px;
  color: var(--text-tertiary);
}

.user-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.user-dropdown-item {
  display: block;
}

.user-dropdown-link {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: var(--text-primary);
  transition: background-color 0.2s ease;
}

.user-dropdown-link:hover {
  background-color: var(--state-hover);
  color: var(--text-primary);
}

.user-dropdown-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  fill: currentColor;
}

.user-dropdown-divider {
  height: 1px;
  background-color: var(--border-light);
  margin: 5px 0;
}

/* Header Actions - 主题切换和用户菜单容器 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 主题切换按钮 */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: rgba(248, 250, 252, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: rgba(67, 97, 238, 0.1);
  border-color: rgba(67, 97, 238, 0.2);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle.rotate {
  animation: themeToggleRotate 0.5s ease-in-out;
}

@keyframes themeToggleRotate {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg); }
}

.theme-toggle-icon {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  transition: all 0.3s ease;
}

.theme-toggle:hover .theme-toggle-icon {
  fill: var(--primary-color);
}

/* 主题图标显示控制 */
[data-theme="light"] #dark-icon,
[data-theme="dark"] #light-icon {
  display: none;
}

[data-theme="light"] #light-icon,
[data-theme="dark"] #dark-icon {
  display: block;
}

/* 用户菜单容器 */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

/* 认证按钮 */
.auth-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 用户头像和菜单按钮 */
.user-menu-btn {
  cursor: pointer;
  position: relative;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.user-avatar:hover {
  transform: scale(1.05);
  border-color: rgba(67, 97, 238, 0.3);
  box-shadow: 0 4px 16px rgba(67, 97, 238, 0.2);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* 用户下拉菜单 */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.user-menu:hover .user-dropdown,
.user-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  padding: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.user-dropdown-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.user-dropdown-email {
  font-size: 13px;
  color: var(--text-tertiary);
}

.user-dropdown-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.user-dropdown-item {
  margin: 0;
}

.user-dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.user-dropdown-link:hover {
  background: rgba(67, 97, 238, 0.05);
  color: var(--primary-color);
}

.user-dropdown-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.7;
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 8px 0;
}

/* ===== 按钮组件系统 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  cursor: pointer;
  transition: var(--transition-base);
  border: 2px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
}

.btn:focus {
  outline: 2px solid var(--state-focus);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* 按钮尺寸 */
.btn-xs {
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-xs);
  border-radius: var(--radius-sm);
}

.btn-sm {
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-xl);
}

/* 主要按钮 */
.btn-primary {
  background: var(--bg-gradient);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--bg-gradient-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

/* 次要按钮 */
.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-card);
  border-color: var(--border-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* 轮廓按钮 */
.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-transparent);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

/* 幽灵按钮 */
.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--state-hover);
  color: var(--text-primary);
}

/* 危险按钮 */
.btn-danger {
  background-color: var(--danger-color);
  color: var(--text-white);
}

.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* 成功按钮 */
.btn-success {
  background-color: var(--success-color);
  color: var(--text-white);
}

.btn-success:hover {
  background-color: #16a34a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* 按钮图标 */
.btn-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  margin-right: var(--spacing-xs);
  flex-shrink: 0;
}

.btn-icon-only {
  padding: var(--spacing-sm);
  aspect-ratio: 1;
}

.btn-icon-only .btn-icon {
  margin: 0;
}

/* 按钮组 */
.btn-group {
  display: inline-flex;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn-group .btn {
  border-radius: 0;
  border-right-width: 1px;
}

.btn-group .btn:first-child {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.btn-group .btn:last-child {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  border-right-width: 2px;
}

/* 全宽按钮 */
.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===== 表单组件系统 ===== */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.form-control {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: var(--transition-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--state-focus);
  background-color: var(--bg-primary);
}

.form-control:disabled {
  background-color: var(--bg-tertiary);
  color: var(--text-light);
  cursor: not-allowed;
}

.form-control::placeholder {
  color: var(--text-light);
}

/* 表单控件尺寸 */
.form-control-sm {
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.form-control-lg {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-lg);
}

/* 文本域 */
.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* 选择框 */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--spacing-sm) center;
  background-repeat: no-repeat;
  background-size: 16px 12px;
  padding-right: var(--spacing-2xl);
  appearance: none;
}

/* 复选框和单选框 */
.form-check {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin-right: var(--spacing-sm);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xs);
  background-color: var(--bg-primary);
  transition: var(--transition-base);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input[type="radio"] {
  border-radius: 50%;
}

.form-check-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

/* 输入组 */
.input-group {
  display: flex;
  position: relative;
}

.input-group .form-control {
  border-radius: 0;
}

.input-group .form-control:first-child {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.input-group .form-control:last-child {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

.input-group-text:first-child {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
  border-right: none;
}

.input-group-text:last-child {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  border-left: none;
}

/* 表单验证状态 */
.form-control.is-valid {
  border-color: var(--success-color);
}

.form-control.is-valid:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-control.is-invalid {
  border-color: var(--danger-color);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.valid-feedback {
  display: block;
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--success-color);
}

.invalid-feedback {
  display: block;
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--danger-color);
}

/* 浮动标签 */
.form-floating {
  position: relative;
}

.form-floating .form-control {
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-sm);
}

.form-floating label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-sm);
  overflow: hidden;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  border: 2px solid transparent;
  transform-origin: 0 0;
  transition: var(--transition-base);
  color: var(--text-light);
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* 主内容区 */
.app-main {
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  padding: 20px 0;
}

/* 解析器卡片 - 现代化设计 */
.parser-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
  margin-bottom: 24px;
}

.parser-header {
  padding: 40px 32px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.parser-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.parser-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.parser-description {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

.parser-form {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.parser-input-wrapper {
  display: flex;
  position: relative;
  margin-bottom: 24px;
}

.parser-input {
  flex: 1;
  height: 60px;
  padding: 0 160px 0 24px;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.parser-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.parser-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-parser {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 0 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(67, 97, 238, 0.3);
  overflow: hidden;
  z-index: 2;
  min-width: 120px;
}

.btn-parser::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-parser:hover::before {
  left: 100%;
}

.btn-parser:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  transform: translateY(-50%) translateY(-2px) scale(1.05);
  box-shadow: 0 8px 32px rgba(67, 97, 238, 0.4);
}

.btn-parser:active {
  transform: translateY(-50%) scale(0.95);
  box-shadow: 0 2px 8px rgba(67, 97, 238, 0.4);
}

.parser-btn-svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.supported-sites {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
  position: relative;
  z-index: 1;
}

.supported-sites-label {
  margin-right: 16px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  width: 100%;
  text-align: center;
}

.supported-sites-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.supported-site {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: default;
}

.supported-site:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 新的专注解析徽章样式 */
.supported-site-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  border-radius: 25px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.supported-site-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.supported-site-badge:hover::before {
  left: 100%;
}

.supported-site-badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.site-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 新的专注解析徽章样式 */
.supported-site-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  border-radius: 25px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.supported-site-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.supported-site-badge:hover::before {
  left: 100%;
}

.supported-site-badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.site-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.parser-body {
  padding: 20px;
}

/* 警告提示 */
.alert {
  padding: 15px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.alert-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-right: 10px;
  flex-shrink: 0;
}

.alert-link {
  color: inherit;
  text-decoration: underline;
  font-weight: 500;
}

.alert-link:hover {
  color: inherit;
  text-decoration: none;
}

/* ===== 卡片组件系统 ===== */
.app-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition-base);
  position: relative;
}

/* 深色模式卡片 */
[data-theme="dark"] .app-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.app-card-header {
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary-transparent), rgba(76, 201, 240, 0.05));
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

[data-theme="dark"] .app-card-header {
  background: linear-gradient(135deg, var(--primary-transparent), rgba(76, 201, 240, 0.1));
  border-bottom-color: var(--border-color);
}

.app-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bg-gradient);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.app-card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.app-card-body {
  padding: var(--spacing-lg);
}

/* 卡片变体 */
.app-card-compact {
  border-radius: var(--radius-lg);
}

.app-card-compact .app-card-header {
  padding: var(--spacing-md);
}

.app-card-compact .app-card-body {
  padding: var(--spacing-md);
}

.app-card-compact .app-card-title {
  font-size: var(--font-size-lg);
}

/* 侧边栏卡片 */
.sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-base);
}

[data-theme="dark"] .sidebar-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

.sidebar-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.sidebar-card-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin: 0 0 var(--spacing-md) 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* 卡片网格 */
.card-grid {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* 响应式卡片 */
@media (max-width: 768px) {
  .app-card {
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
  }

  .app-card-header {
    padding: var(--spacing-md);
  }

  .app-card-body {
    padding: var(--spacing-md);
  }

  .app-card-title {
    font-size: var(--font-size-lg);
  }

  .sidebar-card {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

.sidebar-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* VIP快速信息 */
.vip-quick-info {
  margin-bottom: 16px;
}

.vip-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* 公告列表 */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-item {
  padding: 12px;
  background: rgba(67, 97, 238, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.notice-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.notice-date {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* 统计列表 */
.stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
}

/* Header响应式设计 */
@media (max-width: 1200px) {
  .search-container {
    max-width: 400px;
    margin: 0 20px;
  }
}

@media (max-width: 992px) {
  .header-container {
    padding: 0 16px;
  }

  .search-container {
    display: none;
  }

  .header-actions {
    gap: 12px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .theme-toggle-icon {
    width: 18px;
    height: 18px;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .auth-btns {
    gap: 8px;
  }

  .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .app-header {
    padding: 0 12px;
  }

  .logo-text {
    font-size: 16px;
  }

  .logo-img {
    height: 32px;
  }

  .header-actions {
    gap: 8px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .user-dropdown {
    min-width: 200px;
    right: -8px;
  }
}

/* PC端隐藏移动端元素 - 强制隐藏 */
@media (min-width: 992px) {
  .mobile-parse-form,
  .mobile-nav,
  #mobile-parse-form,
  .mobile-parse-container,
  .mobile-parse-overlay,
  .mobile-nav-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* 移动端隐藏侧边栏 */
@media (max-width: 991px) {
  .main-layout {
    display: block;
  }

  .sidebar-area {
    display: none;
  }
}

/* VIP特权展示 - 现代化设计 */
.vip-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.vip-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(67, 97, 238, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.vip-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.vip-feature:hover::before {
  transform: scaleX(1);
}

.vip-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(67, 97, 238, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.vip-feature-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 8px 24px rgba(67, 97, 238, 0.3);
  transition: all 0.3s ease;
}

.vip-feature:hover .vip-feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(67, 97, 238, 0.4);
}

.vip-feature-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.vip-feature-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.vip-feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* 使用步骤 - 现代化设计 */
.usage-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.usage-step {
  display: flex;
  align-items: flex-start;
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(67, 97, 238, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.usage-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.usage-step:hover::before {
  transform: scaleY(1);
}

.usage-step:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(67, 97, 238, 0.15);
}

.usage-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-right: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(67, 97, 238, 0.3);
  transition: all 0.3s ease;
}

.usage-step:hover .usage-step-number {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(67, 97, 238, 0.4);
}

.usage-step-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.usage-step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* FAQ样式 - 现代化设计 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.faq-question {
  padding: 20px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.faq-question:hover {
  background: rgba(67, 97, 238, 0.05);
}

.faq-question.active {
  background: rgba(67, 97, 238, 0.1);
  color: var(--primary-color);
}

.faq-icon {
  width: 24px;
  height: 24px;
  fill: var(--primary-color);
  margin-right: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-question:hover .faq-icon {
  transform: scale(1.1);
}

.faq-arrow {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  margin-left: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question.active .faq-arrow {
  transform: rotate(180deg);
  fill: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 20px;
  background: rgba(67, 97, 238, 0.02);
}

.faq-answer.show {
  max-height: 500px;
  padding: 20px;
  border-top: 1px solid rgba(67, 97, 238, 0.1);
}

.faq-answer p {
  margin-top: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
}

.faq-answer ul,
.faq-answer ol {
  margin: 10px 0;
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 5px;
}

/* 广告容器 */
.ad-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-tertiary);
  text-align: center;
}

.ad-text {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: var(--radius-xs);
}

/* 页脚样式 - 现代化设计 */
.app-footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #e2e8f0;
  padding: 60px 0 0;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.app-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.3;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

/* 品牌信息区 */
.footer-brand {
  max-width: 350px;
}

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #f8fafc;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.02);
}

.footer-logo-img {
  height: 48px;
  margin-right: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.footer-logo-text {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #f8fafc, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
  font-size: 15px;
}

/* 导航区域 */
.footer-nav-section {
  position: relative;
}

.footer-nav-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #f8fafc;
}

.footer-nav-icon {
  width: 20px;
  height: 20px;
  fill: var(--primary-color);
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-item {
  margin-bottom: 12px;
}

.footer-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 0;
  border-radius: 6px;
  font-size: 15px;
}

.footer-nav-link:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

.footer-link-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-nav-link:hover .footer-link-icon {
  opacity: 1;
}

/* 社交链接 */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.social-link:hover {
  background: rgba(67, 97, 238, 0.2);
  color: #60a5fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-label {
  font-size: 14px;
  font-weight: 600;
}

/* 访客统计 */
.visitor-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

.visitor-counter-icon {
  width: 20px;
  height: 20px;
  fill: #60a5fa;
}

.visitor-counter-label {
  color: #cbd5e1;
  font-size: 14px;
}

.visitor-counter-number {
  color: #60a5fa;
  font-weight: 700;
  font-size: 16px;
}

/* 快速功能 */
.footer-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.quick-action-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.quick-action-link:hover {
  color: #60a5fa;
}

.quick-action-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* 友情链接 */
.footer-links-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
}

.footer-links-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #f8fafc;
}

.footer-links-icon {
  width: 20px;
  height: 20px;
  fill: var(--primary-color);
}

.footer-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-friend-link {
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-friend-link:hover {
  background: rgba(67, 97, 238, 0.2);
  color: #60a5fa;
  transform: translateY(-1px);
}

/* 页脚底部 */
.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 20px 0;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #94a3b8;
}

.copyright-icon {
  width: 16px;
  height: 16px;
  fill: #60a5fa;
}

.copyright-text {
  line-height: 1.4;
}

.footer-icp {
  display: flex;
  align-items: center;
}

.icp-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.icp-link:hover {
  color: #60a5fa;
}

.icp-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* 返回顶部按钮 */
.back-to-top-footer {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(67, 97, 238, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.back-to-top-footer:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(67, 97, 238, 0.4);
}

.back-to-top-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* 页脚响应式设计 */
@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .app-footer {
    padding: 40px 0 0;
    margin-top: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    text-align: center;
    margin-bottom: 30px;
  }

  .footer-nav-section {
    text-align: center;
  }

  .footer-nav-title {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-quick-actions {
    align-items: center;
  }

  .footer-links-section {
    text-align: center;
  }

  .footer-links-grid {
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .back-to-top-footer {
    bottom: 100px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .back-to-top-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .footer-brand {
    padding: 0 20px;
  }

  .footer-logo-text {
    font-size: 20px;
  }

  .footer-description {
    font-size: 14px;
  }

  .visitor-counter {
    padding: 10px 14px;
  }

  .social-links {
    gap: 8px;
  }

  .social-link {
    padding: 8px 12px;
  }

  .footer-friend-link {
    padding: 6px 12px;
    font-size: 13px;
  }
}

.visitor-counter-number {
  font-weight: 500;
}

/* 弹窗 */
.app-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
}

.app-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.app-modal-container {
  position: relative;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
  animation: modalShow 0.3s ease forwards;
}

@keyframes modalShow {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.app-modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.app-modal-close {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background-color 0.3s ease;
}

.app-modal-close:hover {
  background-color: var(--state-hover);
}

.app-modal-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.app-modal-body {
  padding: 20px;
  overflow-y: auto;
}

.app-modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
}

/* 工具提示 */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: var(--bg-popup);
  color: var(--text-primary);
  text-align: center;
  border-radius: var(--radius-md);
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: var(--shadow-md);
  font-size: 12px;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* 辅助类 */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 1rem; }
.ml-4 { margin-left: 1.5rem; }
.ml-5 { margin-left: 3rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.mr-4 { margin-right: 1.5rem; }
.mr-5 { margin-right: 3rem; }

/* 响应式设计 */
@media (max-width: 991.98px) {
  .container {
    max-width: 100%;
  }
  
  .parser-title {
    font-size: 24px;
  }
  
  .parser-description {
    font-size: 14px;
  }
}

@media (max-width: 767.98px) {
  .desktop-only {
    display: none !important;
  }
  
  .header-container {
    padding: 0 15px;
  }
  
  .parser-header {
    padding: 20px 15px;
  }
  
  .parser-title {
    font-size: 20px;
  }
  
  .vip-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-social {
    margin-top: 15px;
    justify-content: center;
  }
  
  .footer-social-item {
    margin: 0 8px;
  }
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.slide-up {
  animation: slideUp 0.5s ease forwards;
}

/* Toast消息 */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 250px;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success {
  border-left: 4px solid var(--success-color);
}

.toast-error {
  border-left: 4px solid var(--danger-color);
}

.toast-info {
  border-left: 4px solid var(--info-color);
}

.toast-warning {
  border-left: 4px solid var(--warning-color);
}

/* 视频播放器和信息面板样式 */
.video-player-wrapper {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 视频信息面板 */
.video-info-panel {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.video-info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.video-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
  flex: 1;
  margin-right: 16px;
}

.video-status {
  flex-shrink: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid;
}

.status-badge.success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}

.video-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.meta-item:hover {
  background: rgba(67, 97, 238, 0.05);
  border-color: rgba(67, 97, 238, 0.1);
}

.meta-icon {
  flex-shrink: 0;
  color: var(--text-tertiary);
}

.meta-label {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
  min-width: 60px;
}

.meta-value {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  flex: 1;
}

.source-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.source-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* 视频信息面板响应式设计 */
@media (max-width: 768px) {
  .video-info-panel {
    padding: 16px;
    margin: 16px 0;
  }

  .video-info-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .video-title {
    font-size: 18px;
    margin-right: 0;
  }

  .video-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .meta-item {
    padding: 10px 12px;
  }

  .meta-label {
    min-width: 50px;
    font-size: 12px;
  }

  .meta-value {
    font-size: 13px;
  }
}