:root {
  /* 品牌主色 */
  --off-black: #091717;      /* Off Black */
  --inky-blue: #133b39;       /* Inky Blue */
  --peacock: #2e5e5a;        /* Peacock */
  --true-turquoise: #20808d; /* True Turquoise */
  --plex-blue: #20b8cd;      /* Plex Blue */
  --sky: #badfde;            /* Sky */
  --paper-white: #FBFAF4;    /* Paper White */
  --ecru: #e5e3d4;          /* Ecru */
  --apricot: #FFD2A6; 
  --orange: #f06c00;         /* Orange */
  --terra-cotta:#a94b30;    /* Terra Cotta */
  --boysenberry: #954456;   /* Boysenberry */

  /* 功能色 */
  --primary-color: var(--true-turquoise);
  --secondary-color: var(--plex-blue);
  --tertiary-color: var(--sky);
  --background-color: var(--paper-white);

  /* 文字颜色 */
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-tertiary: #717171;
  --text-disabled: #9E9E9E;

  /* 状态颜色 */
  --status-good: var(--true-turquoise);
  --status-medium: var(--orange);
  --status-poor: var(--boysenberry);

  /* 状态背景色 */
  --status-good-bg: rgba(37, 238, 90, 0.1);
  --status-medium-bg: rgba(255, 210, 166, 0.1);
  --status-poor-bg: rgba(168, 75, 223, 0.1);

  /* 交色 */
  --hover-light: rgba(255, 255, 255, 0.2);
  --hover-dark: rgba(0, 0, 0, 0.05);
  --overlay: rgba(0, 0, 0, 0.3);
  --border-light: rgba(255, 255, 255, 0.2);
  --border-dark: rgba(0, 0, 0, 0.1);

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.1);

  /* 其他 */
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-sm: 8px;
  --border-radius-circle: 50%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
    background-color: var(--background-color) !important;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 90px 20px 20px;
  position: relative;
  z-index: 1;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: white;
  margin: 0;
}

.admin-controls {
  display: flex;
  gap: 12px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.btn {
  padding: 10px 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 20pt;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #1b6d78;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(142, 142, 147, 0.12);
  color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: rgba(142, 142, 147, 0.18);
}

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

.modal[style*="display: block"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  margin: 50px auto;
  padding: 24px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--secondary-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background-color: rgba(142, 142, 147, 0.12);
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 15px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 15px;
  background-color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.modal-footer {
  display: flex;
  justify-content: center !important;
  gap: 12px;
  grid-column: 1 / -1;
  margin-top: 24px;
}

/* 修改服务卡片布局 */
.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-dark);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 180px;
    position: relative;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* 修改服务卡片内容布局 */
.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100px;
    margin-bottom: 36px;
    text-decoration: none;
    color: var(--text-color);
}

.service-content:hover {
    text-decoration: none;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.service-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.service-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  padding: 4px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-description {
  margin: 0;
  padding: 0 4px;
  color: var(--text-tertiary);
  font-size: 12px;
  height: 40px;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  position: relative;
}

.service-description[data-tooltip] {
  cursor: help;
}

/* 修改提示框样式 */
.service-description[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    max-width: 300px;
    z-index: 1000;
    white-space: normal;
    line-height: 1.4;
    margin-top: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none; /* 防止提示框影响鼠标事件 */
}

/* 确保图标在容器内 */
.service-links {
    display: flex;
    align-items: center;
}

.status-info {
    display: flex;
    align-items: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: 16px;
    max-width: none;
  }
}

/* 在现有的 CSS 中添加以下样式 */

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.service-actions {
    display: flex;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 14px;
}

.service-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.service-link:hover {
    text-decoration: underline;
}

.section {
    margin-bottom: 32px;
    width: 100%;
}

.section h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--inky-blue);
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}


.service-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.latency {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    font-weight: 500;
}

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

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

.admin-controls {
    display: flex;
    gap: 8px;
}

