.save-buttons {
  padding: 12px;
}
.setting-page {
  padding: 12px;

  .user-card {
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: linear-gradient(
      135deg,
      var(--primary-color) 0%,
      var(--primary-color-dark) 100%
    );
    position: relative;

    .user-info {
      display: flex;
      align-items: center;
      padding: 20px;
      gap: 16px;
      position: relative;
      z-index: 1;

      .avatar {
        width: 70px;
        height: 70px;
        border-radius: 35px;
        overflow: hidden;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.2);
        border: 3px solid rgba(255, 255, 255, 0.3);
        position: relative;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        .avatar-placeholder {
          width: 100%;
          height: 100%;
          background: linear-gradient(
            135deg,
            var(--primary-color) 0%,
            var(--primary-color-dark) 100%
          );
          display: flex;
          align-items: center;
          justify-content: center;
          color: white;
          font-size: 28px;
          font-weight: bold;
          text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }
      }

      .user-details {
        flex: 1;
        min-width: 0;

        .username {
          font-size: 20px;
          font-weight: 700;
          color: white;
          margin-bottom: 6px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .account {
          font-size: 14px;
          color: rgba(255, 255, 255, 0.8);
          margin-bottom: 6px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        .role {
          font-size: 12px;
          color: rgba(255, 255, 255, 0.9);
          background: rgba(255, 255, 255, 0.2);
          padding: 4px 12px;
          border-radius: 12px;
          display: inline-block;
          backdrop-filter: blur(10px);
          border: 1px solid rgba(255, 255, 255, 0.3);
        }
      }

      .user-actions {
        flex-shrink: 0;
      }
    }
  }

  .setting-group {
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);

    .group-title {
      padding: 16px 20px 12px;
      font-size: 15px;
      font-weight: 700;
      color: #333;
      background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
      border-bottom: 1px solid #f0f0f0;
      display: flex;
      align-items: center;
      gap: 8px;

      .group-icon {
        font-size: 16px;
      }
    }

    .setting-list {
      :global(.adm-list) {
        --border-inner: solid 1px #f0f0f0;
        --border-top: none;
        --border-bottom: none;
        --adm-font-size-main: 16px;
        --adm-color-text: #333;
        --adm-color-text-secondary: #666;

        .adm-list-item {
          padding: 16px 20px;
          min-height: 64px;
          transition: all 0.2s ease;
          position: relative;

          &:hover {
            background: #f8f9fa;
            transform: translateX(4px);
          }

          &:active {
            background: #e9ecef;
            transform: scale(0.98);
          }

          .adm-list-item-content {
            padding: 0;
          }

          .adm-list-item-content-prefix {
            margin-right: 16px;
          }

          .adm-list-item-content-main {
            flex: 1;
            min-width: 0;

            .adm-list-item-content-main-title {
              font-size: 16px;
              font-weight: 600;
              color: #333;
              margin-bottom: 4px;
            }

            .adm-list-item-content-main-description {
              font-size: 14px;
              color: #666;
              line-height: 1.4;
            }
          }

          .adm-list-item-content-extra {
            margin-left: 8px;
          }

          &:last-child {
            border-bottom: none;
          }
        }
      }
    }
  }

  .setting-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(24, 144, 255, 0.1);
    color: var(--primary-color);
    transition: all 0.2s ease;

    &:hover {
      transform: scale(1.1);
      background: rgba(24, 144, 255, 0.2);
    }
  }

  .setting-title {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .setting-badge {
    background: #ff4d4f;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
  }

  .setting-item {
    transition: all 0.2s ease;
  }

  .version-info {
    .version-card {
      background: white;
      border-radius: 16px;
      padding: 24px;
      margin-bottom: 16px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      display: flex;
      align-items: center;
      gap: 16px;

      .app-logo {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }

      .version-details {
        flex: 1;
        text-align: left;

        .app-name {
          font-size: 18px;
          font-weight: 700;
          color: #333;
          margin-bottom: 4px;
        }

        .version-text {
          font-size: 14px;
          color: #666;
          margin-bottom: 2px;
        }

        .build-info {
          font-size: 12px;
          color: #999;
        }
      }
    }

    .copyright {
      color: #999;
      font-size: 12px;
      line-height: 1.6;
      text-align: center;
      span {
        display: block;
        margin-bottom: 4px;

        &:last-child {
          margin-bottom: 0;
          color: #ccc;
        }
      }
    }
  }

  // 安全设置页面样式
  .security-tip-card {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #fff7e6 0%, #ffe7ba 100%);

    .tip-content {
      display: flex;
      align-items: flex-start;
      padding: 16px;
      gap: 12px;

      .tip-icon {
        font-size: 24px;
        color: #fa8c16;
        flex-shrink: 0;
        margin-top: 2px;
      }

      .tip-text {
        flex: 1;

        .tip-title {
          font-size: 16px;
          font-weight: 600;
          color: #d46b08;
          margin-bottom: 4px;
        }

        .tip-description {
          font-size: 14px;
          color: #873800;
          line-height: 1.4;
        }
      }
    }
  }

  .security-advice-card {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    .advice-title {
      padding: 16px 16px 12px;
      font-size: 16px;
      font-weight: 600;
      color: #333;
      border-bottom: 1px solid #f0f0f0;
    }

    .advice-list {
      padding: 16px;

      .advice-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 12px;
        font-size: 14px;
        color: #666;
        line-height: 1.5;

        &:last-child {
          margin-bottom: 0;
        }

        .advice-dot {
          color: var(--primary-color);
          margin-right: 8px;
          font-weight: bold;
          flex-shrink: 0;
          margin-top: 1px;
        }
      }
    }
  }

  .password-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    .line {
      margin-bottom: 12px;
    }
    :global(.adm-input) {
      border: 1px solid #d9d9d9;
      border-radius: 8px;
      padding: 12px;
      font-size: 16px;

      &:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(24, 142, 238, 0.2);
      }
    }
  }

  // 关于页面样式
  .app-info-card {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    .app-info {
      display: flex;
      align-items: center;
      padding: 20px 16px;
      gap: 16px;

      .app-logo {
        width: 80px;
        height: 80px;
        border-radius: 20px;
        overflow: hidden;
        flex-shrink: 0;

        .logo-placeholder {
          width: 100%;
          height: 100%;
          background: linear-gradient(
            135deg,
            var(--primary-color) 0%,
            var(--primary-color-dark) 100%
          );
          display: flex;
          align-items: center;
          justify-content: center;
          color: white;
          font-size: 32px;
        }
      }

      .app-details {
        flex: 1;
        min-width: 0;

        .app-name {
          font-size: 20px;
          font-weight: 600;
          color: #333;
          margin-bottom: 4px;
        }

        .app-version {
          font-size: 14px;
          color: #666;
          margin-bottom: 2px;
        }

        .app-build {
          font-size: 12px;
          color: #999;
        }
      }
    }

    .app-description {
      padding: 0 16px 20px;
      font-size: 14px;
      color: #666;
      line-height: 1.5;
    }
  }

  .features-list {
    padding: 16px;

    .feature-item {
      margin-bottom: 16px;
      padding: 16px;
      background: #f8f9fa;
      border-radius: 8px;
      border-left: 4px solid var(--primary-color);

      &:last-child {
        margin-bottom: 0;
      }

      .feature-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
      }

      .feature-description {
        font-size: 14px;
        color: #666;
        line-height: 1.5;
      }
    }
  }

  // 新的功能特性网格布局
  .features-grid {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;

    .feature-card {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      background: #ffffff;
      border-radius: 8px;
      border: 1px solid #f0f0f0;
      transition: all 0.2s ease;
      position: relative;

      &:hover {
        background: #f8f9fa;
        border-color: var(--primary-color);
        transform: translateX(4px);
      }

      .feature-icon {
        flex-shrink: 0;

        .icon-placeholder {
          width: 32px;
          height: 32px;
          border-radius: 6px;
          background: var(--primary-color);
          display: flex;
          align-items: center;
          justify-content: center;
          color: white;
          font-size: 14px;
          font-weight: 600;
        }
      }

      .feature-content {
        flex: 1;
        min-width: 0;

        .feature-title {
          font-size: 15px;
          font-weight: 500;
          color: #333;
          margin-bottom: 2px;
          line-height: 1.3;
        }

        .feature-description {
          font-size: 12px;
          color: #999;
          line-height: 1.4;
        }
      }

      // 为不同卡片添加不同的图标颜色
      &:nth-child(1) .icon-placeholder {
        background: #1890ff;
      }

      &:nth-child(2) .icon-placeholder {
        background: #52c41a;
      }

      &:nth-child(3) .icon-placeholder {
        background: #722ed1;
      }

      &:nth-child(4) .icon-placeholder {
        background: #fa8c16;
      }

      &:nth-child(5) .icon-placeholder {
        background: #eb2f96;
      }
    }
  }

  .copyright-info {
    text-align: center;
    padding: 32px 16px;
    color: #999;
    font-size: 12px;
    line-height: 1.6;

    .copyright-text {
      font-weight: 500;
      margin-bottom: 4px;
    }

    .copyright-subtext {
      color: #ccc;
    }
  }

  // 隐私协议页面样式
  .privacy-card {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    .privacy-content {
      padding: 20px 16px;

      h2 {
        font-size: 20px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
        text-align: center;
      }

      .update-time {
        font-size: 12px;
        color: #999;
        text-align: center;
        margin-bottom: 24px;
      }

      section {
        margin-bottom: 24px;

        h3 {
          font-size: 16px;
          font-weight: 600;
          color: #333;
          margin-bottom: 12px;
        }

        p {
          font-size: 14px;
          color: #666;
          line-height: 1.6;
          margin-bottom: 8px;
        }

        ul {
          margin: 8px 0;
          padding-left: 20px;

          li {
            font-size: 14px;
            color: #666;
            line-height: 1.6;
            margin-bottom: 4px;
          }
        }
      }

      .privacy-footer {
        text-align: center;
        margin-top: 32px;
        padding-top: 20px;
        border-top: 1px solid #f0f0f0;

        p {
          font-size: 14px;
          color: #999;
          font-style: italic;
        }
      }
    }
  }

  // 个人信息页面样式
  .save-buttons {
    padding: 16px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
  }

  .avatar-card {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    .avatar-section {
      padding: 20px 16px;

      .avatar-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin-bottom: 16px;
      }

      .avatar-container {
        display: flex;
        justify-content: center;
        margin-bottom: 12px;

        .avatar-wrapper {
          position: relative;
          width: 100px;
          height: 100px;
          border-radius: 50px;
          overflow: hidden;
          background: #f0f0f0;
          border: 2px solid #e0e0e0;
          cursor: pointer;

          .avatar-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }

          .avatar-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-size: 40px;
          }

          .avatar-upload-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            opacity: 0;
            transition: opacity 0.3s ease;

            &:hover {
              opacity: 1;
            }

            .upload-loading {
              font-size: 12px;
              text-align: center;
              line-height: 1.4;
            }
          }

          &:hover .avatar-upload-overlay {
            opacity: 1;
          }
        }
      }

      .avatar-tip {
        font-size: 12px;
        color: #999;
        text-align: center;
        line-height: 1.4;
      }
    }
  }

  .info-card {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    .info-section {
      padding: 20px 16px;

      .info-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin-bottom: 20px;
      }

      .input-group {
        margin-bottom: 20px;

        &:last-child {
          margin-bottom: 0;
        }

        .input-label {
          display: block;
          font-size: 14px;
          font-weight: 500;
          color: #333;
          margin-bottom: 8px;
        }

        .input-field {
          width: 100%;
          border: 1px solid #d9d9d9;
          border-radius: 8px;
          padding: 12px;
          font-size: 16px;
          background: #fff;

          &:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(24, 142, 238, 0.2);
          }
        }

        .readonly-field {
          padding: 12px;
          background: #f8f9fa;
          border: 1px solid #e9ecef;
          border-radius: 8px;
          font-size: 16px;
          color: #666;
          min-height: 48px;
          display: flex;
          align-items: center;
        }

        .input-tip {
          font-size: 12px;
          color: #999;
          margin-top: 4px;
          text-align: right;
        }
      }
    }
  }

  .tip-card {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    .tip-content {
      padding: 16px;

      .tip-title {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        margin-bottom: 12px;
      }

      .tip-list {
        .tip-item {
          font-size: 12px;
          color: #666;
          line-height: 1.6;
          margin-bottom: 6px;

          &:last-child {
            margin-bottom: 0;
          }
        }
      }
    }
  }
}
