/* 全局样式重置与基础设置 - 保留原有设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", sans-serif;
  transition: all 0.3s ease;
}

body {
  background-color: #f5f5f7;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部栏样式 - 保留原有设置 */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  background-color: #f0f4f8;
  border-bottom: 1px solid #e1e8ed;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 10px;
  height: 140px; /* 保留原有高度设置 */
}

/* 图片轮播区域 - 保留原有设置 */
.image-slider {
  width: 33.333%;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.slider-container {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease;
}

.slider-image {
  width: 33.333%;
  height: 100%;
  object-fit: cover;
  background-color: #d9e2ec;
}

/* 轮播控制按钮 - 保留原有设置 */
.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-slider:hover .slider-control {
  opacity: 1;
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

/* 轮播指示器 - 保留原有设置 */
.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.dot.active {
  background-color: white;
  width: 24px;
  border-radius: 4px;
}

/* 头像区域 - 保留原有设置 */
.avatar-area {
  display: flex;
  align-items: center;
}

.avatar-wrapper {
  position: relative;
  cursor: pointer;
}

.avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #d9e2ec;
  margin-right: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #829ab1;
}

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

.avatar-upload {
  position: absolute;
  bottom: 0;
  right: 15px;
  width: 24px;
  height: 24px;
  background-color: #f0f4f8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #627585;
  font-size: 12px;
}

.avatar-input {
  display: none;
}

.user-info .qq-account {
  font-size: 12px;
  color: #627585;
}

.user-info .username {
  font-size: 16px;
  color: #334e68;
  font-weight: 500;
  margin: 3px 0;
}

.user-info .signature {
  font-size: 13px;
  color: #829ab1;
  font-style: italic;
  cursor: pointer;
}

.user-info .signature:hover {
  color: #627585;
  text-decoration: underline;
}

/* 登录注册按钮区域 - 保留原有设置 */
.auth-container {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.07), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

.auth-btns {
  display: flex;
  align-items: center;
}

.auth-btns .login-btn,
.auth-btns .register-btn {
  padding: 10px 22px;
  margin-left: 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  border: none;
  position: relative;
  overflow: hidden;
  min-width: 90px;
  text-align: center;
}

.auth-btns .login-btn {
  background-color: #e4eaf1;
  color: #4a6580;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.auth-btns .register-btn {
  background-color: #d0dae5;
  color: #334e68;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* 按钮内部高光效果 - 保留原有设置 */
.auth-btns .login-btn::before,
.auth-btns .register-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
}

.auth-btns .login-btn:hover,
.auth-btns .register-btn:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.auth-btns .login-btn:first-child {
  margin-left: 0;
}

/* 主体内容样式 - 保留原有设置 */
.main-content {
  flex: 1;
  display: flex;
  padding: 0 10px 10px;
  gap: 10px;
}

/* 左侧导航 - 保留原有设置 */
.left-nav {
  width: 220px;
  background-color: #f0f7f0;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.left-nav .nav-btn {
  padding: 14px 25px;
  text-align: left;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: #5a6b5a;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.left-nav .nav-btn.active {
  background-color: #e6f0e6;
  color: #3d4d3d;
}

.left-nav .nav-btn.active i {
  color: #5a6b5a;
}

.left-nav .nav-btn.active::after {
  transform: scaleY(1);
}

.left-nav .nav-btn i {
  font-size: 18px;
  width: 24px;
  text-align: center;
  color: #7d8d7d;
}

.left-nav .nav-btn::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: #b3c7b3;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.left-nav .nav-btn:hover {
  background-color: #e6f0e6;
  color: #3d4d3d;
  padding-left: 28px;
}

.left-nav .nav-btn:hover i {
  color: #5a6b5a;
}

.left-nav .nav-btn:hover::after {
  transform: scaleY(1);
}

/* 右侧内容展示区 - 优化布局稳定性 */
.right-content {
  flex: 1;
  background-color: #fafafa;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  border: 1px solid #f0f0f0;
  transition: all 0.15s ease; /* 添加过渡动画平滑布局变化 */
  min-height: calc(100% - 20px); /* 固定最小高度减少重排 */
}

/* 页面容器样式 - 统一标题段落样式 */
.page {
  font-size: 24px;
  color: #555;
  min-height: 100%;
  display: block;
  padding: 10px 0;
  box-sizing: border-box; /* 确保padding不影响高度计算 */
}

/* 更具体的选择器，优先级更高 */
#page1 .welcome-text {
  font-size: 32px;
}

/* 统一所有页面段落样式 */
.page p {
  margin: 0 0 20px 0; /* 统一段落margin */
  font-size: 16px;
  color: #627585; /* 统一颜色 */
}

/* 右下角心形图案 - 保留原有设置 */
.heart-icon {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #f5f0f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 10;
}

.heart-icon i {
  color: #a88f9a;
  font-size: 22px;
  transition: transform 0.3s ease;
}

.heart-icon:hover {
  background-color: #ede5e8;
  transform: scale(1.1);
}

.heart-icon:hover i {
  color: #8c747e;
  transform: rotate(15deg);
}

/* 新增：网页大全页面样式 - 仅添加这些新样式 */
.websites-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e1e8ed;
}

#addWebsiteBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background-color: #d0dae5;
  color: #334e68;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

#addWebsiteBtn:hover {
  background-color: #b9c8d6;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.websites-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.website-item {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s;
}

.website-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.website-link {
  color: #334e68;
  text-decoration: none;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.website-link:hover {
  color: #4a6580;
  text-decoration: underline;
}

.delete-website {
  background-color: transparent;
  border: none;
  color: #a88f9a;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.delete-website:hover {
  background-color: #f5f0f2;
  color: #8c747e;
}

.no-websites {
  color: #829ab1;
  text-align: center;
  padding: 40px 0;
  font-style: italic;
}

/* 通知和对话框样式 - 调整为匹配原有设计风格 */
.notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px 20px;
  background-color: #e4eaf1;
  color: #334e68;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.notification.error {
  background-color: #f5e8ea;
  color: #8c3a46;
}

.notification.success {
  background-color: #e8f0ea;
  color: #3a6e44;
}

.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.confirm-dialog {
  background-color: #fafafa;
  border-radius: 10px;
  width: 400px;
  max-width: 90%;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.confirm-title {
  color: #334e68;
  margin-bottom: 15px;
  font-size: 18px;
}

.confirm-message {
  color: #627585;
  margin-bottom: 20px;
}

.confirm-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-ok, .confirm-cancel {
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  border: none;
}

.confirm-ok {
  background-color: #d0dae5;
  color: #334e68;
}

.confirm-cancel {
  background-color: #e4eaf1;
  color: #4a6580;
}

.confirm-ok:hover, .confirm-cancel:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.prompt-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  background-color: white;
  color: #334e68;
}

.prompt-input:focus {
  outline: none;
  border-color: #b9c8d6;
  box-shadow: 0 0 0 2px rgba(185, 200, 214, 0.2);
}