/* 添加图标搜索相关样式 */
.icon-search-container {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.icon-search-input {
    flex: 1;
}

.icon-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.icon-preview img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.icon-search-results {
    display: none;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 4px;
    padding: 12px;
    gap: 12px;
    flex-wrap: wrap;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
}

.icon-search-results.active {
    display: grid;
}

.icon-option {
    width: 40px;
    height: 40px;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.icon-option:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.icon-option img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.icon-option.selected {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
}

/* 添加备用链接按钮样式 */
.service-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.alternate-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--tertiary-color);
    transition: all 0.2s ease;
    text-decoration: none;
}

.alternate-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.alternate-link i {
    font-size: 14px;
}

/* 优化表单布局 */
.modal-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 让某些字段占据整行 */
.form-group.full-width {
    grid-column: 1 / -1;
}

/* 修改 section 容器样式 */
.section {
    margin-bottom: 32px;
    width: 100%;
}

/* 修改主容器样式 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

/* 删除之的 grid-layout 相关样式 */
.grid-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 修改网格布局相关样式 */
#sections-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.section {
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

/* 删除可能冲突的样式 */
.grid-layout {
    width: 100%;
}

/* 确保卡片样式正确 */
.service-card {
    width: 100%;
    height: 100%;
}

/* 登录模态框样式 */
.login-form {
    padding: 20px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.login-form label i {
    margin-right: 8px;
    color: #666;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.login-form input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

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

.form-actions button {
    min-width: 100px;
}

.form-actions button i {
    margin-right: 6px;
}

/* 提示框样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease-out;
    background-color: var(--inky-blue);
}

.toast .material-symbols-outlined {
    font-size: 20px;
}

.toast.success {
    background-color: var(--status-good);
}

.toast.error {
    background-color: var(--status-poor);
}

/* 确保所有 Material Symbols 图标都正确显示 */
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
    vertical-align: middle;
    line-height: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 添加图标选择相关样式 */
.icon-selection {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.icon-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.icon-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.icon-tab.active {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
}

.icon-content {
    padding: 16px;
}

.icon-pane {
    display: none;
}

.icon-pane.active {
    display: block;
}

.icon-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-height: 200px;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-upload-container:hover {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.05);
}

.icon-preview {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 8px;
}

.icon-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.icon-tabs button {
    font-weight: 500;
    padding: 12px 20px;
}

.icon-tabs button i {
    margin-right: 8px;
}

.icon-search-container {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.icon-search-input {
    flex: 1;
}

/* 修改图标包装器样式 */
.icon-wrapper {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 48px;
}

/* 修改状态指示点样式 */
.status-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--background-color);
    z-index: 2;
    transition: all 0.3s ease;
}

.status-dot.good {
    background-color: var(--status-good);
}

.status-dot.medium {
    background-color: var(--status-medium);
    box-shadow: 0 0 0 2px var(--status-medium-bg);
}

.status-dot.poor {
    background-color: var(--status-poor);
    box-shadow: 0 0 0 2px var(--status-poor-bg);
}

/* 修改延迟显示样式 */
.latency {
    font-size: 13px;
    padding: 6px 0px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.latency::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.latency.good {
    color: var(--status-good);
}

.latency.good::before {
    background-color: var(--status-good);
}

.latency.medium {
    color: var(--status-medium);
}

.latency.medium::before {
    background-color: var(--status-medium);
}

.latency.poor {
    color: var(--status-poor);
}

.latency.poor::before {
    background-color: var(--status-poor);
}

/* 添加脉冲动画 - 使用新的颜色 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--status-good-bg);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(37, 238, 90, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 238, 90, 0);
    }
}

/* 状态指示点的动画 */
.status-dot.good {
    animation: pulse 2s infinite;
}
/* 修改 header 样式，确保撑满宽度 */
.header {
    background-color: var(--primary-color);
    padding: 12px 0;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

/* 修改容器样式，增加顶部内边距以适应固定定位的 header */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 90px 20px 20px;
    position: relative;
    z-index: 1;
}

/* 修改 header 内容容器样式 */
.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo 样式 */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 32px;
    width: auto;
}

/* 管理控件样式 */
.admin-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 图标按钮样式 */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    background-color: var(--background-color);
}

.btn-icon:hover {
    transform: translateY(-2px);
}
.btn-icon i{
font-size: 20px;
color: var(--peacock);
}

