/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  min-height: 100vh;
  /* 霓虹动画背景 */
  background: linear-gradient(-45deg, #0d0d2e, #1a1a5e, #00c3ff, #ffff1c);
  background-size: 400% 400%;
  animation: neonGradient 15s ease infinite;
  color: #fff;
  overflow-x: hidden;
}

/* 霓虹背景动画 */
@keyframes neonGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 玻璃态效果 */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

/* 按钮样式 */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(45deg, #00c3ff, #ffff1c);
  color: #0d0d2e;
  box-shadow: 0 4px 15px rgba(0, 195, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 195, 255, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: rgba(255, 0, 0, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(255, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background: rgba(255, 0, 0, 0.3);
  transform: scale(1.05);
}

.pulse-button {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 195, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 195, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 195, 255, 0);
  }
}

/* 头部样式 */
.header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-name {
  color: white;
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-section button,
.user-section button {
  margin-left: 15px;
}

.user-section {
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
}

.user-section span {
  font-weight: 500;
}

/* 主要内容区域 */
.main-content {
  min-height: calc(100vh - 160px);
  padding: 40px 0;
}

.hero-section {
  text-align: center;
  padding: 60px 40px;
  animation: fadeIn 1s ease-out;
}

.hero-section h2 {
  font-size: 3rem;
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c3ff, #ffff1c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #0d0d2e;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out;
  animation-fill-mode: both;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #00c3ff;
  text-shadow: 0 0 15px rgba(0, 195, 255, 0.7);
}

.feature-card h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.features-section,
.info-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  margin-bottom: 40px;
  animation: fadeIn 0.8s ease-out;
}

.features-section h3,
.info-section h3 {
  color: white;
  margin-bottom: 25px;
  font-size: 2rem;
  text-align: center;
}

/* 表单容器 */
.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: white;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00c3ff;
  box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
}

.info-section ul {
  list-style-type: none;
  padding: 0;
}

.info-section li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

.info-section li:last-child {
  border-bottom: none;
}

.info-section i {
  color: #4ade80;
  margin-right: 15px;
  font-size: 1.2rem;
}

.info-section p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* 网站列表表格 */
.websites-list {
  margin-top: 40px;
}

.websites-list h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.5rem;
  text-align: center;
}

.websites-list table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.websites-list th,
.websites-list td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.websites-list th {
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.websites-list tr:last-child td {
  border-bottom: none;
}

.websites-list tr:hover {
  background: rgba(255, 255, 255, 0.15);
}

.website-link, .record-link {
  color: #00c3ff;
  text-decoration: none;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: inline-block;
}

.website-link:hover, .record-link:hover {
  color: #ffff1c;
  background: rgba(0, 195, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 195, 255, 0.3);
}

/* 底部样式 */
.footer {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
}

.footer p {
  margin: 10px 0;
  font-size: 1.1rem;
}

.footer-link {
  color: white;
  text-decoration: none;
}

.footer-link i {
  font-size: 1.2em;
}

/* 模态框样式 */
.modal {
  display: block;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin: 5% auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  animation: slideInLeft 0.4s ease-out;
}

.close {
  color: rgba(255, 255, 255, 0.7);
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 25px;
  top: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close:hover,
.close:focus {
  color: white;
  transform: rotate(90deg);
}

.modal-content h2 {
  color: white;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.error-message {
  color: #fecaca;
  margin-top: 20px;
  padding: 15px;
  background-color: rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  text-align: center;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* 修改密码模态框 */
.modal-content.profile-form {
  max-width: 600px;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 脉冲按钮 */
.pulse-button {
  animation: pulse 2s infinite;
}

/* 卡片悬停效果 */
.card-hover:hover {
  transform: scale(1.02);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 15px;
  }

  .site-name {
    font-size: 1.8rem;
  }

  .hero-section h2 {
    font-size: 2.2rem;
  }

  .hero-section p {
    font-size: 1.1rem;
  }

  .modal-content {
    width: 95%;
    margin: 15% auto;
    padding: 30px 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 25px 20px;
  }

  .websites-list {
    overflow-x: auto;
  }

  .websites-list table {
    min-width: 600px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}