/* 首页特定样式 */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  z-index: -1;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-content {
  /* margin: 0 auto; */
  text-align: center;
  /* max-width: 800px; */
  width: 100%;
  z-index: 2;
}

.site-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px var(--shadow-color);
}

.site-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.parser-form {
  width: 100%;
  max-width: 800px;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 40px var(--shadow-color);
  border: 1px solid var(--border-color);
  margin: 0 auto 60px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.url-input-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.clear-input {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  box-shadow: none;
  padding: 0;
}

.clear-input:hover {
  color: var(--accent-secondary);
  box-shadow: none;
  transform: translateY(-50%) scale(1.1);
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.action-buttons button {
  flex: 1;
}

/* 站点选择样式 */
.select-wrapper {
  position: relative;
}

.select-styled {
  position: relative;
  color: var(--text-primary);
  cursor: pointer;
}

.select-styled:after {
  content: '';
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-top-color: var(--accent-primary);
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

select option {
  padding: 15px;
  background-color: var(--card-bg);
  color: var(--text-primary);
}

/* 推荐站点列表 */
.site-recommendations {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.recommend-site {
  padding: 8px 15px;
  background-color: var(--input-bg);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.recommend-site:hover {
  background-color: var(--accent-primary);
  color: var(--button-text);
  transform: translateY(-2px);
}

/* 统计部分 */
.stats-section {
  text-align: center;
  margin-bottom: 60px;
}

.stats-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.stat-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 30px var(--shadow-color);
  border: 1px solid var(--border-color);
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-10px);
}

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* 解析历史表格 */
.history-section {
  margin: 60px 0;
}

.history-title {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-primary);
}

.table-responsive {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px var(--shadow-color);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

.history-table th,
.history-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.history-table th {
  font-weight: 600;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.history-table tr:last-child td {
  border-bottom: none;
}

.history-table tr:hover td {
  background-color: var(--input-bg);
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--card-bg);
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.pagination a:hover:not(.active) {
  background-color: var(--input-bg);
  border-color: var(--accent-primary);
}

.pagination .active {
  background: var(--button-primary);
  color: var(--button-text);
  border: none;
}

/* 免责声明弹窗 */
.disclaimer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-bg);
  backdrop-filter: blur(5px);
}

.modal-content {
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 15px 50px var(--shadow-color);
  border: 1px solid var(--border-color);
  padding: 30px;
  position: relative;
  z-index: 1001;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-primary);
}

.modal-text {
  margin-bottom: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.modal-text strong {
  color: var(--text-primary);
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 响应式样式调整 */
@media (max-width: 768px) {
  .site-title {
    font-size: 2.5rem;
  }
  
  .site-description {
    font-size: 1rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    padding: 20px;
  }
}

/* 闪烁动画效果 */
@keyframes glow {
  0% {
    box-shadow: 0 0 10px var(--shadow-color);
  }
  50% {
    box-shadow: 0 0 20px var(--accent-primary), 0 0 30px var(--accent-secondary);
  }
  100% {
    box-shadow: 0 0 10px var(--shadow-color);
  }
}

.glow-effect {
  animation: glow 2s infinite;
} 