/* 用户菜单样式 */
.user-menu {
    position: relative;
}

.user-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px; /* 与下拉菜单的间距相同 */
}

.user-avatar:hover {
    transform: translateY(-2px);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-avatar img {
    width: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.user-avatar:hover img {
    transform: scale(1.1);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    width: 100%;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(32, 128, 141, 0.05);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--secondary-color);
    transition: color 0.2s ease;
}

.dropdown-item:hover i {
    color: #0066D6;
}

/* 添加按钮动画效果 */
.add-button-wrapper {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.add-button-wrapper.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* 下拉菜单动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 修改 header 相关样式 */
.header {
    background-color: var(--background-color);
    padding: 12px 0;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

/* 滚动时的样式 */
.header.scrolled {
    padding: 8px 0;
}

/* Logo 样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-icon {
    height: 30px; /* 初始高度更大 */
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo-svg {
    height: 100%;
    width: auto;
    transition: all 0.3s ease;
}

.logo-text {
    height: 24px; /* 初始高度更大 */
    overflow: hidden;
    transition: all 0.3s ease;
}

.logo-text-svg {
    height: 100%;
    width: auto;
    transition: all 0.3s ease;
}

/* 滚动时的缩放效果 */
.header.scrolled .logo-icon {
    height: 24px; /* 缩小后的高度 */
}

.header.scrolled .logo-text {  
    height: 20px;
    transition: all 0.3s ease;
}


/* 用户头像按钮 */
.user-avatar {
    width: 32px; /* 初始尺寸更大 */
    height: 32px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.header.scrolled .user-avatar {
    width: 28px; /* 缩小后的尺寸 */
    height: 28px;
}

/* 添加按钮的过渡效果 */
.add-button-wrapper .btn {
    padding: 4px 6px;
    font-size: 20pt;
    transition: all 0.3s ease;
}

.header.scrolled .add-button-wrapper .btn {
    padding: 2px 2px;
    font-size: 16pt;
}
button{
    font-family: "Material Symbols Outlined" ;
    font-size: auto;
    color: var(--text-tertiary);
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24;
}

/* 按钮中的图标样式 */
.btn .material-symbols-outlined {
  font-size: 20px;
}

.btn-icon .material-symbols-outlined {
  font-size: 24px;
  color: var(--peacock);
}

/* 下拉菜单中的图标 */
.dropdown-item .material-symbols-outlined {
  font-size: 18px;
  width: 20px;
  color: var(--secondary-color);
}

/* 图标标签页中的图标 */
.icon-tab .material-symbols-outlined {
  font-size: 18px;
  margin-right: 8px;
}

/* Google 登录按钮样式 */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-google img {
    width: 18px;
    height: 18px;
}

/* 分隔线样式 */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-tertiary);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.divider span {
    padding: 0 10px;
    font-size: 14px;
}

/* 登录表单布局调整 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

/* 移动端优化样式 */
@media (max-width: 768px) {
    /* 容器布局优化 */
    .container {
        padding: 70px 12px 12px; /* 减小内边距 */
    }

    /* 头部样式优化 */
    .header {
        padding: 8px 0;
        height: 56px; /* 固定头部高度 */
    }

    .header-content {
        padding: 0 12px;
    }

    /* Logo 大小调整 */
    .logo-icon {
        height: 24px;
    }

    .logo-text {
        height: 18px;
    }

    /* 管理控件调整 */
    .admin-controls {
        gap: 8px;
    }

    .btn-icon {
        width: 32px;
        height: 32px;
    }

    .btn-icon .material-symbols-outlined {
        font-size: 20px;
    }

    /* 服务卡片网格调整 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* 服务卡片样式优化 */
    .service-card {
        padding: 16px;
        min-height: 140px;
    }

    .service-header {
        margin-bottom: 8px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        padding: 3px;
    }

    .service-info h3 {
        font-size: 15px;
    }

    .service-description {
        font-size: 12px;
        line-height: 1.4;
        height: 34px;
    }

    /* 分类标题调整 */

    /* 模态框样式优化 */
    .modal-content {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .modal-header {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-form {
        padding: 12px 16px;
        gap: 12px;
        overflow-y: auto;
        flex: 1;
    }

    .form-group {
        margin-bottom: 0;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 15px;
    }

    /* 图标选择器优化 */
    .icon-selection {
        border-radius: 8px;
    }

    .icon-tabs {
        padding: 4px;
    }

    .icon-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .icon-search-container {
        gap: 8px;
    }

    .icon-search-results {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 8px;
        padding: 8px;
    }

    .icon-option {
        padding: 4px;
    }

    .icon-option img {
        width: 28px;
        height: 28px;
    }

    /* 底部按钮区域 */
    .modal-footer {
        padding: 12px 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        background: white;
        position: sticky;
        bottom: 0;
        display: grid;
        grid-template-columns: 1fr 1fr; /* 两个按钮平分宽度 */
        gap: 8px;
        margin: 0; /* 移除margin */
    }

    .modal-footer .btn {
        width: 100%; /* 按钮占满格子宽度 */
        padding: 12px 16px;
        font-size: 14px;
        margin: 0; /* 移除margin */
        justify-content: center; /* 文字居中 */
    }

    /* 调整按钮内部图标和文字的间距 */
    .modal-footer .btn .material-symbols-outlined {
        font-size: 18px;
        margin-right: 4px;
    }

    /* 状态显示优化 */
    .latency {
        font-size: 12px;
        padding: 4px 8px;
    }

    .status-dot {
        width: 8px;
        height: 8px;
    }

    /* Toast 消息优化 */
    .toast {
        max-width: calc(100% - 32px);
        font-size: 14px;
        padding: 10px 16px;
        bottom: 20px;
        left: 16px;
        right: 16px;
        top: auto;
    }
}

/* 针对超小屏幕的额外优化 */
@media (max-width: 360px) {
    .container {
        padding: 60px 8px 8px;
    }

    .service-card {
        padding: 12px;
    }

    .service-icon {
        width: 36px;
        height: 36px;
    }

    .service-info h3 {
        font-size: 14px;
    }

    .service-description {
        font-size: 11px;
    }
}

/* 添加安全区域适配 */
@supports (padding: max(0px)) {
    .container {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .modal-content {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .modal-footer {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

/* 1. 优化字体加载 */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

/* 2. 添加关键CSS预加载 */
/* 在HTML head中添加: */
<link rel="preload" href="/css/style.css" as="style">

/* 5. 添加图片延迟加载类 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.lazy-load.loaded {
    opacity: 1;
}

/* 添加加载动画样式 */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

.loading-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

.loading-circle {
    position: absolute;
    width: 64px;
    height: 64px;
    border: 4px solid var(--sky);
    border-radius: 50%;
    animation: loading-circle 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--sky) transparent transparent transparent;
}

.loading-circle:nth-child(1) {
    animation-delay: -0.45s;
}

.loading-circle:nth-child(2) {
    animation-delay: -0.3s;
}

.loading-circle:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes loading-circle {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 添加内容淡入动画 */
.content-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: content-fade-in 0.6s ease-out forwards;
}

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

/* 修改图标按钮样式 */
.btn-sm {
    padding: 6px;
    color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    background: transparent;
}

.btn-sm:hover {
    background-color: var(--hover-dark);
}

.btn-sm .material-symbols-outlined {
    font-size: 20px;
}

/* 修改关闭按钮样式 */
.close-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background-color: var(--hover-dark);
}

.close-btn .material-symbols-outlined {
    font-size: 24px;
    color: var(--text-secondary);
}

/* 修改备用链接图标样式 */
.alternate-link .material-symbols-outlined {
    font-size: 20px;
    color: var(--text-tertiary);
}

.alternate-link:hover .material-symbols-outlined {
    color: var(--primary-color);
}

/* 头像编辑器样式 */
.avatar-editor {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.avatar-preview-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

#avatarPreview {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.avatar-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: 20px;
}

.avatar-controls .btn-icon {
    background: transparent;
    color: white;
}

.avatar-controls .btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.avatar-controls .material-symbols-outlined {
    color: white;
}

.avatar-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.avatar-info p {
    margin: 4px 0;
}