* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

:root {
  --primary-color: #6e8efb;
  --secondary-color: #a777e3;
  --text-color: #333;
  --text-light: #fff;
  --border-color: rgba(255, 255, 255, 0.2);
  --shadow-color: rgba(31, 38, 135, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.1);
}

body {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-light);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  padding: 20px 0 40px;
}

header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

header p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.search-box {
  max-width: 600px;
  margin: 0 auto 30px;
}

.search-form {
  display: flex;
  position: relative;
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-light);
  font-size: 16px;
  outline: none;
  transition: all 0.3s;
}

.search-input:focus {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-button {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  width: 45px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s;
}

.search-button:hover {
  opacity: 0.9;
}

.category {
  margin-bottom: 40px;
}

.category-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.link-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 20px var(--shadow-color);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px var(--shadow-color);
}

.link-main {
  display: block;
  padding: 20px;
  color: var(--text-light);
  text-decoration: none;
}

.link-actions {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
}

.link-share {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.link-share:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

.link-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.link-url {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  word-break: break-all;
}

.link-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.admin-link {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s;
  box-shadow: 0 8px 20px var(--shadow-color);
}

.admin-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px var(--shadow-color);
  color: var(--text-light);
}

.template-switch-link {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s;
  box-shadow: 0 8px 20px var(--shadow-color);
}

.template-switch-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px var(--shadow-color);
  color: var(--text-light);
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .container {
    padding: 10px;
    max-width: 100%;
    overflow-x: hidden;
  }

  header {
    padding: 15px 0 25px;
  }

  header h1 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  header p {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .search-box {
    max-width: 100%;
    margin: 0 auto 20px;
    padding: 0 5px;
  }

  .search-input {
    padding: 10px 12px;
    font-size: 14px;
  }

  .search-button {
    width: 40px;
  }

  .category {
    margin-bottom: 25px;
  }

  .category-title {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
  }

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

  .link-card {
    margin-bottom: 0;
  }

  .link-main {
    padding: 15px;
  }

  .link-title {
    font-size: 16px;
    margin-bottom: 6px;
    padding-right: 40px;
  }

  .link-url {
    font-size: 12px;
    margin-bottom: 8px;
    word-break: break-all;
    overflow-wrap: break-word;
  }

  .link-description {
    font-size: 13px;
    line-height: 1.3;
  }

  .link-actions {
    top: 10px;
    right: 10px;
  }

  .link-share {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .admin-link {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .template-switch-link {
    bottom: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 8px;
  }

  header h1 {
    font-size: 22px;
  }

  .search-box {
    padding: 0 2px;
  }

  .category-title {
    font-size: 18px;
  }

  .link-main {
    padding: 12px;
  }

  .link-title {
    font-size: 15px;
    padding-right: 35px;
  }

  .link-url {
    font-size: 11px;
  }

  .link-description {
    font-size: 12px;
  }

  .admin-link,
  .template-switch-link {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .admin-link {
    bottom: 10px;
    right: 10px;
  }

  .template-switch-link {
    bottom: 10px;
    left: 10px;
  }
}

/* 个人信息卡片样式 */
.personal-info-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px var(--shadow-color);
  padding: 25px;
  margin: 30px auto;
  max-width: 500px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.personal-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--shadow-color);
}

.personal-avatar {
  margin-bottom: 20px;
}

.personal-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  transition: transform 0.3s;
}

.personal-avatar img:hover {
  transform: scale(1.05);
}

.personal-content {
  color: var(--text-light);
}

.personal-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-light);
}

.personal-title {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  font-weight: 500;
}

.personal-bio {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 20px;
}

.personal-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.personal-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.personal-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .personal-info-card {
/* 移动端适配 */
  }
}