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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  background-attachment: fixed;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 内容容器 */
.main-wrapper {
  flex: 1 0 auto;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

button:hover {
  opacity: 0.9;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

/* 导航栏 */
.navbar {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  max-width: 1600px;
  margin: 0 auto;
}

.logo {
  font-size: 26px;
  font-weight: bold;
  background: linear-gradient(to right, #fff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.login-btn {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: #fff;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #5a6578 0%, #3d4758 100%);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.user-avatar:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  display: none;
  z-index: 1000;
  overflow: hidden;
  padding: 8px 0;
}

.user-menu.show {
  display: block;
}

.user-menu-item {
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #333;
  border-left: 3px solid transparent;
}

.user-menu-item:hover {
  background: linear-gradient(90deg, #f0f4ff 0%, #f8f9fa 100%);
  border-left-color: #4a5568;
  transform: translateX(4px);
}

.user-menu-item.danger {
  color: #ff4d4f;
}

.user-menu-item.danger:hover {
  background: linear-gradient(90deg, #fff1f0 0%, #fff 100%);
  border-left-color: #ff4d4f;
}

.menu-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  display: inline-block;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.user-menu-item:hover .menu-icon {
  opacity: 1;
}

/* 搜索栏 */
.search-bar {
  background: #fff;
  padding: 30px 20px;
  margin-bottom: 20px;
}

.search-input-wrapper {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 14px 24px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
  border-color: #4a5568;
  box-shadow: 0 4px 12px rgba(74, 85, 104, 0.2);
  outline: none;
}

.search-btn {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: #fff;
  padding: 14px 32px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: none;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #5a6578 0%, #3d4758 100%);
}

/* 标签栏 */
.tags-bar {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.tags-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  display: inline-block;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag-item {
  padding: 8px 18px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e8e8e8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

.tag-item:hover {
  background: linear-gradient(135deg, #f0f4ff 0%, #f8f9fa 100%);
  border-color: #4a5568;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(74, 85, 104, 0.2);
}

.tag-item.active {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 素材卡片 */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.material-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.material-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: rgba(74, 85, 104, 0.3);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 aspect ratio */
  overflow: hidden;
}

.card-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 1;
}

.material-card:hover .card-cover {
  transform: scale(1.05);
}

.card-body {
  padding: 15px;
}

.card-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.card-tag {
  padding: 3px 8px;
  background: #f5f5f5;
  border-radius: 3px;
  font-size: 12px;
  color: #666;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.access-badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.access-badge.free {
  background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
  color: #fff;
}

.access-badge.member {
  background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
  color: #fff;
}

.access-badge.paid {
  background: linear-gradient(135deg, #faad14 0%, #ffc53d 100%);
  color: #fff;
}

.price {
  color: #ff4d4f;
  font-weight: bold;
  font-size: 16px;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
  padding: 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 后台管理中的分页特殊处理 */
.admin-card .pagination {
  background: transparent;
  padding: 20px 0 0 0;
  box-shadow: none;
  margin-bottom: 0;
}

.page-info {
  color: #666;
  font-size: 14px;
  margin-right: 10px;
  font-weight: 500;
}

.page-btn {
  padding: 10px 18px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.page-btn:hover:not(.disabled) {
  border-color: #4a5568;
  color: #4a5568;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(74, 85, 104, 0.2);
}

.page-btn.active {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-btn.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* 模态框 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 20px;
}

.modal-cover {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 20px;
}

.modal-info {
  margin-bottom: 20px;
}

.modal-info-row {
  margin-bottom: 10px;
}

.modal-label {
  font-weight: bold;
  color: #666;
  margin-right: 10px;
}

.modal-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.modal-download-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-download-btn:hover {
  background: linear-gradient(135deg, #5a6578 0%, #3d4758 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.modal-download-btn:disabled {
  background: #d9d9d9;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* 下载中状态 */
.modal-download-btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.modal-download-btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: button-spin 0.8s linear infinite;
}

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

/* 登录页 */
.login-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  padding: 20px;
}

.login-wrapper {
  display: flex;
  gap: 30px;
  align-items: stretch;
  max-width: 850px;
  width: 100%;
}

.login-box {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  flex: 1;
}

.qr-code-box {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qr-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 24px;
  color: #2d3748;
}

.qr-image-container {
  width: 330px;
  height: 330px;
  background: #f8fafc;
  border: 2px solid #edf2f7;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.qr-image-container:hover {
  border-color: #4a5568;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.qr-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.qr-tip {
  color: #4a5568;
  font-size: 15px;
  font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .login-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .login-box, .qr-code-box {
    width: 100%;
    max-width: 400px;
  }
}

.login-title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #333;
}

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

.form-label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #2d3748;
  font-size: 15px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s;
  background: #f8fafc;
}

.form-input:focus {
  border-color: #4a5568;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
  outline: none;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #5a6578 0%, #3d4758 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* 后台管理 */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 200px;
  background: #001529;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
}

.admin-logo {
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 30px;
  padding: 0 20px;
}

.admin-nav-item {
  padding: 15px 20px;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.admin-nav-item.active {
  background: #1890ff;
  color: #fff;
}

.nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  display: inline-block;
}

/* 返回首页按钮特殊样式 */
.back-home-link {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.back-home-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-main {
  flex: 1;
  padding: 24px;
  background: #f0f2f5;
  overflow-y: auto;
}

.admin-header {
  background: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid #edf2f7;
}

.admin-card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  color: #1a202c;
}

/* 返回首页按钮 */
.back-home-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: #fff;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.back-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #5a6578 0%, #3d4758 100%);
  color: #fff;
}

/* 头像选择网格 */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 24px;
  padding: 10px 0;
}

.avatar-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.avatar-item.selected {
  border-color: #4a5568;
  box-shadow: 0 4px 16px rgba(74, 85, 104, 0.4);
}

.avatar-option {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.avatar-item:hover .avatar-option {
  transform: scale(1.1);
}

.avatar-checkmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(74, 85, 104, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
  from {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* 表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e8e8e8;
}

.data-table th {
  background: #fafafa;
  font-weight: bold;
}

.data-table tr:hover {
  background: #f5f5f5;
}

.table-thumbnail {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
  display: block;
}

.action-btn {
  padding: 6px 12px;
  border-radius: 4px;
  margin-right: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.action-btn.primary {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
}

.action-btn.primary:hover {
  background: linear-gradient(135deg, #5a6578 0%, #3d4758 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  opacity: 1;
}

.action-btn.danger {
  background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(255, 77, 79, 0.3);
  transition: all 0.3s;
}

.action-btn.danger:hover {
  background: linear-gradient(135deg, #ff7875 0%, #ffa39e 100%);
  box-shadow: 0 4px 10px rgba(255, 77, 79, 0.4);
  transform: translateY(-2px);
  opacity: 1;
}

.action-btn:hover {
  opacity: 0.8;
}

/* 表单 */
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* 文件预览容器 */
.file-preview-container {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  border: 2px dashed #d9d9d9;
  text-align: center;
}

.preview-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: contain;
  margin-bottom: 10px;
}

.file-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  margin-bottom: 8px;
}

.file-icon {
  font-size: 24px;
}

.file-name {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  word-break: break-all;
}

.preview-text {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.btn {
  padding: 12px 28px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a6578 0%, #3d4758 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  opacity: 1;
}

.btn-default {
  background: #fff;
  color: #4a5568;
  border: 1px solid #e2e8f0;
}

.btn-default:hover {
  background: #f8fafc;
  border-color: #cbd5e0;
}

.btn-danger {
  background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(132, 103, 104, 0.2);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #ff7875 0%, #ffa39e 100%);
  box-shadow: 0 6px 18px rgba(255, 77, 79, 0.3);
  transform: translateY(-2px);
  opacity: 1;
}

.btn:hover {
  opacity: 1;
}

.btn:active {
  transform: translateY(0);
}

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

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

/* 页面标题栏 */
.page-header {
  background: #fff;
  padding: 60px 0;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #edf2f7;
}

.page-title {
  font-size: 32px;
  font-weight: bold;
  color: #1a202c;
  margin: 0;
  text-align: center;
}

/* 账号页面网格布局 */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.account-single-card {
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .account-grid {
    grid-template-columns: 1fr;
    max-width: 800px;
  }
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: #999;
}

.empty-state-icon {
  font-size: 72px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.empty-state-text {
  font-size: 18px;
  color: #999;
  font-weight: 500;
}

/* 页脚 */
.footer {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: #fff;
  padding: 30px 40px;
  margin-top: 40px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  text-align: center;
}

.footer-content {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 15px;
}

.footer-links a {
  color: #a0aec0;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copyright {
  color: #718096;
  font-size: 13px;
  text-align: center;
}

/* Toast 提示 */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  z-index: 9999;
  transition: all 0.3s ease;
  opacity: 0;
}

.toast-container.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  font-size: 15px;
  font-weight: 500;
  min-width: 300px;
  backdrop-filter: blur(10px);
}

.toast-message.success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid #c3e6cb;
  box-shadow: 0 4px 16px rgba(21, 87, 36, 0.15);
}

.toast-message.error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 1px solid #f5c6cb;
  box-shadow: 0 4px 16px rgba(114, 28, 36, 0.15);
}

.toast-message.warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  border: 1px solid #ffeaa7;
  box-shadow: 0 4px 16px rgba(133, 100, 4, 0.15);
}

.toast-message.info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  border: 1px solid #bee5eb;
  box-shadow: 0 4px 16px rgba(12, 84, 96, 0.15);
}

.toast-icon {
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.toast-text {
  flex: 1;
}

/* 响应式 */
@media (max-width: 1600px) {
  .container {
    max-width: 1400px;
    padding: 0 30px;
  }
  
  .navbar-content {
    max-width: 1400px;
    padding: 18px 30px;
  }
  
  .footer-content {
    max-width: 1400px;
  }
}

@media (max-width: 1200px) {
  .materials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .materials-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .navbar-content {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .search-bar {
    padding: 20px 15px;
  }
  
  .tags-bar {
    padding: 15px;
  }
  
  .footer {
    padding: 20px 15px;
  }
  
  .footer-links {
    flex-wrap: wrap;
    gap: 10px;
  }
}
